* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --stone-950: #0c0a09;
    --stone-925: #15110f;
    --stone-900: #1c1917;
    --stone-850: #231f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --white: #ffffff;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.35);
    --max-width: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--stone-950);
    color: var(--stone-300);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(146, 64, 14, 0.18), transparent 30%),
        linear-gradient(180deg, #0c0a09 0%, #171412 52%, #0c0a09 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.94);
    border-bottom: 1px solid rgba(68, 64, 60, 0.72);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(var(--max-width), calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-500);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    color: var(--stone-950);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
}

.brand-name {
    font-size: 22px;
}

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

.nav-link,
.mobile-link {
    color: var(--stone-300);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: var(--amber-400);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(168, 162, 158, 0.16);
    border-radius: 12px;
    background: rgba(41, 37, 36, 0.8);
    color: var(--stone-300);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border: 1px solid rgba(68, 64, 60, 0.75);
    border-radius: 16px;
    background: rgba(12, 10, 9, 0.96);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(41, 37, 36, 0.65);
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: var(--stone-950);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.76) 42%, rgba(12, 10, 9, 0.2) 100%),
        linear-gradient(0deg, var(--stone-950) 0%, rgba(12, 10, 9, 0.6) 28%, rgba(12, 10, 9, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    padding-top: 114px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 52px;
}

.hero-text {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber-400);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.hero-summary {
    max-width: 700px;
    margin: 24px 0 0;
    color: var(--stone-300);
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-300);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 12px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    color: var(--stone-950);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.28);
}

.ghost-button {
    border: 1px solid rgba(214, 211, 209, 0.2);
    color: var(--white);
    background: rgba(28, 25, 23, 0.5);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(28, 25, 23, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: var(--shadow-card);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(12, 10, 9, 0.7);
    color: var(--white);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(12, 10, 9, 0.46);
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

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

.page-main {
    padding-top: 68px;
}

.page-hero {
    position: relative;
    padding: 118px 0 74px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(12, 10, 9, 0.96));
    border-bottom: 1px solid rgba(68, 64, 60, 0.5);
}

.page-hero > div {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    max-width: 920px;
}

.page-hero p:last-child {
    max-width: 820px;
    color: var(--stone-300);
    font-size: 18px;
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.search-panel,
.category-strip,
.content-section,
.filter-bar,
.detail-section,
.player-section {
    margin-top: 42px;
}

.home-search {
    width: min(var(--max-width), calc(100% - 32px));
    margin: -44px auto 0;
    position: relative;
    z-index: 5;
}

.search-panel,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(68, 64, 60, 0.7);
    border-radius: var(--radius-xl);
    background: rgba(28, 25, 23, 0.9);
    box-shadow: var(--shadow-card);
}

.search-panel h2,
.category-strip h2,
.section-heading h2,
.detail-section h2,
.player-section h2 {
    margin: 0;
    color: var(--white);
    font-size: 26px;
    font-weight: 900;
}

.search-panel p {
    margin: 8px 0 0;
    color: var(--stone-400);
}

.inline-search,
.filter-search {
    display: flex;
    min-width: min(420px, 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(12, 10, 9, 0.7);
}

.inline-search input,
.filter-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: var(--white);
    background: transparent;
}

.inline-search button {
    border: 0;
    padding: 0 20px;
    color: var(--stone-950);
    background: var(--amber-500);
    font-weight: 900;
    cursor: pointer;
}

.category-strip {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(41, 37, 36, 0.75));
    border: 1px solid rgba(68, 64, 60, 0.65);
}

.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.category-chip {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber-300);
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-weight: 800;
}

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

.section-heading a,
.section-heading span {
    color: var(--stone-400);
    font-size: 14px;
}

.section-heading a:hover {
    color: var(--amber-400);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(28, 25, 23, 0.92);
    border: 1px solid rgba(68, 64, 60, 0.72);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.card-link {
    display: block;
    height: 100%;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--stone-800);
}

.card-image.wide {
    aspect-ratio: 16 / 9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .card-image img {
    transform: scale(1.08);
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 56%);
}

.score-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
}

.score-badge {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    color: var(--stone-950);
    background: var(--amber-400);
}

.type-badge {
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    color: var(--white);
    background: rgba(12, 10, 9, 0.68);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0;
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.large-card .card-body h3 {
    font-size: 22px;
}

.card-body p {
    min-height: 44px;
    margin: 8px 0 0;
    color: var(--stone-400);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--stone-500);
    font-size: 12px;
}

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

.horizontal-card .card-link {
    display: grid;
    grid-template-columns: 44% 1fr;
}

.horizontal-card .card-image {
    height: 100%;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(28, 25, 23, 0.9);
    border: 1px solid rgba(68, 64, 60, 0.72);
    box-shadow: var(--shadow-card);
}

.category-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-cover img {
    transform: scale(1.08);
}

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%);
}

.category-cover span {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 16px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.category-body {
    padding: 20px;
}

.category-body h2 {
    margin: 0 0 8px;
    color: var(--white);
}

.category-body p {
    margin: 0;
    color: var(--stone-400);
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-300);
    background: rgba(245, 158, 11, 0.1);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-bar {
    align-items: flex-start;
    flex-direction: column;
}

.filter-search {
    width: 100%;
    height: 48px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pills button {
    border: 1px solid rgba(168, 162, 158, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--stone-300);
    background: rgba(41, 37, 36, 0.85);
    cursor: pointer;
}

.filter-pills button.active,
.filter-pills button:hover {
    color: var(--stone-950);
    background: var(--amber-500);
    border-color: var(--amber-500);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 52px 64px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.88);
    border: 1px solid rgba(68, 64, 60, 0.68);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.42);
}

.rank-number {
    color: var(--amber-400);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.top-rank .rank-number {
    color: var(--stone-950);
    background: var(--amber-500);
    border-radius: 12px;
    padding: 4px 0;
}

.ranking-row img {
    width: 64px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: var(--white);
    font-size: 16px;
}

.rank-info em {
    color: var(--stone-500);
    font-size: 13px;
    font-style: normal;
}

.rank-score {
    color: var(--amber-400);
    font-weight: 900;
    text-align: right;
}

.detail-main {
    padding-top: 68px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: var(--stone-950);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.45;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72)),
        linear-gradient(0deg, var(--stone-950), transparent 48%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 66px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--stone-400);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: var(--shadow-card);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(40px, 6vw, 72px);
}

.detail-line {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--stone-300);
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--stone-200);
    background: rgba(41, 37, 36, 0.72);
    border: 1px solid rgba(168, 162, 158, 0.16);
    font-size: 13px;
    font-weight: 800;
}

.detail-tags {
    margin-top: 20px;
}

.detail-content {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.player-section,
.detail-section {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(28, 25, 23, 0.92);
    border: 1px solid rgba(68, 64, 60, 0.72);
    box-shadow: var(--shadow-card);
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--stone-950);
    background: var(--amber-500);
    font-size: 32px;
    box-shadow: 0 0 42px rgba(245, 158, 11, 0.45);
}

.player-overlay strong {
    font-size: 18px;
}

.detail-section p {
    margin: 18px 0 0;
    color: var(--stone-300);
    font-size: 17px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 0;
}

.info-grid div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(41, 37, 36, 0.72);
    border: 1px solid rgba(68, 64, 60, 0.58);
}

.info-grid dt {
    color: var(--stone-500);
    font-size: 13px;
    font-weight: 800;
}

.info-grid dd {
    margin: 6px 0 0;
    color: var(--white);
    font-weight: 800;
}

.info-grid a {
    color: var(--amber-400);
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(68, 64, 60, 0.68);
    background: rgba(28, 25, 23, 0.92);
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.6fr) minmax(180px, 0.8fr);
    gap: 38px;
}

.footer-brand p {
    max-width: 430px;
    color: var(--stone-400);
}

.footer-group h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-group a {
    color: var(--stone-400);
    font-size: 14px;
}

.footer-group a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(68, 64, 60, 0.46);
    color: var(--stone-500);
    text-align: center;
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .poster-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: 1fr 280px;
    }

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

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

    .menu-button {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 104px;
        padding-bottom: 80px;
    }

    .hero-poster {
        max-width: 260px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-search {
        width: 100%;
        height: 48px;
    }

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

    .horizontal-card .card-link {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 260px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .header-inner {
        width: calc(100% - 24px);
    }

    .brand-name {
        font-size: 19px;
    }

    .page-shell,
    .page-hero > div,
    .detail-shell,
    .footer-inner {
        width: calc(100% - 24px);
    }

    .hero-content {
        width: calc(100% - 24px);
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 42px 54px minmax(0, 1fr) 44px;
        gap: 10px;
    }

    .ranking-row img {
        width: 54px;
        height: 72px;
    }

    .player-section,
    .detail-section {
        padding: 16px;
    }
}
