:root {
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-300: #fdba74;
    --primary-400: #fb923c;
    --primary-500: #f59e0b;
    --primary-600: #d97706;
    --accent-500: #ef4444;
    --accent-600: #dc2626;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    --text-main: #111827;
    --text-soft: #64748b;
    --border: #e5e7eb;
    --shadow-soft: 0 18px 45px -28px rgba(15, 23, 42, 0.45);
    --shadow-hover: 0 22px 55px -24px rgba(15, 23, 42, 0.6);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-main);
    background: #f8fafc;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    backdrop-filter: blur(16px);
}

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

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 10px 22px -14px var(--accent-600);
}

.brand-text {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-600);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: #334155;
    background: #f1f5f9;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--border);
    background: #fff;
}

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

.mobile-link {
    border-radius: 12px;
    padding: 10px 14px;
    color: #475569;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--secondary-900);
}

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

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

.hero-slide img,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.24)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.05) 55%);
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 86px;
}

.hero-copy {
    width: min(680px, 100%);
    color: #fff;
}

.hero-tags,
.hero-meta,
.detail-meta,
.movie-meta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.hero-tags a,
.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span,
.eyebrow {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

.hero-tags a {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-actions,
.pill-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 16px 32px -20px var(--accent-600);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.btn-soft {
    color: var(--primary-600);
    background: var(--primary-50);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.home-search-panel {
    margin-top: -36px;
    position: relative;
    z-index: 7;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 450px);
    gap: 24px;
    align-items: center;
    border-radius: 26px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.search-panel-inner h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.search-panel-inner p {
    margin: 0;
    color: var(--text-soft);
}

.quick-search,
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-search input,
.search-box input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #fff;
}

.quick-search input:focus,
.search-box input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.quick-search button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    background: var(--primary-600);
}

.section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.section-white {
    background: #fff;
}

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

.section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--text-soft);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #334155);
}

.poster-link img,
.horizontal-poster img,
.ranking-thumb img,
.category-tile img,
.top-rank-card img,
.detail-poster,
.category-cover-stack img,
.rank-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img {
    transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-year,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 4px 9px;
    background: rgba(245, 158, 11, 0.92);
}

.poster-year {
    right: 12px;
    top: 12px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

.poster-play {
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
    padding: 16px;
}

.card-kicker {
    margin-bottom: 6px;
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3,
.movie-card h2,
.ranking-row h2,
.top-rank-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-row h2 a:hover,
.top-rank-card h2 a:hover {
    color: var(--primary-600);
}

.movie-card p,
.ranking-row p,
.top-rank-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.card-meta {
    color: var(--text-soft);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 9px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background: var(--primary-50);
}

.movie-card-compact {
    border-radius: 18px;
}

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

.movie-card-compact h3 {
    font-size: 14px;
}

.movie-card-compact .poster-link {
    aspect-ratio: 2 / 3;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 184px;
}

.horizontal-poster {
    display: block;
    overflow: hidden;
    background: var(--secondary-800);
}

.horizontal-body {
    padding: 18px;
}

.horizontal-list,
.search-results-list {
    display: grid;
    gap: 16px;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background: var(--secondary-900);
    box-shadow: var(--shadow-soft);
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.46;
    transition: transform 0.35s ease;
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.16));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    display: block;
    margin-top: 110px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.section-rank-home {
    color: #fff;
    background: radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.26), transparent 28%), linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
    gap: 36px;
    align-items: center;
}

.rank-copy h2 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.rank-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.75);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 64px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.rank-number {
    color: var(--primary-300);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    aspect-ratio: 1;
    border-radius: 14px;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info em {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.28), transparent 30%), linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.page-hero .container {
    padding-top: 76px;
    padding-bottom: 72px;
}

.small-hero .container {
    padding-bottom: 62px;
}

.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.crumb a:hover {
    color: #fff;
}

.tool-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.sticky-tool {
    position: sticky;
    top: 84px;
    z-index: 30;
}

.search-box {
    width: min(620px, 100%);
}

.search-box span {
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.wide-search {
    flex: 1;
}

.pill-links a {
    border-radius: 999px;
    padding: 9px 14px;
    color: #475569;
    font-weight: 800;
    background: var(--secondary-100);
}

.pill-links a:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    border-radius: 18px;
    padding: 22px;
    color: var(--text-soft);
    text-align: center;
    background: #fff;
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 20px;
}

.category-cover-stack img {
    aspect-ratio: 1;
}

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

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--text-soft);
}

.text-link {
    color: var(--primary-600);
    font-weight: 900;
}

.ranking-hero {
    background: radial-gradient(circle at 82% 16%, rgba(239, 68, 68, 0.32), transparent 28%), linear-gradient(135deg, #111827, #3f1d1d);
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.top-rank-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: var(--secondary-900);
    box-shadow: var(--shadow-soft);
}

.top-rank-card img {
    aspect-ratio: 16 / 11;
    opacity: 0.68;
}

.top-rank-card > div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), transparent);
}

.top-rank-card p {
    color: rgba(255, 255, 255, 0.78);
}

.top-rank-mark {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 60px 88px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.ranking-rank {
    color: var(--primary-600);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1;
}

.movie-meta-inline {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 13px;
}

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

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.22)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.12));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 56px;
    padding-bottom: 80px;
}

.detail-head-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster-wrap {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 34px 80px -34px #000;
}

.detail-poster {
    aspect-ratio: 2 / 3;
}

.detail-head-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-head-copy p {
    max-width: 780px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.detail-tags {
    margin-bottom: 26px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 34px 80px -42px #000;
    aspect-ratio: 16 / 9;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.68));
    transition: opacity 0.2s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding-left: 4px;
    color: #fff;
    font-size: 30px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 20px 42px -20px var(--accent-600);
}

.play-layer strong {
    font-size: 20px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 32px;
}

.detail-article,
.detail-sidebar {
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-sidebar h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.detail-sidebar dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.detail-sidebar dt {
    color: var(--text-soft);
    font-weight: 800;
}

.detail-sidebar dd {
    margin: 0;
    color: #0f172a;
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 32px;
}

.footer-main p {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--primary-300);
    font-size: 17px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
    color: var(--primary-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    padding-bottom: 24px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
    }

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

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

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

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

    .hero-arrow {
        display: none;
    }

    .search-panel-inner,
    .rank-layout,
    .detail-content-grid,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .detail-head-grid {
        grid-template-columns: 180px 1fr;
    }

    .tool-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    .brand-text {
        font-size: 20px;
    }

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

    .hero-content {
        padding-top: 96px;
        padding-bottom: 74px;
    }

    .hero h1,
    .hero h2 {
        font-size: 42px;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

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

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3,
    .movie-card h2 {
        font-size: 15px;
    }

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

    .movie-card-horizontal {
        grid-template-columns: 96px 1fr;
        min-height: 142px;
    }

    .horizontal-body {
        padding: 12px;
    }

    .ranking-row {
        grid-template-columns: 44px 68px 1fr;
    }

    .ranking-row .btn {
        grid-column: 2 / -1;
        width: 100%;
    }

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

    .detail-poster-wrap {
        width: min(210px, 70vw);
    }

    .detail-hero-inner {
        padding-top: 38px;
        padding-bottom: 56px;
    }

    .detail-head-copy h1 {
        font-size: 36px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .detail-article,
    .detail-sidebar {
        border-radius: 20px;
        padding: 18px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .compact-grid,
    .movie-grid,
    .featured-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

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