:root {
    color-scheme: dark;
    --bg: #06080f;
    --bg-soft: #0c111d;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(17, 24, 39, 0.95);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f9fafb;
    --muted: #a8b3c7;
    --soft: #6b7280;
    --sunset: #f59e0b;
    --sunset-deep: #b45309;
    --twilight: #ea580c;
    --glow: rgba(245, 158, 11, 0.32);
    --radius: 22px;
    --shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% -10%, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at 85% 5%, rgba(234, 88, 12, 0.12), transparent 30rem),
        linear-gradient(180deg, #070a12 0%, #0b0f1a 48%, #06080f 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 8, 15, 0.72);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, var(--sunset), var(--twilight));
    box-shadow: 0 14px 36px var(--glow);
}

.brand-text {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--sunset);
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.mobile-panel input,
.big-search input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    width: 220px;
    padding: 10px 14px;
}

.header-search button,
.mobile-panel button,
.big-search button {
    border: 0;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-weight: 700;
}

.header-search button {
    padding: 10px 16px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--text);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(6, 8, 15, 0.95);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 12px 0;
    color: var(--muted);
}

.mobile-panel form {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.mobile-panel input {
    flex: 1;
    padding: 12px;
}

.mobile-panel button {
    padding: 0 16px;
}

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

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.1) contrast(1.08);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 8, 15, 0.96), rgba(6, 8, 15, 0.68) 48%, rgba(6, 8, 15, 0.2)),
        linear-gradient(180deg, rgba(6, 8, 15, 0.1), rgba(6, 8, 15, 0.98));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
    padding-top: 74px;
}

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

.hero-kicker,
.detail-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-kicker span,
.detail-meta span,
.meta-row span {
    color: #fcd34d;
    font-size: 0.86rem;
}

.hero h1 {
    margin: 16px 0 16px;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 640px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    padding: 5px 10px;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.78rem;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 0 24px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(17, 24, 39, 0.92));
    box-shadow: var(--shadow);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #111827;
    background: #fbbf24;
    font-weight: 800;
}

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

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

.hero-dot.is-active {
    width: 30px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.search-panel {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.big-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.big-search input,
.filter-bar input,
.filter-bar select {
    flex: 1;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.06);
}

.big-search button {
    min-height: 52px;
    border-radius: 16px;
    padding: 0 24px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.page-section {
    padding: 64px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: -0.04em;
}

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

.section-more,
.text-link {
    color: #fcd34d;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(251, 191, 36, 0.36);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(17, 24, 39, 0.9));
}

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

.image-hidden {
    opacity: 0;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #111827;
    background: #fbbf24;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #f97316);
}

.card-body {
    padding: 16px;
}

.meta-row {
    gap: 8px;
    min-height: 20px;
    margin-bottom: 8px;
}

.meta-row span {
    color: var(--soft);
    font-size: 0.76rem;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--sunset);
}

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

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
    display: none;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.58;
}

.category-tile span,
.category-tile em {
    position: absolute;
    left: 18px;
    z-index: 2;
}

.category-tile span {
    bottom: 42px;
    font-size: 1.3rem;
    font-weight: 800;
}

.category-tile em {
    bottom: 18px;
    color: #fcd34d;
    font-style: normal;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 98px 0 70px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.04)),
        radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.16), transparent 34rem);
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 8px;
    color: #fcd34d;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sub-hero h1 {
    margin: 0 0 14px;
    max-width: 860px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 1.08rem;
}

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

.category-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
}

.category-cover {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

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

.category-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.filter-bar {
    align-items: center;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-bar select {
    flex: 0 0 180px;
    color: var(--text);
}

.filter-bar option {
    color: #111827;
}

.filter-status {
    min-height: 24px;
    margin: -8px 0 16px;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 56px;
    background: #020617;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 8, 15, 0.96), rgba(6, 8, 15, 0.82)), linear-gradient(180deg, rgba(6, 8, 15, 0), #06080f);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: var(--sunset);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    aspect-ratio: 3 / 4.1;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.92));
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    max-width: 860px;
    margin: 8px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    color: #d1d5db;
    font-size: 1.1rem;
}

.detail-tags {
    margin-top: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.overlay-art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.42;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.02);
}

.big-play {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.42);
    font-size: 2rem;
}

.big-play span {
    position: relative;
    left: 3px;
}

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

.content-main,
.content-side {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.content-main h2,
.content-side h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.content-main p {
    margin: 0 0 24px;
    color: #d1d5db;
}

.content-main p:last-child {
    margin-bottom: 0;
}

.content-side dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.content-side dt {
    color: var(--soft);
}

.content-side dd {
    margin: 0;
    color: #e5e7eb;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.78);
}

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

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

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 14px;
}

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

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--sunset);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 16px;
    color: var(--soft);
    text-align: center;
}

@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

    .detail-poster {
        width: min(280px, 80vw);
    }
}

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

    .brand-text {
        font-size: 1rem;
    }

    .hero {
        min-height: 610px;
    }

    .hero-content {
        padding-top: 48px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel {
        margin-top: -24px;
        padding: 16px;
    }

    .big-search,
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        flex: auto;
    }

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

    .movie-grid,
    .featured-grid,
    .rank-list,
    .category-grid,
    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .sub-hero {
        padding: 72px 0 46px;
    }

    .detail-hero {
        padding-top: 28px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .big-play {
        width: 68px;
        height: 68px;
        font-size: 1.55rem;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .featured-grid,
    .rank-list,
    .category-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-row {
        grid-auto-columns: 78%;
    }
}
