:root {
    --bg: #071123;
    --bg-soft: #0f1e34;
    --paper: #ffffff;
    --muted: #6b7280;
    --text: #111827;
    --text-soft: #dbeafe;
    --line: rgba(148, 163, 184, 0.22);
    --orange: #f97316;
    --amber: #f59e0b;
    --blue: #0f3b75;
    --cyan: #06b6d4;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: #f5f7fb;
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(7, 17, 35, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    transition: all 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 12%, rgba(249, 115, 22, 0.34), transparent 30%),
        radial-gradient(circle at 85% 14%, rgba(6, 182, 212, 0.24), transparent 35%),
        linear-gradient(135deg, #071123 0%, #0f2f5f 45%, #0a1328 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 46px;
    align-items: center;
    padding: 82px 0 64px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fed7aa;
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.gradient-text {
    display: block;
    background: linear-gradient(90deg, #fb923c, #fef3c7, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    color: var(--text-soft);
    font-size: clamp(18px, 2vw, 23px);
    max-width: 680px;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.33);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 680px;
}

.hero-mini-card {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    min-height: 96px;
}

.hero-mini-card strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.hero-mini-card span {
    color: #bfdbfe;
    font-size: 13px;
}

.hero-showcase {
    position: relative;
    min-height: 500px;
}

.hero-frame {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 17, 35, 0.95), rgba(7, 17, 35, 0.16) 55%, rgba(7, 17, 35, 0.38));
}

.hero-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
}

.hero-caption h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 8px 0;
}

.hero-caption p {
    color: #dbeafe;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    background: #fff;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.section.dark {
    color: #fff;
    background: linear-gradient(135deg, #071123, #12294a);
}

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

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

.section h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.section-head p,
.page-title p {
    color: var(--muted);
    margin: 8px 0 0;
}

.dark .section-head p,
.dark .page-title p {
    color: #cbd5e1;
}

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

.movie-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #172554, #1e3a8a);
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.poster .badge {
    position: absolute;
    left: 12px;
    top: 12px;
}

.movie-info {
    padding: 15px;
}

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

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: #475569;
    font-size: 13px;
}

.meta-pill {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.category-card {
    min-height: 190px;
    border-radius: 26px;
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -52px;
    bottom: -52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(6, 182, 212, 0.2));
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    color: var(--muted);
    margin: 0 0 18px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 70px 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-number {
    font-size: 34px;
    font-weight: 900;
    color: #fb923c;
    text-align: center;
}

.rank-poster {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #172554;
}

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

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

.rank-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    color: #fff;
    padding: 62px 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(249, 115, 22, 0.28), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.22), transparent 34%),
        linear-gradient(135deg, #071123, #12335f);
}

.page-title h1 {
    max-width: 880px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #bfdbfe;
    margin-bottom: 18px;
    font-size: 14px;
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 30px;
}

.search-input {
    width: min(100%, 520px);
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    outline: 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-input:focus {
    border-color: var(--orange);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 340px;
    gap: 30px;
    align-items: start;
}

.player-box {
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    z-index: 3;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 20px 46px rgba(249, 115, 22, 0.4);
}

.play-button svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    transform: translateX(2px);
}

.detail-body {
    padding: 28px 0;
}

.detail-card {
    background: #fff;
    border-radius: 26px;
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

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

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 700;
    font-size: 13px;
}

.side-card {
    background: #fff;
    border-radius: 26px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.side-poster {
    border-radius: 20px;
    overflow: hidden;
    background: #172554;
    margin-bottom: 16px;
}

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

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

.related-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.related-item img {
    width: 64px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #172554;
}

.related-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.3;
}

.related-item span {
    color: var(--muted);
    font-size: 12px;
}

.pagination-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.pagination-links a {
    flex: 1;
    border-radius: 18px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

.pagination-links a:last-child {
    text-align: right;
}

.site-footer {
    color: #dbeafe;
    background: #071123;
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: center;
}

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

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

.hide-item {
    display: none !important;
}

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(7, 17, 35, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        border-radius: 12px;
    }

    .hero-inner,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 430px;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-inner {
        padding: 48px 0 40px;
    }

    .hero-showcase {
        min-height: 360px;
    }

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

    .movie-info {
        padding: 12px;
    }

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

    .rank-item {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .rank-number {
        font-size: 26px;
    }

    .pagination-links {
        flex-direction: column;
    }

    .pagination-links a:last-child {
        text-align: left;
    }
}
