* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-600: #ea580c;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
    --shadow-card: 0 12px 30px rgba(41, 37, 36, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: var(--stone-50);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid var(--amber-200);
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #78350f;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #92400e;
    font-weight: 700;
}

.nav-links a,
.mobile-menu a {
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--amber-600);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #78350f;
    border-radius: 10px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 16px;
}

.mobile-menu a {
    display: block;
    padding: 10px 12px;
    color: #92400e;
    font-weight: 700;
    border-radius: 12px;
}

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

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.35), transparent 35%), linear-gradient(135deg, #1c1917, #451a03 50%, #78350f);
}

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    min-height: 620px;
    padding: 80px max(32px, calc((100vw - 1180px) / 2)) 70px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.95), rgba(28, 25, 23, 0.58) 46%, rgba(28, 25, 23, 0.25)), linear-gradient(0deg, rgba(28, 25, 23, 0.92), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    color: white;
}

.hero-eyebrow,
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--amber-200);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow span,
.detail-meta span,
.detail-meta a,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-eyebrow span {
    padding: 7px 12px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(253, 230, 138, 0.35);
    backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 660px;
    margin: 0;
    color: #e7e5e4;
    font-size: 18px;
}

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

.btn-primary,
.btn-ghost,
.section-more,
.category-overview-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    padding: 13px 22px;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.3);
}

.btn-ghost {
    padding: 12px 21px;
    color: var(--amber-100);
    border: 1px solid rgba(253, 230, 138, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-rank-card {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 70px;
    z-index: 3;
    width: min(320px, calc(100% - 64px));
    padding: 22px;
    color: white;
    border: 1px solid rgba(253, 230, 138, 0.32);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.45);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-rank-card span,
.hero-rank-card em {
    display: block;
    color: var(--amber-200);
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.hero-rank-card strong {
    display: block;
    margin: 10px 0;
    font-size: 22px;
    line-height: 1.25;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(253, 230, 138, 0.38);
    border-radius: 999px;
    color: white;
    background: rgba(28, 25, 23, 0.38);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.content-shell {
    padding: 54px 0;
}

.home-search {
    padding-bottom: 14px;
}

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

.section-head > div,
.ranking-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon,
.ranking-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--amber-100);
}

.section-head h2,
.ranking-title h2 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
}

.section-more {
    color: var(--amber-700);
    font-size: 14px;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(41, 37, 36, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #451a03, #1c1917);
}

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

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

.poster-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(28, 25, 23, 0);
    transition: background 0.28s ease;
}

.movie-card-link:hover .poster-hover {
    background: rgba(28, 25, 23, 0.28);
}

.play-dot,
.big-play {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: white;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    transform: scale(0);
    transition: transform 0.28s ease;
}

.movie-card-link:hover .play-dot {
    transform: scale(1);
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: white;
    border-radius: 9px;
    background: rgba(28, 25, 23, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    right: auto;
    left: 12px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.card-copy {
    display: block;
    padding: 16px;
}

.card-copy strong {
    display: block;
    overflow: hidden;
    color: var(--stone-800);
    font-size: 16px;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card-link:hover strong {
    color: var(--amber-700);
}

.card-copy em {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: var(--stone-500);
    font-size: 12px;
}

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

.category-band {
    background: linear-gradient(135deg, var(--amber-100), #ffedd5);
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    color: white;
    background: var(--stone-900);
    box-shadow: var(--shadow-card);
}

.category-card img,
.category-overview-card img,
.top-rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.category-card::after,
.category-overview-card > a::after,
.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.16));
}

.category-card span,
.category-card em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-card span {
    margin-top: 64px;
    font-size: 24px;
    font-weight: 900;
}

.category-card em {
    margin-top: 10px;
    color: #f5f5f4;
    font-size: 13px;
    font-style: normal;
}

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

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

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow-card);
}

.ranking-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.rank-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--stone-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--amber-50);
    transform: translateX(4px);
}

.rank-num {
    grid-row: span 2;
    color: var(--amber-700);
    font-size: 18px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--stone-500);
    font-size: 12px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--stone-200);
    border-radius: 24px;
    background: white;
    box-shadow: 0 8px 24px rgba(41, 37, 36, 0.07);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--stone-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    color: var(--stone-800);
    background: var(--stone-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.page-hero {
    padding: 74px 0;
    color: white;
    background: radial-gradient(circle at 25% 20%, rgba(253, 230, 138, 0.22), transparent 34%), linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.page-hero .content-shell {
    padding: 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.category-pills a {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 800;
}

.category-pills a.active,
.category-pills a:hover {
    color: #78350f;
    background: white;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-card);
}

.category-overview-card > a {
    position: relative;
    display: grid;
    min-height: 250px;
    align-items: end;
    padding: 26px;
    overflow: hidden;
    color: white;
}

.category-overview-card > a > div {
    position: relative;
    z-index: 2;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.category-overview-card p {
    max-width: 620px;
    margin: 0 0 18px;
    color: #f5f5f4;
}

.category-overview-card span {
    width: max-content;
    padding: 9px 14px;
    color: white;
    background: var(--amber-600);
}

.category-overview-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 20px 26px 26px;
    list-style: none;
}

.category-overview-card li a {
    display: inline-flex;
    min-height: auto;
    padding: 0;
    color: var(--stone-700);
    font-weight: 700;
}

.category-overview-card li a:hover {
    color: var(--amber-700);
}

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

.ranking-hero {
    background: radial-gradient(circle at 75% 20%, rgba(253, 230, 138, 0.24), transparent 34%), linear-gradient(135deg, #1c1917, #78350f);
}

.top-rank-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
}

.top-rank-card {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    padding: 24px;
    border-radius: 30px;
    color: white;
    background: var(--stone-900);
    box-shadow: var(--shadow-card);
}

.top-rank-card:first-child {
    min-height: 420px;
}

.top-rank-card > div,
.top-rank-number {
    position: relative;
    z-index: 2;
}

.top-rank-number {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--amber-600);
    font-weight: 900;
}

.top-rank-card div {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
}

.top-rank-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.16;
}

.top-rank-card p {
    display: -webkit-box;
    overflow: hidden;
    color: #e7e5e4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.top-rank-card em {
    color: var(--amber-200);
    font-style: normal;
    font-weight: 800;
}

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

.detail-page {
    background: linear-gradient(180deg, #fff7ed, var(--stone-50) 360px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-bottom: 0;
    color: var(--stone-600);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
    gap: 28px;
    align-items: start;
    padding-top: 30px;
}

.player-card,
.detail-info-card,
.detail-copy article {
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.18));
    cursor: pointer;
}

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

.player-cover .big-play {
    width: 72px;
    height: 72px;
    font-size: 28px;
    transform: scale(1);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.34);
}

.player-cover strong {
    max-width: 80%;
    font-size: clamp(20px, 4vw, 34px);
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

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

.detail-info-card h1 {
    margin: 0 0 16px;
    color: var(--stone-900);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-one-line {
    color: var(--stone-700);
    font-size: 17px;
    font-weight: 700;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.detail-meta span,
.detail-meta a {
    padding: 8px 12px;
    color: #78350f;
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 800;
}

.tag-list span {
    padding: 7px 11px;
    color: var(--stone-700);
    background: var(--stone-100);
    font-size: 13px;
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 0;
}

.detail-copy article {
    padding: 28px;
}

.detail-copy h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-copy p {
    margin: 0;
    color: var(--stone-700);
    font-size: 16px;
}

.related-section {
    padding-top: 0;
}

.site-footer {
    margin-top: 36px;
    color: #d6d3d1;
    background: var(--stone-800);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding: 46px 0;
}

.footer-brand-row {
    color: var(--amber-100);
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--amber-100);
}

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

.site-footer a:hover {
    color: var(--amber-200);
}

.footer-bottom {
    padding: 18px 0;
    color: var(--stone-500);
    border-top: 1px solid rgba(214, 211, 209, 0.12);
    text-align: center;
}

.from-amber {
    background: linear-gradient(135deg, #d97706, #78350f);
}

.from-orange {
    background: linear-gradient(135deg, #ea580c, #7c2d12);
}

.from-stone {
    background: linear-gradient(135deg, #57534e, #1c1917);
}

.from-rose {
    background: linear-gradient(135deg, #be123c, #7f1d1d);
}

.from-brown {
    background: linear-gradient(135deg, #92400e, #292524);
}

.from-gold {
    background: linear-gradient(135deg, #ca8a04, #713f12);
}

.from-dark {
    background: linear-gradient(135deg, #292524, #020617);
}

@media (max-width: 1120px) {
    .movie-grid,
    .category-movie-grid,
    .ranking-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider,
    .hero-track,
    .hero-slide {
        min-height: 560px;
    }

    .hero-slide {
        padding: 70px 22px 86px;
    }

    .hero-rank-card {
        display: none;
    }

    .hero-control {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .hero-prev {
        left: 22px;
    }

    .hero-next {
        right: 22px;
    }

    .hero-dots {
        bottom: 42px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .ranking-grid,
    .split-main .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .detail-copy,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .top-rank-card,
    .top-rank-card:first-child {
        min-height: 320px;
    }
}

@media (max-width: 520px) {
    .nav-shell,
    .content-shell,
    .footer-shell,
    .mobile-menu {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-content p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .content-shell {
        padding: 38px 0;
    }

    .card-copy {
        padding: 12px;
    }

    .detail-info-card,
    .detail-copy article {
        padding: 22px;
        border-radius: 22px;
    }
}
