:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(34, 211, 238, 0.18);
    --line-soft: rgba(148, 163, 184, 0.16);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --dim: #64748b;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --yellow: #facc15;
    --shadow: 0 24px 80px rgba(8, 145, 178, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
        radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #08111f 46%, #020617 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
}

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: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #02111f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 16px;
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.38);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
}

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 14px 20px 20px;
    border-top: 1px solid var(--line-soft);
    background: rgba(2, 6, 23, 0.98);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero {
    position: relative;
    min-height: 720px;
    padding-top: 96px;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.10);
}

.hero-stage {
    position: relative;
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    right: 0;
    left: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 720px;
    z-index: -1;
    background-position: center;
    background-size: cover;
    filter: saturate(1.15);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), #020617 96%);
}

.eyebrow,
.detail-kicker,
.page-hero span,
.section-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #f8fafc;
}

.hero-content p,
.page-hero p,
.detail-line {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #cbd5e1;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

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

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

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

.hero-poster {
    position: relative;
    display: block;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(15, 23, 42, 0.80);
    box-shadow: var(--shadow);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.72));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-poster:hover img,
.poster-wrap:hover img {
    transform: scale(1.05);
}

.hero-control {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(203, 213, 225, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.page-main {
    padding-top: 112px;
}

.page-hero,
.detail-hero,
.filter-panel,
.section-block,
.player-section,
.detail-content article,
.category-panel,
.rank-list {
    position: relative;
    margin-bottom: 34px;
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.90), rgba(2, 6, 23, 0.78));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.page-hero {
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.12);
    filter: blur(10px);
}

.page-hero.slim {
    min-height: 220px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: center;
}

.filter-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.filter-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 0.45fr));
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(2, 6, 23, 0.78);
    outline: none;
}

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

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

.section-title h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    color: #f8fafc;
}

.section-title a {
    color: var(--cyan);
    font-weight: 800;
}

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

.category-tile,
.category-panel-title {
    display: block;
    padding: 18px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.44);
    background: rgba(8, 47, 73, 0.38);
}

.category-tile span,
.category-panel-title {
    display: block;
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 850;
}

.category-tile strong {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.56);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 20px 46px rgba(8, 145, 178, 0.15);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
}

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.78));
}

.poster-shine {
    position: absolute;
    top: -40%;
    left: -80%;
    z-index: 3;
    width: 55%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: rotate(18deg);
    transition: left 0.5s ease;
}

.poster-wrap:hover .poster-shine {
    left: 125%;
}

.score,
.rank-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    min-width: 44px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.rank-badge {
    right: auto;
    left: 12px;
    color: #ecfeff;
    background: rgba(8, 145, 178, 0.84);
}

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

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.36;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover {
    color: var(--cyan);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.movie-card.compact p {
    min-height: 0;
}

.tag-list.large span {
    font-size: 13px;
}

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

.category-panel {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-panel-title {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cyan);
}

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

.category-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-panel-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    font-size: 13px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 76px minmax(0, 1fr) 64px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.45);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #04111f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 950;
}

.rank-cover {
    overflow: hidden;
    width: 76px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

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

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

.rank-content p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.65;
}

.rank-score {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 950;
    text-align: right;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    overflow: hidden;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 10px;
    align-content: center;
    border: 0;
    color: #f8fafc;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.24), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

.video-shell.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    color: #04111f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 54px rgba(34, 211, 238, 0.42);
    font-size: 30px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-content h2 {
    margin: 0 0 14px;
    color: #f8fafc;
}

.detail-content p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.site-footer {
    margin-top: 50px;
    padding: 44px 0 24px;
    border-top: 1px solid var(--line-soft);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 22px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

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

.copyright {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: 13px;
}

.hidden-by-filter {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slide,
    .detail-hero,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero {
        min-height: 620px;
        padding-top: 82px;
    }

    .hero-stage {
        min-height: 520px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

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

    .page-main {
        padding-top: 86px;
    }

    .page-hero,
    .detail-hero,
    .filter-panel,
    .section-block,
    .player-section,
    .detail-content article,
    .category-panel,
    .rank-list {
        padding: 20px;
        border-radius: 20px;
    }

    .movie-grid,
    .rank-grid,
    .category-grid,
    .category-panels,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 46px 62px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
        font-size: 16px;
    }

    .rank-content p {
        display: none;
    }

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