:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-500: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --orange-800: #9a3412;
    --orange-50: #fff7ed;
    --white: #ffffff;
    --shadow-soft: 0 18px 48px rgba(41, 37, 36, 0.12);
    --shadow-card: 0 12px 34px rgba(41, 37, 36, 0.14);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--stone-800), var(--stone-700), var(--stone-800));
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.24);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-800));
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.34);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--stone-300);
    font-size: 12px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links > a,
.dropdown > button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--stone-100);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropdown:hover > button {
    color: var(--white);
    background: rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    width: 300px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(41, 37, 36, 0.96);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--stone-100);
}

.dropdown-menu a:hover {
    background: rgba(245, 158, 11, 0.2);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--white);
}

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

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 32%, rgba(245, 158, 11, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(28, 25, 23, 0.95), rgba(41, 37, 36, 0.78) 46%, rgba(28, 25, 23, 0.2)),
        linear-gradient(0deg, rgba(28, 25, 23, 0.88), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 680px;
    max-width: 760px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(245, 158, 11, 0.22);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.eyebrow.dark {
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.14);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 22px;
    color: var(--stone-200);
    font-size: clamp(17px, 2.4vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--stone-100);
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-style: normal;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 11px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--amber-700);
    background: var(--amber-100);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-800));
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

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

.primary-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.secondary-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.ghost-button {
    min-height: 48px;
    color: var(--stone-800);
    background: var(--stone-100);
    border: 1px solid var(--stone-200);
}

.text-link {
    padding: 0;
    min-height: auto;
    color: var(--amber-700);
}

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

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 68px;
    background: var(--amber-500);
}

.home-search-section {
    position: relative;
    z-index: 5;
    margin-top: -72px;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(214, 211, 209, 0.8);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-card h2,
.section-heading h2,
.panel-title h2,
.article-panel h2,
.category-overview-card h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.search-card p,
.section-heading p,
.category-overview-card p {
    margin: 10px 0 0;
    color: var(--stone-600);
}

.hero-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: var(--stone-100);
    border: 1px solid var(--stone-200);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 12px;
    background: transparent;
    color: var(--stone-900);
    outline: none;
}

.hero-search button {
    min-width: 96px;
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    color: var(--white);
    background: var(--amber-600);
    font-weight: 800;
}

.section-block {
    padding: 72px 0;
}

.warm-bg {
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50), var(--stone-50));
}

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 20px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: var(--radius-lg);
    background: var(--stone-900);
    box-shadow: var(--shadow-card);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

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

.category-card > span {
    position: absolute;
    z-index: 2;
    inset: auto 18px 18px 18px;
    color: var(--white);
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.category-card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--stone-200);
    font-size: 14px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.category-card small a {
    max-width: 100%;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
    color: var(--amber-100);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(214, 211, 209, 0.72);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(41, 37, 36, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-800), var(--stone-700));
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.36), transparent 58%);
}

.card-rank {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-800));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-600);
    font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--stone-300);
}

.movie-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 14px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.wide-col {
    min-width: 0;
}

.rank-panel {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

.panel-title {
    margin-bottom: 18px;
}

.panel-title span {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.panel-title h2 {
    margin-top: 3px;
    font-size: 24px;
}

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

.mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: var(--stone-100);
    transform: translateX(3px);
}

.mini-card img {
    width: 98px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: var(--stone-200);
}

.mini-card span:not(.rank-dot) {
    min-width: 0;
}

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

.mini-card em {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-dot {
    position: absolute;
    z-index: 2;
    left: 2px;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber-600);
    font-size: 12px;
    font-weight: 900;
}

.inner-hero {
    padding: 86px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 22%, rgba(245, 158, 11, 0.32), transparent 32%),
        linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.category-hero {
    background:
        radial-gradient(circle at 80% 26%, rgba(245, 158, 11, 0.36), transparent 34%),
        linear-gradient(135deg, var(--amber-700), var(--stone-900));
}

.ranking-hero {
    background:
        radial-gradient(circle at 75% 25%, rgba(245, 158, 11, 0.42), transparent 32%),
        linear-gradient(135deg, var(--orange-800), var(--stone-950));
}

.inner-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.inner-hero p {
    max-width: 740px;
    margin: 0;
    color: var(--stone-200);
    font-size: 19px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(41, 37, 36, 0.08);
}

.category-cover {
    overflow: hidden;
    border-radius: 16px;
    background: var(--stone-200);
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-overview-card h2 {
    font-size: 28px;
}

.category-overview-card ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 16px 0 18px;
    list-style: none;
}

.category-overview-card li a {
    display: block;
    overflow: hidden;
    color: var(--stone-700);
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 200px) minmax(150px, 200px) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(41, 37, 36, 0.08);
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--stone-900);
    background: var(--white);
    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.14);
}

.empty-state {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--stone-700);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(41, 37, 36, 0.08);
    text-align: center;
}

.detail-hero {
    padding: 52px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 24%, rgba(245, 158, 11, 0.3), transparent 30%),
        linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 32px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 34%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-800));
    box-shadow: 0 16px 38px rgba(217, 119, 6, 0.38);
    font-size: 34px;
    line-height: 1;
}

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

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

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

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

.breadcrumb em {
    overflow: hidden;
    max-width: 220px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5.6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.lead-text {
    margin: 0 0 18px;
    color: var(--stone-200);
    font-size: 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
    color: var(--stone-300);
    font-size: 12px;
}

.detail-meta dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.article-panel {
    padding: 28px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(41, 37, 36, 0.08);
}

.article-panel.warm-panel {
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.article-panel h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.article-panel p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    color: var(--stone-300);
    background: var(--stone-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 32px;
    padding: 54px 0 34px;
}

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    max-width: 460px;
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--stone-300);
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(245, 158, 11, 0.22);
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--stone-500);
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

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

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

    .sticky-panel {
        position: static;
    }

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

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(41, 37, 36, 0.98);
        box-shadow: var(--shadow-card);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a,
    .dropdown > button {
        justify-content: flex-start;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: grid;
        width: 100%;
        margin-top: 8px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }

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

    .hero-content {
        padding: 68px 0 92px;
    }

    .home-search-section {
        margin-top: -44px;
    }

    .search-card,
    .article-panel,
    .rank-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .hero-search,
    .filter-panel,
    .section-heading {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search {
        display: grid;
    }

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

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

    .category-cover img {
        min-height: 220px;
    }

    .section-block {
        padding: 48px 0;
    }

    .inner-hero {
        padding: 64px 0;
    }

    .detail-hero {
        padding: 28px 0 42px;
    }

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

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.small-grid {
        grid-template-columns: 1fr;
    }

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

    .mini-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .mini-card img {
        width: 86px;
    }

    .play-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
