
:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.76);
    --panel-strong: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #38bdf8;
    --blue-deep: #2563eb;
    --cyan: #22d3ee;
    --teal: #14b8a6;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.46);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.22), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.14), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #08111f 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.nav-inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand {
    min-width: max-content;
    font-size: 20px;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.26);
}

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

.desktop-nav a,
.mobile-panel a {
    transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--blue);
}

.nav-search,
.mobile-search,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #e5f3ff;
    background: rgba(15, 23, 42, 0.78);
    outline: none;
    border-radius: 999px;
    padding: 10px 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 220px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.page-home {
    padding-top: 88px;
}

.page-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 56px;
}

.hero-carousel {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    height: 540px;
    margin: 0 auto 34px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-deep), var(--cyan), var(--teal));
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.06) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.12) 100%),
        radial-gradient(circle at 26% 28%, rgba(56, 189, 248, 0.24), transparent 28rem),
        linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(20, 184, 166, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 80px 66px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #bae6fd;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

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

.hero-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    max-width: 760px;
}

.hero-content p {
    margin: 20px 0 0;
    max-width: 620px;
    color: #dbeafe;
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.5);
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
    color: #e0f2fe;
    border: 1px solid rgba(125, 211, 252, 0.24);
    background: rgba(15, 23, 42, 0.52);
}

.hero-control {
    position: absolute;
    z-index: 4;
    right: 34px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.52;
}

.hero-dot.is-active {
    width: 30px;
    opacity: 1;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.page-wrap .content-section {
    width: 100%;
}

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

.section-head h2,
.rank-panel h2,
.story-card h2,
.site-footer h2 {
    margin: 0;
    color: #ffffff;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p,
.story-card p,
.site-footer p {
    color: var(--muted);
}

.section-head p {
    margin: 6px 0 0;
}

.section-more {
    color: var(--blue);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.category-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.2);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.92));
}

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

.category-card strong {
    bottom: 56px;
    color: #ffffff;
    font-size: 22px;
}

.category-card p {
    bottom: 18px;
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.88));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-horizontal {
    flex-direction: row;
}

.poster-box {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.36), rgba(20, 184, 166, 0.22));
}

.movie-card-horizontal .poster-box {
    width: 210px;
    flex: 0 0 210px;
    aspect-ratio: 16 / 12;
}

.poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.82));
}

.poster-badge,
.poster-score,
.play-dot {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.72);
}

.poster-score {
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-dot {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-info {
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.card-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.34;
}

.card-info p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #93c5fd;
    font-size: 12px;
}

.meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #64748b;
}

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

.rank-panel,
.story-card,
.feature-band,
.filter-panel,
.page-title,
.detail-hero,
.watch-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.rank-panel {
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 88px;
}

.rank-panel h2 {
    margin-bottom: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-num {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
    font-weight: 900;
}

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

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

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

.rank-list {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.rank-list.columns {
    columns: 2;
    column-gap: 30px;
}

.rank-list.columns .rank-item {
    break-inside: avoid;
}

.feature-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.24), transparent 26rem),
        linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.88));
}

.feature-band h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.feature-band p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #dbeafe;
}

.page-title {
    padding: 34px;
    margin-bottom: 30px;
    background:
        radial-gradient(circle at 16% 0%, rgba(56, 189, 248, 0.16), transparent 24rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(17, 24, 39, 0.78));
}

.page-title h1 {
    font-size: clamp(36px, 5vw, 60px);
}

.page-title p {
    max-width: 780px;
    margin: 14px 0 0;
    font-size: 17px;
}

.filter-panel {
    width: 100%;
    margin-bottom: 28px;
    padding: 18px;
}

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

.filter-panel select {
    min-width: 160px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #bfdbfe;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    margin-bottom: 30px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(20, 184, 166, 0.2));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

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

.lead {
    max-width: 820px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta span {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(2, 6, 23, 0.32);
}

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

.watch-section {
    padding: 24px;
    margin-bottom: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.34);
    font-size: 34px;
}

.player-overlay strong {
    max-width: min(80%, 620px);
    font-size: 22px;
    text-align: center;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    padding: 26px;
}

.story-card h2 {
    margin-bottom: 12px;
}

.story-card p {
    margin: 0;
    font-size: 16px;
}

.site-footer {
    padding: 56px 0 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(0, 0, 0, 0.96));
    border-top: 1px solid var(--line);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 30px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    margin: 14px 0 0;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: var(--blue);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .site-header.is-open .mobile-panel {
        display: block;
    }

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

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

    .split-layout,
    .rank-grid,
    .detail-hero,
    .story-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

@media (max-width: 780px) {
    .nav-inner {
        width: min(100% - 24px, 1240px);
        gap: 12px;
    }

    .brand span:last-child {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .mobile-search {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .page-home {
        padding-top: 82px;
    }

    .hero-carousel {
        width: min(100% - 24px, 1240px);
        height: 560px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 52px 24px;
    }

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

    .hero-control {
        left: 20px;
        right: 20px;
        justify-content: space-between;
    }

    .content-section,
    .page-wrap {
        width: min(100% - 24px, 1240px);
    }

    .page-wrap {
        padding-top: 96px;
    }

    .section-head,
    .feature-band {
        align-items: stretch;
        flex-direction: column;
    }

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

    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

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

    .detail-hero,
    .watch-section,
    .page-title,
    .feature-band,
    .story-card {
        padding: 20px;
    }

    .detail-cover img {
        min-height: 300px;
    }

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

    .rank-list.columns {
        columns: 1;
    }
}
