:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --panel: #ffffff;
    --line: #e2e8f0;
    --soft: #f1f5f9;
    --dark: #020617;
    --dark-2: #0f172a;
    --dark-3: #1e293b;
    --accent: #f97316;
    --accent-2: #ea580c;
    --gold: #f59e0b;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #020617, #111827 45%, #020617);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.38);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-text small {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #cbd5e1;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 99px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.26), transparent 30%), linear-gradient(135deg, #020617, #111827 52%, #431407);
}

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.22) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.65), transparent 45%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) 380px;
    align-items: center;
    gap: 54px;
    padding: 72px 0 86px;
}

.hero-copy {
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.28);
    font-weight: 700;
}

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

.hero-copy h1 span {
    display: block;
    margin-top: 14px;
    color: var(--accent);
    font-size: clamp(26px, 3.6vw, 42px);
}

.hero-copy p {
    max-width: 760px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-2);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
}

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.hero-panel {
    position: relative;
    padding: 18px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #1e293b;
}

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

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

.hero-tags {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--accent);
}

.search-strip {
    position: relative;
    z-index: 5;
    width: min(1100px, calc(100% - 32px));
    margin: -46px auto 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.search-strip input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.search-strip input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

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

.section.compact {
    padding: 42px 0;
}

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

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

h1,
h2,
h3 {
    line-height: 1.2;
}

.section-title h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.movie-card.tall .poster-link {
    aspect-ratio: 3 / 4;
}

.movie-card.feature .poster-link {
    aspect-ratio: 16 / 9;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), transparent 55%);
    opacity: 0.9;
}

.play-dot {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.34);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 14px;
    top: 14px;
    min-width: 42px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--soft);
}

.movie-card h3 {
    min-height: 52px;
    margin: 12px 0 8px;
    font-size: 19px;
}

.movie-card h3 a:hover,
.text-link:hover,
.breadcrumb a:hover {
    color: var(--accent);
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span,
.filter-pill {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.category-band {
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #431407);
    color: #fff;
}

.category-band .section-title p {
    color: #cbd5e1;
}

.category-links a,
.hero-chip-row a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
    transition: 0.25s ease;
}

.category-links a:hover,
.hero-chip-row a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

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

.category-card {
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #1e293b 58%, #7c2d12);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.24);
}

.category-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
}

.page-hero {
    background: radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.24), transparent 28%), linear-gradient(135deg, #020617, #111827 54%, #431407);
    color: #fff;
}

.page-hero .section {
    padding: 70px 0;
}

.page-title h1 {
    color: #fff;
}

.page-title p {
    color: #cbd5e1;
    max-width: 820px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px 150px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 140px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.35);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 18px;
    font-size: 20px;
    font-weight: 900;
}

.rank-row img {
    width: 140px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

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

.side-panel {
    position: sticky;
    top: 88px;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 8px;
    border-radius: 16px;
    background: #f8fafc;
    transition: 0.25s ease;
    position: relative;
}

.mini-card:hover {
    background: #fff7ed;
}

.mini-card img {
    width: 70px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    font-size: 15px;
}

.mini-card em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.mini-rank {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.detail-hero {
    background: radial-gradient(circle at 22% 10%, rgba(249, 115, 22, 0.25), transparent 30%), linear-gradient(135deg, #020617, #111827 55%, #431407);
    color: #fff;
}

.detail-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 780px;
    color: #dbe4ef;
    font-size: 18px;
}

.detail-meta span {
    color: #cbd5e1;
}

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

.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.content-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.content-main,
.info-panel {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.content-main h2,
.info-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.content-main p {
    margin: 0 0 20px;
    color: #334155;
    font-size: 17px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(249, 115, 22, 0.94);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
}

.breadcrumb {
    color: #cbd5e1;
}

.breadcrumb a {
    color: #fff;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #0f172a 62%, #111827);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.footer-brand p {
    max-width: 360px;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-links h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
}

.footer-links a,
.footer-links span {
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .hero-panel,
    .detail-cover,
    .side-panel {
        max-width: 460px;
    }

    .side-panel {
        position: static;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 64px;
    }

    .menu-button {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        padding: 12px;
        border-radius: 18px;
        background: #020617;
        border: 1px solid rgba(148, 163, 184, 0.25);
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 13px 16px;
    }

    .hero-slider,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        gap: 28px;
        padding: 42px 0 100px;
    }

    .hero-panel {
        max-width: 320px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .search-strip,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 48px 0;
    }

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

    .rank-row {
        grid-template-columns: 54px 96px 1fr;
    }

    .rank-row img {
        width: 96px;
        height: 70px;
    }

    .rank-row .btn {
        grid-column: 1 / -1;
    }

    .detail-wrap,
    .content-layout {
        padding: 34px 0;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
