:root {
    --mist-50: #f8f9fa;
    --mist-100: #f1f3f5;
    --mist-200: #e9ecef;
    --mist-300: #dee2e6;
    --mist-500: #adb5bd;
    --mist-600: #868e96;
    --mist-700: #495057;
    --mist-800: #343a40;
    --mist-900: #212529;
    --mineral-50: #f0f9ff;
    --mineral-100: #e0f2fe;
    --mineral-500: #0ea5e9;
    --mineral-600: #0284c7;
    --mineral-700: #0369a1;
    --moss-50: #f0fdf4;
    --moss-600: #16a34a;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
    --shadow-md: 0 10px 20px rgb(15 23 42 / 0.10);
    --shadow-lg: 0 24px 50px rgb(15 23 42 / 0.16);
    --radius: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.96), rgba(52, 58, 64, 0.94));
    color: #fff;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mineral-500), var(--moss-600));
    color: #fff;
    box-shadow: 0 12px 24px rgb(14 165 233 / 0.25);
}

.brand-text {
    font-size: 1.1rem;
    white-space: nowrap;
}

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

.nav-link,
.dropdown-trigger {
    border: 0;
    color: var(--mist-100);
    background: transparent;
    padding: 9px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-trigger:hover {
    background: var(--mineral-600);
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 220px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: #fff;
    color: var(--mist-800);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 10px;
}

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

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    background: var(--mist-900);
}

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

.mobile-panel a:hover {
    background: rgb(255 255 255 / 0.08);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.52) 48%, rgb(0 0 0 / 0.12)), linear-gradient(0deg, rgb(33 37 41 / 0.55), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    color: #fff;
    padding-top: 20px;
}

.hero-pill,
.section-pill,
.corner-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgb(2 132 199 / 0.88);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
}

.hero h1 {
    margin: 18px 0 16px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 620px;
    color: var(--mist-100);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0 0 26px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.rank-action,
.hero-arrow,
.scroll-btn,
.play-cover-button {
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--mineral-600);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 30px rgb(2 132 199 / 0.24);
}

.btn-primary:hover,
.rank-action:hover {
    background: var(--mineral-700);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 12px;
    color: #fff;
    background: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.24);
}

.btn-secondary:hover {
    background: rgb(255 255 255 / 0.22);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgb(0 0 0 / 0.45);
    color: #fff;
    font-size: 1.4rem;
}

.hero-arrow:hover {
    background: rgb(0 0 0 / 0.68);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.5);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.section {
    padding: 58px 0;
}

.section.white {
    background: #fff;
}

.section.soft {
    background: linear-gradient(135deg, var(--mineral-50), var(--moss-50));
}

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

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-weight: 800;
    color: var(--mist-900);
    letter-spacing: -0.03em;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--mist-600);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.feature-large,
.feature-small,
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.feature-large {
    min-height: 360px;
}

.feature-small {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 112px;
}

.feature-large img,
.feature-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.feature-large:hover img,
.feature-small:hover img,
.movie-card:hover img,
.small-card:hover img,
.category-card:hover img,
.rank-row:hover img {
    transform: scale(1.07);
}

.feature-large .feature-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    color: #fff;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.72), transparent);
}

.feature-info h2,
.feature-info h3 {
    margin: 8px 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    line-height: 1.2;
}

.feature-info p {
    color: var(--mist-100);
    margin: 0;
}

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

.feature-small .feature-info {
    padding: 14px;
}

.feature-small h3 {
    font-size: 1rem;
    color: var(--mist-900);
}

.horizontal-wrap {
    position: relative;
}

.horizontal-list {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px 2px 18px;
    scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
    display: none;
}

.horizontal-list .movie-card {
    flex: 0 0 272px;
}

.scroll-controls {
    display: flex;
    gap: 10px;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--mist-200);
    color: var(--mist-700);
}

.scroll-btn:hover {
    background: var(--mist-300);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: var(--mist-200);
}

.movie-card.compact .poster-link {
    height: 190px;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.52), transparent 56%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.72);
    border-radius: 999px;
    background: rgb(14 165 233 / 0.92);
    color: #fff;
    opacity: 0;
    transition: 0.25s ease;
}

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

.corner-label {
    position: absolute;
    top: 12px;
    font-size: 0.72rem;
    padding: 4px 9px;
}

.corner-label.left {
    left: 12px;
}

.corner-label.right {
    right: 12px;
    background: rgb(0 0 0 / 0.64);
}

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

.movie-card-body h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card-body h2 a:hover,
.rank-content h2 a:hover {
    color: var(--mineral-600);
}

.movie-card-body p,
.rank-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--mist-600);
    font-size: 0.92rem;
}

.movie-meta-line {
    color: var(--mist-500);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.category-card {
    min-height: 200px;
    padding: 24px;
    color: #fff;
    background: radial-gradient(circle at 16% 14%, rgb(14 165 233 / 0.82), transparent 35%), linear-gradient(135deg, var(--mist-900), var(--mist-700));
}

.category-card h2 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 1.55rem;
}

.category-card p {
    color: var(--mist-100);
    margin: 0 0 18px;
}

.category-card span {
    display: inline-flex;
    color: #fff;
    font-weight: 700;
}

.page-hero {
    padding: 60px 0 42px;
    background: linear-gradient(135deg, var(--mineral-50), #fff, var(--moss-50));
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--mist-600);
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: var(--mineral-700);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    align-items: end;
    padding: 16px;
    margin: 0 0 26px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--mist-700);
    font-size: 0.88rem;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--mist-200);
    border-radius: 12px;
    padding: 0 13px;
    background: var(--mist-50);
    color: var(--mist-900);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--mineral-500);
    box-shadow: 0 0 0 4px rgb(14 165 233 / 0.12);
}

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--mist-600);
    background: #fff;
    border-radius: var(--radius);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 92px 54px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.rank-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rank-cover {
    height: 82px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mist-200);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rank-number {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--mineral-600);
    text-align: center;
}

.rank-content h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

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

.movie-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--mineral-700);
    background: var(--mineral-50);
    font-size: 0.78rem;
    font-weight: 700;
}

.player-section {
    background: #050505;
}

.player-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgb(14 165 233 / 0.20), transparent 30%), linear-gradient(0deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15));
}

.play-cover-button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgb(2 132 199 / 0.92);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 24px 60px rgb(2 132 199 / 0.35);
}

.player-cover:hover .play-cover-button {
    transform: scale(1.06);
    background: var(--mineral-500);
}

.player-cover.hidden,
.player-state.hidden {
    display: none;
}

.player-state {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 5;
    min-width: 160px;
    padding: 10px 14px;
    border-radius: 999px;
    text-align: center;
    color: #fff;
    background: rgb(0 0 0 / 0.62);
}

.detail-main {
    padding: 38px 0 62px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
    gap: 28px;
}

.detail-panel,
.side-panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.detail-title h1 {
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 18px;
    color: var(--mist-600);
}

.highlight-line {
    padding: 16px;
    margin: 18px 0 22px;
    border-radius: 14px;
    background: var(--mineral-50);
    color: var(--mist-800);
    font-weight: 700;
}

.content-block h2,
.side-panel h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    color: var(--mist-900);
}

.content-block p {
    color: var(--mist-700);
    margin: 0 0 22px;
}

.small-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--mist-50);
    transition: 0.2s ease;
}

.small-card + .small-card {
    margin-top: 12px;
}

.small-card:hover {
    background: var(--mineral-50);
}

.small-card img {
    width: 92px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.35s ease;
}

.small-card strong,
.small-card em {
    display: block;
}

.small-card strong {
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--mist-900);
}

.small-card em {
    margin-top: 4px;
    color: var(--mist-500);
    font-style: normal;
    font-size: 0.78rem;
}

.site-footer {
    padding: 42px 0;
    background: var(--mist-900);
    color: var(--mist-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1rem;
}

.site-footer p {
    max-width: 420px;
    color: var(--mist-300);
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

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

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

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

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

    .mobile-toggle {
        display: block;
    }

    .mobile-panel.open {
        display: block;
    }

    .hero {
        height: 520px;
    }

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

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

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

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

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

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

    .hero {
        height: 500px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-copy {
        padding-right: 12px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .scroll-controls {
        margin-top: 16px;
    }

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

    .poster-link {
        height: 210px;
    }

    .feature-small,
    .rank-row {
        grid-template-columns: 86px 1fr;
    }

    .rank-number,
    .rank-action {
        display: none;
    }

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

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

@media (max-width: 430px) {
    .brand-text {
        font-size: 1rem;
    }

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

    .poster-link,
    .movie-card.compact .poster-link {
        height: 260px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }
}
