:root {
    color-scheme: dark;
    --bg: #030712;
    --panel: rgba(17, 24, 39, 0.78);
    --panel-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #ffffff;
    --muted: #9ca3af;
    --soft: #d1d5db;
    --blue: #2563eb;
    --blue-light: #60a5fa;
    --cyan: #22d3ee;
    --radius: 24px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.14), transparent 30rem),
        linear-gradient(180deg, #030712 0%, #0b1120 48%, #030712 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.img-miss {
    display: none !important;
}

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

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.36);
}

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

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

.nav-link,
.mobile-link {
    color: var(--soft);
    border-radius: 14px;
    transition: 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.88);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.mobile-link {
    padding: 12px 14px;
}

.hero-wrap {
    position: relative;
    overflow: hidden;
    min-height: 68vh;
}

.hero-stage {
    position: relative;
    height: min(78vh, 780px);
    min-height: 560px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.32));
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.72) 44%, rgba(3, 7, 18, 0.26) 100%),
        linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.15) 34%, transparent 100%);
}

.hero-copy {
    position: absolute;
    left: max(32px, calc((100vw - 1200px) / 2));
    bottom: 92px;
    width: min(680px, calc(100% - 64px));
}

.hero-kicker,
.meta-row,
.tag-line {
    color: var(--muted);
    font-size: 14px;
}

.hero-kicker {
    margin-bottom: 18px;
    color: var(--blue-light);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0;
    color: var(--soft);
    font-size: clamp(17px, 2vw, 22px);
    max-width: 720px;
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-cloud a,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.25);
    font-size: 13px;
    font-style: normal;
}

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

.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: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    color: #fff;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.35);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.56);
    color: #fff;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    font-size: 40px;
    line-height: 1;
}

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

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

.hero-thumbs {
    position: relative;
    z-index: 5;
    width: min(1200px, calc(100% - 32px));
    margin: -72px auto 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.hero-thumb {
    min-height: 96px;
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    text-align: left;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.hero-thumb.active {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.24);
}

.hero-thumb img {
    width: 68px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.18);
}

.hero-thumb span {
    font-size: 14px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-section,
.page-hero,
.detail-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 52px 0;
}

.intro-panel,
.page-hero,
.detail-hero,
.article-section,
.player-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.intro-panel {
    padding: clamp(28px, 5vw, 56px);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.22), transparent 42%),
        rgba(15, 23, 42, 0.78);
}

.intro-panel h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.intro-panel p,
.page-hero p,
.detail-copy .lead,
.article-section p {
    color: var(--soft);
    font-size: 18px;
}

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

.section-head h2,
.player-section h2,
.article-section h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

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

.section-more {
    color: var(--blue-light);
    font-weight: 800;
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.25));
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.category-card strong {
    bottom: 62px;
    font-size: 24px;
}

.category-card em {
    bottom: 22px;
    color: var(--soft);
    font-size: 14px;
    font-style: normal;
}

.tool-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    margin-bottom: 24px;
}

.search-box,
.sort-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.search-box input,
.sort-box select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.42);
}

.poster-link,
.poster-shell {
    display: block;
}

.poster-shell {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.94));
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.72), transparent 55%);
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
}

.card-body {
    padding: 18px;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.movie-card h3,
.rank-item h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
    color: var(--blue-light);
}

.movie-card p,
.rank-item p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-line {
    margin-top: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 132px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
}

.rank-no {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), #0f172a);
    font-weight: 900;
}

.rank-cover {
    display: block;
    height: 84px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.18);
}

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

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

.page-hero,
.detail-hero {
    padding: clamp(28px, 5vw, 52px);
}

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

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.92));
    box-shadow: var(--shadow);
}

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

.detail-copy .lead {
    max-width: 760px;
}

.player-card {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-card video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-card video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.35));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(0, 0, 0, 0.78));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 36px;
    box-shadow: 0 18px 54px rgba(37, 99, 235, 0.52);
}

.article-section {
    padding: clamp(24px, 4vw, 42px);
}

.article-section h2 + p {
    margin-top: 12px;
}

.article-section p + h2 {
    margin-top: 28px;
}

.site-footer {
    margin-top: 52px;
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.72);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-inner p {
    margin: 12px 0 0;
    color: var(--muted);
}

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

.footer-links a {
    color: var(--soft);
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.footer-links a:hover {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.42);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

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

    .menu-toggle {
        display: flex;
    }

    .hero-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -42px;
    }

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

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

    .detail-poster {
        width: min(340px, 100%);
    }
}

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

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

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

    .hero-copy {
        left: 20px;
        bottom: 108px;
        width: calc(100% - 40px);
    }

    .hero-arrow {
        display: none;
    }

    .hero-thumbs {
        display: none;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-actions,
    .intro-actions {
        display: grid;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .tool-bar {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 92px 1fr;
        gap: 12px;
    }

    .rank-cover {
        height: 72px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
