
:root {
    --bg: #070b16;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --subtle: #cbd5e1;
    --yellow: #facc15;
    --yellow-strong: #eab308;
    --blue: #2563eb;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), transparent 30rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.26), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0b1630 42%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 66px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    border-radius: 999px;
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.36);
}

.brand-name {
    font-size: 21px;
    background: linear-gradient(90deg, #fde047, #fff7ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: #dbeafe;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.72);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 11px;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.46), rgba(15, 23, 42, 0.98));
}

.hero-slide img.is-missing {
    opacity: 0;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(250, 204, 21, 0.2), transparent 22rem),
        radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.34), transparent 28rem),
        linear-gradient(135deg, #0f172a, #172554 48%, #020617);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.94)),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.2));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px 72px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    background: linear-gradient(90deg, #fde047, #facc15);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 46px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

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

.button.primary {
    color: #111827;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    box-shadow: 0 14px 34px rgba(234, 179, 8, 0.28);
}

.button.secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.66);
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

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

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px));
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.74);
    outline: none;
    padding: 12px 14px;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(250, 204, 21, 0.42);
    box-shadow: 0 22px 48px rgba(234, 179, 8, 0.15);
}

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.16), transparent 14rem),
        linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

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

.poster-frame img.is-missing {
    opacity: 0;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.duration,
.rank-badge,
.play-dot,
.category-count,
.hot-score {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.duration {
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    color: #111827;
    background: var(--yellow);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
}

.play-dot {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-title {
    display: block;
    font-weight: 850;
    font-size: 17px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--yellow);
}

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

.movie-meta,
.tag-row,
.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.movie-meta span,
.tag-row span,
.detail-chips span {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
}

.tag-row {
    margin-top: 11px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 12rem),
        linear-gradient(145deg, rgba(30, 58, 138, 0.82), rgba(15, 23, 42, 0.82));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.48);
}

.category-card h3 {
    margin: 36px 0 10px;
    font-size: 22px;
}

.category-card p,
.category-card small {
    color: #cbd5e1;
    line-height: 1.65;
}

.category-card small {
    display: block;
    margin-top: 14px;
    color: #94a3b8;
}

.category-count {
    top: 16px;
    left: 16px;
    padding: 5px 10px;
    color: #111827;
    background: #facc15;
    font-size: 12px;
    font-weight: 900;
}

.hot-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.82fr);
    gap: 28px;
    align-items: start;
}

.hot-list {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
}

.hot-list-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hot-list-item:hover {
    background: rgba(250, 204, 21, 0.1);
    transform: translateX(4px);
}

.hot-index {
    color: #111827;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    border-radius: 12px;
    padding: 6px 0;
    text-align: center;
    font-weight: 900;
}

.hot-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-score {
    position: static;
    color: var(--yellow);
    text-align: center;
    padding: 4px 8px;
}

.page-title {
    padding: 58px 0 22px;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.player-panel,
.detail-info,
.text-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at center, rgba(250, 204, 21, 0.13), transparent 20rem),
        linear-gradient(135deg, #020617, #172554);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.8));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.play-overlay .button {
    min-height: 58px;
    padding: 0 28px;
    font-size: 18px;
}

.player-note {
    padding: 16px 18px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
}

.detail-info {
    padding: 26px;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
}

.detail-info .one-line {
    margin: 18px 0;
    color: #e2e8f0;
    line-height: 1.75;
    font-size: 17px;
}

.detail-poster {
    margin-top: 22px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.38), rgba(15, 23, 42, 0.94));
}

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

.detail-poster img.is-missing {
    opacity: 0;
}

.text-panel {
    padding: 28px;
    margin-top: 28px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.95;
    font-size: 16px;
}

.no-results {
    display: none;
    color: var(--muted);
    padding: 32px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 22px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.96));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 28px;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
}

.footer-grid a:hover {
    color: var(--yellow);
}

.footer-grid h3 {
    margin: 0 0 12px;
}

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

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

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

@media (max-width: 820px) {
    .nav-wrap {
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 14px;
    }

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

    .hero {
        height: 560px;
    }

    .hero-content {
        padding: 62px 18px 64px;
    }

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

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

    .section-head {
        display: block;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 38px 16px;
    }

    .grid {
        gap: 16px;
    }

    .movie-card-body,
    .text-panel,
    .detail-info {
        padding: 18px;
    }
}
