:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.92);
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --cyan: #22d3ee;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.38);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

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

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

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

.nav-search input,
.mobile-search input,
.inline-filter input {
    min-width: 260px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    color: var(--text);
    outline: none;
    padding: 11px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    padding: 11px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
}

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

.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,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.24) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 76px 24px 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow,
.hero-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.82);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-content h1,
.hero-content h2 {
    max-width: 850px;
    margin: 18px 0 0;
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

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

.hero-content h2 {
    font-size: clamp(28px, 4vw, 52px);
}

.hero-one-line {
    max-width: 720px;
    margin: 18px 0 0;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-summary {
    max-width: 700px;
    margin: 14px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    padding: 0 22px;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.34);
}

.ghost-btn,
.section-more {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    padding: 0 18px;
}

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

.ghost-btn:hover,
.section-more:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(30, 41, 59, 0.86);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: white;
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    cursor: pointer;
}

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

.content-section,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.first-section {
    padding-top: 28px;
}

.section-head,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-head h2,
.category-overview-head h2,
.detail-text h2 {
    margin: 10px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chips a {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: #e2e8f0;
    padding: 14px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.category-chips a:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(37, 99, 235, 0.24);
    transform: translateY(-2px);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.08));
}

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

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

.poster-play {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    justify-content: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    font-size: 14px;
    font-weight: 900;
    padding: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

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

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

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

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

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

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

.tag-row span {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    font-size: 12px;
    padding: 5px 9px;
}

.page-hero {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.94) 50%, rgba(34, 211, 238, 0.1));
    box-shadow: var(--shadow);
}

.compact-hero {
    padding: 48px;
}

.page-hero h1 {
    margin: 18px 0 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 900;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.inline-filter {
    margin-top: 24px;
}

.inline-filter input {
    width: min(100%, 620px);
}

.category-overview-list {
    display: grid;
    gap: 28px;
    margin-top: 34px;
}

.category-overview-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    padding: 26px;
}

.category-overview-head h2 {
    margin: 0;
}

.category-overview-head p {
    max-width: 820px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #94a3b8;
    margin-bottom: 24px;
}

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

.detail-main {
    padding-top: 34px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.94));
    padding: 28px;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin: 16px 0 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 900;
}

.detail-one-line {
    max-width: 850px;
    margin: 18px 0 0;
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: #bfdbfe;
    font-weight: 800;
}

.detail-meta span {
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    padding: 7px 12px;
}

.detail-tags {
    margin: 18px 0 24px;
}

.player-section {
    margin-top: 36px;
}

.player-section h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: black;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(2, 6, 23, 0.42);
    cursor: pointer;
    padding: 0;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    filter: blur(1px) saturate(1.08);
}

.play-button {
    position: relative;
    z-index: 4;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: white;
    font-size: 38px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.46);
    padding-left: 5px;
}

.player-cover.is-hidden {
    display: none;
}

.detail-text {
    max-width: 980px;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
}

.detail-text p {
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 17px;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 28px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: flex-end;
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
    padding: 20px 24px;
}

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

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

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-stage {
        height: 590px;
        min-height: 72vh;
    }

    .hero-content {
        padding: 64px 20px 92px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .detail-poster {
        max-width: 320px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero-stage {
        height: 620px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content h2 {
        font-size: 30px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn {
        flex: 1 1 100%;
    }

    .content-section,
    .page-main {
        padding: 38px 16px;
    }

    .compact-hero {
        padding: 30px 22px;
    }

    .section-head,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 12px;
    }

    .detail-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}
