:root {
    --bg: #f8fafc;
    --bg-soft: #fff7ed;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --panel: #ffffff;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --orange: #f97316;
    --orange-2: #ea580c;
    --red: #dc2626;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.10), transparent 32rem),
        linear-gradient(135deg, #f8fafc 0%, #fff7ed 48%, #f8fafc 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
    border-bottom: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
}

.top-nav {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand-icon,
.footer-brand span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 19px;
    letter-spacing: 0.04em;
}

.brand-text em {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 18px;
}

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

.nav-links > a,
.nav-group > button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-links > a:hover,
.nav-group:hover > button {
    background: rgba(249, 115, 22, 0.95);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.nav-group {
    position: relative;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 170px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu a {
    border-radius: 10px;
    padding: 9px 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.nav-menu a:hover {
    background: rgba(249, 115, 22, 0.16);
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    height: min(680px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(90deg, #0f172a, #7c2d12 55%, #0f172a);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.30), transparent 28rem),
        linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.92));
    z-index: 2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-media,
.detail-hero::before,
.movie-poster::before {
    background-image: var(--poster), linear-gradient(135deg, #1e293b, #7c2d12);
    background-size: cover;
    background-position: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    filter: saturate(1.08);
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fed7aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.eyebrow.dark {
    border-color: rgba(249, 115, 22, 0.18);
    background: rgba(249, 115, 22, 0.08);
    color: #ea580c;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.info-row,
.detail-tags,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.info-row span,
.detail-tags span,
.tag-line span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

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

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

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

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

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.search-panel,
.content-section,
.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 32px;
    align-items: center;
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.detail-article h2 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.search-panel h2 {
    font-size: clamp(32px, 4vw, 50px);
}

.search-panel p,
.section-head p,
.page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

.search-box {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 20px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.search-box span {
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
}

.search-box.slim {
    min-width: min(100%, 420px);
}

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

.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-more {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff7ed;
    color: #ea580c;
    font-weight: 800;
    transition: 0.25s ease;
}

.section-more:hover {
    background: var(--orange);
    color: #ffffff;
}

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

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

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

.movie-card {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #9a3412);
}

.movie-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.88;
    transition: transform 0.6s ease;
}

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
}

.score,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.score {
    right: 12px;
    background: rgba(249, 115, 22, 0.95);
    color: #ffffff;
}

.rank-badge {
    left: 12px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
}

.play-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: 0.28s ease;
}

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

.movie-body {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
}

.movie-body h3 {
    margin: 0 0 9px;
    min-height: 2.7em;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.movie-body p {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-line span {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.is-small .movie-body h3 {
    font-size: 16px;
}

.is-small .movie-body p {
    -webkit-line-clamp: 2;
    min-height: 3.2em;
}

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

.category-band {
    padding-top: 32px;
    padding-bottom: 32px;
}

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

.category-chip {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.category-chip:hover {
    border-color: rgba(249, 115, 22, 0.55);
    transform: translateY(-3px);
}

.category-chip strong {
    color: #0f172a;
    font-size: 18px;
}

.category-chip span {
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.filter-chip {
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    padding: 10px 15px;
    background: #ffffff;
    color: #ea580c;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    background: var(--orange);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.page-hero {
    background: linear-gradient(120deg, #0f172a, #7c2d12 60%, #0f172a);
    color: #ffffff;
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 5vw, 66px);
}

.page-hero p {
    color: #e2e8f0;
    font-size: 18px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    filter: blur(1px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(124, 45, 18, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 60px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.detail-title-row h1 {
    max-width: 860px;
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-title-row p {
    max-width: 820px;
    margin: 0;
    color: #e2e8f0;
    font-size: 20px;
}

.score-card {
    flex: 0 0 auto;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.10);
    text-align: center;
    backdrop-filter: blur(14px);
}

.score-card b {
    display: block;
    color: #fdba74;
    font-size: 44px;
    line-height: 1;
}

.score-card span {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.30);
}

.site-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.62));
    color: #ffffff;
    cursor: pointer;
    transition: 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.94);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
    font-size: 32px;
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #e2e8f0;
    font-size: 13px;
    opacity: 0;
    transition: 0.25s ease;
}

.player-status:not(:empty) {
    opacity: 1;
}

.detail-article {
    margin-top: 34px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 46px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 26px;
}

.detail-article h2:first-of-type {
    margin-top: 24px;
}

.detail-article p {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.info-row span,
.detail-tags span {
    background: #fff7ed;
    color: #ea580c;
}

.related-section {
    margin-top: 52px;
}

.site-footer {
    margin-top: 56px;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
    color: #cbd5e1;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 30px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.20);
    color: #94a3b8;
    font-size: 13px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[hidden] {
    display: none !important;
}

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

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

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

@media (max-width: 780px) {
    .top-nav {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
    }

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

    .nav-group,
    .nav-group > button,
    .nav-links > a {
        width: 100%;
        text-align: left;
    }

    .nav-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: grid;
        margin-top: 6px;
        box-shadow: none;
    }

    .hero-carousel {
        min-height: 620px;
    }

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

    .search-panel,
    .filter-toolbar,
    .detail-title-row,
    .section-head,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .search-panel {
        display: grid;
    }

    .split-block {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .catalog-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .score-card {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .catalog-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .content-section,
    .search-panel,
    .detail-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-copy {
        padding-left: 16px;
        padding-right: 16px;
    }
}
