:root {
    color-scheme: dark;
    --bg: #070707;
    --bg-soft: #101114;
    --panel: #15171c;
    --panel-strong: #1f232b;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #a7adba;
    --muted-2: #747b8a;
    --gold: #f6c44f;
    --gold-strong: #f59e0b;
    --gold-soft: rgba(246, 196, 79, 0.16);
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius: 22px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 6%, rgba(245, 158, 11, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(239, 68, 68, 0.12), transparent 32rem),
        linear-gradient(180deg, #050505 0%, #0d0e12 48%, #08090b 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(3, 3, 3, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand {
    font-size: 22px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #050505;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.nav-link {
    color: #d1d5db;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    transition: color 0.22s ease, background 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.catalog-filter input,
.catalog-filter select {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(31, 35, 43, 0.82);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 238px;
    padding-right: 88px;
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.hero-control,
.play-overlay,
.catalog-filter button {
    border: 0;
    cursor: pointer;
}

.header-search button,
.mobile-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 14px;
    color: #060606;
    border-radius: 999px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
}

.header-search input:focus,
.mobile-search input:focus,
.catalog-filter input:focus,
.catalog-filter select:focus {
    border-color: rgba(246, 196, 79, 0.82);
    box-shadow: 0 0 0 4px rgba(246, 196, 79, 0.12);
    background: rgba(31, 35, 43, 0.98);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 4px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-cats a,
.footer-links a,
.category-link-row a,
.tag-row span,
.info-chip,
.breadcrumbs a,
.breadcrumbs span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-cats a {
    padding: 8px 12px;
    color: #d1d5db;
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 3, 3, 0.96) 0%, rgba(3, 3, 3, 0.82) 36%, rgba(3, 3, 3, 0.32) 70%, rgba(3, 3, 3, 0.8) 100%),
        radial-gradient(circle at 16% 30%, rgba(245, 158, 11, 0.32), transparent 24rem);
    z-index: 2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 640px;
    display: grid;
    align-content: center;
    gap: 22px;
    padding: 86px 0 96px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    color: #050505;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    border-radius: 999px;
    font-weight: 900;
    padding: 8px 14px;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.24);
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #d5d9e2;
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.detail-actions,
.category-link-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.primary-btn {
    color: #050505;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.24);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-control:hover,
.movie-card:hover {
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #e5e7eb;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-control {
    width: 44px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-control.active {
    width: 74px;
    background: var(--gold);
}

.quick-strip {
    position: relative;
    z-index: 6;
    margin-top: -54px;
}

.quick-strip-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-card {
    min-height: 108px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(21, 23, 28, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: transform 0.2s ease, border 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 196, 79, 0.54);
}

.quick-card strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
}

.quick-card span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.main {
    padding: 76px 0;
}

.section {
    margin-bottom: 72px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 44px);
}

.section-head p,
.page-title p,
.category-card p,
.detail-title p,
.footer-grid p,
.body-copy p {
    color: var(--muted);
    line-height: 1.75;
}

.section-more {
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    background: rgba(21, 23, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(246, 196, 79, 0.42);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 20%, rgba(246, 196, 79, 0.18), transparent 13rem),
        #111318;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
}

.category-pill,
.duration-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.category-pill {
    left: 10px;
    top: 10px;
    color: #050505;
    background: var(--gold);
}

.duration-pill {
    right: 10px;
    bottom: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    color: #fff;
    background: rgba(239, 68, 68, 0.88);
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    min-height: 46px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.card-body h3 a:hover {
    color: var(--gold);
}

.card-desc {
    min-height: 45px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #c7cbd5;
    font-size: 13px;
}

.meta-line span,
.info-chip {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    color: #d8dde8;
    padding: 5px 8px;
    font-size: 12px;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #101114;
    box-shadow: var(--shadow);
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 35%, rgba(0, 0, 0, 0.9) 100%);
}

.feature-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 34px;
}

.feature-text h3 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 54px);
    letter-spacing: -0.05em;
}

.feature-text p {
    max-width: 720px;
    color: #e3e6ee;
    line-height: 1.8;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(246, 196, 79, 0.48);
}

.rank-num {
    color: var(--gold);
    font-size: 28px;
    font-weight: 1000;
    text-align: center;
}

.rank-row img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #15171c;
}

.rank-row h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.rank-row p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 82% 20%, rgba(246, 196, 79, 0.18), transparent 10rem),
        rgba(21, 23, 28, 0.88);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 196, 79, 0.46);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
}

.category-card p {
    margin: 0;
    font-size: 14px;
}

.category-link-row a {
    color: #e9edf5;
    padding: 9px 13px;
}

.page-hero {
    padding: 72px 0 36px;
    border-bottom: 1px solid var(--line);
}

.page-title {
    width: min(980px, 100%);
}

.page-title h1 {
    margin-top: 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

.page-title p {
    font-size: 17px;
}

.catalog-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 190px;
    gap: 12px;
    margin: 0 0 26px;
}

.empty-state {
    display: none;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 64px;
    border-bottom: 1px solid var(--line);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.94)),
        var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(0px);
    opacity: 0.86;
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    background: #15171c;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #dbe0ea;
    font-size: 14px;
}

.breadcrumbs a,
.breadcrumbs span {
    padding: 7px 10px;
}

.detail-title h1 {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
}

.detail-title p {
    max-width: 820px;
    font-size: 18px;
}

.detail-meta {
    margin: 18px 0 22px;
}

.info-chip {
    color: #eef2f8;
}

.player-shell {
    margin-top: 32px;
}

.player-area {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: #020202;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-area video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(246, 196, 79, 0.26), rgba(0, 0, 0, 0.44) 36%, rgba(0, 0, 0, 0.72) 100%);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #050505;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    box-shadow: 0 26px 64px rgba(245, 158, 11, 0.34);
    font-size: 30px;
    padding-left: 5px;
}

.player-area.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.content-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(21, 23, 28, 0.86);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.content-panel {
    padding: 30px;
}

.side-panel {
    padding: 22px;
    position: sticky;
    top: 88px;
}

.body-copy h2,
.side-panel h2 {
    margin-top: 0;
}

.body-copy p {
    margin: 0 0 18px;
    font-size: 16px;
}

.side-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.side-link:last-child {
    border-bottom: 0;
}

.side-link img {
    width: 64px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #111318;
}

.side-link strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(9, 10, 12, 0.96);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 34px;
}

.footer-brand {
    font-size: 20px;
    margin-bottom: 14px;
}

.footer-grid h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

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

.footer-links a {
    color: #d1d5db;
    padding: 8px 11px;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 42px;
    padding: 20px 16px;
    text-align: center;
    color: var(--muted-2);
    border-top: 1px solid var(--line);
}

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

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

    .feature-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-header.menu-open .mobile-panel {
        display: block;
    }

    .mobile-search {
        width: 100%;
    }

    .mobile-search input {
        width: 100%;
    }

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

    .quick-strip {
        margin-top: 18px;
    }

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

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

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

    .detail-poster {
        width: min(320px, 100%);
    }

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

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

@media (max-width: 620px) {
    .container,
    .header-inner,
    .mobile-panel,
    .quick-strip-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero h1 {
        font-size: 40px;
    }

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

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

    .category-grid,
    .quick-strip-inner {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

    .rank-row {
        grid-template-columns: 42px 72px 1fr;
        gap: 10px;
    }

    .rank-row img {
        width: 72px;
    }

    .content-panel,
    .side-panel {
        padding: 20px;
    }

    .player-area {
        border-radius: 18px;
    }
}
