:root {
    --mist-50: #f8fafb;
    --mist-100: #f0f4f7;
    --mist-200: #dfe6ec;
    --mist-300: #c7d4dd;
    --mist-500: #8a9ba8;
    --mist-700: #5a6774;
    --mist-800: #4a5560;
    --mist-900: #3e4750;
    --forest-50: #f1f8f2;
    --forest-100: #e1ede4;
    --forest-500: #4d8c62;
    --forest-600: #3a6e4d;
    --forest-700: #30593f;
    --stream-50: #f0f9ff;
    --stream-100: #e0f2fe;
    --stream-500: #0c9de9;
    --stream-700: #0164a1;
    --sunset-50: #fff8ed;
    --sunset-500: #fe7a16;
    --sunset-600: #ef5f0c;
    --mountain-500: #657b6f;
    --mountain-700: #424f48;
    --shadow-soft: 0 20px 45px rgba(48, 89, 63, 0.13);
    --shadow-card: 0 12px 28px rgba(62, 71, 80, 0.11);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(199, 212, 221, 0.72);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mist-900);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--stream-500));
    box-shadow: 0 14px 28px rgba(12, 157, 233, 0.2);
}

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

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--mist-700);
    font-weight: 650;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--forest-700);
    background: var(--forest-100);
    transform: translateY(-1px);
}

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

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

.hero {
    position: relative;
    min-height: 68vh;
    overflow: hidden;
    color: #ffffff;
    background: var(--mountain-700);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.active .hero-bg {
    transform: scale(1.12);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 31, 36, 0.86), rgba(23, 31, 36, 0.52), rgba(23, 31, 36, 0.22)), linear-gradient(0deg, rgba(23, 31, 36, 0.82), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: end;
    gap: 42px;
    padding: 90px 0 96px;
}

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

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--stream-500));
    box-shadow: 0 16px 30px rgba(12, 157, 233, 0.24);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--forest-700);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.hero-panel {
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-panel-body {
    padding: 20px;
}

.hero-panel-body strong {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.hero-panel-body small {
    color: rgba(255, 255, 255, 0.78);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
    background: #ffffff;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: #ffffff;
}

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

.section-title span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--forest-700);
    background: var(--forest-100);
    font-size: 13px;
    font-weight: 800;
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-title p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--mist-700);
}

.filter-panel {
    margin: -34px auto 0;
    position: relative;
    z-index: 10;
}

.filter-panel.compact {
    margin: 0 0 28px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(199, 212, 221, 0.72);
    backdrop-filter: blur(18px);
}

.filter-row label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--mist-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--mist-200);
    border-radius: 16px;
    color: var(--mist-900);
    background: var(--mist-50);
    outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--forest-500);
    box-shadow: 0 0 0 4px rgba(77, 140, 98, 0.12);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(223, 230, 236, 0.72);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 46px rgba(62, 71, 80, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--mist-100);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
}

.card-body strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
    color: var(--mist-900);
}

.card-body small,
.rank-info small {
    color: var(--mist-500);
}

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

.card-tags span {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--stream-700);
    background: var(--stream-50);
    font-size: 12px;
    font-weight: 700;
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--mist-700);
    font-size: 13px;
}

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

.category-card {
    position: relative;
    min-height: 176px;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, var(--forest-50));
    border: 1px solid rgba(223, 230, 236, 0.9);
    box-shadow: var(--shadow-card);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -36px;
    top: -36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 157, 233, 0.25), transparent 64%);
}

.category-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--mist-700);
}

.category-card span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-top: 20px;
    color: var(--forest-700);
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 48px 86px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--mist-200);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    border-color: var(--forest-500);
}

.rank-no {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunset-500), var(--forest-600));
    font-weight: 900;
}

.rank-card img {
    width: 86px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
}

.page-hero {
    padding: 78px 0;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(12, 157, 233, 0.38), transparent 30%), linear-gradient(135deg, var(--mountain-700), var(--forest-700));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

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

.detail-hero {
    padding: 54px 0 46px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(66, 79, 72, 0.96), rgba(48, 89, 63, 0.95));
}

.detail-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.3);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 700;
}

.detail-copy p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.player-shell {
    padding: 54px 0 0;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 66px rgba(0, 0, 0, 0.22);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    width: 108px;
    height: 108px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunset-500), var(--stream-500));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    font-size: 40px;
    line-height: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    padding: 42px 0 72px;
}

.article-card,
.side-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(223, 230, 236, 0.8);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

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

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

.related-list a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--mist-50);
    border: 1px solid var(--mist-200);
}

.related-list img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.related-list strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-list small {
    color: var(--mist-500);
}

.empty-state {
    margin: 18px 0 0;
    padding: 16px;
    border-radius: 16px;
    color: var(--mist-700);
    background: #ffffff;
    border: 1px solid var(--mist-200);
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 0.8fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

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

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

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

.footer-links a {
    color: var(--mist-300);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
    .hero-content,
    .detail-grid,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 460px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid var(--mist-200);
        box-shadow: var(--shadow-soft);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        text-align: center;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        padding: 58px 0 90px;
        gap: 26px;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .rank-card {
        grid-template-columns: 40px 72px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-card img {
        width: 72px;
    }

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

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