:root {
    --color-mist-50: #f8fafb;
    --color-mist-100: #f0f4f7;
    --color-mist-200: #dfe6ec;
    --color-mist-300: #c7d4dd;
    --color-mist-500: #71808d;
    --color-mist-600: #5a6774;
    --color-mist-700: #47515c;
    --color-mist-900: #3e4750;
    --color-forest-50: #f2f8f3;
    --color-forest-100: #e1ede4;
    --color-forest-400: #6ca77c;
    --color-forest-500: #4d8862;
    --color-forest-600: #3a6e4d;
    --color-forest-700: #30593f;
    --color-stream-50: #edf7f5;
    --shadow-soft: 0 14px 35px rgba(36, 55, 70, 0.12);
    --shadow-card: 0 8px 22px rgba(44, 58, 70, 0.11);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-mist-200);
    backdrop-filter: blur(14px);
}

.nav-bar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-mist-900);
}

.logo {
    font-size: clamp(20px, 3vw, 28px);
}

.logo:hover,
.footer-logo:hover {
    color: var(--color-forest-600);
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-forest-600), var(--color-forest-400));
    box-shadow: 0 8px 20px rgba(58, 110, 77, 0.25);
}

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

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 650;
    color: var(--color-mist-700);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--color-forest-600);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-forest-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--color-mist-100);
    color: var(--color-mist-900);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

.hero {
    position: relative;
    height: clamp(560px, 76vh, 820px);
    overflow: hidden;
    background: #172017;
}

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

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

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

.hero-overlay,
.detail-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(14, 21, 18, 0.86), rgba(14, 21, 18, 0.45), rgba(14, 21, 18, 0.18)),
        linear-gradient(0deg, rgba(14, 21, 18, 0.86), transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(92px, 12vw, 150px);
    color: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-forest-400);
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.hero-content p:not(.eyebrow),
.page-hero p,
.detail-one-line {
    max-width: 760px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta {
    margin: 10px 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 650;
}

.hero-actions,
.detail-nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.text-link,
.filter-panel button,
.inline-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 28px;
    color: var(--color-mist-900);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.24);
}

.ghost-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.42);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 26px;
    transform: translateY(-50%);
}

.hero-next {
    right: 26px;
    transform: translateY(-50%);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.white-section {
    background: #fff;
}

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

.gradient-section {
    background: linear-gradient(135deg, var(--color-forest-50), var(--color-stream-50));
}

.section-head {
    margin-bottom: 34px;
}

.center-head {
    text-align: center;
}

.center-head p:not(.eyebrow) {
    margin-inline: auto;
}

.split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-head h2,
.category-overview-head h2,
.detail-article h2,
.side-panel h2,
.site-footer h2 {
    margin: 0 0 8px;
    color: var(--color-mist-900);
    line-height: 1.18;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.035em;
}

.section-head p:not(.eyebrow),
.category-overview-head p,
.category-tile span {
    color: var(--color-mist-600);
}

.text-link {
    color: var(--color-forest-600);
    font-weight: 850;
}

.text-link:hover {
    color: var(--color-forest-700);
    transform: translateX(2px);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.full-grid {
    align-items: stretch;
}

.movie-card,
.card-panel,
.category-overview-card,
.category-tile,
.compact-card,
.rank-item a,
.mosaic-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card {
    overflow: hidden;
}

.movie-card:hover,
.category-tile:hover,
.compact-card:hover,
.rank-item a:hover,
.mosaic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.movie-card-link {
    display: block;
    height: 100%;
}

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

.poster-image {
    aspect-ratio: 2 / 3;
}

.wide-image {
    aspect-ratio: 16 / 10;
}

.thumb img,
.compact-card img,
.rank-item img,
.mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.rank-item a:hover img,
.mosaic-card:hover img {
    transform: scale(1.08);
}

.thumb-shade,
.mosaic-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 58%);
    content: "";
    opacity: 0.8;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(8px);
}

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

.movie-card-body {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.movie-card-body strong {
    min-height: 1.5em;
    font-size: 17px;
    line-height: 1.35;
    color: var(--color-mist-900);
}

.movie-card-body span,
.movie-card-body em,
.compact-card em,
.rank-body span,
.rank-body em {
    font-size: 13px;
    color: var(--color-mist-600);
    font-style: normal;
}

.movie-card-body em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 170px;
    padding: 24px;
    border: 1px solid var(--color-mist-200);
}

.category-tile strong {
    font-size: 24px;
    color: var(--color-forest-700);
}

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

.feature-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.compact-card img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.compact-card span {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.compact-card strong {
    overflow: hidden;
    color: var(--color-mist-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-auto-rows: 240px;
    gap: 22px;
}

.mosaic-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.large-card {
    grid-row: span 2;
}

.mosaic-card span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: #fff;
}

.mosaic-card strong {
    font-size: 24px;
    line-height: 1.2;
}

.mosaic-card em {
    color: rgba(255, 255, 255, 0.84);
    font-style: normal;
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 54px 74px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 18px 12px 12px;
}

.rank-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-forest-600);
    text-align: center;
}

.rank-item img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.rank-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.rank-body strong,
.rank-body em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-body strong {
    color: var(--color-mist-900);
}

.rank-item b {
    color: var(--color-forest-600);
    font-size: 20px;
}

.inline-search,
.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inline-search input,
.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid var(--color-mist-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--color-mist-900);
    background: #fff;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-forest-500);
    box-shadow: 0 0 0 4px rgba(77, 136, 98, 0.13);
}

.inline-search button,
.filter-panel button {
    min-height: 46px;
    padding: 0 22px;
    color: #fff;
    background: var(--color-forest-600);
}

.inline-search button:hover,
.filter-panel button:hover {
    background: var(--color-forest-700);
}

.filter-panel {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 18px;
    border: 1px solid var(--color-mist-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.search-panel input,
.filter-panel input {
    min-width: min(420px, 100%);
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: clamp(70px, 10vw, 120px) 0;
    color: #fff;
    background:
        radial-gradient(circle at 14% 20%, rgba(108, 167, 124, 0.6), transparent 32%),
        linear-gradient(135deg, #1e2c25, #3e4750 58%, #233228);
}

.page-hero p {
    margin-bottom: 0;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 6vw, 72px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    padding: 24px;
    border: 1px solid var(--color-mist-200);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #172017;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px);
    transform: scale(1.08);
    opacity: 0.58;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(34px, 5vw, 60px) 0 clamp(54px, 7vw, 84px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
    margin-top: 34px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
    max-width: 850px;
    font-size: clamp(34px, 5vw, 64px);
}

.meta-pills,
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.meta-pills span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag {
    color: var(--color-forest-700);
    background: var(--color-forest-100);
    border-color: transparent;
}

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

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.56));
    cursor: pointer;
}

.player-start span {
    width: clamp(72px, 10vw, 104px);
    height: clamp(72px, 10vw, 104px);
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    font-size: clamp(30px, 5vw, 48px);
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.32);
}

.movie-player.is-playing .player-start {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.card-panel {
    padding: clamp(22px, 4vw, 34px);
}

.detail-article p {
    color: var(--color-mist-700);
    font-size: 17px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 18px;
    margin: 0;
}

.side-panel dt {
    color: var(--color-mist-500);
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: var(--color-mist-900);
}

.detail-nav-links a {
    color: var(--color-forest-600);
    font-weight: 850;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 58px 0;
}

.footer-logo {
    margin-bottom: 16px;
    color: #fff;
    font-size: 22px;
}

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

.site-footer h2 {
    color: #fff;
    font-size: 18px;
}

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

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

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-mist-300);
    text-align: center;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--color-mist-200);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow-soft);
    }

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

    .nav-link {
        padding: 12px;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        height: 680px;
    }

    .hero-control {
        display: none;
    }

    .split-head,
    .category-overview-head {
        display: grid;
        align-items: start;
    }

    .poster-grid,
    .category-grid,
    .feature-list,
    .mini-grid,
    .mosaic-grid,
    .footer-grid,
    .detail-content-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .rank-item a {
        grid-template-columns: 42px 64px 1fr;
    }

    .rank-item b {
        grid-column: 3;
    }

    .filter-panel,
    .inline-search {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .filter-panel input,
    .filter-panel select,
    .filter-panel button,
    .inline-search input,
    .inline-search button {
        width: 100%;
    }
}

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

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

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

    .movie-card-body strong {
        font-size: 15px;
    }

    .compact-card {
        grid-template-columns: 74px 1fr;
    }

    .hero-content {
        padding-bottom: 90px;
    }

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