:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --earth-50: #f8f2e9;
    --earth-100: #f0dfc6;
    --earth-300: #d6a66f;
    --earth-500: #a86d32;
    --earth-600: #8a5527;
    --earth-700: #6f421f;
    --canyon-100: #f6dccb;
    --canyon-500: #b85f37;
    --canyon-700: #823a24;
    --moss-700: #4f5f35;
    --moss-900: #28301f;
    --shadow-soft: 0 20px 60px rgba(41, 37, 36, 0.12);
    --shadow-card: 0 18px 40px rgba(41, 37, 36, 0.14);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-800);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

body.locked {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.94);
    border-bottom: 1px solid rgba(214, 211, 209, 0.82);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--stone-900);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-logo {
    font-size: 20px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--earth-500), var(--canyon-500));
    box-shadow: 0 10px 24px rgba(138, 85, 39, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
    color: var(--stone-700);
    font-weight: 650;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 12px;
    font-size: 14px;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--earth-700);
    background: var(--stone-100);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--stone-300);
    background: #fff;
    border-radius: 14px;
}

.nav-search input,
.mobile-search input {
    width: 180px;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    color: var(--stone-900);
    background: transparent;
}

.nav-search button,
.mobile-search button {
    border: 0;
    padding: 10px 14px;
    color: #fff;
    background: var(--earth-600);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--stone-700);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
    border-top: 1px solid var(--stone-200);
    background: #fff;
    padding: 18px 24px 24px;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    background: var(--stone-50);
}

.mobile-search input {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--stone-900), var(--moss-900) 48%, var(--canyon-700));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 58px 24px 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 46px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--earth-300);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(42px, 6.4vw, 78px);
}

.hero h1 span {
    display: block;
    color: var(--earth-300);
}

.hero-desc {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.btn-primary,
.btn-ghost,
.btn-dark,
.section-link,
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.play-button {
    color: #fff;
    background: var(--earth-600);
    box-shadow: 0 16px 34px rgba(138, 85, 39, 0.34);
}

.btn-primary {
    padding: 14px 22px;
}

.btn-primary:hover,
.play-button:hover,
.btn-dark:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 13px 21px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.17);
}

.btn-dark {
    padding: 12px 18px;
    color: #fff;
    background: var(--stone-900);
}

.hero-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
}

.hero-cats a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-stage {
    position: relative;
    min-height: 460px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(150px, 0.48fr);
    align-items: end;
    gap: 22px;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster,
.hero-side-poster,
.large-feature-poster,
.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    background: var(--stone-800);
}

.hero-poster {
    min-height: 430px;
}

.hero-side-poster {
    min-height: 270px;
    margin-bottom: 28px;
    transform: translateY(-20px);
}

.hero-poster img,
.hero-side-poster img,
.large-feature-poster img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster img,
.hero-side-poster img {
    position: absolute;
    inset: 0;
}

.hero-card-text {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.hero-card-text h2 {
    margin: 8px 0 10px;
    font-size: 30px;
    line-height: 1.18;
}

.hero-card-text p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(168, 109, 50, 0.95);
    font-size: 12px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: -4px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--earth-300);
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--stone-900), var(--moss-900) 55%, var(--canyon-700));
    padding: 76px 24px;
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

main {
    min-height: 60vh;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px;
}

.content-section.alt {
    background: #fff;
    max-width: none;
}

.content-section.alt > .section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.section-link {
    flex: 0 0 auto;
    padding: 12px 16px;
    color: #fff;
    background: var(--earth-600);
}

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 109, 50, 0.42);
    box-shadow: var(--shadow-card);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

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

.movie-card:hover .poster-wrap img,
.large-feature:hover img,
.category-card:hover img,
.ranking-lead:hover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(28, 25, 23, 0.76);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--stone-500);
    font-size: 12px;
}

.card-meta span:last-child {
    color: var(--earth-700);
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--earth-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--stone-600);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 12px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--stone-700);
    background: var(--stone-100);
    font-size: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
}

.large-feature {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--stone-900);
    box-shadow: var(--shadow-card);
}

.large-feature-poster {
    position: absolute;
    inset: 0;
    border-radius: 0;
}

.large-feature::after,
.ranking-lead::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
}

.large-feature-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 34px;
    color: #fff;
}

.large-feature-content h3 {
    margin: 10px 0;
    font-size: 34px;
    line-height: 1.15;
}

.large-feature-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-item,
.ranking-item,
.category-mini-link {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover,
.ranking-item:hover,
.category-mini-link:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 109, 50, 0.42);
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.1);
}

.feature-thumb,
.category-mini-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--stone-200);
}

.feature-thumb img,
.category-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-item h3,
.category-mini-link h3 {
    margin: 0 0 5px;
    color: var(--stone-900);
    font-size: 17px;
}

.feature-item p,
.category-mini-link p {
    margin: 0;
    color: var(--stone-500);
    font-size: 13px;
    line-height: 1.5;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 28px rgba(41, 37, 36, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--stone-800);
}

.category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08));
}

.category-card-media h2 {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 28px;
}

.category-card-body {
    padding: 20px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--stone-600);
    line-height: 1.7;
}

.category-mini-list {
    display: grid;
    gap: 10px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 26px;
}

.ranking-lead {
    position: sticky;
    top: 92px;
    min-height: 540px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--stone-900);
    box-shadow: var(--shadow-card);
}

.ranking-lead img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.ranking-lead-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 34px;
    color: #fff;
}

.ranking-lead-content h2 {
    margin: 12px 0;
    font-size: 36px;
    line-height: 1.15;
}

.ranking-lead-content p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

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

.ranking-item-number {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--earth-600), var(--canyon-500));
    font-weight: 900;
}

.ranking-item h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--stone-900);
}

.ranking-item p {
    margin: 0;
    color: var(--stone-500);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(150px, 0.24fr));
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 26px rgba(41, 37, 36, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--stone-900);
    background: var(--stone-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--earth-500);
    box-shadow: 0 0 0 4px rgba(168, 109, 50, 0.12);
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--stone-600);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--stone-200);
}

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

.detail-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--stone-900), var(--moss-900) 54%, var(--canyon-700));
    padding: 52px 24px 64px;
}

.detail-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-cover {
    aspect-ratio: 3 / 4;
}

.detail-title h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.detail-title .summary {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
    max-width: 1180px;
    margin: -38px auto 0;
    padding: 0 24px 56px;
    position: relative;
    z-index: 3;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow-card);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    border: 0;
    padding: 18px 26px;
    font-size: 18px;
    cursor: pointer;
}

.detail-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.article-panel,
.side-panel {
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 8px 28px rgba(41, 37, 36, 0.06);
}

.article-panel + .article-panel {
    margin-top: 22px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: 26px;
}

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

.side-panel {
    align-self: start;
    position: sticky;
    top: 94px;
}

.side-links {
    display: grid;
    gap: 12px;
}

.side-links a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--stone-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-links a:hover {
    background: var(--earth-50);
    transform: translateX(2px);
}

.side-links img {
    width: 64px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.side-links strong {
    display: block;
    color: var(--stone-900);
    line-height: 1.35;
}

.side-links span {
    display: block;
    margin-top: 4px;
    color: var(--stone-500);
    font-size: 12px;
}

.site-footer {
    color: var(--stone-400);
    background: var(--stone-900);
    padding: 54px 24px 26px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.4fr) minmax(220px, 0.5fr);
    gap: 42px;
}

.footer-logo {
    color: #fff;
    font-size: 20px;
}

.site-footer p {
    max-width: 520px;
    color: var(--stone-400);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 38px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.back-top {
    border: 0;
    color: var(--stone-300);
    background: transparent;
    cursor: pointer;
}

.back-top:hover {
    color: var(--earth-300);
}

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

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero-inner,
    .feature-grid,
    .ranking-layout,
    .detail-body {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 520px;
    }

    .ranking-lead,
    .side-panel {
        position: relative;
        top: auto;
    }

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

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

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

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        height: 62px;
        padding: 0 16px;
    }

    .site-logo span:last-child {
        font-size: 17px;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 42px 16px 58px;
        gap: 32px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-side-poster {
        display: none;
    }

    .hero-poster {
        min-height: 410px;
    }

    .hero-card-text {
        padding: 22px;
    }

    .hero-card-text h2 {
        font-size: 24px;
    }

    .content-section {
        padding: 48px 16px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 18px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .large-feature,
    .ranking-lead {
        min-height: 430px;
    }

    .large-feature-content,
    .ranking-lead-content {
        padding: 24px;
    }

    .detail-hero,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .article-panel,
    .side-panel {
        padding: 22px;
    }

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