:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e2e8f0;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: rgba(249, 115, 22, 0.12);
    --night: #020617;
    --night-2: #0f172a;
    --radius: 24px;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 68px;
}

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

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f59e0b);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link,
.mobile-link {
    color: #e2e8f0;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--brand);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
}

.header-search input,
.inline-filter input,
.inline-filter select,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    outline: none;
    color: inherit;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 14px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.inline-filter input:focus,
.inline-filter select:focus,
.search-panel input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.search-panel button,
.btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: var(--brand);
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.search-panel button:hover,
.btn:hover,
.section-more:hover {
    transform: translateY(-1px);
    background: var(--brand-dark);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
}

.btn-small {
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
}

.mobile-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: var(--night);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    background:
        radial-gradient(circle at 74% 22%, rgba(249, 115, 22, 0.32), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.15) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 48%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: end;
    gap: 48px;
    height: 100%;
    padding: 86px 0 90px;
}

.hero-copy {
    max-width: 780px;
}

.hero-kicker,
.section-eyebrow,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    background: var(--brand);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.65;
}

.hero-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.hero-meta {
    margin: 24px 0 28px;
    color: #cbd5e1;
}

.hero-meta span,
.meta-line span {
    position: relative;
}

.hero-meta span + span::before,
.meta-line span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 10px 3px 0;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span,
.play-float {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.55);
    border-radius: 50%;
    font-size: 36px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.home-section,
.page-content,
.detail-content {
    padding: 72px 0;
}

.search-panel-section {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.search-panel span {
    color: var(--brand);
    font-weight: 800;
}

.search-panel h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}

.search-panel form {
    display: flex;
    gap: 10px;
}

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

.section-head h2 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.section-head .section-eyebrow {
    color: var(--brand);
    background: var(--brand-soft);
}

.section-more {
    flex: none;
}

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

.category-tile {
    position: relative;
    display: flex;
    min-height: 220px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-tile img,
.category-tile-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-tile-shade {
    z-index: -1;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.08));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile em {
    margin: 5px 0 8px;
    color: #fed7aa;
    font-style: normal;
    font-weight: 700;
}

.category-tile small {
    color: #e2e8f0;
    line-height: 1.6;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.poster,
.large-cover,
.compact-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

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

.poster {
    aspect-ratio: 16 / 10;
}

.large-cover {
    aspect-ratio: 16 / 10;
}

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

.poster-gradient,
.large-overlay {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent);
}

.movie-pill {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #ffffff;
    background: var(--brand);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.card-body,
.large-info,
.compact-body {
    padding: 18px;
}

.card-body h3,
.large-info h3,
.compact-body h3 {
    margin: 9px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.large-info h3 {
    font-size: 24px;
}

.card-body h3 a:hover,
.large-info h3 a:hover,
.compact-body h3 a:hover {
    color: var(--brand);
}

.card-body p,
.large-info p,
.compact-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.card-tags span {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.rank-strip,
.rank-list,
.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 138px;
}

.compact-poster {
    height: 100%;
    min-height: 138px;
}

.compact-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.rank-number {
    display: inline-grid;
    min-width: 34px;
    height: 28px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f59e0b);
    border-radius: 10px;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 46%, #1e293b);
}

.page-hero .container {
    padding: 82px 0 72px;
}

.page-hero h1 {
    max-width: 860px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-chip {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.inline-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.wide-filter {
    grid-template-columns: minmax(280px, 1fr) 180px 180px 160px;
}

.inline-filter input,
.inline-filter select {
    color: var(--ink);
    background: var(--surface-soft);
}

.filter-count {
    margin: -10px 0 24px;
    color: var(--muted);
    font-weight: 800;
}

.category-overview-card,
.story-card {
    margin-bottom: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.category-overview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.category-overview-head span {
    color: var(--brand);
    font-weight: 800;
}

.category-overview-head h2 {
    margin: 7px 0;
    font-size: 30px;
}

.category-overview-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    padding: 42px 0 72px;
}

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

.breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.player-panel,
.detail-info {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.55));
    cursor: pointer;
}

.player-shell.is-playing .player-start {
    display: none;
}

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.38);
    font-size: 34px;
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.detail-info p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.detail-meta-grid b {
    color: #fed7aa;
    font-size: 13px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.22);
}

.story-card .section-eyebrow {
    color: var(--brand);
    background: var(--brand-soft);
}

.story-card h2 {
    margin: 14px 0 16px;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.02em;
}

.story-card p {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.story-card p + p {
    margin-top: 14px;
}

.site-footer {
    color: #cbd5e1;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 58px 0 36px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

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

.site-footer a:hover {
    color: var(--brand);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 30px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.is-hidden {
    display: none !important;
}

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

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

    .hero-poster {
        display: none;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-content {
        padding: 78px 0 86px;
    }

    .search-panel,
    .inline-filter,
    .wide-filter {
        grid-template-columns: 1fr;
    }

    .search-panel form,
    .section-head,
    .category-overview-head,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .large-grid,
    .rank-strip,
    .rank-list,
    .compact-grid,
    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .hero-carousel {
        height: 78vh;
        min-height: 600px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .category-grid,
    .movie-grid,
    .large-grid,
    .rank-strip,
    .rank-list,
    .compact-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

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

    .page-hero .container,
    .home-section,
    .page-content,
    .detail-content {
        padding: 52px 0;
    }
}
