:root {
    --bg: #030712;
    --bg-soft: #111827;
    --panel: #0b1220;
    --panel-2: #1f2937;
    --line: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #9ca3af;
    --muted-2: #d1d5db;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #030712 0%, #111827 52%, #030712 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-logo.small {
    font-size: 15px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), #fb923c);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

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

.site-nav a {
    padding: 9px 13px;
    color: var(--muted-2);
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-search {
    width: 260px;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.72);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
}

.nav-search button {
    height: 100%;
    padding: 0 14px;
    color: #ffffff;
    background: var(--orange);
    border: 0;
}

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

.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: brightness(0.34) blur(10px);
    transform: scale(1.05);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 42%, rgba(249, 115, 22, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.12), #030712 92%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.5), rgba(3, 7, 18, 0.9));
}

.hero-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 130px 0 86px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 64px;
}

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

.kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(42px, 8vw, 84px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 700px;
    margin: 24px 0 0;
    color: var(--muted-2);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.meta-row,
.genre-pills,
.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.meta-row span,
.genre-pills span,
.tag-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--muted-2);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line);
    border-radius: 999px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.28);
}

.btn.primary:hover {
    background: var(--orange-dark);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.btn.small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

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

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

.hero-arrow {
    width: 42px;
    height: 42px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

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

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

.hero-dot.active {
    width: 28px;
    background: var(--orange);
}

.section {
    padding: 72px 0;
}

.section-band {
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.18), rgba(17, 24, 39, 0.35));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-head p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-link {
    flex: 0 0 auto;
    color: #ffffff;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
}

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

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

.movie-card,
.mini-card,
.category-overview-card {
    min-width: 0;
}

.movie-card-link,
.mini-card-link,
.category-overview-card a {
    display: block;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

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

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-tag,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.poster-tag {
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    background: rgba(249, 115, 22, 0.96);
}

.rank-badge {
    right: 10px;
    top: 10px;
    min-width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.card-copy {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.card-copy strong {
    min-height: 44px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover strong,
.mini-card:hover strong {
    color: #fb923c;
}

.card-copy span {
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-copy em,
.mini-info em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

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

.category-card {
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82)), var(--category-image);
    background-position: center;
    background-size: cover;
    opacity: 0.54;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.72;
    transform: scale(1.06);
}

.category-card span,
.category-card strong {
    position: relative;
    z-index: 1;
}

.category-card span {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.category-card strong {
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.6;
}

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

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

.mini-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card-link:hover {
    background: rgba(31, 41, 55, 0.86);
    transform: translateY(-2px);
}

.mini-thumb {
    position: relative;
    flex: 0 0 112px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: var(--panel-2);
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.mini-info strong {
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-main {
    padding-top: 72px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 64px;
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.18), transparent 30%),
        linear-gradient(135deg, #030712, #111827 60%, #030712);
    border-bottom: 1px solid var(--line);
}

.page-hero.compact h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.05;
}

.page-hero.compact p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-bar {
    width: min(760px, 100%);
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.filter-bar input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
}

.filter-bar input:focus {
    border-color: rgba(249, 115, 22, 0.86);
}

.js-filter-count {
    color: var(--muted);
    white-space: nowrap;
}

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

.category-overview-card a {
    overflow: hidden;
    height: 100%;
    background: rgba(17, 24, 39, 0.84);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-overview-card a:hover {
    transform: translateY(-3px);
    background: rgba(31, 41, 55, 0.9);
}

.overview-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
}

.overview-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-copy {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.overview-copy strong {
    color: #ffffff;
    font-size: 22px;
}

.overview-copy em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 42px 0 80px;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-position: center top;
    background-size: cover;
    filter: brightness(0.2) blur(14px);
    transform: scale(1.07);
}

.detail-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.34), #030712 38%, #030712 100%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #ffffff;
    background: var(--orange);
    border-radius: 999px;
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.32);
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(20px, 3vw, 32px);
    text-align: center;
}

.detail-copy {
    margin-top: 24px;
    padding: 26px;
    background: rgba(17, 24, 39, 0.76);
    border: 1px solid var(--line);
    border-radius: 22px;
    backdrop-filter: blur(10px);
}

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

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
}

.meta-row {
    margin: 16px 0 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-copy section + section {
    margin-top: 28px;
}

.detail-copy h2,
.side-panel h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 22px;
}

.detail-copy p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.9;
}

.detail-copy p + p {
    margin-top: 14px;
}

.genre-pills,
.tag-pills {
    margin-top: 12px;
}

.tag-pills a:hover {
    color: #ffffff;
    background: var(--orange);
}

.review-box {
    padding: 22px;
    background: rgba(3, 7, 18, 0.48);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.detail-side {
    position: sticky;
    top: 94px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.side-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

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

.side-panel {
    padding: 18px;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid var(--line);
    border-radius: 22px;
}

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

.side-list .mini-thumb {
    flex-basis: 96px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #030712;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
}

.footer-inner p {
    margin: 0;
    max-width: 520px;
    line-height: 1.7;
}

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

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

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

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

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

    .hero-poster {
        width: min(320px, 70vw);
        margin: 0 auto;
    }

    .detail-side {
        position: static;
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .header-inner {
        gap: 12px;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: rgba(3, 7, 18, 0.96);
        border-bottom: 1px solid var(--line);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 14px;
    }

    .nav-search {
        width: min(42vw, 230px);
        margin-left: auto;
    }

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

    .hero-container {
        gap: 36px;
        padding-top: 118px;
        text-align: center;
    }

    .hero-copy,
    .hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tags,
    .hero-actions {
        justify-content: center;
    }

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

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

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

    .side-poster {
        display: none;
    }
}

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

    .site-logo span:last-child {
        max-width: 116px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-search {
        display: none;
    }

    .hero-slider {
        min-height: 820px;
    }

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

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

    .card-copy strong {
        font-size: 14px;
    }

    .card-copy span {
        display: none;
    }

    .mini-thumb {
        flex-basis: 88px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .detail-copy {
        padding: 18px;
    }

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