:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --slate: #0f172a;
    --slate-2: #1e293b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    background: #111827;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.25);
}

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

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

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35);
}

.brand-text,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.primary-nav a,
.category-link {
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.category-link:hover {
    color: #22d3ee;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
    width: 220px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.85);
}

.nav-search input::placeholder {
    color: #94a3b8;
}

.nav-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.nav-search button,
.btn,
.section-more {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
    padding: 10px 16px;
    color: #0f172a;
    background: #22d3ee;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(51, 65, 85, 0.9);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.category-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.92);
}

.category-strip-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-link {
    white-space: nowrap;
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg,
.detail-hero-bg {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.84) 42%, rgba(15, 23, 42, 0.38) 72%, rgba(2, 6, 23, 0.82) 100%),
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.22), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #22d3ee;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta-pills span,
.side-tags a {
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
    color: #0e7490;
    background: rgba(236, 254, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-meta-pills span {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.22);
}

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

.btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
}

.btn:hover,
.section-more:hover,
.nav-search button:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.28);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-light {
    color: #0f172a;
    background: #ffffff;
}

.hero-poster {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
    width: 30px;
    background: #22d3ee;
}

.hero-mini-strip {
    position: absolute;
    right: max(20px, calc((100% - 1280px) / 2));
    bottom: 26px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-mini-card {
    width: 112px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    opacity: 0.75;
}

.hero-mini-card.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #22d3ee;
}

.hero-mini-card img {
    height: 70px;
    object-fit: cover;
}

.hero-mini-card span {
    display: block;
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

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

.dark-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.section-heading h2 {
    margin: 8px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.dark-section .section-heading p {
    color: #cbd5e1;
}

.section-more {
    color: #0f172a;
    background: #22d3ee;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dark-section .movie-card {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.86);
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card-compact .poster-link img,
.ranking-grid .poster-link img {
    aspect-ratio: 2 / 3;
}

.movie-card:hover .poster-link img {
    transform: scale(1.05);
    opacity: 0.86;
}

.poster-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 800;
}

.poster-play {
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    color: #0f172a;
    background: #22d3ee;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.movie-card:hover .poster-play {
    transform: translateY(0);
    opacity: 1;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #fde047, #fb923c);
}

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

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

.dark-section .card-meta-row,
.dark-section .movie-card p {
    color: #cbd5e1;
}

.movie-card h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

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

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

.category-card,
.category-block-heading,
.page-hero,
.podium-card {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.category-card > a {
    display: block;
    padding: 28px;
}

.category-card span,
.category-block-heading span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.category-card h3,
.category-block-heading h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-card p,
.category-block-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.category-samples {
    display: grid;
    gap: 1px;
    background: rgba(15, 23, 42, 0.16);
}

.category-samples a {
    padding: 10px 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(15, 23, 42, 0.18);
}

.gradient-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.gradient-green {
    background: linear-gradient(135deg, #059669, #22c55e);
}

.gradient-cyan {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.gradient-amber {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.gradient-blue {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.page-hero {
    padding: 86px 0;
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
}

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

.stacked-section {
    display: grid;
    gap: 44px;
}

.category-block {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.category-block-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 34px;
}

.category-block .movie-grid {
    padding: 24px;
}

.filter-section {
    padding-top: 40px;
}

.filter-panel {
    position: sticky;
    top: 116px;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.filter-count {
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 24px;
    padding: 54px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

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

.podium-card {
    display: grid;
    gap: 14px;
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.podium-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
}

.podium-card h2 {
    margin: 0;
}

.podium-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-hero-bg,
.detail-hero-mask {
    position: absolute;
    inset: 0;
}

.detail-hero-mask {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.88) 54%, rgba(15, 23, 42, 0.52) 100%),
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.22), transparent 35%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster-card img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
}

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

.detail-content,
.detail-sidebar {
    display: grid;
    gap: 24px;
}

.player-card,
.text-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.player-title-row h2,
.text-card h2,
.side-card h3 {
    margin: 0;
}

.player-title-row span {
    color: var(--muted);
    font-size: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.35), rgba(0, 0, 0, 0.66));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.35);
    font-size: 30px;
}

.text-card p {
    margin: 12px 0 0;
    color: #334155;
    font-size: 17px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.info-list dt {
    color: var(--muted);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
}

.info-list a {
    color: var(--cyan);
    font-weight: 800;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-grid p {
    max-width: 520px;
    color: #94a3b8;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 18px;
    text-align: center;
    color: #64748b;
}

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 46px;
        padding-bottom: 120px;
    }

    .hero-poster,
    .hero-mini-strip {
        display: none;
    }

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

@media (max-width: 860px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .primary-nav,
    .nav-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .category-strip {
        display: none;
    }

    .category-strip.is-open {
        display: block;
    }

    .category-strip-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 0;
    }

    .category-link {
        padding: 8px 0;
    }

    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .category-grid,
    .podium-grid,
    .footer-grid,
    .detail-hero-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-content {
        min-height: 590px;
    }

    .section-heading,
    .category-block-heading,
    .player-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-panel {
        position: static;
    }

    .detail-poster-card {
        max-width: 240px;
    }
}

@media (max-width: 520px) {
    .content-section,
    .page-hero-inner,
    .detail-hero-inner,
    .nav-shell,
    .category-strip-inner,
    .footer-grid {
        width: min(100% - 22px, 1280px);
    }

    .hero-content {
        width: min(100% - 22px, 1280px);
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .player-card,
    .text-card,
    .side-card {
        padding: 18px;
        border-radius: 22px;
    }
}
