
:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(148, 163, 184, 0.18);
    --line: rgba(71, 85, 105, 0.7);
    --text: #f8fafc;
    --muted: #94a3b8;
    --subtle: #64748b;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #2563eb;
    --amber: #f59e0b;
    --shadow: 0 24px 70px rgba(8, 47, 73, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 35rem),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 40rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-text,
.footer-brand {
    font-size: 1.4rem;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-weight: 650;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
    color: white;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(100, 116, 139, 0.7);
    border-radius: 999px;
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input {
    width: 260px;
    padding: 10px 88px 10px 16px;
}

.header-search button,
.mobile-search button,
.large-search button {
    border: 0;
    color: white;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button {
    position: absolute;
    right: 4px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
    background: rgba(15, 23, 42, 0.95);
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.8);
    border-radius: 14px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-search input {
    width: 100%;
    padding: 12px 88px 12px 16px;
}

.mobile-search button {
    position: absolute;
    right: 4px;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 580px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.22)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.45) 45%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 84px;
    left: 0;
    right: 0;
}

.hero-copy {
    width: min(760px, 100%);
}

.hero-labels,
.detail-labels,
.card-meta,
.rank-meta,
.footer-tags,
.quick-links,
.hero-tags,
.tag-cloud,
.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels span,
.detail-labels span,
.hero-tags span,
.tag-cloud span,
.footer-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(34, 211, 238, 0.25);
    backdrop-filter: blur(10px);
}

.hero-labels span:first-child {
    color: white;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    border-color: transparent;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
    color: white;
    padding: 13px 24px;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.primary-btn.full {
    width: 100%;
    margin-top: 18px;
}

.ghost-btn,
.section-more {
    color: #dbeafe;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.ghost-btn:hover,
.section-more:hover {
    border-color: rgba(34, 211, 238, 0.65);
    background: rgba(8, 145, 178, 0.16);
    transform: translateY(-1px);
}

.hero-dots {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.72);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--cyan);
}

.quick-panel {
    position: relative;
    z-index: 3;
    margin-top: -40px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.large-search {
    position: relative;
    display: flex;
}

.large-search input {
    flex: 1;
    min-height: 58px;
    padding: 0 128px 0 22px;
    font-size: 1rem;
}

.large-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 30px;
}

.quick-links {
    margin-top: 16px;
}

.quick-links a,
.side-links a {
    color: #cbd5e1;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: color 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.quick-links a:hover,
.side-links a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(34, 211, 238, 0.08);
}

.block-section {
    padding: 76px 0 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.section-heading h2,
.side-panel h2,
.content-card h2,
.info-panel h2,
.page-hero h1,
.detail-title-block h1 {
    margin: 0;
    color: white;
    letter-spacing: -0.035em;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.page-hero p {
    color: var(--muted);
    margin: 8px 0 0;
    line-height: 1.8;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.22);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.compact .card-cover {
    aspect-ratio: 16 / 11;
}

.card-cover img,
.mini-card img,
.rank-thumb img,
.detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-cover img,
.mini-card img,
.rank-thumb img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .card-cover img,
.mini-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 58%);
    opacity: 0.78;
}

.quality,
.play-badge {
    position: absolute;
    z-index: 2;
}

.quality {
    right: 10px;
    top: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    background: var(--cyan-strong);
    font-size: 0.72rem;
    font-weight: 900;
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: white;
    background: rgba(6, 182, 212, 0.85);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.76);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
    color: var(--cyan);
}

.card-body p {
    color: var(--muted);
    margin: 0 0 12px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-bottom,
.rank-meta {
    color: var(--subtle);
    font-size: 0.82rem;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.score,
.rank-score {
    color: #facc15;
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.66));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.2);
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.18);
}

.category-covers {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 8px;
    margin-bottom: 14px;
    height: 150px;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.category-card strong {
    display: block;
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 60px 104px minmax(0, 1fr) 70px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.44);
    background: rgba(15, 23, 42, 0.95);
}

.rank-no {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(103, 232, 249, 0.95);
    text-align: center;
}

.rank-thumb {
    display: block;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.rank-info p {
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    font-size: 1.35rem;
    text-align: right;
}

.side-panel,
.info-panel,
.content-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.side-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.mini-card {
    position: relative;
    min-height: 138px;
    overflow: hidden;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    scroll-snap-align: start;
}

.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
}

.mini-card span {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.page-hero {
    padding: 150px 0 72px;
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.18), transparent 36rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.small-hero p {
    max-width: 760px;
    font-size: 1.08rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-bar.wide {
    grid-template-columns: minmax(0, 1fr) 190px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
}

.detail-shell {
    padding: 104px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: white;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 18px 60px rgba(34, 211, 238, 0.32);
}

.player-overlay strong {
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    color: white;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(248, 113, 113, 0.42);
}

.player-message.is-visible {
    display: block;
}

.detail-title-block {
    margin: 24px 0;
    padding: 28px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-title-block h1 {
    margin-top: 16px;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.detail-title-block p {
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 14px 0 0;
}

.content-card {
    padding: 28px;
    margin-top: 22px;
}

.content-card h2,
.info-panel h2 {
    font-size: 1.55rem;
    margin-bottom: 14px;
}

.content-card p {
    color: #cbd5e1;
    line-height: 2;
    margin: 0;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
}

.info-panel {
    margin-top: 18px;
    padding: 24px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0 0 20px;
}

.info-panel dt {
    color: var(--subtle);
}

.info-panel dd {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.6;
}

.related-grid {
    margin-top: 18px;
}

.site-footer {
    margin-top: 78px;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.7;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .side-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        height: 64px;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 90px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 13vw, 4rem);
    }

    .hero-dots {
        left: 20px;
        right: auto;
        bottom: 32px;
    }

    .quick-panel {
        margin-top: -24px;
        padding: 18px;
        border-radius: 22px;
    }

    .large-search input {
        padding-right: 104px;
    }

    .large-search button {
        padding: 0 20px;
    }

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 82px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / 4;
        text-align: left;
        font-size: 1rem;
    }

    .filter-bar,
    .filter-bar.wide {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 124px;
    }

    .detail-shell {
        padding-top: 88px;
    }
}

@media (max-width: 520px) {
    .brand-text {
        font-size: 1.1rem;
    }

    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-labels,
    .hero-tags,
    .detail-labels {
        gap: 7px;
    }

    .hero-labels span,
    .detail-labels span,
    .hero-tags span,
    .tag-cloud span {
        padding: 5px 9px;
        font-size: 0.82rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .card-bottom span:last-child {
        display: none;
    }

    .detail-title-block,
    .content-card,
    .info-panel {
        padding: 20px;
        border-radius: 22px;
    }
}
