:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(251, 191, 36, 0.36);
    --text: #f8fafc;
    --muted: #94a3b8;
    --amber: #f59e0b;
    --orange: #f97316;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --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(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    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: 80;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #facc15, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 12px;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    padding: 9px 13px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fbbf24;
    background: rgba(15, 23, 42, 0.86);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: rgba(2, 6, 23, 0.86);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mobile-nav.is-open {
    display: grid;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    padding: 56px 0 68px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.hero-glow-one {
    width: 360px;
    height: 360px;
    left: -120px;
    top: 90px;
    background: rgba(245, 158, 11, 0.16);
}

.hero-glow-two {
    width: 420px;
    height: 420px;
    right: -150px;
    bottom: 10px;
    background: rgba(249, 115, 22, 0.12);
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
    gap: 26px;
    align-items: stretch;
}

.hero-slides {
    position: relative;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.01);
    transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
}

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

.hero-image {
    position: relative;
    min-height: 560px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.96));
}

.hero-image::after,
.detail-backdrop::after,
.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.88));
}

.hero-image img {
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.12), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.94));
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content p,
.hero-panel p,
.page-hero p,
.detail-intro p,
.section-heading p,
.category-overview-card p,
.detail-copy p,
.site-footer p {
    color: var(--muted);
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 20px;
    font-size: 17px;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.text-button,
.filter-panel button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.filter-panel button,
.search-page-form button {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
    cursor: pointer;
}

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

.text-button {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.filter-panel button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.22);
}

.hero-dots {
    position: absolute;
    left: 46px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, #facc15, #fb923c);
}

.hero-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.hero-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.hero-search,
.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 22px 0;
}

.hero-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.56);
    outline: none;
    padding: 0 14px;
}

.hero-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.hero-search button,
.search-page-form button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
}

.hero-category-links,
.hero-mini-links,
.footer-links,
.sample-links,
.detail-text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-links a,
.hero-mini-links a,
.footer-links a,
.sample-links a,
.detail-text-links a {
    color: #cbd5e1;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-mini-links {
    margin-top: 20px;
}

.hero-category-links a:hover,
.hero-mini-links a:hover,
.footer-links a:hover,
.sample-links a:hover,
.detail-text-links a:hover {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(245, 158, 11, 0.08);
}

.section-block {
    padding: 70px 0;
}

.section-muted {
    background: rgba(2, 6, 23, 0.34);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 760px;
    margin: 0;
}

.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

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

.category-card,
.category-overview-card,
.detail-side-card,
.detail-links-card,
.movie-card,
.player-card,
.detail-copy {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
}

.category-card {
    min-height: 168px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(15, 23, 42, 0.92);
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    color: #fbbf24;
    font-weight: 900;
}

.category-card strong {
    display: block;
    font-size: 28px;
}

.category-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cover-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.94));
}

.cover-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease, filter 0.34s ease;
}

.movie-card:hover .cover-link img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.88));
}

.play-mark,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.play-mark {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta-line a {
    color: #fbbf24;
}

.movie-card h2 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.24;
}

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

.movie-card-small h2 {
    font-size: 16px;
}

.movie-card-small p {
    min-height: 42px;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.16), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
}

.slim-hero {
    padding: 72px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.category-overview-grid {
    display: grid;
    gap: 18px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

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

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.88);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 4px 0 8px;
    font-size: 26px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.68);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.filter-panel strong {
    color: #fbbf24;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

.archive-item,
.rank-row {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.archive-item:hover,
.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.38);
    background: rgba(15, 23, 42, 0.88);
}

.archive-title {
    color: #f8fafc;
    font-weight: 800;
}

.archive-item span:last-child,
.rank-row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.rank-row {
    grid-template-columns: 52px minmax(160px, 1fr) minmax(220px, 0.8fr) 90px;
    align-items: center;
}

.rank-row span {
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
}

.rank-row b {
    color: #fef3c7;
    text-align: right;
}

.search-results:empty::before {
    content: "输入关键词后显示匹配影片";
    display: block;
    color: var(--muted);
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    text-align: center;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 60px;
    border-bottom: 1px solid var(--line);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(6px) saturate(1.15);
    transform: scale(1.04);
}

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

.detail-backdrop::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), #020617 96%);
}

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

.detail-cover {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: #0f172a;
}

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

.detail-intro p {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: 18px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

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

.player-card video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.36), rgba(2, 6, 23, 0.82));
    cursor: pointer;
}

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

.big-play {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.28);
    font-size: 32px;
}

.detail-side-card,
.detail-links-card,
.detail-copy {
    padding: 22px;
}

.detail-side-card h2,
.detail-links-card h2,
.detail-copy h2,
.site-footer h2 {
    margin: 0 0 14px;
}

.detail-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-side-card li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-side-card span {
    color: var(--muted);
}

.detail-side-card a {
    color: #fbbf24;
}

.detail-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.detail-copy p {
    margin: 0 0 24px;
    font-size: 17px;
}

.detail-text-links {
    display: grid;
}

.site-footer {
    padding: 46px 0;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
}

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

.footer-brand {
    margin-bottom: 12px;
}

.category-footer-links {
    max-height: 160px;
    overflow: auto;
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-layout,
    .hero-slide,
    .player-layout,
    .detail-copy-grid {
        grid-template-columns: 1fr;
    }

    .hero-slides,
    .hero-image,
    .hero-image img {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-image {
        aspect-ratio: 16 / 10;
    }

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

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

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

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

    .hero {
        padding: 28px 0 44px;
    }

    .hero-content,
    .hero-panel,
    .detail-side-card,
    .detail-links-card,
    .detail-copy {
        padding: 18px;
    }

    .hero-dots {
        left: 18px;
        bottom: 18px;
    }

    .category-grid,
    .movie-grid,
    .movie-grid-compact,
    .search-result-grid,
    .archive-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-hero-grid,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-panel,
    .hero-search,
    .search-page-form {
        grid-template-columns: 1fr;
    }

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