:root {
    color-scheme: dark;
    --deep-950: #000d12;
    --deep-900: #00141a;
    --deep-850: #001f2d;
    --deep-800: #002840;
    --deep-700: #004166;
    --ocean-700: #005580;
    --ocean-600: #0077b3;
    --ocean-500: #0099e6;
    --ocean-400: #1ab1ff;
    --teal-500: #00b394;
    --teal-700: #007e69;
    --text: #f7fbff;
    --muted: #b8dff2;
    --soft: #7cb8d6;
    --line: rgba(124, 184, 214, 0.2);
    --panel: rgba(0, 40, 64, 0.76);
    --panel-solid: #002840;
    --shadow: 0 18px 55px rgba(0, 153, 230, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 6%, rgba(0, 153, 230, 0.22), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(0, 179, 148, 0.14), transparent 30rem),
        linear-gradient(180deg, var(--deep-900), var(--deep-950) 48%, #00090d);
}

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

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

button,
input {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(0, 20, 26, 0.96), rgba(0, 40, 64, 0.94), rgba(0, 26, 38, 0.96));
    border-bottom: 1px solid rgba(26, 177, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ocean-400), var(--teal-500));
    box-shadow: 0 10px 28px rgba(0, 153, 230, 0.25);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.quick-categories a {
    color: var(--muted);
    padding: 10px 13px;
    border-radius: 12px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.quick-categories a:hover {
    color: #ffffff;
    background: rgba(26, 177, 255, 0.12);
    transform: translateY(-1px);
}

.header-search {
    width: 290px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(26, 177, 255, 0.22);
    border-radius: 16px;
    background: rgba(0, 20, 26, 0.58);
}

.header-search input,
.large-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.large-search input::placeholder {
    color: rgba(184, 223, 242, 0.72);
}

.header-search button,
.large-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(26, 177, 255, 0.14);
}

.quick-categories {
    display: flex;
    gap: 10px;
    padding: 0 0 12px;
    overflow-x: auto;
}

.quick-categories a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid rgba(26, 177, 255, 0.14);
    background: rgba(0, 40, 64, 0.42);
}

main {
    padding-top: 104px;
}

.hero-slider {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: var(--deep-900);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 520ms ease;
    background:
        linear-gradient(90deg, rgba(0, 13, 18, 0.94) 0%, rgba(0, 20, 26, 0.88) 38%, rgba(0, 20, 26, 0.48) 70%, rgba(0, 13, 18, 0.94) 100%),
        var(--hero-image) center / cover no-repeat;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(26, 177, 255, 0.24), transparent 25rem),
        linear-gradient(180deg, transparent, rgba(0, 13, 18, 0.98));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    padding-top: 115px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--ocean-400);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    font-size: 13px;
}

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

.hero-content h1 {
    font-size: clamp(44px, 7vw, 86px);
    max-width: 760px;
}

.hero-text,
.page-hero p,
.detail-one-line {
    color: var(--muted);
    line-height: 1.85;
    font-size: 18px;
}

.hero-text {
    max-width: 670px;
    margin: 24px 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    color: #dff7ff;
    border: 1px solid rgba(26, 177, 255, 0.22);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    background: rgba(0, 85, 128, 0.42);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 15px;
    padding: 0 22px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
    box-shadow: 0 15px 32px rgba(0, 153, 230, 0.23);
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(184, 223, 242, 0.24);
    background: rgba(0, 20, 26, 0.48);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: absolute;
    right: max(22px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    z-index: 2;
    width: min(30vw, 335px);
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(26, 177, 255, 0.35), rgba(0, 179, 148, 0.22));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster span,
.poster,
.detail-cover,
.compact-cover,
.category-tile,
.category-overview-card {
    background:
        linear-gradient(150deg, rgba(0, 20, 26, 0.18), rgba(0, 153, 230, 0.16)),
        var(--poster-image) center / cover no-repeat,
        linear-gradient(135deg, var(--deep-800), var(--ocean-700));
}

.hero-poster span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(184, 223, 242, 0.35);
}

.hero-dot.is-active {
    background: var(--ocean-400);
}

.section-block {
    padding: 56px 0 0;
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
}

.section-title-row a {
    color: var(--ocean-400);
    font-weight: 700;
}

.section-title-row.small {
    align-items: center;
}

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

.category-tile {
    min-height: 210px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 177, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow);
}

.category-tile::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 13, 18, 0.06), rgba(0, 13, 18, 0.92));
}

.category-tile span,
.category-tile strong,
.category-tile small {
    position: relative;
    z-index: 2;
}

.category-tile span {
    color: var(--ocean-400);
    font-weight: 700;
}

.category-tile strong {
    margin: 8px 0;
    font-size: 20px;
}

.category-tile small {
    color: var(--muted);
    line-height: 1.6;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(26, 177, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(0, 40, 64, 0.54);
    box-shadow: var(--shadow);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 177, 255, 0.38);
    background: rgba(0, 65, 102, 0.62);
}

.poster-link,
.poster {
    display: block;
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: var(--deep-800);
}

.poster img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 13, 18, 0.8));
}

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

.movie-card-body h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-meta,
.movie-line {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.62;
    font-size: 13px;
}

.movie-line {
    color: #d9eef8;
    min-height: 62px;
}

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

.ranking-panel,
.article-card {
    border: 1px solid rgba(26, 177, 255, 0.16);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.ranking-panel {
    position: sticky;
    top: 118px;
    padding: 22px;
}

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

.compact-link {
    display: grid;
    grid-template-columns: auto 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(0, 20, 26, 0.35);
    transition: background 180ms ease, transform 180ms ease;
}

.compact-link:hover {
    background: rgba(0, 119, 179, 0.2);
    transform: translateX(3px);
}

.rank-number {
    color: var(--ocean-400);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.compact-cover {
    width: 48px;
    height: 64px;
    border-radius: 12px;
}

.compact-link strong,
.compact-link small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-link small {
    margin-top: 5px;
    color: var(--muted);
}

.page-main {
    padding-top: 132px;
}

.page-hero,
.detail-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero {
    border: 1px solid rgba(26, 177, 255, 0.16);
    border-radius: var(--radius-xl);
    padding: 42px;
    background:
        radial-gradient(circle at 15% 15%, rgba(26, 177, 255, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(0, 40, 64, 0.8), rgba(0, 20, 26, 0.84));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 68px);
}

.compact-hero p,
.category-hero p {
    max-width: 760px;
}

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

.breadcrumb a {
    color: var(--ocean-400);
}

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

.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border: 1px solid rgba(26, 177, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.category-overview-card a,
.category-overview-card ul {
    position: relative;
    z-index: 2;
}

.category-name {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--ocean-400);
    font-size: 28px;
    font-weight: 800;
}

.category-overview-card p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.75;
}

.category-overview-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.category-overview-card li a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 20, 26, 0.52);
    color: #dff7ff;
}

.rank-table {
    overflow: hidden;
    border: 1px solid rgba(26, 177, 255, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(0, 40, 64, 0.56);
    box-shadow: var(--shadow);
}

.rank-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1.5fr) 100px 130px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(124, 184, 214, 0.12);
    color: var(--muted);
}

.rank-row:hover {
    background: rgba(0, 119, 179, 0.16);
    color: #ffffff;
}

.rank-title {
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.large-search {
    display: flex;
    gap: 10px;
    width: min(680px, 100%);
    margin-top: 26px;
    padding: 8px;
    border: 1px solid rgba(26, 177, 255, 0.22);
    border-radius: 18px;
    background: rgba(0, 20, 26, 0.5);
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(0, 13, 18, 0.98), rgba(0, 20, 26, 0.75), rgba(0, 13, 18, 0.94)),
        var(--hero-image) center / cover no-repeat;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 28%, rgba(26, 177, 255, 0.18), transparent 26rem),
        linear-gradient(180deg, transparent, var(--deep-950));
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(26, 177, 255, 0.3);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.46);
}

.detail-info h1 {
    font-size: clamp(42px, 6vw, 78px);
}

.detail-one-line {
    max-width: 790px;
    margin: 22px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 177, 255, 0.24);
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background:
        radial-gradient(circle, rgba(0, 153, 230, 0.18), transparent 16rem),
        rgba(0, 13, 18, 0.52);
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
    box-shadow: 0 18px 42px rgba(0, 153, 230, 0.28);
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 12px;
    z-index: 4;
    margin: 0;
    color: var(--muted);
}

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

.article-card {
    padding: 28px;
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    color: #d9eef8;
    line-height: 1.9;
    margin: 0 0 28px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-list div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 20, 26, 0.44);
}

.info-list dt {
    color: var(--ocean-400);
    font-weight: 700;
    margin-bottom: 6px;
}

.info-list dd {
    margin: 0;
    color: var(--text);
}

.site-footer {
    margin-top: 72px;
    padding: 48px 0;
    border-top: 1px solid rgba(26, 177, 255, 0.14);
    background: linear-gradient(180deg, rgba(0, 20, 26, 0.42), rgba(0, 13, 18, 0.95));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 22px;
}

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

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

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 880px) {
    .site-nav {
        min-height: 66px;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(26, 177, 255, 0.18);
        border-radius: 18px;
        background: rgba(0, 20, 26, 0.98);
    }

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    main,
    .page-main {
        padding-top: 112px;
    }

    .hero-slider {
        min-height: 660px;
    }

    .hero-content {
        padding-top: 84px;
    }

    .hero-poster {
        display: none;
    }

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

    .detail-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 24px;
    }

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

    .rank-row {
        grid-template-columns: 56px minmax(0, 1fr) 80px;
    }

    .rank-row span:nth-child(4),
    .rank-row span:nth-child(5) {
        display: none;
    }
}

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

    .brand-text small,
    .quick-categories {
        display: none;
    }

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

    .hero-slider {
        min-height: 610px;
    }

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

    .hero-text,
    .detail-one-line,
    .page-hero p {
        font-size: 15px;
    }

    .section-block {
        padding-top: 38px;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .wide-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .article-card {
        padding: 24px;
    }

    .detail-hero {
        min-height: 720px;
        padding-top: 40px;
    }

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

    .detail-cover {
        max-width: 210px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .large-search {
        flex-direction: column;
    }
}
