:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --yellow: #facc15;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 28rem), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

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

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), #2563eb 60%, #7c3aed);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.28);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.14);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
}

.hero {
    position: relative;
    height: 76vh;
    min-height: 620px;
    overflow: hidden;
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.28) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    padding-top: 40px;
}

.hero-kicker,
.detail-meta,
.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-kicker span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    border: 1px solid var(--line);
    font-size: 14px;
}

.hero-kicker span:first-child {
    background: rgba(6, 182, 212, 0.9);
    border-color: transparent;
    color: white;
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

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

.hero-summary {
    max-width: 700px;
    margin-top: 14px;
    color: #cbd5e1;
    line-height: 1.8;
}

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

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

.primary-btn {
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    color: white;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.38);
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid var(--line);
    color: #e2e8f0;
}

.ghost-btn:hover {
    border-color: rgba(6, 182, 212, 0.48);
    color: #ffffff;
}

.hero-poster a {
    display: block;
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    border: 0;
    padding: 0;
}

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

.quick-entry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -54px;
    position: relative;
    z-index: 8;
}

.quick-entry a {
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.quick-entry strong,
.quick-entry span {
    display: block;
}

.quick-entry strong {
    font-size: 20px;
}

.quick-entry span {
    margin-top: 6px;
    color: var(--muted);
}

.section-block,
.page-main {
    padding: 72px 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-more,
.text-link {
    color: #67e8f9;
    font-weight: 800;
}

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.38);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
}

.score-badge,
.play-chip {
    position: absolute;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.score-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    background: rgba(250, 204, 21, 0.94);
    color: #1f2937;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    background: rgba(6, 182, 212, 0.92);
    color: white;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #67e8f9;
}

.card-body p {
    margin: 0 0 12px;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.meta-row {
    color: #cbd5e1;
    font-size: 13px;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    color: #a5f3fc;
    font-size: 12px;
}

.rank-band {
    padding: 72px 0;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.7), rgba(15, 23, 42, 0.42));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.44);
    border: 1px solid var(--line);
}

.rank-row span {
    color: var(--yellow);
    font-weight: 950;
}

.rank-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.category-overview {
    display: grid;
    gap: 28px;
}

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

.compact-head {
    margin-bottom: 10px;
}

.strip-intro {
    color: var(--muted);
    margin: 0 0 18px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.mini-card img {
    width: 56px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 56px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(30, 41, 59, 0.68));
    border: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.8;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px 170px;
    gap: 14px;
    margin: 28px 0;
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.68);
    color: var(--text);
    padding: 0 14px;
    outline: none;
}

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

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

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 24px;
    text-align: center;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--muted);
}

.empty-state.show {
    display: block;
}

.category-grid-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.category-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
}

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

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

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

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

.ranking-list-page {
    display: grid;
    gap: 16px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
}

.ranking-poster {
    position: relative;
}

.ranking-poster span {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.95);
    color: #111827;
    font-weight: 950;
}

.ranking-poster img {
    width: 120px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-card h2 {
    margin: 4px 0 10px;
}

.ranking-card p {
    color: #cbd5e1;
    line-height: 1.75;
}

.detail-main {
    min-height: 100vh;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)), var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(0px);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
    min-height: 560px;
    padding: 64px 0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a5f3fc;
    margin-bottom: 18px;
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 72px);
}

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

.detail-tags {
    margin-top: 18px;
}

.player-section {
    margin-top: -42px;
    position: relative;
    z-index: 3;
}

.video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.video-overlay.hidden {
    display: none;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.32);
    font-size: 28px;
}

.video-overlay strong {
    font-size: 24px;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-top: 42px;
}

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

.story-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-grid p {
    max-width: 620px;
    color: var(--muted);
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 10px;
    min-width: 150px;
}

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

@media (max-width: 1080px) {
    .hero-content {
        grid-template-columns: 1fr 260px;
    }

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

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

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

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

@media (max-width: 780px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid var(--line);
    }

    .nav-menu.open {
        display: flex;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 72px 0;
    }

    .hero-poster {
        max-width: 230px;
    }

    .quick-entry,
    .category-grid-page,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .quick-entry {
        margin-top: 24px;
    }

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

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

    .rank-list,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 32px 22px;
    }

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px 0 78px;
    }

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

    .ranking-card {
        grid-template-columns: 86px 1fr;
    }

    .ranking-poster img {
        width: 86px;
        height: 116px;
    }
}

@media (max-width: 480px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

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

    .movie-grid,
    .featured-grid,
    .listing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

    .meta-row {
        gap: 6px;
    }
}
