:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(103, 232, 249, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --orange: #fb923c;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.35);
}

* {
    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(34, 211, 238, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #00111a;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.42);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 22px;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--soft);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(34, 211, 238, 0.13);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
}

main {
    padding-bottom: 64px;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.02);
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 32%, transparent 0%, rgba(2, 6, 23, 0.22) 26%, rgba(2, 6, 23, 0.8) 62%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.7) 42%, rgba(2, 6, 23, 0.28));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: clamp(64px, 10vw, 112px);
    width: min(670px, calc(100% - 48px));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-intro h1 {
    margin: 12px 0 0;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    font-size: clamp(30px, 5vw, 58px);
}

.hero-content p,
.page-hero p,
.detail-intro p,
.section-heading p {
    max-width: 760px;
    color: var(--soft);
}

.hero-content p {
    margin: 18px 0 0;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta,
.filter-row,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.62);
}

.hero-actions {
    margin-top: 28px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.26);
}

.ghost-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(15, 23, 42, 0.58);
}

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

.ghost-button.small {
    min-height: 38px;
    padding: 0 16px;
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: 34px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

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

.home-category-strip,
.search-panel,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-content {
    margin-top: 34px;
}

.home-category-strip,
.search-panel,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-content,
.site-footer {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 20px 70px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(16px);
}

.home-category-strip,
.search-panel,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-content {
    padding: clamp(22px, 4vw, 40px);
}

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

.strip-head h2,
.section-heading h2,
.detail-text-block h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.strip-head a {
    color: var(--cyan);
    font-weight: 800;
}

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

.category-card,
.category-overview-card,
.ranking-lead-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.84), rgba(8, 47, 73, 0.34));
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card {
    padding: 18px;
}

.category-card:hover,
.category-overview-card:hover,
.ranking-lead-card:hover,
.movie-card:hover,
.small-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.36);
}

.category-card span,
.category-main-link span {
    color: var(--text);
    font-weight: 900;
    font-size: 18px;
}

.category-card p,
.category-main-link p,
.small-card p,
.movie-info p {
    color: var(--muted);
}

.category-main-link {
    display: block;
    padding: 22px;
}

.category-sample-links {
    display: grid;
    gap: 8px;
    padding: 0 22px 22px;
}

.category-sample-links a {
    color: var(--soft);
    font-size: 14px;
}

.category-sample-links a:hover,
.movie-info a:hover,
.small-card a:hover {
    color: var(--cyan);
}

.search-panel .inline-heading {
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(420px, 100%);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.5);
}

.search-box span {
    color: var(--cyan);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.search-box input::placeholder {
    color: #64748b;
}

.filter-row {
    margin-top: 16px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #00111a;
    background: var(--cyan);
}

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

.movie-card {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

.poster-link img,
.small-card img,
.detail-poster img,
.ranking-lead-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.small-card:hover img,
.ranking-lead-card:hover img {
    transform: scale(1.06);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.card-badge,
.card-score {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    color: #00111a;
    background: var(--cyan);
}

.card-score {
    right: 12px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.movie-info {
    padding: 16px;
}

.movie-info h3,
.small-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info p,
.small-card p {
    margin: 8px 0 12px;
    font-size: 14px;
}

.movie-meta {
    gap: 7px;
    font-size: 12px;
}

.tag-row {
    margin-top: 12px;
    gap: 6px;
    font-size: 12px;
}

.small-card-grid,
.ranking-lead-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.small-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.small-card a:first-child {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
}

.small-card a:first-child span {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #00111a;
    font-size: 12px;
    font-weight: 900;
    background: var(--cyan);
}

.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.52));
}

.compact-hero h1 {
    margin-top: 10px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(24px, 5vw, 54px);
    align-items: end;
}

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

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

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 26px 90px rgba(2, 6, 23, 0.55);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    outline: 0;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    border: 0;
    color: var(--text);
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.24), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(34, 211, 238, 0.7);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.65);
    box-shadow: 0 0 48px rgba(34, 211, 238, 0.35);
}

.play-triangle {
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--cyan);
}

.detail-content {
    display: grid;
    gap: 28px;
}

.detail-text-block p {
    color: var(--soft);
    font-size: 17px;
}

.ranking-lead-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 16px;
}

.ranking-lead-card > a {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
}

.rank-number {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #00111a;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 24px;
    padding: 26px;
}

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

.footer-inner p {
    margin: 6px 0 0;
    color: var(--muted);
}

.footer-inner a {
    color: var(--cyan);
    font-weight: 800;
}

.movie-card.is-hidden,
.small-card.is-hidden {
    display: none;
}

@media (max-width: 980px) {
    .movie-grid,
    .category-strip-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .small-card-grid,
    .ranking-lead-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .header-inner {
        height: 68px;
    }

    .menu-button {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero-slider {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-layer {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.94) 58%);
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 72px;
        width: auto;
    }

    .strip-head,
    .section-heading,
    .inline-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .movie-grid,
    .category-strip-grid,
    .category-overview-grid,
    .small-card-grid,
    .ranking-lead-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(260px, 78vw);
    }

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

@media (max-width: 460px) {
    .header-inner,
    .footer-inner,
    main {
        width: min(100% - 22px, 1180px);
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

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

    .logo-text small {
        font-size: 10px;
    }

    .hero-slider {
        min-height: 520px;
        margin-top: 14px;
    }

    .home-category-strip,
    .search-panel,
    .content-section,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content {
        padding: 18px;
        border-radius: 20px;
    }

    .movie-grid {
        gap: 12px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info p,
    .tag-row {
        display: none;
    }

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