:root {
    color-scheme: light;
    --amber-50: #fff8e1;
    --amber-100: #ffecb3;
    --amber-200: #ffe082;
    --amber-300: #ffd54f;
    --amber-400: #ffca28;
    --amber-500: #ffc107;
    --amber-600: #ffb300;
    --orange-500: #fb8c00;
    --orange-700: #e65100;
    --brown-900: #2d1600;
    --ink: #241400;
    --muted: #765b34;
    --line: rgba(180, 122, 22, 0.2);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 45px rgba(137, 79, 0, 0.14);
    --radius: 24px;
    --radius-sm: 16px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 193, 7, 0.26), transparent 30rem),
        linear-gradient(180deg, #fffdf5 0%, #fff8e6 38%, #fff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.narrow {
    max-width: 820px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(137, 79, 0, 0.08);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--brown-900);
}

.brand-icon {
    width: 42px;
    height: 42px;
    position: relative;
    display: grid;
    place-items: center;
    color: #fff;
    filter: drop-shadow(0 10px 18px rgba(251, 140, 0, 0.26));
}

.brand-icon::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    transform: rotate(45deg);
    position: absolute;
}

.brand-icon span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    box-shadow: 10px 0 0 rgba(255, 255, 255, 0.85), 5px 9px 0 rgba(255, 255, 255, 0.7);
}

.brand-text {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #8a4b00, #f6a400, #d56b00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #60451f;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #9a5400;
    background: rgba(255, 193, 7, 0.18);
}

.nav-link:hover,
.mobile-link:hover {
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search-inner form,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    width: min(320px, 28vw);
}

.header-search input,
.mobile-search input,
.hero-search-inner input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search-inner input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.18);
    background: #fff;
}

.header-search button,
.mobile-search button,
.hero-search-inner button,
.btn,
.menu-toggle,
.hero-arrow {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search-inner button,
.btn.primary {
    color: #2d1600;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 12px 26px rgba(251, 140, 0, 0.24);
    white-space: nowrap;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search-inner button:hover,
.btn:hover,
.menu-toggle:hover,
.hero-arrow:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 193, 7, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #704300;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
}

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

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

.hero {
    position: relative;
    min-height: 680px;
    background: linear-gradient(135deg, #2b1300 0%, #7b4300 48%, #f0a000 100%);
    overflow: hidden;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 213, 79, 0.46), transparent 25rem),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.16), transparent 18rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12) 100%);
    z-index: 2;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-image-layer {
    position: absolute;
    inset: 0;
    opacity: 0.46;
    filter: saturate(1.08);
}

.hero-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 4;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 56px;
    padding: 78px 0 96px;
}

.hero-copy {
    max-width: 730px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff4c2;
    font-weight: 900;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
}

.eyebrow.dark {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.22);
    color: #9a5400;
}

.hero h1,
.page-hero h1,
.detail-info-card h1 {
    margin: 18px 0 18px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.9rem);
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2.1vw, 1.35rem);
    line-height: 1.85;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.82rem;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn.ghost {
    padding: 12px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    transform: rotate(2deg);
}

.poster-frame,
.rank-cover,
.detail-poster {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.55), transparent 30%),
        linear-gradient(135deg, #fff0b3, #f6a400 55%, #8a4b00);
    box-shadow: var(--shadow);
}

.poster-frame::after,
.rank-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-frame img,
.rank-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.hero-visual {
    aspect-ratio: 2 / 3;
    border: 8px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.88);
    color: #2d1600;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-play.large {
    width: 68px;
    height: 68px;
    font-size: 1.35rem;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-link:hover .poster-frame::after,
.movie-card:hover .poster-frame::after,
.rank-row:hover .rank-cover::after {
    opacity: 1;
}

.poster-link:hover img,
.movie-card:hover .poster-frame img,
.rank-row:hover .rank-cover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dots {
    pointer-events: auto;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    color: #2d1600;
    background: rgba(255, 255, 255, 0.88);
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 26px;
    border-radius: 999px;
    background: #fff;
}

.hero-search-band {
    position: relative;
    z-index: 10;
    margin-top: -34px;
}

.hero-search-inner {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 193, 7, 0.22);
}

.hero-search-inner form {
    width: 100%;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pill-row a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #6b4100;
    background: rgba(255, 193, 7, 0.16);
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pill-row a:hover {
    background: rgba(255, 193, 7, 0.32);
    transform: translateY(-1px);
}

.section {
    padding: 74px 0;
}

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

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-link {
    color: #9a5400;
    font-weight: 900;
    border-bottom: 2px solid rgba(255, 193, 7, 0.55);
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(255, 193, 7, 0.18);
    box-shadow: 0 12px 32px rgba(137, 79, 0, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 46px rgba(137, 79, 0, 0.18);
    border-color: rgba(255, 193, 7, 0.42);
}

.movie-card .poster-frame {
    aspect-ratio: 2 / 3;
    border-radius: 0;
    box-shadow: none;
}

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #2d1600;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 900;
}

.card-badge {
    left: 12px;
}

.rank-badge {
    right: 12px;
}

.card-body {
    padding: 16px;
}

.meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a6a22;
    font-size: 0.82rem;
    font-weight: 800;
}

.meta-row span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.16);
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row h2 a:hover {
    color: #d97800;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.35em;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.68;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact .card-body {
    padding: 14px;
}

.movie-card.compact h3 {
    font-size: 1rem;
}

.movie-card.compact p {
    display: none;
}

.tag-row span {
    color: #8a4b00;
    background: rgba(255, 193, 7, 0.16);
}

.tag-row.big span {
    padding: 7px 11px;
}

.amber-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.78), transparent 22rem),
        linear-gradient(135deg, rgba(255, 236, 179, 0.66), rgba(255, 248, 225, 0.94));
    border-block: 1px solid rgba(255, 193, 7, 0.16);
}

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

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

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

.category-tile {
    min-height: 142px;
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 193, 7, 0.35), transparent 8rem),
        rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(137, 79, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(137, 79, 0, 0.16);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    font-size: 1.22rem;
    font-weight: 900;
}

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

.ranking-panel,
.story-card,
.detail-info-card,
.filter-bar,
.category-overview {
    border: 1px solid rgba(255, 193, 7, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.ranking-panel {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.compact-heading {
    margin-bottom: 18px;
}

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

.rank-mini {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 193, 7, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-mini:hover {
    background: rgba(255, 193, 7, 0.24);
    transform: translateX(4px);
}

.rank-mini span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    font-weight: 900;
}

.rank-mini strong,
.rank-mini em {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-mini em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
    margin-top: 3px;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 92px 0 82px;
    color: #fff;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 213, 79, 0.54), transparent 22rem),
        linear-gradient(135deg, #321600, #8a4b00 48%, #f4aa00);
}

.page-hero h1 {
    font-size: clamp(2.35rem, 5vw, 5rem);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.85;
}

.category-overview {
    padding: 24px;
    margin-bottom: 28px;
}

.filter-bar {
    margin-bottom: 28px;
    padding: 16px;
}

.filter-bar.wide {
    grid-template-columns: 1fr 200px 180px;
}

.filter-bar select {
    appearance: none;
    min-width: 150px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 46px 18px;
    color: var(--muted);
    font-weight: 900;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 92px 1fr 96px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 193, 7, 0.17);
    box-shadow: 0 10px 26px rgba(137, 79, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(137, 79, 0, 0.14);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #2d1600;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    font-size: 1.2rem;
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    box-shadow: none;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.62;
}

.rank-score {
    text-align: right;
}

.rank-score strong,
.rank-score span {
    display: block;
}

.rank-score strong {
    font-size: 1.55rem;
    color: #d97800;
}

.rank-score span {
    color: var(--muted);
    margin-top: 4px;
}

.detail-hero-section {
    padding: 28px 0 72px;
    background:
        radial-gradient(circle at top right, rgba(255, 213, 79, 0.42), transparent 22rem),
        linear-gradient(180deg, #fff5d0, #fffdf5 82%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #8a5a14;
    font-weight: 800;
    padding: 18px 0 24px;
}

.breadcrumb a:hover {
    color: #d97800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: #100900;
    box-shadow: 0 28px 70px rgba(67, 31, 0, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #100900;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background:
        radial-gradient(circle, rgba(255, 193, 7, 0.15), transparent 16rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #2d1600;
    background: linear-gradient(135deg, #fff7d1, var(--amber-400));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
    font-size: 2rem;
    transform: translateX(2px);
}

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

.detail-info-card {
    padding: 18px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    margin-bottom: 18px;
}

.detail-info-card h1 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.detail-info-card p {
    color: var(--muted);
    line-height: 1.8;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    padding: 26px;
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 1.02rem;
}

.info-table {
    grid-column: 1 / -1;
}

.info-table dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-table div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.16);
}

.info-table div:last-child {
    border-bottom: 0;
}

.info-table dt {
    color: #9a5400;
    font-weight: 900;
}

.info-table dd {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 40px;
    padding: 48px 0;
    color: #fceec8;
    background: linear-gradient(135deg, #241100, #6f3b00);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 30px;
}

.footer-brand {
    color: #fff4c2;
    font-size: 1.4rem;
}

.site-footer p {
    max-width: 440px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.78;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #fff4c2;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
    background: rgba(255, 193, 7, 0.25);
    color: #fff;
}

.is-empty {
    min-height: 100%;
}

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

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

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

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

    .ranking-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .header-inner {
        min-height: 64px;
    }

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0 96px;
    }

    .hero-poster {
        justify-self: start;
        width: min(240px, 72vw);
        transform: rotate(0deg);
    }

    .hero-search-inner form,
    .filter-bar,
    .filter-bar.wide {
        display: grid;
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-grid.full,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rank-row {
        grid-template-columns: 46px 74px 1fr;
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .player-shell,
    .movie-video {
        min-height: 280px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--max), calc(100% - 22px));
    }

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

    .hero h1 {
        font-size: clamp(2.6rem, 16vw, 4.2rem);
    }

    .section {
        padding: 52px 0;
    }

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

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-grid.full,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 70px 1fr;
        gap: 12px;
    }

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

    .info-table div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
    }
}
