:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: #0f172a;
    --card: rgba(30, 41, 59, 0.72);
    --card-hover: rgba(51, 65, 85, 0.82);
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --accent: #f97316;
    --accent-light: #fbbf24;
    --accent-soft: rgba(249, 115, 22, 0.16);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(251, 191, 36, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.nav-wrap {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

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

.brand-text,
.footer-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 13px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.56);
}

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

.top-search input {
    width: 230px;
    padding: 10px 14px;
}

.top-search button,
.inline-filter button {
    border: 0;
    color: #ffffff;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    cursor: pointer;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    width: 42px;
    height: 42px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 22px 18px;
    background: rgba(2, 6, 23, 0.96);
}

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

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-cats {
    margin-top: 12px;
}

.mobile-cats a,
.category-cloud a,
.category-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #e2e8f0;
    padding: 8px 13px;
    background: rgba(30, 41, 59, 0.68);
    transition: 0.2s ease;
}

.mobile-cats a:hover,
.category-cloud a:hover,
.category-nav a:hover,
.category-nav a.active {
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.7);
    background: rgba(249, 115, 22, 0.24);
}

.hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.52);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.24) 100%),
        radial-gradient(circle at 22% 22%, rgba(249, 115, 22, 0.22), transparent 34rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.96));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 690px;
    margin: 0 auto;
    padding: 92px 22px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(249, 115, 22, 0.16);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

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

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

.hero-tags {
    margin: 22px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.side-meta span,
.meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.btn.ghost {
    color: #e2e8f0;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.66);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span,
.play-dot {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

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

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.active {
    width: 32px;
    background: var(--accent);
}

.quick-panel,
.content-section,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.quick-panel {
    margin-top: -52px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.quick-search-card,
.category-cloud,
.rank-panel,
.page-hero,
.player-card,
.detail-side,
.detail-copy,
.category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.quick-search-card {
    padding: 24px;
}

.quick-search-card h2 {
    margin: 12px 0 18px;
    font-size: 24px;
    line-height: 1.2;
}

.inline-filter {
    display: flex;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.5);
}

.inline-filter input {
    flex: 1;
    padding: 13px 15px;
}

.category-cloud {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 12px;
}

.content-section {
    padding-top: 58px;
}

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

.section-head h2,
.rank-panel h2,
.detail-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.04em;
}

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

.section-more {
    color: #fed7aa;
    font-weight: 900;
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
}

.movie-card.wide .poster-link {
    aspect-ratio: 16 / 12;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    opacity: 0.75;
}

.play-dot {
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.movie-info {
    padding: 15px;
}

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: #fb923c;
}

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

.meta-row {
    margin-bottom: 10px;
}

.tag-row span {
    background: rgba(51, 65, 85, 0.72);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    align-self: start;
}

.rank-list,
.rank-grid {
    display: grid;
    gap: 12px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.54);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    transform: translateX(3px);
    background: rgba(51, 65, 85, 0.76);
}

.compact-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

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

.mini-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.96);
}

.compact-copy {
    min-width: 0;
}

.compact-copy strong,
.compact-copy em,
.compact-copy small {
    display: block;
}

.compact-copy strong {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.compact-copy em {
    margin: 4px 0;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-copy small {
    color: #64748b;
}

.page-main,
.detail-main {
    padding-top: 32px;
    padding-bottom: 64px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 42px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 42%),
        rgba(15, 23, 42, 0.82);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.22), transparent 70%);
}

.page-hero h1 {
    max-width: 860px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select {
    border: 1px solid var(--line);
    border-radius: 15px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.84);
    padding: 12px 14px;
}

.filter-bar input {
    flex: 1;
}

.hero-filter {
    max-width: 760px;
    margin-top: 24px;
    margin-bottom: 0;
}

.category-nav {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

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

.category-card {
    overflow: hidden;
    padding: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.52);
}

.category-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.category-images img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-card strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
}

.category-card em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 18px;
}

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

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

.player-card,
.detail-side,
.detail-copy {
    padding: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12), rgba(0, 0, 0, 0.36));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    font-size: 34px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

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

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.9);
}

.side-meta {
    margin-top: 14px;
}

.detail-copy {
    margin-top: 24px;
}

.detail-copy h1 {
    font-size: clamp(32px, 4.8vw, 58px);
}

.detail-copy h2 {
    margin: 28px 0 10px;
}

.detail-copy p {
    color: #cbd5e1;
    font-size: 17px;
}

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

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-nav a:hover {
    color: #fb923c;
}

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

    .split-layout,
    .detail-layout,
    .quick-panel {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 62px;
        gap: 28px;
    }

    .hero-poster {
        max-width: 260px;
        margin: 0 auto;
    }

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

    .footer-inner,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-layout {
        gap: 16px;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 14px;
        align-items: center;
    }

    .detail-cover {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .quick-panel,
    .content-section,
    .page-main,
    .detail-main,
    .footer-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

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

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy .one-line {
        font-size: 15px;
    }

    .hero-actions,
    .filter-bar,
    .inline-filter {
        flex-direction: column;
    }

    .movie-grid,
    .small-grid,
    .feature-grid,
    .rank-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-copy,
    .player-card,
    .detail-side {
        padding: 18px;
        border-radius: 18px;
    }

    .quick-panel {
        margin-top: -30px;
    }
}
