* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: #1f2937;
    --text: #ffffff;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --blue: #2563eb;
    --blue-2: #38bdf8;
    --cyan: #22d3ee;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

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

.brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 8px;
    flex: 1;
}

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.header-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input {
    border: 1px solid rgba(148, 163, 184, 0.14);
    outline: none;
    color: #fff;
    background: #1e293b;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 240px;
    padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
    border-color: rgba(37, 99, 235, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.header-search button,
.mobile-search button,
.big-search button,
.btn-primary {
    background: var(--blue);
    color: #fff;
}

.header-search button,
.mobile-search button {
    padding: 10px 14px;
    border-radius: 12px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.btn-primary:hover {
    background: #1d4ed8;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: #1e293b;
}

.mobile-menu {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 11px 12px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 42%, rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 760px;
}

.hero-kicker,
.section-eyebrow,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #fff;
    background: var(--blue);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-eyebrow {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.hero h1,
.hero h2 {
    margin: 18px 0 14px;
    max-width: 820px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-line {
    margin: 0 0 8px;
    max-width: 680px;
    color: #d1d5db;
    font-size: 20px;
    line-height: 1.55;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 28px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.75;
}

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

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

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

.btn-muted {
    color: #fff;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.btn-muted:hover {
    background: rgba(51, 65, 85, 0.88);
}

.btn-ghost {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(2, 6, 23, 0.42);
}

.btn-ghost:hover {
    border-color: rgba(56, 189, 248, 0.52);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 32px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 18px;
    height: 6px;
    padding: 0;
    border-radius: 999px;
    background: #64748b;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 38px;
    background: var(--blue);
}

.section,
.page-hero,
.detail-main,
.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 56px 0;
}

.section-tight {
    padding-top: 38px;
    padding-bottom: 28px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-more,
.side-more {
    color: #bfdbfe;
    font-weight: 700;
    transition: color 0.2s ease;
}

.section-more:hover,
.side-more:hover {
    color: #fff;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    color: #fff;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.category-pill:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    min-width: 0;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #1e293b);
    box-shadow: var(--shadow);
}

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

.card-link:hover .poster-wrap img {
    transform: scale(1.1);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.06) 56%, rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-link:hover .poster-wrap::after {
    opacity: 1;
}

.type-badge,
.year-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    left: 10px;
    background: var(--blue);
}

.year-badge {
    right: 10px;
    background: rgba(0, 0, 0, 0.56);
}

.card-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(37, 99, 235, 0.86);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .card-play {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card-copy {
    padding-top: 12px;
}

.card-copy h2 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.card-link:hover .card-copy h2 {
    color: #60a5fa;
}

.card-copy p {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.9);
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 24px;
}

.feature-panel {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    padding: 26px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.inline-head {
    margin-bottom: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 64px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.7);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateX(4px);
}

.rank-num {
    color: #60a5fa;
    font-size: 18px;
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

.rank-info strong,
.compact-card strong {
    display: block;
    color: #fff;
    font-weight: 800;
}

.rank-info em,
.compact-card em {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.accent-panel {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.34), rgba(15, 23, 42, 0.96) 48%);
}

.accent-panel h2 {
    margin: 14px 0 12px;
    font-size: 30px;
    line-height: 1.2;
}

.accent-panel p {
    color: #cbd5e1;
    line-height: 1.7;
}

.big-search {
    margin-top: 22px;
}

.big-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
}

.big-search button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    margin-top: 34px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 28px;
    padding: clamp(30px, 6vw, 58px);
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.28), transparent 48%), #0f172a;
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 820px;
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.75;
}

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

.category-card a {
    display: block;
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card a:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    min-height: 52px;
    margin: 0 0 14px;
    color: #94a3b8;
    line-height: 1.65;
}

.category-card span {
    color: #bfdbfe;
    font-weight: 800;
}

.hero-mini-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.compact-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.compact-card img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 62px 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: #0f172a;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card a:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.58);
}

.ranking-number {
    color: #60a5fa;
    font-size: 24px;
    font-weight: 900;
}

.ranking-card img {
    width: 96px;
    height: 132px;
    object-fit: cover;
    border-radius: 16px;
    background: #1e293b;
}

.ranking-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-card p {
    margin: 0 0 10px;
    color: #cbd5e1;
    line-height: 1.65;
}

.meta-line {
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 14px;
}

.detail-main {
    padding: 28px 0 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 0 10px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(0, 0, 0, 0.58));
    transition: opacity 0.25s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.45);
    font-size: 32px;
    text-indent: 5px;
}

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

.detail-copy {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: #0f172a;
}

.detail-copy h1 {
    font-size: clamp(32px, 5vw, 54px);
}

.detail-line {
    margin: 16px 0 18px;
    color: #d1d5db;
    font-size: 20px;
    line-height: 1.65;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.86);
}

.content-block {
    margin-top: 22px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: #0f172a;
}

.content-block h2,
.watch-side h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 24px;
}

.content-block p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.85;
}

.watch-side {
    position: sticky;
    top: 90px;
    align-self: start;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

.related-section {
    width: 100%;
    padding-bottom: 0;
}

.search-results:empty::before {
    content: "输入关键词后显示匹配内容";
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    color: #94a3b8;
    background: #0f172a;
    text-align: center;
}

.site-footer {
    margin-top: 44px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: #0f172a;
}

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

.footer-brand p,
.footer-group a,
.footer-bottom {
    color: #94a3b8;
}

.footer-brand p {
    max-width: 560px;
    margin: 14px 0 0;
    line-height: 1.75;
}

.footer-group h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-group a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .nav-links,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .split-section,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .watch-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .hero {
        height: 560px;
    }

    .hero-content {
        padding-top: 30px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .category-grid,
    .footer-shell,
    .hero-mini-list {
        grid-template-columns: 1fr;
    }

    .ranking-card a {
        grid-template-columns: 48px 78px 1fr;
        gap: 12px;
    }

    .ranking-card img {
        width: 78px;
        height: 108px;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .mobile-menu,
    .section,
    .page-hero,
    .detail-main,
    .breadcrumb {
        width: min(100% - 24px, 1280px);
    }

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

    .hero {
        height: 590px;
    }

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    .hero-line {
        font-size: 17px;
    }

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

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

    .page-hero,
    .detail-copy,
    .content-block,
    .feature-panel {
        border-radius: 20px;
        padding: 22px;
    }

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

    .ranking-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .detail-meta span {
        font-size: 13px;
    }
}
