:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #0f172a;
    --muted: #94a3b8;
    --text: #f8fafc;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --emerald: #34d399;
    --orange: #fb923c;
    --border: rgba(34, 211, 238, 0.2);
    --radius: 22px;
    --shadow: 0 24px 80px rgba(8, 145, 178, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(30, 64, 175, 0.2), transparent 28rem),
        var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(22px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 20px;
    background: linear-gradient(90deg, #67e8f9, #38bdf8, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    overflow: hidden;
}

.main-nav a {
    padding: 8px 12px;
    color: #cbd5e1;
    border-radius: 999px;
    font-size: 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
    background: rgba(34, 211, 238, 0.14);
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    width: min(320px, 32vw);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
}

.top-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 12px 9px 16px;
    color: #e2e8f0;
    border: 0;
    outline: 0;
    background: transparent;
}

.top-search button,
.hero-search button,
.filter-search button {
    border: 0;
    color: #00111a;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #e2e8f0;
}

.hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.26)),
        linear-gradient(0deg, #020617, transparent 30%, rgba(2, 6, 23, 0.35));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 76vh;
    display: flex;
    align-items: center;
    padding: 110px 0 170px;
}

.hero-copy {
    width: min(760px, 100%);
}

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero h1,
.hero h2 {
    font-size: clamp(38px, 7vw, 78px);
    background: linear-gradient(90deg, #fff, #cffafe, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-movie-title {
    margin-top: 10px !important;
    font-size: clamp(28px, 4vw, 52px) !important;
}

.hero p {
    width: min(720px, 100%);
    margin: 22px 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2.2vw, 21px);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    padding: 5px 10px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.68);
    font-size: 13px;
}

.hero-actions,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
    padding: 12px 22px;
    color: #00111a;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
}

.ghost-btn {
    padding: 11px 20px;
    color: #dbeafe;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(15, 23, 42, 0.48);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-dot {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 16px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.hero-dot.is-active {
    border-color: rgba(34, 211, 238, 0.7);
    background: rgba(8, 145, 178, 0.24);
}

.hero-dot img {
    width: 54px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-dot span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 13px;
}

.quick-search-section {
    position: relative;
    z-index: 20;
    margin-top: -26px;
    padding: 18px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search {
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(2, 6, 23, 0.72);
}

.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #f8fafc;
    background: transparent;
    padding: 16px 18px;
}

.quick-links a {
    color: #cbd5e1;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.09);
}

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

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.content-card h2,
.ranking-panel h3 {
    margin: 0;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.text-link {
    color: var(--cyan);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(15, 23, 42, 0.82)),
        var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: var(--shadow);
}

.category-thumbs {
    display: flex;
    align-items: center;
    min-height: 86px;
}

.category-thumbs img {
    width: 76px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.category-thumbs img + img {
    margin-left: -18px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-card > span {
    width: fit-content;
    color: var(--cyan);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.13);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.46);
    box-shadow: 0 18px 60px rgba(8, 145, 178, 0.22);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.82));
}

.play-chip,
.type-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
}

.play-chip {
    right: 14px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #00111a;
    background: #67e8f9;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}

.type-chip {
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #fb923c, #f97316);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.32;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

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

.card-meta {
    margin-bottom: 10px;
    gap: 6px;
}

.card-meta span {
    padding: 3px 8px;
    font-size: 12px;
}

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

.tag-row span,
.detail-tags a {
    padding: 4px 8px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.18);
    font-size: 12px;
}

.feature-band {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), #020617);
    border-top: 1px solid rgba(34, 211, 238, 0.14);
    border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
}

.feature-band p {
    color: #cbd5e1;
    max-width: 620px;
}

.ranking-panel,
.content-card,
.filter-panel {
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.ranking-panel {
    padding: 22px;
}

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

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

.line-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.line-card:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(8, 145, 178, 0.16);
}

.line-card img {
    width: 84px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    flex: 0 0 auto;
}

.line-info {
    min-width: 0;
}

.line-info strong,
.line-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-info strong {
    color: #f8fafc;
}

.line-info em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.line-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-size: 12px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 72px;
    background:
        radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin: 0;
}

.page-hero p {
    max-width: 780px;
    color: #cbd5e1;
}

.filter-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(14px);
}

.filter-search {
    display: flex;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.62);
}

.filter-search input {
    flex: 1;
    min-width: 0;
    color: #f8fafc;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 14px 16px;
}

.filter-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.filter-selects select {
    width: 100%;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 14px;
    color: #e2e8f0;
    background: #0f172a;
    padding: 12px 14px;
    outline: 0;
}

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(34, 211, 238, 0.25);
    border-radius: var(--radius);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #020617;
}

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

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.05);
    opacity: 0.45;
}

.detail-mask {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62)),
        linear-gradient(0deg, #020617, transparent 42%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    padding: 40px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 28px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 30px;
    align-items: center;
}

.player-card {
    border-radius: 26px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
    padding: 12px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    cursor: pointer;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: pointer;
}

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

.big-play {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #00111a;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    box-shadow: 0 22px 48px rgba(34, 211, 238, 0.38);
    font-size: 34px;
    cursor: pointer;
    transform: translateZ(0);
}

.detail-info h1 {
    font-size: clamp(36px, 5.8vw, 66px);
}

.detail-one-line {
    color: #cbd5e1;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-content {
    padding: 42px 0 70px;
}

.content-card {
    padding: 26px;
    margin-bottom: 20px;
}

.content-card p {
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 17px;
}

.related-block {
    padding-top: 30px;
}

.site-footer {
    border-top: 1px solid rgba(34, 211, 238, 0.14);
    background: rgba(2, 6, 23, 0.92);
    padding: 34px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
}

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

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

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

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

@media (max-width: 820px) {
    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 74px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        overflow-y: auto;
        background: rgba(2, 6, 23, 0.96);
        border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 13px 14px;
    }

    .hero-content {
        padding: 90px 0 220px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.64)),
            linear-gradient(0deg, #020617, transparent 36%);
    }

    .hero-dots {
        grid-template-columns: 1fr;
        bottom: 24px;
    }

    .hero-dot:nth-child(n + 4) {
        display: none;
    }

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

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

    .filter-selects {
        grid-template-columns: 1fr;
    }

    .row-heading,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .brand {
        font-size: 18px;
    }

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

    .hero-movie-title {
        font-size: 30px !important;
    }

    .hero-search,
    .filter-search {
        flex-direction: column;
    }

    .hero-search button,
    .filter-search button {
        width: 100%;
    }

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

    .poster-link {
        aspect-ratio: 16 / 9;
    }

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

    .content-card {
        padding: 20px;
    }
}
