:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-panel: rgba(15, 23, 42, 0.82);
    --bg-soft: rgba(30, 41, 59, 0.72);
    --blue-deep: #172554;
    --amber: #f59e0b;
    --amber-strong: #d97706;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--amber) var(--bg-secondary);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    background: radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.22), transparent 32%),
        linear-gradient(180deg, #020617 0%, #0b1b46 42%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: white;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

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

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

.brand-name {
    font-size: 1.45rem;
    background: linear-gradient(90deg, #fde68a, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.98rem;
}

.nav-link,
.mobile-link {
    color: #e5e7eb;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #fbbf24;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 2%, rgba(2, 6, 23, 0.82) 30%, rgba(15, 23, 42, 0.22) 74%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.86));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    max-width: 1180px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 13px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    max-width: 840px;
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    font-weight: 900;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.hero-content p:not(.hero-kicker) {
    max-width: 760px;
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

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

.primary-btn,
.ghost-btn,
.home-search button,
.footer-pill,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
    color: white;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.primary-btn,
.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
}

.ghost-btn {
    color: white;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.section-more:hover,
.footer-pill:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.46);
    font-size: 2rem;
    line-height: 1;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #f59e0b;
}

.home-intro,
.page-main {
    padding-top: 56px;
}

.home-intro h2,
.page-hero h1 {
    margin: 0 0 16px;
    color: white;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 900;
}

.home-intro > p:last-of-type,
.page-hero p:last-child {
    max-width: 820px;
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 1.05rem;
}

.home-search {
    display: flex;
    gap: 12px;
    max-width: 680px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

.home-search input {
    flex: 1;
    min-width: 0;
    color: white;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0 16px;
}

.home-search button {
    border: 0;
    min-height: 42px;
    padding: 0 22px;
}

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

.flush-section {
    width: 100%;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 850;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}

.section-more,
.footer-pill {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.26);
    padding: 9px 16px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.86);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.36);
}

.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    color: white;
    background: rgba(0, 0, 0, 0.66);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.movie-card strong {
    min-height: 2.65em;
    color: white;
    line-height: 1.35;
    font-size: 0.98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover strong {
    color: #fbbf24;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.movie-meta span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-card-line {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-overview-card,
.info-card {
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow);
}

.category-tile {
    padding: 22px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.42);
}

.category-tile span,
.category-overview-card strong {
    display: block;
    margin-bottom: 8px;
    color: #fbbf24;
    font-size: 1.15rem;
    font-weight: 850;
}

.category-tile small,
.category-overview-card small {
    color: var(--text-soft);
    line-height: 1.7;
}

.category-overview-card {
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-poster-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 120px;
    overflow: hidden;
}

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

.category-overview-body {
    display: block;
    padding: 18px;
}

.page-main {
    padding-bottom: 24px;
}

.narrow-main {
    max-width: 900px;
}

.compact-hero {
    padding: 38px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.76), rgba(30, 64, 175, 0.22));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.32fr));
    gap: 14px;
    margin: 26px 0 32px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    color: white;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    outline: 0;
    padding: 0 12px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.62);
}

.filter-empty {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: #fcd34d;
}

.detail-shell,
.player-card,
.info-card {
    margin-top: 24px;
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 20px 44px rgba(245, 158, 11, 0.32);
    font-size: 2rem;
}

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

.player-control-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-frame:hover .player-control-bar,
.player-frame:focus-within .player-control-bar,
.player-control-bar.is-visible {
    opacity: 1;
}

.player-progress {
    width: 100%;
    accent-color: var(--amber);
}

.player-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.player-control-row button {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    min-width: 38px;
    height: 38px;
}

.player-control-row button:last-child {
    margin-left: auto;
}

.player-time {
    color: #e5e7eb;
    font-size: 0.9rem;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.detail-one-line {
    margin: 22px 0;
    padding: 18px;
    color: #fcd34d;
    line-height: 1.85;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: var(--radius-md);
}

.detail-block {
    margin-top: 18px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.58);
}

.detail-block h2,
.info-card h2 {
    margin: 0 0 12px;
    color: #fbbf24;
    font-size: 1.35rem;
}

.detail-block p,
.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.9;
}

.detail-block p + p,
.info-card p + p {
    margin-top: 12px;
}

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

.info-card {
    padding: 28px;
}

.site-footer {
    margin-top: 72px;
    color: white;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.94), rgba(15, 23, 42, 0.98));
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
    gap: 34px;
    padding: 42px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid a:hover {
    color: #fbbf24;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.footer-bottom {
    padding: 18px 16px;
    color: var(--text-soft);
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

@media (max-width: 1024px) {
    .movie-grid,
    .wide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 74vh;
        min-height: 520px;
    }

    .hero-content {
        bottom: 76px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search {
        border-radius: 18px;
        flex-direction: column;
    }

    .home-search input {
        min-height: 42px;
    }

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

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

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

    .compact-hero,
    .detail-content,
    .info-card {
        padding: 22px;
    }

    .player-overlay span {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 420px) {
    .container,
    .content-section,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .movie-grid,
    .wide-grid,
    .related-grid {
        gap: 10px;
    }

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