:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.88);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --text: #e5f6ff;
    --muted: #9fb6c8;
    --soft: #64748b;
    --line: rgba(103, 232, 249, 0.2);
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #2563eb;
    --radius: 24px;
    --shadow: 0 26px 80px rgba(2, 6, 23, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.18), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #06111f 46%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #00131a;
    background: linear-gradient(135deg, #67e8f9, #38bdf8, #2563eb);
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.36);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-nav a,
.footer-links a {
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover,
.footer-links a:hover {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.13);
}

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

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #e2e8f0;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

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

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

.hero-section {
    position: relative;
    min-height: 720px;
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 42px;
    padding: clamp(32px, 6vw, 72px);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

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

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #fff;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(40px, 6.2vw, 82px);
}

.hero-text,
.page-hero p,
.detail-one-line {
    margin: 22px 0 0;
    color: #d5e7f7;
    font-size: clamp(16px, 1.9vw, 21px);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(103, 232, 249, 0.22);
    border-radius: 999px;
    color: #dffbff;
    background: rgba(8, 47, 73, 0.54);
}

.hero-tags span,
.tag-row span {
    padding: 7px 12px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

.primary-button,
.hero-search button {
    color: #02131c;
    background: linear-gradient(135deg, #67e8f9, #38bdf8, #0ea5e9);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.3);
}

.secondary-button,
.ghost-button,
.section-link {
    color: #e0faff;
    border: 1px solid rgba(103, 232, 249, 0.28);
    background: rgba(15, 23, 42, 0.74);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.section-link:hover,
.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(34, 211, 238, 0.24);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.9));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

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

.hero-controls {
    position: absolute;
    left: clamp(32px, 6vw, 72px);
    bottom: 118px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.72);
}

.hero-search {
    position: absolute;
    left: clamp(32px, 6vw, 72px);
    right: clamp(32px, 6vw, 72px);
    bottom: 34px;
    z-index: 6;
    display: flex;
    gap: 12px;
    max-width: 720px;
    padding: 10px;
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(18px);
}

.hero-search input,
.search-box input,
.filter-selects select {
    width: 100%;
    border: 1px solid rgba(103, 232, 249, 0.2);
    color: #effcff;
    outline: none;
    background: rgba(15, 23, 42, 0.82);
}

.hero-search input {
    flex: 1;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
}

.content-section,
.page-hero,
.detail-hero,
.player-panel,
.detail-content,
.category-overview-grid {
    margin-top: 34px;
}

.content-section {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 70px rgba(2, 6, 23, 0.38);
}

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

.section-heading h2,
.text-panel h2,
.category-overview-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(103, 232, 249, 0.44);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.15), rgba(15, 23, 42, 0.95));
}

.poster-link img {
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.movie-card:hover .poster-link 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.86));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #02131c;
    font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #f97316);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.movie-meta-line span {
    padding: 4px 8px;
    font-size: 12px;
}

.movie-card h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.movie-card .tag-row {
    margin-top: 12px;
    gap: 6px;
}

.movie-card .tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.category-tile {
    min-height: 170px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.42);
}

.category-tile span {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    color: #bdd6e7;
    font-size: 14px;
    line-height: 1.6;
}

.page-hero {
    padding: clamp(34px, 6vw, 62px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.24), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.82));
    box-shadow: var(--shadow);
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
}

.category-cover {
    min-height: 220px;
    display: flex;
    align-items: end;
    padding: 16px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.category-cover span {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.category-overview-card p,
.category-preview,
.text-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-preview span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 14px;
    margin-bottom: 22px;
}

.search-box input,
.filter-selects select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
}

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

.filter-selects label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

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

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(24px, 5vw, 52px);
    align-items: center;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 84% 10%, rgba(14, 165, 233, 0.26), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.82));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(15, 23, 42, 0.94));
}

.detail-copy h1 {
    font-size: clamp(34px, 5.5vw, 64px);
}

.player-panel {
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(2, 6, 23, 0.86);
    box-shadow: var(--shadow);
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    z-index: 1;
}

.video-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(8, 47, 73, 0.42), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #02131c;
    font-size: 28px;
    background: linear-gradient(135deg, #67e8f9, #38bdf8, #0ea5e9);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.5);
}

.video-cover strong {
    font-size: 20px;
}

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

.text-panel {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
}

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

.info-table div {
    padding: 14px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
}

.info-table span {
    display: block;
    margin-bottom: 6px;
    color: var(--soft);
    font-size: 12px;
}

.info-table strong {
    color: #fff;
}

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

.site-footer {
    margin-top: 54px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

@media (max-width: 1100px) {
    .movie-grid,
    .wide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

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

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

    .hero-section {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-poster {
        width: min(240px, 62vw);
    }

    .hero-controls {
        bottom: 110px;
    }

    .hero-search {
        border-radius: 22px;
        flex-direction: column;
    }

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

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

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

    .detail-poster {
        width: min(270px, 80vw);
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    main,
    .page-main,
    .site-header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-section {
        min-height: 720px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 24px;
    }

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

    .hero-controls,
    .hero-search {
        left: 20px;
        right: 20px;
    }

    .movie-grid,
    .wide-grid,
    .category-grid,
    .filter-selects,
    .info-table {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-hero,
    .detail-hero,
    .player-panel,
    .text-panel {
        border-radius: 20px;
    }
}
