:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-solid: #111827;
    --line: rgba(148, 163, 184, 0.22);
    --line-strong: rgba(34, 211, 238, 0.35);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.18);
    --blue: #60a5fa;
    --green: #34d399;
    --orange: #fb923c;
    --danger: #f43f5e;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.20), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.65;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
    color: #020617;
    font-weight: 900;
}

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

.logo-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    margin-top: -3px;
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav-links a {
    position: relative;
    color: var(--muted-strong);
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: right 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-pill,
.menu-toggle {
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.68);
    border-radius: 999px;
    padding: 10px 15px;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.search-pill:hover,
.menu-toggle:hover {
    color: var(--cyan);
    border-color: var(--line-strong);
    background: rgba(34, 211, 238, 0.08);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 0 18px;
}

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

.mobile-panel a {
    display: block;
    padding: 13px 4px;
    color: var(--muted-strong);
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.hero {
    position: relative;
    height: min(82vh, 760px);
    min-height: 560px;
    overflow: hidden;
    background: var(--bg);
}

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

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

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.10) 42%, rgba(2, 6, 23, 0.25) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    align-items: center;
    padding-top: 22px;
}

.hero-content {
    width: min(700px, 100%);
    padding: 34px 0;
}

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

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 950;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.hero-desc {
    width: min(620px, 100%);
    margin: 22px 0 0;
    color: var(--muted-strong);
    font-size: clamp(16px, 2vw, 20px);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.meta-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.64);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #020617;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 44px rgba(34, 211, 238, 0.24);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line);
    background: rgba(15, 23, 42, 0.62);
}

.btn-ghost:hover {
    border-color: var(--line-strong);
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.34);
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(2, 6, 23, 0.46);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-control:hover {
    background: rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.45);
}

.hero-control.prev {
    left: max(18px, calc((100vw - 1180px) / 2 - 68px));
}

.hero-control.next {
    right: max(18px, calc((100vw - 1180px) / 2 - 68px));
}

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

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

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

.hero-side-card {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 96px;
    z-index: 4;
    width: min(350px, calc(100vw - 48px));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-side-card strong {
    display: block;
    font-size: 18px;
}

.hero-side-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section {
    padding: 58px 0;
}

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

.section-kicker {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.section-desc {
    width: min(660px, 100%);
    margin: 10px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 16px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    margin: 11px 0 0;
    color: var(--muted-strong);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.card-tags span {
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
}

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

.horizontal-card .poster-link {
    aspect-ratio: auto;
    height: 100%;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 70px 92px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: var(--line-strong);
}

.rank-number {
    color: var(--cyan);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0;
    font-size: 18px;
}

.rank-info h3 a:hover {
    color: var(--cyan);
}

.rank-info p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.rank-score {
    color: var(--orange);
    font-weight: 950;
    white-space: nowrap;
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.13), transparent),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
}

.category-card h3 {
    margin: 0;
    font-size: 21px;
}

.category-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.search-panel,
.filter-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.search-form,
.filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
}

.input,
.select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.56);
    padding: 0 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.search-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.38);
}

.search-result-card img {
    width: 70px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.search-result-card strong {
    display: block;
    font-size: 15px;
}

.search-result-card span {
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    padding: 72px 0 30px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    width: min(760px, 100%);
    margin: 16px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

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

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

.detail-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-desc {
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
}

.detail-block {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.66);
}

.detail-block h2,
.detail-block h3 {
    margin: 0 0 12px;
}

.detail-block p {
    margin: 0;
    color: var(--muted-strong);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--line-strong);
    background: #000;
    box-shadow: 0 28px 90px rgba(2, 6, 23, 0.62);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-cover span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 170px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #020617;
    font-weight: 950;
    box-shadow: 0 18px 58px rgba(34, 211, 238, 0.36);
}

.play-cover span::before {
    content: "▶";
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.14);
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.52);
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.footer-title {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.hidden-card {
    display: none !important;
}

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

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

    .hero-side-card {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .search-pill {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .logo {
        min-width: 0;
    }

    .logo-title {
        font-size: 19px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-control {
        display: none;
    }

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

    .search-form,
    .filter-form {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(360px, 100%);
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .navbar {
        min-height: 68px;
    }

    .logo-subtitle {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 680px;
    }

    .hero-inner {
        align-items: end;
        padding-bottom: 70px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .grid-4,
    .grid-5,
    .grid-2,
    .category-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        grid-template-columns: 112px 1fr;
        min-height: 170px;
    }

    .rank-item {
        grid-template-columns: 46px 74px 1fr;
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }
}
