:root {
    --archive-50: #f5f7fa;
    --archive-100: #eaeff5;
    --archive-200: #d5dfec;
    --archive-300: #a7b8cc;
    --archive-400: #7e98b4;
    --archive-500: #5f7c9d;
    --archive-600: #46678a;
    --archive-700: #385673;
    --archive-800: #30475f;
    --archive-900: #2a3b4e;
    --ink: #17202b;
    --muted: #64748b;
    --line: rgba(42, 59, 78, 0.12);
    --shadow: 0 24px 60px rgba(42, 59, 78, 0.14);
    --radius: 18px;
    --page: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--archive-50);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-main {
    min-height: 70vh;
    padding-top: 64px;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 26px rgba(42, 59, 78, 0.10);
}

.nav-shell {
    width: min(100% - 32px, var(--page));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--archive-600), var(--archive-900));
    border-radius: 12px;
    box-shadow: 0 12px 22px rgba(70, 103, 138, 0.22);
}

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

.brand-text strong {
    font-size: 20px;
    color: var(--archive-900);
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 3px;
    font-size: 12px;
    font-style: normal;
    color: var(--archive-600);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--archive-700);
    font-weight: 600;
}

.desktop-nav > a,
.nav-drop > button {
    position: relative;
    border: 0;
    padding: 22px 0;
    color: inherit;
    background: transparent;
}

.desktop-nav > a::after,
.nav-drop > button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 2px;
    background: var(--archive-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.is-active::after,
.nav-drop:hover > button::after {
    transform: scaleX(1);
}

.nav-drop {
    position: relative;
}

.nav-drop-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 190px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-menu a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--archive-700);
}

.nav-drop-menu a:hover {
    background: var(--archive-50);
    color: var(--archive-900);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--archive-800);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--page));
    margin: 0 auto 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.mobile-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    padding: 10px;
    border-radius: 12px;
    color: var(--archive-700);
    background: var(--archive-50);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--archive-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - var(--page)) / 2));
    width: min(680px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #ffffff;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--archive-600);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-content h1,
.hero-title-fixed {
    margin: 18px 0 8px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 800;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    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: var(--archive-900);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: #ffffff;
    background: rgba(70, 103, 138, 0.72);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 34px;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: #ffffff;
}

.quick-search-panel {
    width: min(100% - 32px, var(--page));
    margin: -42px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.quick-search-panel span,
.section-kicker {
    color: var(--archive-600);
    background: var(--archive-100);
}

.quick-search-panel strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    color: var(--archive-900);
}

.home-search {
    display: flex;
    gap: 10px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--archive-900);
    background: #ffffff;
    outline: none;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--archive-600);
    box-shadow: 0 0 0 4px rgba(70, 103, 138, 0.10);
}

.home-search button {
    min-width: 92px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--archive-600);
    font-weight: 800;
}

.section-stack {
    display: grid;
    gap: 64px;
    padding: 72px 0;
}

.content-section,
.ranking-panel,
.filter-panel,
.detail-main-card,
.detail-side-card,
.category-card,
.top-rank-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(42, 59, 78, 0.07);
}

.content-section {
    padding: 26px;
}

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

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

.section-heading h2 {
    margin: 10px 0 6px;
    color: var(--archive-900);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more,
.text-link {
    color: var(--archive-600);
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(42, 59, 78, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(42, 59, 78, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--archive-100), var(--archive-300));
}

.poster-link img,
.wide-poster img,
.movie-card-mini img,
.detail-side-card img,
.top-rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--archive-900);
    background: #ffffff;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--archive-600);
    font-size: 12px;
    font-weight: 700;
}

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

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

.movie-card p,
.movie-card-wide p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--archive-700);
    background: var(--archive-100);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
}

.wide-poster {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--archive-100);
}

.wide-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--archive-600);
    border-radius: 999px;
    font-weight: 900;
}

.movie-card-mini {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.movie-card-mini:hover {
    transform: none;
    box-shadow: none;
}

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

.mini-link img {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: var(--archive-100);
}

.mini-link strong,
.mini-link em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-link strong {
    color: var(--archive-900);
    font-size: 15px;
}

.mini-link em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.section-column {
    display: grid;
    gap: 28px;
}

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 24px;
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--archive-900), var(--archive-600));
}

.small-hero {
    padding: 86px 0 76px;
}

.small-hero > div,
.detail-hero-content {
    width: min(100% - 32px, var(--page));
    margin: 0 auto;
}

.small-hero h1,
.detail-title-row h1 {
    max-width: 820px;
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.small-hero p,
.detail-title-row p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.hero-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-inline-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

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

.category-card {
    overflow: hidden;
}

.category-card-main {
    display: block;
    padding: 26px;
}

.category-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--archive-600);
    border-radius: 14px;
}

.category-card h2 {
    margin: 18px 0 10px;
    color: var(--archive-900);
    font-size: 24px;
}

.category-card p {
    min-height: 54px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card strong {
    color: var(--archive-600);
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px 26px 24px;
    background: var(--archive-50);
}

.category-samples a {
    overflow: hidden;
    color: var(--archive-700);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-panel {
    padding: 24px;
    margin: 42px 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(132px, 1fr));
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--archive-800);
    font-weight: 800;
}

.filter-grid span {
    font-size: 13px;
}

.empty-state {
    margin: 24px 0 0;
    padding: 22px;
    color: var(--muted);
    text-align: center;
    background: var(--archive-50);
    border-radius: 14px;
}

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

.top-rank-card {
    overflow: hidden;
}

.top-rank-card a {
    position: relative;
    display: block;
    min-height: 360px;
    padding: 24px;
    color: #ffffff;
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
}

.top-rank-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.76));
}

.top-rank-card span,
.top-rank-card h2,
.top-rank-card p {
    position: relative;
    z-index: 2;
}

.top-rank-card span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

.top-rank-card h2 {
    margin: 210px 0 10px;
    font-size: 26px;
    line-height: 1.2;
}

.top-rank-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-backdrop span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.36));
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0 56px;
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-top: 44px;
}

.detail-page {
    margin-top: -78px;
    position: relative;
    z-index: 5;
    padding-bottom: 72px;
}

.player-section {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000000;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
}

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

.player-overlay span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--archive-900);
    background: #ffffff;
    border-radius: 999px;
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
    font-size: 18px;
}

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

.detail-main-card,
.detail-side-card {
    padding: 26px;
}

.detail-main-card h2 {
    margin: 0 0 14px;
    color: var(--archive-900);
    font-size: 26px;
}

.detail-main-card h2:not(:first-child) {
    margin-top: 30px;
}

.detail-main-card p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
}

.detail-tags {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.detail-tags strong {
    color: var(--archive-900);
}

.detail-tags div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: var(--archive-100);
}

.detail-side-card dl {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-side-card dt {
    color: var(--muted);
}

.detail-side-card dd {
    margin: 0;
    color: var(--archive-900);
    font-weight: 800;
}

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

.site-footer {
    background: var(--archive-900);
    color: var(--archive-100);
}

.footer-grid {
    width: min(100% - 32px, var(--page));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.site-footer p {
    max-width: 360px;
    margin: 18px 0 0;
    color: var(--archive-300);
    line-height: 1.75;
}

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

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

.site-footer a {
    color: var(--archive-300);
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(100% - 32px, var(--page));
    margin: 0 auto;
    padding: 22px 0;
    color: var(--archive-300);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.back-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: none;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--archive-600);
    box-shadow: 0 14px 30px rgba(42, 59, 78, 0.24);
}

.back-top.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[hidden] {
    display: none !important;
}

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

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

    .filter-search {
        grid-column: 1 / -1;
    }

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

    .ranking-panel {
        position: static;
    }

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

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

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

    .hero-carousel {
        height: 620px;
    }

    .hero-content {
        top: 52%;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .movie-card-wide {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .detail-title-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

@media (max-width: 620px) {
    .page-container,
    .nav-shell,
    .mobile-nav,
    .quick-search-panel,
    .small-hero > div,
    .detail-hero-content,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, var(--page));
    }

    .brand-text em {
        display: none;
    }

    .hero-carousel {
        height: 640px;
    }

    .hero-content {
        width: calc(100% - 32px);
        left: 16px;
    }

    .hero-content h1,
    .hero-title-fixed {
        font-size: 40px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-actions,
    .home-search,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .movie-grid.two-col,
    .wide-grid,
    .category-grid,
    .top-rank-grid,
    .filter-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .filter-panel,
    .detail-main-card,
    .detail-side-card {
        padding: 18px;
    }

    .movie-card-wide {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 12px;
    }

    .tag-row {
        display: none;
    }

    .detail-page {
        margin-top: -42px;
    }
}
