:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.58);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #10b981;
    --accent-soft: rgba(16, 185, 129, 0.16);
    --accent-deep: #059669;
    --gold: #facc15;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34rem),
        radial-gradient(circle at 82% 8%, rgba(20, 184, 166, 0.11), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #08111f 42%, #020617 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.no-scroll {
    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: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.32);
    font-size: 15px;
}

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

.site-nav a {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-weight: 700;
    transition: 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: white;
    background: var(--accent-soft);
}

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

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

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

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

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

.hero-slide.is-active img {
    animation: heroZoom 7s ease forwards;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 76px 0 92px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.11);
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hero p {
    max-width: 650px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

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

.hero-meta {
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 13px;
    font-weight: 750;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    transition: 0.22s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 16px 42px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(16, 185, 129, 0.36);
}

.btn-ghost {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.62);
}

.btn-ghost:hover {
    color: white;
    background: rgba(30, 41, 59, 0.86);
}

.hero-tools {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: 0.22s ease;
}

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

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrows button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.56);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-arrows button:hover {
    background: rgba(16, 185, 129, 0.76);
}

.search-panel {
    margin-top: -38px;
    position: relative;
    z-index: 8;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box input,
.search-toolbar input,
.search-toolbar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    color: white;
    background: rgba(2, 6, 23, 0.66);
    outline: none;
}

.search-box input {
    min-height: 50px;
    padding: 0 18px;
}

.search-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.search-toolbar input,
.search-toolbar select {
    height: 48px;
    padding: 0 14px;
}

.page-hero {
    padding: 74px 0 34px;
}

.page-hero h1,
.detail-hero h1 {
    max-width: 900px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.page-hero p,
.detail-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.content-block {
    padding: 64px 0;
}

.content-block.tight {
    padding-top: 28px;
}

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

.section-head h2 {
    display: inline;
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    place-items: center;
    border-radius: 13px;
    color: var(--accent);
    background: var(--accent-soft);
    vertical-align: middle;
}

.section-more {
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.58);
    font-weight: 800;
}

.section-more:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.14);
}

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

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

.movie-grid.search-results {
    margin-top: 26px;
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.38);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.score {
    top: 10px;
    right: 10px;
    padding: 6px 8px;
    color: #fef9c3;
    background: rgba(0, 0, 0, 0.64);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 42px;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.card-info {
    padding: 14px;
}

.card-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: 0.22s ease;
}

.movie-card:hover h3 {
    color: #34d399;
}

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

.meta-row {
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.meta-row span + span::before {
    content: "";
}

.tag-row {
    margin-top: 10px;
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: #a7f3d0;
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
}

.panel-section {
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.46);
}

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

.category-tile {
    position: relative;
    min-height: 185px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: 0.3s ease;
}

.category-tile div {
    position: absolute;
    inset: auto 18px 18px;
    z-index: 1;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.6;
}

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

.wide-card {
    position: relative;
    display: grid;
    grid-template-columns: 154px 1fr;
    gap: 18px;
    min-height: 124px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.58);
    transition: 0.22s ease;
}

.wide-card:hover {
    border-color: rgba(16, 185, 129, 0.36);
    background: rgba(15, 23, 42, 0.9);
}

.wide-card img {
    width: 154px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    transition: 0.25s ease;
}

.wide-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.wide-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.65;
}

.wide-card span {
    color: #a7f3d0;
    font-weight: 800;
}

.top-num {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white !important;
    background: linear-gradient(135deg, #f97316, #e11d48);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 46px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(16px);
    opacity: 0.25;
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 55%, rgba(2, 6, 23, 0.4) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 70%);
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

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

.breadcrumb a:hover {
    color: #34d399;
}

.detail-meta {
    margin: 18px 0 24px;
}

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72)),
        rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.25s ease;
}

.player-overlay[hidden] {
    display: none;
}

.play-core {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 22px 65px rgba(16, 185, 129, 0.34);
    font-weight: 900;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.article-card,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 18px;
    color: #dbeafe;
    line-height: 1.95;
}

.side-card {
    padding: 20px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: 0.22s ease;
}

.side-list a:hover {
    background: rgba(16, 185, 129, 0.1);
}

.side-list img {
    width: 76px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.side-list strong {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-list span {
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted-strong);
    background: var(--panel);
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0;
    color: var(--muted);
}

.footer-grid strong {
    color: white;
    font-size: 18px;
}

.footer-grid p {
    margin: 9px 0 0;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: #34d399;
}

@keyframes heroZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.1);
    }
}

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

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

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

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-tools {
        bottom: 18px;
    }

    .search-box,
    .search-toolbar {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .container,
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-copy {
        padding-right: 0;
    }

    .hero-meta span,
    .detail-meta span {
        font-size: 12px;
    }

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

    .card-info {
        padding: 11px;
    }

    .panel-section,
    .article-card {
        padding: 20px;
        border-radius: 22px;
    }

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

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

    .wide-card img {
        width: 112px;
        height: 86px;
    }
}
