:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-950: #431407;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
    --shadow-strong: 0 26px 60px rgba(28, 25, 23, 0.3);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--stone-800);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 34rem),
        linear-gradient(180deg, #fffbeb 0%, var(--stone-50) 28rem, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-900), #9a3412 54%, #7f1d1d);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(67, 20, 7, 0.28);
}

.nav-shell {
    width: min(var(--max-width), calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--amber-900);
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-text {
    font-size: 1.2rem;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.local-filter input {
    width: 210px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 11px 16px;
    color: #ffffff;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.header-search input:focus {
    width: 260px;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--amber-900);
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-panel {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-link {
    display: block;
    border-radius: 14px;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.13);
}

.hero {
    position: relative;
    min-height: clamp(520px, 68vw, 680px);
    overflow: hidden;
    color: #ffffff;
    background: var(--stone-900);
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 50%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - var(--max-width)) / 2));
    bottom: 84px;
    width: min(680px, calc(100% - 48px));
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--amber-300);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.hero p {
    width: min(620px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.85;
}

.hero-tags,
.tag-row,
.filter-chips,
.category-pills,
.side-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    padding: 7px 11px;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--amber-50);
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-actions,
.detail-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.ghost-dark-btn,
.text-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #451a03;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ghost-dark-btn,
.section-more,
.text-btn {
    color: var(--amber-800, #92400e);
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover,
.text-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-panel,
.content-section,
.page-shell,
.detail-page {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -42px;
    padding: 26px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.detail-meta-card h2,
.side-panel h2,
.site-footer h2 {
    margin: 0;
}

.quick-search-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.quick-search-panel p,
.section-heading p,
.page-hero p,
.side-panel p,
.story-card p,
.detail-meta-card dd,
.footer-shell p {
    color: var(--stone-500);
    line-height: 1.8;
}

.wide-search {
    justify-content: flex-end;
}

.wide-search input,
.local-filter input {
    width: 100%;
    min-height: 52px;
    color: var(--stone-800);
    border-color: var(--stone-200);
    background: var(--stone-50);
}

.wide-search input::placeholder,
.local-filter input::placeholder {
    color: #a8a29e;
}

.category-pills {
    grid-column: 1 / -1;
}

.category-pills a,
.side-links a,
.filter-chips button {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    color: #92400e;
    font-weight: 800;
    cursor: pointer;
    background: var(--amber-50);
}

.category-pills.slim {
    margin-top: 20px;
}

.content-section {
    padding: 70px 0 0;
}

.content-section.full-width {
    padding-top: 34px;
}

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

.section-heading.plain {
    margin-top: 0;
}

.section-heading h2 {
    color: var(--stone-900);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 8px 0 0;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(245, 158, 11, 0.28), transparent 52%),
        linear-gradient(145deg, #292524, #78350f);
}

.poster-link img,
.rank-cover img,
.detail-poster img,
.category-covers img,
.category-cover-wall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.05);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #451a03;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.card-content {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #a16207;
    font-size: 0.78rem;
    font-weight: 900;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--amber-50);
}

.movie-card h2,
.rank-info h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card p,
.rank-info p {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--stone-500);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact p {
    -webkit-line-clamp: 2;
}

.tag-row {
    margin-top: 13px;
}

.tag-row.large span {
    font-size: 0.9rem;
}

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

.side-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #fff7ed, #ffffff);
    box-shadow: var(--shadow-soft);
}

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

.rank-list.large {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 34px auto 80px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 108px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--stone-200);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(41, 37, 36, 0.07);
}

.rank-list.small .rank-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
}

.list-rank {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    color: #451a03;
    font-weight: 900;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(circle at top, rgba(245, 158, 11, 0.25), transparent 55%),
        linear-gradient(145deg, #292524, #78350f);
}

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

.category-card,
.category-detail-card {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-xl);
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(41, 37, 36, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-covers,
.category-cover-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: 210px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #292524, #78350f);
}

.category-covers img,
.category-cover-wall img {
    min-height: 0;
    border-radius: 12px;
}

.category-card h2,
.category-detail-card h2 {
    margin: 18px 0 8px;
    font-size: 1.25rem;
}

.category-card p,
.category-detail-card p {
    color: var(--stone-500);
    line-height: 1.8;
}

.page-shell {
    padding: 34px 0 80px;
}

.page-hero {
    overflow: hidden;
    padding: clamp(34px, 6vw, 64px);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.24), transparent 32%),
        linear-gradient(145deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
}

.page-hero.compact {
    padding: clamp(28px, 5vw, 52px);
}

.page-hero h1 {
    max-width: 880px;
    color: var(--stone-900);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.local-filter {
    max-width: 680px;
    margin-top: 26px;
}

.local-filter.large {
    max-width: 760px;
}

.filter-chips {
    margin-top: 20px;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-700), #c2410c);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--stone-500);
    font-weight: 800;
}

.breadcrumb a {
    color: #92400e;
}

.category-list-page {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.category-detail-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.mini-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.mini-link-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--stone-800);
    background: var(--stone-50);
}

.mini-link-list span {
    flex: 0 0 auto;
    color: var(--stone-500);
    font-size: 0.86rem;
}

.detail-page {
    padding: 34px 0 80px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34%),
        linear-gradient(145deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(245, 158, 11, 0.25), transparent 55%),
        linear-gradient(145deg, #292524, #78350f);
    box-shadow: var(--shadow-strong);
}

.detail-info h1 {
    color: var(--stone-900);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.lead {
    margin: 18px 0 0;
    color: var(--stone-700);
    font-size: 1.15rem;
    line-height: 1.9;
}

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow-strong);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 900;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74)),
        linear-gradient(145deg, rgba(120, 53, 15, 0.65), rgba(0, 0, 0, 0.52));
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #451a03;
    font-size: 2rem;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
    gap: 22px;
    margin-top: 34px;
}

.story-card,
.detail-meta-card {
    padding: 24px;
    border: 1px solid var(--stone-200);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(41, 37, 36, 0.06);
}

.story-card h2,
.detail-meta-card h2 {
    color: var(--stone-900);
    font-size: 1.4rem;
}

.story-card p {
    margin: 14px 0 0;
}

.detail-meta-card dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 0;
}

.detail-meta-card dt {
    color: #92400e;
    font-weight: 900;
}

.detail-meta-card dd {
    margin: 0;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(145deg, var(--stone-900), var(--orange-950));
}

.footer-shell {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.2rem;
}

.footer-shell h2 {
    color: #ffffff;
    font-size: 1rem;
}

.footer-shell a {
    display: block;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-shell a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
}

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

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

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

    .quick-search-panel,
    .split-layout,
    .detail-content,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .hero {
        min-height: 620px;
    }

    .hero-content {
        bottom: 92px;
    }

    .hero-arrow {
        top: auto;
        bottom: 28px;
        transform: none;
    }

    .hero-prev {
        left: 24px;
    }

    .hero-next {
        right: 24px;
    }

    .hero-dots {
        bottom: 44px;
    }

    .wide-search {
        justify-content: stretch;
    }

    .wide-search button {
        flex: 0 0 auto;
    }

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

    .rank-item,
    .rank-list.small .rank-item {
        grid-template-columns: 44px 82px minmax(0, 1fr);
        gap: 12px;
    }

    .category-detail-card,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .category-cover-wall {
        height: 240px;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .mini-link-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        height: 66px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero {
        min-height: 660px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .quick-search-panel {
        width: min(100% - 24px, var(--max-width));
        padding: 20px;
    }

    .wide-search,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .rank-item,
    .rank-list.small .rank-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        padding: 10px;
    }

    .rank-info p,
    .rank-info .tag-row {
        display: none;
    }

    .page-hero,
    .detail-hero {
        border-radius: 24px;
    }

    .detail-content {
        gap: 16px;
    }
}
