:root {
    --mist-50: #f8fafc;
    --mist-100: #f1f5f9;
    --mist-200: #e2e8f0;
    --mist-300: #cbd5e1;
    --mist-400: #94a3b8;
    --mist-500: #64748b;
    --mist-600: #475569;
    --mist-700: #334155;
    --mist-800: #1e293b;
    --mist-900: #0f172a;
    --lake-50: #f0f9ff;
    --lake-100: #e0f2fe;
    --lake-400: #38bdf8;
    --lake-500: #0ea5e9;
    --lake-600: #0284c7;
    --lake-700: #0369a1;
    --lake-900: #0c4a6e;
    --sepia-50: #fbf7ef;
    --sepia-100: #f5ead8;
    --sepia-500: #b88b52;
    --sepia-600: #9d7d52;
    --sepia-700: #826545;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--mist-900);
    background: linear-gradient(180deg, var(--sepia-50) 0%, var(--white) 45%, var(--mist-50) 100%);
    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(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.97);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lake-400), var(--lake-700));
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.22);
}

.logo-title {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.logo-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--mist-400);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--mist-200);
    font-size: 15px;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--lake-400);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 9px 12px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    padding: 12px 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 10px 4px;
    color: var(--mist-200);
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
    color: var(--lake-400);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.32), transparent 30%),
                radial-gradient(circle at 15% 80%, rgba(184, 139, 82, 0.30), transparent 28%),
                linear-gradient(135deg, var(--mist-900) 0%, var(--mist-800) 56%, var(--lake-900) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.84));
    z-index: 1;
}

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

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

.hero-image {
    position: absolute;
    inset: 0 0 0 38%;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    min-height: 620px;
    gap: 44px;
    padding: 70px 0;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.13);
    color: var(--lake-400);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(56, 189, 248, 0.24);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-title-note {
    color: var(--lake-400);
}

.hero-lead {
    margin: 0 0 26px;
    max-width: 630px;
    color: var(--mist-200);
    font-size: clamp(17px, 2.1vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.48);
    color: var(--mist-200);
    border: 1px solid rgba(226, 232, 240, 0.13);
    font-size: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.36);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-light {
    background: var(--white);
    color: var(--lake-700);
    border-color: var(--mist-200);
}

.hero-panel {
    position: relative;
    min-height: 430px;
}

.feature-card {
    position: absolute;
    right: 0;
    top: 50%;
    width: min(385px, 100%);
    transform: translateY(-50%) translateX(22px) rotate(2deg);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.feature-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feature-card-body {
    padding: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.96));
}

.feature-card-body h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

.feature-card-body p {
    margin: 0 0 16px;
    color: var(--mist-300);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 70px 0;
}

.section.alt {
    background: var(--mist-50);
}

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

.section-header h2,
.page-hero h1,
.detail-title {
    margin: 0;
    color: var(--mist-900);
    font-weight: 850;
    line-height: 1.15;
}

.section-header h2 {
    font-size: clamp(25px, 3vw, 36px);
}

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

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

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

.movie-card {
    display: block;
    min-width: 0;
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mist-100);
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.64));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lake-700);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    font-weight: 900;
}

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

.score-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.score-badge {
    right: 12px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.78);
    color: var(--white);
}

.rank-badge {
    left: 12px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--sepia-500), var(--sepia-700));
    color: var(--white);
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    margin: 0;
    color: var(--mist-900);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 43px;
    transition: color 0.2s ease;
}

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

.movie-info p {
    margin: 8px 0 0;
    color: var(--mist-600);
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 41px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--lake-100);
    color: var(--lake-700);
    font-size: 12px;
    font-weight: 650;
}

.movie-line-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
    color: var(--mist-500);
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white), var(--lake-50));
    border: 1px solid var(--mist-200);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--mist-900);
    font-size: 21px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--mist-600);
    font-size: 14px;
}

.category-card > img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 92px;
    margin-bottom: 14px;
    border-radius: 16px;
    object-fit: cover;
}

.page-hero {
    padding: 58px 0 34px;
}

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

.breadcrumb a {
    color: var(--lake-700);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 180px));
    gap: 12px;
    margin: 26px 0 28px;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-bar.compact {
    grid-template-columns: minmax(220px, 1fr) minmax(120px, 190px);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mist-200);
    border-radius: 14px;
    color: var(--mist-700);
    background: var(--mist-50);
    padding: 0 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--lake-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--mist-600);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 335px;
    gap: 28px;
    padding: 34px 0 74px;
}

.detail-main,
.detail-side-card {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-card {
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.25), rgba(0, 0, 0, 0.58));
    color: var(--white);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lake-700);
    font-size: 36px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
}

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

.detail-content {
    padding: 28px;
}

.detail-title {
    font-size: clamp(28px, 4vw, 42px);
}

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

.detail-meta span {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--mist-100);
}

.genre-pill {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--sepia-100);
    color: var(--sepia-700);
    font-weight: 700;
    font-size: 14px;
}

.article-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--mist-200);
}

.article-block h2 {
    margin: 0 0 12px;
    color: var(--mist-900);
    font-size: 22px;
}

.article-block p {
    margin: 0;
    color: var(--mist-700);
    line-height: 1.85;
}

.review-box {
    border-radius: 18px;
    background: var(--sepia-50);
    padding: 18px;
}

.detail-side {
    position: sticky;
    top: 88px;
    align-self: start;
}

.detail-side-card {
    padding: 18px;
}

.detail-side-card h2 {
    margin: 0 0 16px;
    font-size: 21px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 112px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card p {
    margin: 0;
    color: var(--mist-500);
    font-size: 12px;
}

.site-footer {
    background: var(--mist-900);
    color: var(--mist-300);
    border-top: 1px solid var(--mist-800);
    padding: 44px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.2fr;
    gap: 28px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    margin: 0;
    color: var(--mist-400);
}

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

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

.footer-links a:hover {
    color: var(--lake-400);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(226, 232, 240, 0.10);
    color: var(--mist-500);
    font-size: 14px;
    text-align: center;
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .detail-side {
        position: static;
    }
}

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

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

    .mobile-menu.is-open {
        display: block;
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 58px 0 86px;
    }

    .hero-image {
        inset: 0;
        opacity: 0.33;
    }

    .hero-panel {
        min-height: 390px;
    }

    .feature-card {
        left: 0;
        right: auto;
        transform: translateY(-50%) rotate(0deg);
    }

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

    .filter-bar,
    .filter-bar.compact {
        grid-template-columns: 1fr;
    }

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

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

    .logo-title {
        font-size: 17px;
    }

    .logo-subtitle {
        display: none;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-panel {
        display: none;
    }

    .hero-inner {
        padding-bottom: 76px;
    }

    .section {
        padding: 48px 0;
    }

    .section-header {
        display: block;
    }

    .section-actions {
        margin-top: 14px;
    }

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

    .movie-info {
        padding: 11px;
    }

    .movie-info h3 {
        font-size: 14px;
        min-height: 38px;
    }

    .movie-info p {
        font-size: 12px;
        min-height: 35px;
    }

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

    .detail-content {
        padding: 20px;
    }

    .player-start span {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

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

    .compact-card img {
        width: 98px;
        height: 64px;
    }
}
