:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.86);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #3b82f6;
    --blue-deep: #1d4ed8;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --yellow: #facc15;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    min-height: 100vh;
}

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;
    color: #fff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #60a5fa, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.26);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: #dbeafe;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #67e8f9;
    transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.search-box input {
    width: 230px;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.search-box button,
.cta-button,
.outline-button {
    border: 0;
    cursor: pointer;
    color: #fff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.24);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.cta-button:hover,
.outline-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.outline-button {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.62);
}

.mobile-link.is-active {
    color: #67e8f9;
}

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

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

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

.hero-media {
    position: absolute;
    inset: 0;
}

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.08) 48%, rgba(2, 6, 23, 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 0 0 76px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cffafe;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.28);
}

.hero h1,
.hero h2 {
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.78;
}

.hero-meta,
.hero-actions,
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-meta {
    margin: 24px 0;
}

.hero-pill,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0f2fe;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    padding: 7px 11px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-pill.hot {
    color: #fef3c7;
    background: rgba(250, 204, 21, 0.16);
    border-color: rgba(250, 204, 21, 0.28);
}

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

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

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

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(2, 6, 23, 0.54);
    cursor: pointer;
    font-size: 28px;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.8);
    transform: translateY(-2px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.main-shell,
.category-shell,
.detail-shell,
.search-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.main-shell {
    padding: 70px 0 96px;
}

.content-section {
    margin: 0 0 86px;
}

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

.section-heading h2,
.page-heading h1,
.detail-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p,
.detail-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    flex: 0 0 auto;
    color: #67e8f9;
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

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

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-small .poster-wrap {
    aspect-ratio: 16 / 22;
}

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

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

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

.score,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    color: #fff;
    backdrop-filter: blur(10px);
}

.score {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #fde68a;
    background: rgba(2, 6, 23, 0.68);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f97316, #e11d48);
}

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

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 30px;
}

.movie-card h3 {
    margin: 13px 0 9px;
    color: #fff;
    font-size: 20px;
    line-height: 1.28;
}

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

.movie-card p {
    margin: 0;
    color: #aebdd0;
    line-height: 1.7;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #93c5fd;
    font-weight: 800;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    padding: 26px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.28), transparent 45%),
        linear-gradient(135deg, rgba(30, 64, 175, 0.78), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
}

.category-tile h3 {
    margin: 0 0 12px;
    font-size: 25px;
}

.category-tile p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.category-shell,
.search-shell,
.detail-shell {
    padding: 56px 0 96px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #93c5fd;
    font-weight: 700;
}

.breadcrumb span {
    color: #64748b;
}

.filter-bar,
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--line);
}

.filter-bar input,
.search-box input {
    width: min(520px, 100%);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 42px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

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

.detail-info h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-info .lead {
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.85;
}

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

.info-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
}

.info-item span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 5px;
}

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

.player-section {
    margin: 42px 0 64px;
}

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

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 0;
    background: #020617;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18), rgba(2, 6, 23, 0.72));
}

.play-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 32px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 42px rgba(59, 130, 246, 0.42);
}

.play-inner strong {
    font-size: 22px;
}

.article-block {
    margin: 0 0 50px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--line);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-block p {
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.95;
    font-size: 16px;
}

.article-block p:last-child {
    margin-bottom: 0;
}

.search-results-empty {
    padding: 38px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    color: #cbd5e1;
}

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

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: start;
}

.footer-grid p {
    max-width: 560px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px 26px;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

@media (max-width: 760px) {
    .nav-shell,
    .main-shell,
    .category-shell,
    .detail-shell,
    .search-shell,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1200px);
    }

    .brand {
        font-size: 21px;
    }

    .hero {
        height: 76vh;
        min-height: 600px;
    }

    .hero-content {
        padding-bottom: 86px;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .hero-arrow {
        display: none;
    }

    .main-shell,
    .category-shell,
    .search-shell,
    .detail-shell {
        padding-top: 38px;
    }

    .section-heading,
    .page-heading,
    .detail-heading {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 16px;
    }

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

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

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

    .movie-card p {
        display: none;
    }

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

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

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

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

    .player-box {
        border-radius: 18px;
    }

    .article-block {
        padding: 20px;
    }

    .filter-bar,
    .search-box {
        display: grid;
    }

    .mobile-search input,
    .filter-bar input,
    .search-box input {
        width: 100%;
    }

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

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

@media (max-width: 420px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta,
    .hero-actions {
        gap: 9px;
    }

    .cta-button,
    .outline-button {
        width: 100%;
        text-align: center;
    }
}
