:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(34, 211, 238, 0.22);
    --line-strong: rgba(34, 211, 238, 0.42);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-light: #cbd5e1;
    --brand: #22d3ee;
    --brand-deep: #0891b2;
    --accent: #67e8f9;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 30%),
        radial-gradient(circle at 78% 8%, rgba(14, 165, 233, 0.16), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22d3ee, #0284c7);
    color: #ffffff;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted-light);
    font-size: 15px;
    font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.section-more:hover,
.breadcrumb a:hover {
    color: var(--accent);
}

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

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 18px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 12px 8px;
    color: var(--muted-light);
}

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

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

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.02);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, transparent 42%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(1180px, calc(100% - 32px));
}

.hero-content > * {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-content h1,
.sub-hero h1,
.detail-info h1 {
    margin: 18px 0 16px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
    color: var(--muted-light);
}

.hero-meta span,
.detail-meta-list span {
    padding: 7px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
}

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

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

.primary-btn {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.28);
}

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

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

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--brand);
}

.page-stack {
    display: grid;
    gap: 56px;
    padding: 64px 0;
}

.site-section {
    position: relative;
}

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

.section-heading h2,
.player-section h2,
.content-panel h2 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 900;
}

.section-heading h2::before,
.player-section h2::before,
.content-panel h2::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--brand);
}

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

.intro-strip,
.featured-card,
.content-panel,
.player-section,
.ranking-strip {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.34));
    box-shadow: var(--shadow);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.intro-strip h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 900;
}

.intro-strip p,
.sub-hero p,
.featured-info p,
.content-panel p {
    margin: 0;
    color: var(--muted-light);
    line-height: 1.9;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 22px 58px rgba(8, 145, 178, 0.16);
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.3), rgba(15, 23, 42, 0.95));
}

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

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

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

.year-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.82);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.year-pill {
    right: 12px;
}

.rank-badge {
    left: 12px;
}

.play-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.92);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 850;
}

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

.movie-meta-row,
.movie-genre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.movie-genre {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    padding: 28px;
}

.featured-poster {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(8, 145, 178, 0.18);
}

.featured-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.featured-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
}

.featured-info h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 900;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.58);
}

.category-card a {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 210px;
}

.category-card-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.3), rgba(15, 23, 42, 0.95));
}

.category-card-images img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.category-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.category-card-body h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.category-card-body p {
    margin: 0 0 18px;
    color: var(--muted-light);
    line-height: 1.75;
}

.category-card-body span {
    color: var(--brand);
    font-weight: 850;
}

.ranking-list {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 46px 1fr 70px;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.36);
}

.ranking-list a:hover {
    border-color: var(--line-strong);
    background: rgba(8, 47, 73, 0.34);
}

.ranking-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent);
    font-weight: 900;
}

.ranking-list strong {
    color: #ffffff;
}

.ranking-list em {
    color: var(--muted);
    font-style: normal;
    text-align: right;
}

.sub-hero {
    padding: 76px 0 48px;
    background:
        radial-gradient(circle at 22% 12%, rgba(34, 211, 238, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.62));
    border-bottom: 1px solid var(--line);
}

.sub-hero h1 {
    max-width: 900px;
}

.sub-hero p {
    max-width: 760px;
    font-size: 18px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.86);
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.detail-hero {
    padding: 58px 0;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 14% 20%, rgba(34, 211, 238, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.72));
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.3), rgba(15, 23, 42, 0.95));
    box-shadow: var(--shadow);
}

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

.detail-one-line {
    max-width: 820px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

.player-section {
    padding: 28px;
}

.player-shell {
    position: relative;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.78)),
        radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 36%);
    color: #ffffff;
    cursor: pointer;
}

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

.player-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    box-shadow: 0 18px 50px rgba(6, 182, 212, 0.3);
    font-size: 34px;
    padding-left: 4px;
}

.player-cover strong {
    font-size: 24px;
}

.player-cover em {
    max-width: 80%;
    color: var(--muted-light);
    font-style: normal;
    text-align: center;
}

.content-panel {
    padding: 30px;
}

.content-panel h2 + p {
    margin-top: 18px;
}

.content-panel h2:not(:first-child) {
    margin-top: 34px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 34px;
}

.detail-columns h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 20px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.28);
}

.info-list span {
    color: var(--muted);
}

.info-list strong {
    color: #ffffff;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.footer-bottom {
    padding: 18px 16px 28px;
    color: #64748b;
    text-align: center;
}

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

    .mobile-menu-btn {
        display: block;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .featured-poster img {
        min-height: auto;
        max-height: 520px;
    }

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

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

@media (max-width: 640px) {
    .site-container {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 19px;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content h1,
    .sub-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-content p,
    .detail-one-line {
        font-size: 16px;
    }

    .intro-strip,
    .section-heading,
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .player-section,
    .content-panel,
    .intro-strip,
    .featured-card {
        padding: 20px;
        border-radius: 22px;
    }

    .ranking-list a {
        grid-template-columns: 40px 1fr;
    }

    .ranking-list em {
        grid-column: 2;
        text-align: left;
    }
}
