
:root {
    --mist-50: #f8f9fa;
    --mist-100: #f1f3f5;
    --mist-200: #e9ecef;
    --mist-500: #868e96;
    --mist-700: #495057;
    --mist-800: #343a40;
    --mist-900: #212529;
    --mineral-50: #f0f9ff;
    --mineral-100: #e0f2fe;
    --mineral-300: #7dd3fc;
    --mineral-500: #0ea5e9;
    --mineral-600: #0284c7;
    --earth-50: #faf8f5;
    --earth-600: #8a6f4d;
    --moss-50: #f0fdf4;
    --moss-600: #16a34a;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(33, 37, 41, 0.12);
    --shadow-card: 0 12px 28px rgba(33, 37, 41, 0.10);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mist-50);
    color: var(--mist-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--mist-800), var(--mist-700));
    box-shadow: 0 12px 30px rgba(33, 37, 41, 0.18);
}

.nav-wrap {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--mist-900);
    background: var(--mineral-300);
    box-shadow: 0 8px 22px rgba(125, 211, 252, 0.32);
}

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

.desktop-nav > a,
.nav-dropdown > button,
.mobile-nav a {
    border: 0;
    color: var(--mist-100);
    background: transparent;
    padding: 9px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover,
.mobile-nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 8px;
    border-radius: 14px;
    background: var(--white);
    color: var(--mist-800);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--mist-800);
}

.dropdown-panel a:hover {
    background: var(--mineral-50);
    color: var(--mineral-600);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 11px;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    background: var(--mist-700);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 720px;
    background: var(--mist-900);
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-copy {
    max-width: 760px;
    padding: 120px 24px 160px;
    margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mineral-100);
    background: rgba(2, 132, 199, 0.84);
    border: 1px solid rgba(125, 211, 252, 0.38);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 20px 0 16px;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-line {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags span,
.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

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

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

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

.btn.primary {
    color: var(--white);
    background: var(--mineral-600);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.35);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

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

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

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

.hero-search-card {
    position: relative;
    z-index: 3;
    max-width: 1180px;
    margin: -92px auto 0;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-search,
.search-panel {
    display: flex;
    gap: 12px;
}

.hero-search input,
.search-panel input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 1px solid var(--mist-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--mist-900);
    background: var(--white);
    outline: none;
}

.hero-search input:focus,
.search-panel input:focus {
    border-color: var(--mineral-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.hero-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: var(--white);
    background: var(--mist-800);
    cursor: pointer;
    font-weight: 800;
}

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

.hero-category-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--mist-700);
    background: var(--mist-100);
}

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

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

.section-head h2,
.panel-head h2,
.detail-text h2,
.player-section h2 {
    margin: 0;
    color: var(--mist-900);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.section-head p,
.category-card-body p,
.site-footer p {
    margin: 8px 0 0;
    color: var(--mist-700);
}

.section-more,
.panel-head a {
    color: var(--mineral-600);
    font-weight: 800;
}

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

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

.movie-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(33, 37, 41, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--mist-200);
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    font-weight: 900;
}

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

.movie-title {
    display: block;
    color: var(--mist-900);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.35;
}

.movie-title:hover {
    color: var(--mineral-600);
}

.movie-meta {
    margin: 6px 0;
    color: var(--mist-500);
    font-size: 13px;
}

.movie-desc {
    margin: 0;
    color: var(--mist-700);
    font-size: 14px;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--mineral-100);
    border-radius: 999px;
    color: var(--mineral-600);
    background: var(--mineral-50);
    font-size: 12px;
    font-weight: 700;
}

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

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--mist-50);
    transition: background 0.18s ease, transform 0.18s ease;
}

.horizontal-card:hover {
    background: var(--mineral-50);
    transform: translateX(4px);
}

.horizontal-card strong {
    color: var(--mineral-600);
    font-size: 20px;
}

.horizontal-card img {
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
}

.horizontal-card b,
.horizontal-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-card small {
    color: var(--mist-500);
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 86px max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(90deg, var(--mist-900), var(--mist-700));
    background-size: cover;
    background-position: center;
}

.slim-hero {
    min-height: 300px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-cover {
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.category-cover span {
    font-size: 26px;
    font-weight: 900;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

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

.category-card-body h2 {
    margin: 0;
    font-size: 28px;
}

.mini-link-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.mini-link-list a {
    color: var(--mist-700);
}

.mini-link-list a:hover {
    color: var(--mineral-600);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(33, 37, 41, 0.06);
    transition: transform 0.18s ease, background 0.18s ease;
}

.rank-row:hover {
    background: var(--mineral-50);
    transform: translateX(4px);
}

.rank-num {
    color: var(--mineral-600);
    font-weight: 900;
    font-size: 20px;
    text-align: center;
}

.rank-row img {
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info b,
.rank-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info small,
.rank-row em {
    color: var(--mist-500);
    font-style: normal;
}

.search-panel {
    max-width: 720px;
    margin-top: 24px;
}

.search-state {
    margin-bottom: 18px;
    color: var(--mist-700);
    font-weight: 800;
}

.movie-card[hidden] {
    display: none;
}

.detail-hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: 310px minmax(0, 760px);
    gap: 42px;
    align-items: center;
    padding: 76px max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.detail-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

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

.detail-meta {
    color: var(--mineral-100);
    font-weight: 800;
}

.player-section h2 {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.92);
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.34);
    font-size: 30px;
}

.player-overlay b {
    font-size: 20px;
}

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

.detail-text {
    display: grid;
    gap: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-text p {
    margin: 0 0 18px;
    color: var(--mist-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    color: var(--mist-100);
    background: var(--mist-900);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 24px;
    display: grid;
    gap: 16px;
}

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

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

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

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

    .ranking-panel {
        position: static;
    }

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

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

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

    .hero {
        min-height: 690px;
    }

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

    .hero-copy {
        margin-left: 0;
        padding: 92px 24px 140px;
    }

    .hero-search-card {
        margin: -82px 16px 0;
    }

    .hero-search,
    .search-panel {
        flex-direction: column;
    }

    .hero-search button,
    .search-panel button {
        height: 48px;
    }

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

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

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

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

    .rank-row em {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .mobile-nav.is-open,
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

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

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

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

    .poster-link {
        aspect-ratio: 16 / 10;
    }
}
