:root {
    color-scheme: light;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-100: #fef3c7;
    --bg: #fffaf0;
    --text: #292524;
    --muted: #78716c;
    --border: rgba(120, 113, 108, 0.18);
    --shadow: 0 18px 45px rgba(41, 37, 36, 0.12);
    --shadow-strong: 0 28px 80px rgba(12, 10, 9, 0.35);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--stone-50) 0%, #fff7ed 52%, var(--stone-50) 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.88), rgba(120, 53, 15, 0.12));
    color: #fff7ed;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-solid {
    background: rgba(120, 53, 15, 0.96);
    box-shadow: 0 16px 45px rgba(41, 37, 36, 0.22);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #451a03;
    background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
    font-size: 14px;
}

.brand-name {
    font-size: clamp(20px, 2vw, 26px);
}

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

.nav-link {
    color: #fef3c7;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    display: grid;
    min-width: 220px;
    padding: 10px;
    background: rgba(41, 37, 36, 0.96);
    color: #fef3c7;
    border: 1px solid rgba(252, 211, 77, 0.18);
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #fde68a;
}

.dropdown-panel a:hover {
    background: rgba(146, 64, 14, 0.55);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #fef3c7;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    background: rgba(120, 53, 15, 0.98);
    padding: 10px 18px 18px;
}

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

.mobile-nav-link {
    padding: 12px;
    color: #fef3c7;
    border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(146, 64, 14, 0.6);
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.18), transparent 32%), linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.68) 42%, rgba(28, 25, 23, 0.1) 100%), linear-gradient(0deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.05) 55%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 18%;
    width: min(720px, calc(100% - 48px));
    color: #ffffff;
}

.hero-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    color: #fff7ed;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 6.2vw, 76px);
    line-height: 0.98;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 28px;
    color: #e7e5e4;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-actions,
.detail-tags,
.filter-buttons,
.next-prev-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more,
.inline-search button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 750;
    border-radius: 14px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    padding: 14px 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.32);
}

.primary-button:hover,
.hero-search button:hover,
.inline-search button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.primary-button.full {
    width: 100%;
}

.ghost-button {
    padding: 13px 24px;
    color: #fde68a;
    border: 1px solid rgba(252, 211, 77, 0.45);
    background: rgba(28, 25, 23, 0.4);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(146, 64, 14, 0.48);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    font-size: 40px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.52);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-next {
    right: 22px;
    transform: translateY(-50%);
}

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

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

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

.hero-search {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 11%;
    display: flex;
    width: min(420px, calc(100% - 48px));
    padding: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(18px);
}

.hero-search input,
.inline-search input,
.js-search-input {
    width: 100%;
    border: 1px solid var(--border);
    outline: 0;
    color: var(--stone-800);
    background: #ffffff;
    border-radius: 14px;
    padding: 13px 15px;
}

.hero-search input {
    border: 0;
}

.hero-search button,
.inline-search button {
    margin-left: 8px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
}

.quick-categories {
    background: var(--stone-900);
    color: #fef3c7;
}

.quick-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.quick-inner div,
.footer-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-inner a,
.footer-link-grid a,
.detail-tags span,
.detail-tags a,
.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.quick-inner a:hover,
.footer-link-grid a:hover,
.detail-tags a:hover,
.text-button:hover,
.section-more:hover {
    color: #ffffff;
    background: var(--amber-700);
}

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

.top-page {
    padding-top: 112px;
    padding-bottom: 60px;
}

.content-section {
    margin: 54px 0;
}

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

.section-heading p {
    margin: 0 0 6px;
    color: var(--amber-700);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-heading h2,
.page-hero h1,
.detail-article h1 {
    margin: 0;
    color: var(--stone-800);
    line-height: 1.12;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading.small h2 {
    font-size: 28px;
}

.section-more,
.text-button {
    color: var(--amber-800);
    background: #fffbeb;
    padding: 10px 14px;
}

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

.movie-card {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: var(--stone-800);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.05);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.82) 100%);
}

.card-type {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #78350f;
    background: rgba(252, 211, 77, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: 0.25s ease;
}

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

.card-body {
    display: grid;
    gap: 7px;
}

.card-body strong {
    color: var(--stone-800);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover strong,
.ranking-card:hover h2,
.category-overview-card:hover h2 {
    color: var(--amber-800);
}

.card-meta,
.card-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    padding: 5px 8px;
    font-size: 12px;
    color: var(--amber-800);
    background: #fff7ed;
}

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

.rank-panel,
.detail-sidebar > div,
.detail-article,
.filter-panel,
.category-overview-card,
.ranking-card,
.page-hero {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(231, 229, 228, 0.78);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 36px 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

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

.rank-item img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-info strong {
    color: var(--stone-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.category-card {
    display: grid;
    gap: 14px;
    min-height: 160px;
    padding: 24px;
    border-radius: 24px;
    color: #fff7ed;
    background: radial-gradient(circle at top right, rgba(252, 211, 77, 0.35), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: #fde68a;
    line-height: 1.7;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 62px);
    margin-bottom: 34px;
    background: radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.26), transparent 32%), linear-gradient(135deg, #fff7ed, #ffffff 45%, #f5f5f4);
}

.page-hero h1 {
    max-width: 760px;
    margin-top: 16px;
    font-size: clamp(34px, 4.5vw, 56px);
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--stone-600);
    font-size: 18px;
    line-height: 1.8;
}

.inline-search {
    display: flex;
    width: min(620px, 100%);
    margin-top: 22px;
}

.standalone-search {
    margin-top: 28px;
}

.filter-panel {
    padding: 18px;
    margin-bottom: 30px;
    display: grid;
    gap: 16px;
}

.wide-filter {
    margin-top: -10px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--stone-700);
    background: #fff7ed;
    cursor: pointer;
    font-weight: 750;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #ffffff;
    background: var(--amber-700);
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border-radius: 20px;
    background: #ffffff;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.15);
}

.category-overview-card h2,
.ranking-card h2 {
    margin: 0 0 10px;
    color: var(--stone-800);
    font-size: 28px;
}

.category-overview-card p,
.ranking-card p {
    margin: 0 0 18px;
    color: var(--stone-600);
    line-height: 1.75;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
}

.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #451a03;
    background: var(--amber-300);
    font-weight: 900;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ranking-meta span {
    color: var(--amber-800);
    background: #fff7ed;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.detail-main {
    background: linear-gradient(180deg, var(--stone-950) 0, var(--stone-950) 540px, var(--stone-50) 540px, var(--stone-50) 100%);
}

.player-section {
    padding-top: 82px;
    background: #000000;
}

.player-shell {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
    display: block;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0.78));
}

.player-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    filter: blur(18px);
    z-index: 2;
}

.play-orb {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #451a03;
    background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.3);
    font-size: 28px;
}

.detail-shell {
    padding-top: 28px;
    padding-bottom: 60px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #fef3c7;
}

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

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

.detail-article {
    padding: clamp(24px, 4vw, 42px);
}

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

.detail-tags span,
.detail-tags a {
    color: var(--amber-800);
    background: #fff7ed;
}

.detail-article h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.detail-lead {
    margin: 18px 0 26px;
    color: var(--stone-700);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.detail-meta-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #fff7ed;
}

.detail-meta-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.detail-meta-grid strong {
    color: var(--stone-800);
}

.detail-text {
    margin: 28px 0;
}

.detail-text h2,
.side-rank h2 {
    margin: 0 0 14px;
    color: var(--stone-800);
    font-size: 24px;
}

.detail-text p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
    line-height: 1.95;
}

.next-prev-links {
    margin-top: 30px;
}

.next-prev-links a {
    flex: 1 1 240px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--amber-800);
    background: #fff7ed;
    font-weight: 750;
}

.next-prev-links a:hover {
    color: #ffffff;
    background: var(--amber-700);
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 98px;
}

.poster-panel,
.side-rank {
    padding: 18px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

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

.related-section {
    margin-top: 40px;
}

.site-footer {
    color: #d6d3d1;
    background: linear-gradient(180deg, var(--stone-900), var(--stone-950));
    padding: 42px 0 22px;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 360px;
    color: #a8a29e;
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 14px;
    color: #fef3c7;
    font-size: 18px;
}

.footer-link-grid a {
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.45);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(231, 229, 228, 0.12);
    color: #a8a29e;
    text-align: center;
    font-size: 14px;
}

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

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

    .rank-panel,
    .detail-sidebar {
        position: static;
    }

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .header-inner {
        height: 66px;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-content {
        bottom: 170px;
    }

    .hero-search {
        left: 24px;
        right: 24px;
        bottom: 86px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .quick-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .category-grid,
    .ranking-grid,
    .category-overview-card,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .inline-search {
        display: grid;
        gap: 10px;
    }

    .inline-search button,
    .hero-search button {
        margin-left: 0;
        padding: 13px 18px;
    }

    .hero-search {
        display: grid;
        gap: 8px;
    }

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

    .player-section {
        padding-top: 66px;
    }
}

@media (max-width: 520px) {
    .page-shell,
    .quick-inner,
    .footer-inner,
    .copyright,
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .movie-grid {
        gap: 14px;
    }

    .card-desc,
    .card-tags {
        display: none;
    }

    .rank-item {
        grid-template-columns: 30px 64px minmax(0, 1fr);
    }

    .rank-item img {
        width: 64px;
        height: 44px;
    }

    .page-hero {
        border-radius: 20px;
        padding: 28px 20px;
    }

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