:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(30, 41, 59, 0.62);
    --panel-strong: rgba(15, 23, 42, 0.88);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --orange: #f97316;
    --orange-strong: #ea580c;
    --red: #dc2626;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.17), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 48%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-nav {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.28);
}

.logo-text,
.footer-logo span:last-child {
    font-size: 20px;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: var(--muted);
    border-radius: 12px;
    transition: 0.25s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: #fff;
    background: var(--orange);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.88);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 16px;
}

.mobile-menu.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 38%, rgba(15, 23, 42, 0.35) 72%, rgba(15, 23, 42, 0.92) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, #0f172a 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 78px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.hero p,
.page-hero p,
.intro-panel p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

.hero-tags,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.meta-row span {
    padding: 7px 12px;
    border-radius: 10px;
    color: #fff;
    background: rgba(51, 65, 85, 0.82);
    font-size: 14px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

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

.primary-btn:hover {
    background: var(--orange-strong);
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #fff;
    background: rgba(51, 65, 85, 0.72);
    border: 1px solid var(--line);
}

.ghost-btn:hover {
    background: rgba(71, 85, 105, 0.92);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.52);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.76);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: 0.25s ease;
}

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

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

.intro-panel {
    margin-top: 34px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
}

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

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
}

.section-head p {
    margin: 0;
    color: var(--subtle);
}

.section-more {
    color: #fdba74;
    font-weight: 800;
}

.section-more:hover {
    color: #fff;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.54);
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 0 16px;
    color: #fff;
    background: rgba(30, 41, 59, 0.86);
    outline: none;
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.search-box button,
.chip-row button {
    border: 0;
    color: #fff;
    background: rgba(51, 65, 85, 0.9);
    border-radius: 12px;
    transition: 0.22s ease;
}

.search-box button {
    min-width: 82px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip-row button {
    padding: 8px 13px;
    color: var(--muted);
}

.search-box button:hover,
.chip-row button:hover,
.chip-row button.active {
    background: var(--orange);
    color: #fff;
}

.filter-empty {
    display: none;
    margin: 18px 0 0;
    color: var(--subtle);
}

.filter-empty.show {
    display: block;
}

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

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.58);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.88);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
    transform: translateY(-5px) scale(1.02);
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(51, 65, 85, 0.8);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 38px 10px 10px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-shade span {
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(59, 130, 246, 0.78);
    color: #fff;
    font-size: 12px;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.movie-card-body {
    padding: 14px;
}

.movie-card h3 {
    min-height: 44px;
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.movie-card:hover h3 {
    color: #fdba74;
}

.movie-card p {
    min-height: 42px;
    margin: 0;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.feature-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow);
}

.feature-bg,
.feature-layer {
    position: absolute;
    inset: 0;
}

.feature-bg {
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.feature-card:hover .feature-bg {
    transform: scale(1.08);
}

.feature-layer {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.92));
}

.feature-content {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.feature-content h3 {
    margin: 0 0 10px;
    font-size: 26px;
}

.feature-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.58);
    transition: 0.28s ease;
}

.category-card:hover,
.category-overview-card:hover {
    border-color: rgba(249, 115, 22, 0.78);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-thumb {
    min-height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.category-info,
.overview-body {
    padding: 20px;
}

.category-info h3,
.overview-body h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-info p,
.overview-body p {
    margin: 0;
    color: var(--subtle);
    line-height: 1.7;
    font-size: 14px;
}

.overview-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 180px;
}

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

.overview-body span {
    display: inline-flex;
    margin-top: 18px;
    color: #fdba74;
    font-weight: 800;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: auto 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.58);
    transition: 0.25s ease;
}

.ranking-item:hover {
    border-color: rgba(249, 115, 22, 0.75);
    transform: translateY(-3px);
}

.rank-num {
    min-width: 56px;
    color: #fdba74;
    font-size: 22px;
    font-weight: 900;
}

.ranking-item img {
    width: 88px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-info h3 {
    margin: 8px 0;
    color: #fff;
    font-size: 18px;
}

.ranking-info p,
.ranking-meta {
    margin: 0;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.55;
}

.ranking-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-head span {
    padding: 3px 7px;
    border-radius: 7px;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.15);
    font-size: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 70px;
    background:
        radial-gradient(circle at 82% 0%, rgba(249, 115, 22, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.74));
}

.compact-hero {
    border-bottom: 1px solid var(--line);
}

.category-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
}

.category-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}

.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62));
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.detail-page {
    padding: 32px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--subtle);
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-mark {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    font-size: 40px;
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.36);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    min-height: 0;
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    opacity: 0;
    pointer-events: none;
}

.player-status.show {
    opacity: 1;
}

.detail-card {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.62);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.detail-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 26px;
}

.detail-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

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

.detail-meta-grid div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(51, 65, 85, 0.58);
    text-align: center;
}

.detail-meta-grid strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
}

.detail-meta-grid span {
    display: block;
    margin-top: 4px;
    color: var(--subtle);
    font-size: 13px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.14);
}

.text-block {
    margin-top: 26px;
}

.text-block h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.text-block p {
    margin: 0;
    padding: 20px;
    border-radius: 16px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.34);
    line-height: 1.9;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-brand p {
    max-width: 460px;
    margin: 18px 0 0;
    color: var(--subtle);
    line-height: 1.75;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.footer-column a {
    color: var(--subtle);
    font-size: 14px;
}

.footer-column a:hover {
    color: #fdba74;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    text-align: center;
    font-size: 14px;
}

[data-filter-card].hidden {
    display: none;
}

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

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

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        padding-bottom: 64px;
    }

    .intro-panel,
    .section-head,
    .detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid,
    .ranking-grid,
    .ranking-grid.compact,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .catalog-grid,
    .catalog-grid.wide,
    .related-grid,
    .home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .site-nav {
        height: 62px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .intro-panel p,
    .detail-heading p {
        font-size: 16px;
    }

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

    .intro-panel,
    .detail-card {
        padding: 22px;
        border-radius: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        min-height: 44px;
    }

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

    .feature-content h3 {
        font-size: 22px;
    }

    .ranking-item {
        grid-template-columns: auto 76px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-item img {
        width: 76px;
    }

    .rank-num {
        min-width: 42px;
        font-size: 18px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3 {
        min-height: 40px;
        font-size: 14px;
    }

    .movie-card p {
        font-size: 12px;
    }

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

    .play-mark {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }
}
