
:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-solid: #0f172a;
    --muted: #94a3b8;
    --text: #f8fafc;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --line: rgba(148, 163, 184, 0.18);
    --soft: rgba(6, 182, 212, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

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

.nav-shell,
.hero-inner,
.section-shell,
.footer-grid,
.footer-bottom,
.detail-shell,
.category-hero,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: white;
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.24);
    font-size: 16px;
}

.brand span:last-child,
.footer-brand strong {
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #cbd5e1;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.82);
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #cbd5e1;
    font-weight: 600;
}

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

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

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

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

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

.hero-overlay-left,
.hero-overlay-bottom {
    position: absolute;
    inset: 0;
}

.hero-overlay-left {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-overlay-bottom {
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 48%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.hero-badge,
.kicker,
.breadcrumb a,
.rating-pill,
.poster-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

.hero-badge {
    padding: 8px 14px;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1,
.hero h2 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 74px);
}

.hero h2 {
    font-size: clamp(34px, 5vw, 64px);
}

.hero p {
    margin: 22px 0 0;
    max-width: 680px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta,
.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
}

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

.hero-meta span,
.detail-meta span,
.meta-line span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

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

.btn-primary,
.btn-ghost,
.filter-button,
.hero-arrow,
.play-layer {
    border: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
}

.btn-primary {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    color: white;
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.22);
}

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

.btn-ghost {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.68);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: white;
    font-size: 30px;
    backdrop-filter: blur(14px);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: #475569;
    transition: width 0.24s ease, background 0.24s ease;
}

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

main {
    min-height: 50vh;
}

.section-shell {
    padding: 72px 0;
}

.section-block {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.64), rgba(30, 41, 59, 0.46));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(22px, 3vw, 38px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-lead {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.kicker {
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 250px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scrollbar-color: #334155 #0f172a;
}

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

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

.poster-card,
.movie-card-wide,
.compact-card,
.category-card,
.rank-row,
.detail-panel,
.player-section {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.poster-card,
.category-card {
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.poster-card:hover,
.movie-card-wide:hover,
.category-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.1);
}

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

.poster-wrap img,
.wide-poster img,
.compact-card img,
.detail-poster img,
.category-card img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover img,
.movie-card-wide:hover img,
.category-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.02) 55%);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    background: rgba(6, 182, 212, 0.9);
    color: white;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-score,
.rating-pill {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    font-weight: 900;
    color: white;
    background: rgba(15, 23, 42, 0.82);
}

.poster-info {
    padding: 14px;
}

.poster-info h3,
.wide-content h3,
.compact-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    transition: color 0.2s ease;
}

.poster-card:hover h3,
.movie-card-wide:hover h3,
.compact-card:hover h3 {
    color: var(--cyan);
}

.poster-info p,
.wide-content p,
.compact-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-card-wide {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 160px;
}

.wide-poster {
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.9);
}

.wide-content {
    padding: 20px 20px 18px;
    min-width: 0;
}

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

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

.compact-card {
    border-radius: 16px;
    overflow: hidden;
}

.compact-link {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 86px;
    padding-right: 14px;
}

.compact-link img {
    height: 86px;
}

.compact-link strong {
    color: #fde68a;
    font-size: 16px;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--line);
}

.search-box {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
}

.search-box input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: 0;
    border-radius: 16px;
    padding: 15px 16px;
    color: white;
    background: rgba(2, 6, 23, 0.68);
}

.search-box input:focus {
    border-color: rgba(34, 211, 238, 0.52);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.filter-groups,
.filter-group {
    display: grid;
    gap: 12px;
}

.filter-group {
    grid-template-columns: 58px repeat(auto-fit, minmax(78px, max-content));
    align-items: center;
}

.filter-group strong {
    color: #e2e8f0;
}

.filter-button {
    padding: 9px 14px;
    color: #cbd5e1;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.95);
}

.filter-button.is-active {
    color: white;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 28px rgba(6, 182, 212, 0.16);
}

.category-hero {
    padding: 58px 0 12px;
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-hero p {
    margin: 16px 0 0;
    max-width: 780px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 18px;
}

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

.category-card {
    padding: 22px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), rgba(15, 23, 42, 0.82) 42%);
}

.category-card h2 {
    margin: 14px 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-cover-strip img {
    height: 72px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 96px 1fr auto;
    align-items: center;
    gap: 18px;
    border-radius: 18px;
    overflow: hidden;
    padding: 12px 18px 12px 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rank-no {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.18);
    color: #a5f3fc;
    font-weight: 900;
}

.rank-row img {
    width: 96px;
    height: 120px;
    border-radius: 12px;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.rank-score {
    color: #fde68a;
    font-weight: 900;
    font-size: 24px;
}

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

.breadcrumb a {
    padding: 6px 10px;
}

.detail-shell {
    padding: 36px 0 74px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.player-section {
    border-radius: 28px;
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), rgba(2, 6, 23, 0.58));
}

.play-layer span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    font-size: 34px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 22px 50px rgba(6, 182, 212, 0.3);
}

.play-layer:hover span {
    transform: scale(1.06);
}

.player-box.is-playing .play-layer {
    display: none;
}

.detail-panel {
    border-radius: 28px;
    padding: clamp(22px, 3vw, 34px);
}

.detail-panel h1 {
    margin: 18px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.detail-panel h2 {
    margin: 34px 0 12px;
    font-size: 24px;
}

.detail-panel p {
    color: #cbd5e1;
    line-height: 2;
    margin: 0 0 16px;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
}

.side-card {
    border-radius: 24px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.side-card .compact-card + .compact-card {
    margin-top: 12px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.empty-state {
    display: none;
    padding: 38px;
    color: var(--muted);
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
}

.empty-state.is-visible {
    display: block;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .brand,
    .footer-brand {
        font-size: 20px;
    }

    .hero {
        height: 620px;
    }

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

    .hero-overlay-left {
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.36));
    }

    .hero-arrow {
        display: none;
    }

    .section-shell {
        padding: 44px 0;
    }

    .section-head {
        display: block;
    }

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

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

    .movie-card-link {
        grid-template-columns: 132px 1fr;
    }

    .wide-content {
        padding: 14px;
    }

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

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

    .rank-row {
        grid-template-columns: 40px 74px 1fr;
        gap: 12px;
        padding: 10px;
    }

    .rank-row img {
        width: 74px;
        height: 96px;
    }

    .rank-score {
        grid-column: 3;
        font-size: 18px;
    }

    .compact-link {
        grid-template-columns: 84px 1fr auto;
    }

    .compact-link img {
        height: 72px;
    }
}
