:root {
    --night-950: #0a1929;
    --night-900: #102a43;
    --night-850: #18324f;
    --night-800: #243b53;
    --night-700: #334e68;
    --harbor-500: #1a9995;
    --harbor-400: #26b3af;
    --harbor-300: #4dc4c1;
    --cream: #f7fafc;
    --muted: #9fb3c8;
    --line: rgba(159, 179, 200, 0.18);
    --panel: rgba(16, 42, 67, 0.76);
    --panel-soft: rgba(36, 59, 83, 0.54);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(38, 179, 175, 0.22), transparent 30rem),
        linear-gradient(180deg, var(--night-900) 0%, var(--night-950) 42%, #07111f 100%);
    color: var(--cream);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    min-height: 60vh;
}

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

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #06141f;
    background: linear-gradient(135deg, var(--harbor-300), var(--harbor-500));
    box-shadow: 0 12px 32px rgba(38, 179, 175, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #d4e4f3;
    font-size: 14px;
    flex: 1;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a,
.channel-links a {
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover,
.channel-links a:hover,
.card-body h3 a:hover,
.rank-main h3 a:hover,
.breadcrumb a:hover {
    color: var(--harbor-300);
}

.nav-search {
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(77, 196, 193, 0.22);
    background: rgba(10, 25, 41, 0.48);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.nav-search input {
    width: 100%;
    padding: 11px 14px;
}

.nav-search button,
.big-search button {
    border: 0;
    cursor: pointer;
    color: #06141f;
    background: var(--harbor-300);
    padding: 11px 16px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    color: white;
    background: rgba(36, 59, 83, 0.8);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 8px 22px 18px;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(36, 59, 83, 0.58);
    color: #d4e4f3;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #06111d;
}

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

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

.hero-slide > img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(6, 17, 29, 0.98), rgba(6, 17, 29, 0.68) 42%, rgba(6, 17, 29, 0.18)),
        linear-gradient(0deg, var(--night-950), rgba(10, 25, 41, 0.14) 52%, rgba(10, 25, 41, 0.1));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 110px;
    width: min(680px, calc(100vw - 48px));
    z-index: 2;
}

.hero-meta,
.detail-meta,
.card-meta,
.eyebrow {
    color: var(--harbor-300);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-meta,
.detail-meta,
.card-meta {
    font-size: 13px;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 12px 0 16px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.hero-desc,
.page-hero p,
.detail-one-line,
.search-hero p,
.section-head p,
.category-card p,
.category-overview-card p,
.text-panel p,
.rank-main p,
.site-footer p {
    color: #c9d8e6;
    line-height: 1.82;
}

.hero-desc {
    font-size: 18px;
    max-width: 620px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.rank-tags span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(77, 196, 193, 0.24);
    background: rgba(6, 49, 45, 0.55);
    color: #c7fffd;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.hero-actions,
.detail-info .btn,
.section-link,
.category-overview-card .btn {
    margin-top: 24px;
}

.btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    min-height: 44px;
    font-weight: 800;
    border: 1px solid rgba(77, 196, 193, 0.26);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.section-link:hover,
.movie-card:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #06141f;
    background: linear-gradient(135deg, var(--harbor-300), var(--harbor-500));
    box-shadow: 0 18px 40px rgba(38, 179, 175, 0.26);
}

.btn.ghost,
.section-link {
    color: #dffefd;
    background: rgba(36, 59, 83, 0.62);
}

.btn.text {
    border-color: transparent;
    color: var(--harbor-300);
    background: transparent;
}

.hero-dots {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 54px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 38px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
    background: var(--harbor-300);
}

.hero-rail {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 48px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 112px);
    gap: 12px;
}

.hero-mini {
    min-height: 154px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 25, 41, 0.58);
    box-shadow: var(--shadow);
}

.hero-mini img {
    width: 100%;
    height: 118px;
    object-fit: cover;
}

.hero-mini span {
    display: block;
    padding: 8px;
    color: #ecfbff;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-hero,
.page-hero,
.content-section,
.detail-layout,
.site-footer .footer-grid,
.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.search-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    margin-top: -44px;
    position: relative;
    z-index: 5;
    padding-top: 28px;
    padding-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.9), rgba(6, 49, 45, 0.66));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-hero h2,
.section-head h2,
.text-panel h2,
.category-overview-card h2 {
    margin: 0 0 12px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: clamp(26px, 3vw, 42px);
}

.big-search {
    display: flex;
    border: 1px solid rgba(77, 196, 193, 0.24);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(10, 25, 41, 0.5);
}

.big-search input {
    width: 100%;
    padding: 17px 20px;
}

.content-section {
    padding-top: 70px;
    padding-bottom: 20px;
}

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

.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
}

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

.movie-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(36, 59, 83, 0.72), rgba(16, 42, 67, 0.82));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(77, 196, 193, 0.5);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: #0e2134;
    overflow: hidden;
}

.poster-wrap img,
.rank-cover img,
.detail-poster img,
.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(4, 12, 20, 0.88));
    opacity: 0.78;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #06141f;
    background: var(--harbor-300);
    box-shadow: 0 12px 30px rgba(38, 179, 175, 0.36);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    z-index: 2;
    border-radius: 12px;
    color: #06141f;
    background: #f2d272;
}

.card-body {
    padding: 14px;
}

.card-meta {
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    min-height: 45px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-desc {
    min-height: 66px;
    color: #b7cadc;
    line-height: 1.6;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tag-row {
    min-height: 28px;
}

.glass-section {
    margin-top: 56px;
    padding-top: 52px;
    padding-bottom: 56px;
    background: linear-gradient(135deg, rgba(36, 59, 83, 0.36), rgba(6, 49, 45, 0.22));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.category-card,
.category-overview-card,
.text-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.category-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 16px;
}

.category-cover img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
}

.category-cover.wide {
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.page-hero {
    padding-top: 82px;
    padding-bottom: 52px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero.slim {
    min-height: 300px;
}

.category-page-hero {
    border-bottom: 1px solid var(--line);
}

.channel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.channel-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(36, 59, 83, 0.5);
    color: #d4e4f3;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(16, 42, 67, 0.74);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid rgba(77, 196, 193, 0.2);
    border-radius: 16px;
    padding: 0 14px;
    background: rgba(10, 25, 41, 0.58);
    color: white;
}

.filter-bar input {
    flex: 1;
}

.filter-bar select {
    min-width: 170px;
}

.no-result {
    display: none;
    text-align: center;
    color: #c9d8e6;
    padding: 42px 0;
}

.no-result.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 84px 54px minmax(0, 1fr) 74px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    background: rgba(16, 42, 67, 0.74);
}

.rank-cover {
    width: 84px;
    height: 112px;
    overflow: hidden;
    border-radius: 14px;
    background: #0e2134;
}

.rank-index {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--harbor-300);
    text-align: center;
}

.rank-main h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-main p {
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rank-score {
    justify-self: end;
    color: #06141f;
    background: linear-gradient(135deg, #f2d272, #f7e8a9);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    min-height: 580px;
    padding-top: 78px;
    padding-bottom: 54px;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    background: #0e2134;
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #d5e4f2;
    font-size: 14px;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
    max-width: 820px;
    font-size: 18px;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    max-width: 1180px;
    margin: -26px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(77, 196, 193, 0.24);
    background: #020912;
    box-shadow: var(--shadow);
}

.video-shell video {
    background: #020912;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(38, 179, 175, 0.28), rgba(5, 13, 22, 0.55));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #06141f;
    background: var(--harbor-300);
    font-size: 36px;
    box-shadow: 0 20px 54px rgba(38, 179, 175, 0.4);
}

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

.detail-content {
    padding-top: 42px;
}

.text-panel {
    padding: 26px;
}

.text-panel h2:not(:first-child) {
    margin-top: 28px;
}

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

.compact-card .card-desc {
    -webkit-line-clamp: 2;
    min-height: 44px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: rgba(6, 17, 29, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding-top: 42px;
    padding-bottom: 34px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #c9d8e6;
}

.copyright {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    padding-bottom: 22px;
    color: #8fa8bd;
}

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

    .nav-search {
        margin-left: auto;
    }

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

    .hero-rail {
        display: none;
    }

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-search {
        order: 3;
        width: 100%;
    }

    .hero-slider {
        min-height: 78vh;
    }

    .hero-content {
        bottom: 76px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .search-hero {
        grid-template-columns: 1fr;
        margin-top: 0;
        border-radius: 0;
    }

    .big-search,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
    }

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

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

    .category-overview-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        padding-top: 46px;
    }

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

    .rank-item {
        grid-template-columns: 70px minmax(0, 1fr);
        align-items: start;
    }

    .rank-cover {
        width: 70px;
        height: 96px;
    }

    .rank-index,
    .rank-score {
        display: none;
    }

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

@media (max-width: 520px) {
    .brand {
        font-size: 18px;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

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

    .section-head {
        display: block;
    }

    .play-cover span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
