:root {
    --night-950: #0a1929;
    --night-900: #102a43;
    --night-850: #16324f;
    --night-800: #243b53;
    --night-700: #334e68;
    --night-600: #486581;
    --harbor-700: #08706c;
    --harbor-600: #0f8f8a;
    --harbor-500: #1a9995;
    --harbor-400: #26b3af;
    --harbor-300: #4dc4c1;
    --amber-500: #ffc107;
    --text: #ffffff;
    --muted: #9fb3c8;
    --soft: #cbd5e1;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(26, 153, 149, 0.18), transparent 34rem),
        radial-gradient(circle at 82% 4%, rgba(255, 193, 7, 0.08), transparent 28rem),
        linear-gradient(180deg, var(--night-900), var(--night-950) 46%, var(--night-900));
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 42, 67, 0.92);
    border-bottom: 1px solid rgba(51, 78, 104, 0.55);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--harbor-500), var(--harbor-700));
    box-shadow: 0 12px 30px rgba(26, 153, 149, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #d2dbe8;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--harbor-300);
}

.top-search {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.top-search input {
    width: 170px;
    border: 1px solid rgba(72, 101, 129, 0.86);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: #ffffff;
    background: rgba(10, 25, 41, 0.8);
    outline: none;
    padding: 10px 12px;
}

.top-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--harbor-500);
}

.top-search button {
    border: 1px solid var(--harbor-600);
    border-radius: 0 10px 10px 0;
    color: #ffffff;
    background: var(--harbor-600);
    padding: 10px 14px;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(72, 101, 129, 0.9);
    border-radius: 12px;
    background: rgba(10, 25, 41, 0.7);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 14px;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 25, 41, 0.95), rgba(10, 25, 41, 0.54) 48%, rgba(10, 25, 41, 0.18)),
        linear-gradient(0deg, var(--night-950), rgba(10, 25, 41, 0.35) 55%, rgba(10, 25, 41, 0.15));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 78px;
    width: min(680px, calc(100% - 48px));
    display: grid;
    gap: 18px;
}

.hero-meta,
.eyebrow {
    color: var(--harbor-300);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    font-family: "Noto Serif SC", Georgia, serif;
    line-height: 1.15;
}

.hero-content h1 {
    font-size: clamp(40px, 6vw, 72px);
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 620px;
    margin: 0;
    color: var(--soft);
    font-size: 19px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-line span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(77, 196, 193, 0.28);
    border-radius: 999px;
    color: var(--harbor-300);
    background: rgba(6, 49, 45, 0.45);
    font-size: 12px;
    padding: 5px 10px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 22px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: var(--harbor-600);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 143, 138, 0.26);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.overview-card:hover,
.rank-hero-card:hover {
    transform: translateY(-3px);
}

.primary-btn:hover {
    background: var(--harbor-500);
}

.ghost-btn {
    border: 1px solid rgba(203, 213, 225, 0.36);
    color: #ffffff;
    background: rgba(16, 42, 67, 0.5);
}

.ghost-btn:hover {
    border-color: var(--harbor-400);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 42px;
    display: flex;
    gap: 9px;
}

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

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

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

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

.section-head h2 {
    margin: 0;
    border-left: 4px solid var(--harbor-500);
    padding-left: 16px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 30px;
}

.section-head p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    transition: transform 0.2s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: var(--night-800);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.poster-wrap img,
.category-card img,
.rank-hero-card img,
.overview-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.rank-hero-card:hover img,
.overview-card:hover img {
    transform: scale(1.08);
}

.poster-shade,
.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.play-mini {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 143, 138, 0.86);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-type {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    padding: 5px 8px;
}

.card-body {
    display: grid;
    gap: 5px;
}

.card-body strong {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.movie-card:hover strong,
.movie-row:hover strong {
    color: var(--harbor-300);
}

.card-body em,
.row-meta,
.side-card dd,
.side-card dt {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.card-desc {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: #b8c7d9;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dark-panel {
    width: min(1228px, calc(100% - 24px));
    border: 1px solid rgba(51, 78, 104, 0.62);
    border-radius: 28px;
    background: rgba(36, 59, 83, 0.36);
    padding: 38px 24px;
    margin-top: 70px;
    box-shadow: var(--shadow);
}

.movie-scroll {
    display: grid;
    grid-auto-columns: 300px;
    grid-auto-flow: column;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

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

.featured-grid .movie-card .poster-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

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

.category-card {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    border: 1px solid rgba(51, 78, 104, 0.65);
    border-radius: 20px;
    background: var(--night-800);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 1;
}

.category-card strong {
    bottom: 54px;
    font-size: 20px;
}

.category-card em {
    bottom: 18px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--soft);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.movie-row {
    display: grid;
    grid-template-columns: 120px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(51, 78, 104, 0.4);
    border-radius: 16px;
    background: rgba(36, 59, 83, 0.24);
    padding: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.movie-row:hover {
    background: rgba(36, 59, 83, 0.55);
    transform: translateX(4px);
}

.movie-row img {
    width: 120px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
}

.row-rank {
    color: var(--amber-500);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.row-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.row-main strong {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-main em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 44px auto 0;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(51, 78, 104, 0.58);
    border-radius: 28px;
    padding: 46px;
    background:
        linear-gradient(135deg, rgba(6, 49, 45, 0.7), rgba(16, 42, 67, 0.5)),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.15), transparent 22rem),
        var(--night-800);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 250px;
}

.rank-hero {
    background:
        linear-gradient(135deg, rgba(16, 42, 67, 0.7), rgba(10, 25, 41, 0.8)),
        radial-gradient(circle at 22% 20%, rgba(255, 193, 7, 0.18), transparent 22rem),
        var(--night-800);
}

.page-hero h1 {
    margin-top: 12px;
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p:last-child {
    max-width: 720px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(51, 78, 104, 0.62);
    border-radius: 24px;
    background: rgba(36, 59, 83, 0.34);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-card:hover,
.category-card:hover,
.rank-hero-card:hover {
    border-color: rgba(77, 196, 193, 0.62);
}

.overview-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 180px;
    overflow: hidden;
}

.overview-content {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 26px;
}

.overview-content strong {
    font-size: 24px;
}

.overview-content em {
    color: var(--soft);
    font-style: normal;
    line-height: 1.8;
}

.overview-content span:last-child {
    color: var(--harbor-300);
    font-weight: 700;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    border: 1px solid rgba(51, 78, 104, 0.55);
    border-radius: 18px;
    background: rgba(16, 42, 67, 0.56);
    padding: 14px;
}

.filter-input,
.filter-select {
    border: 1px solid rgba(72, 101, 129, 0.86);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(10, 25, 41, 0.72);
    outline: none;
    padding: 13px 14px;
}

.filter-input {
    flex: 1;
    min-width: 180px;
}

.filter-select {
    min-width: 150px;
}

.filter-status {
    min-width: 120px;
    color: var(--muted);
    font-size: 14px;
}

.rank-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.rank-hero-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(51, 78, 104, 0.62);
    border-radius: 24px;
    background: var(--night-800);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-hero-card:first-child {
    min-height: 340px;
}

.rank-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 64%);
}

.rank-badge,
.rank-hero-card strong,
.rank-hero-card em {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
}

.rank-badge {
    top: 18px;
    width: max-content;
    border-radius: 999px;
    color: #102a43;
    background: var(--amber-500);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.rank-hero-card strong {
    bottom: 50px;
    font-size: 24px;
}

.rank-hero-card em {
    bottom: 24px;
    color: var(--soft);
    font-style: normal;
}

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

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

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

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

.player-column {
    display: grid;
    gap: 20px;
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(51, 78, 104, 0.66);
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 143, 138, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    font-size: 32px;
    text-indent: 4px;
}

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

.detail-card,
.side-card {
    border: 1px solid rgba(51, 78, 104, 0.58);
    border-radius: 22px;
    background: rgba(16, 42, 67, 0.58);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin-top: 10px;
    font-size: clamp(30px, 4vw, 46px);
}

.lead-text {
    color: var(--soft);
    font-size: 18px;
    line-height: 1.85;
}

.prose-card h2 {
    margin: 0 0 16px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 26px;
}

.prose-card p {
    color: var(--soft);
    font-size: 16px;
    line-height: 2;
}

.side-card {
    position: sticky;
    top: 94px;
    overflow: hidden;
    padding-bottom: 22px;
}

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

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 20px;
}

.side-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(51, 78, 104, 0.45);
    padding-bottom: 12px;
}

.side-card dt {
    flex: none;
}

.side-card dd {
    margin: 0;
    text-align: right;
}

.full {
    margin: 0 20px;
    width: calc(100% - 40px);
}

.related-section {
    padding-bottom: 70px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(51, 78, 104, 0.55);
    background: rgba(10, 25, 41, 0.86);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
    padding: 46px 0;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.footer-grid a:hover {
    color: var(--harbor-300);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(51, 78, 104, 0.48);
    color: #7890a8;
    font-size: 13px;
    padding: 18px 0 28px;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-nav.open {
        display: grid;
    }

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

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

    .side-card {
        position: static;
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        padding-bottom: 0;
    }

    .side-card .primary-btn {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 820px) {
    .hero-slider {
        min-height: 680px;
    }

    .hero-gradient {
        background:
            linear-gradient(0deg, var(--night-950), rgba(10, 25, 41, 0.45)),
            linear-gradient(90deg, rgba(10, 25, 41, 0.82), rgba(10, 25, 41, 0.22));
    }

    .hero-content {
        bottom: 92px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

    .section-head {
        display: grid;
    }

    .movie-grid,
    .category-grid,
    .featured-grid,
    .overview-grid,
    .rank-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .movie-row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .movie-row img {
        width: 96px;
        height: 64px;
    }

    .row-rank,
    .row-meta {
        display: none;
    }

    .filter-panel {
        display: grid;
    }

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

@media (max-width: 560px) {
    .nav-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-content {
        width: calc(100% - 28px);
        left: 14px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .content-section,
    .page-hero,
    .detail-shell,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .content-section {
        padding-top: 48px;
    }

    .page-hero {
        margin-top: 24px;
        padding: 28px;
    }

    .movie-grid,
    .category-grid,
    .featured-grid,
    .overview-grid,
    .rank-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-scroll {
        grid-auto-columns: 82%;
    }

    .detail-card {
        padding: 22px;
    }
}
