:root {
    color-scheme: dark;
    --bg: #060608;
    --bg-soft: #111116;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #b7bdc9;
    --gold: #f59e0b;
    --gold-soft: #fde68a;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(220, 38, 38, 0.16), transparent 32%),
        linear-gradient(145deg, #020617 0%, #0c0a09 55%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(22px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #111827;
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.28);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(245, 158, 11, 0.16);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(280px, 26vw);
}

.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: none;
}

.header-search button {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #111827;
    font-weight: 900;
}

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

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    margin: 28px auto 44px;
    min-height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #050505;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 32px;
    align-items: center;
    padding: clamp(30px, 5vw, 70px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.65s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.48) 100%),
        var(--hero-bg) center / cover no-repeat;
    filter: saturate(1.1);
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 18%, rgba(245, 158, 11, 0.25), transparent 36%);
    z-index: -1;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(245, 158, 11, 0.14);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-title {
    max-width: 780px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-desc {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.9;
}

.hero-meta,
.detail-meta,
.card-meta,
.inline-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-meta {
    margin-top: 24px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster {
    position: relative;
    width: min(380px, 100%);
    justify-self: end;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(127, 29, 29, 0.24));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: clamp(24px, 5vw, 70px);
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(18px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    opacity: 0.52;
}

.hero-dot.is-active {
    width: 52px;
    opacity: 1;
    background: var(--gold);
}

.section {
    margin: 44px 0;
}

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

.section-kicker {
    color: var(--gold-soft);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-desc {
    color: var(--muted);
    max-width: 760px;
    line-height: 1.9;
    margin-top: 10px;
}

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

.category-card {
    position: relative;
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.2), transparent 36%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.38);
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.3), transparent 36%),
        rgba(255, 255, 255, 0.09);
}

.category-name {
    font-size: 22px;
    font-weight: 950;
}

.category-intro {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 12px;
}

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

.movie-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.36);
    background: rgba(255, 255, 255, 0.09);
}

.poster-frame {
    position: relative;
    display: block;
    background:
        radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.28), transparent 42%),
        linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(7, 10, 16, 0.92));
    overflow: hidden;
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.22s ease;
}

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

.poster-hidden {
    opacity: 0;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: rgba(251, 191, 36, 0.96);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 16px;
    line-height: 1.38;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.card-meta {
    margin-top: 9px;
    gap: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.card-desc {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 80px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.36);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-size: 20px;
    font-weight: 950;
}

.rank-thumb {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

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

.rank-title {
    font-size: 17px;
    font-weight: 950;
    line-height: 1.4;
}

.rank-desc {
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

.filter-input {
    flex: 1 1 280px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: none;
}

.select-filter {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(17, 17, 22, 0.98);
    color: var(--text);
    outline: none;
}

.page-hero {
    position: relative;
    margin: 34px 0 28px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.24), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
    box-shadow: var(--shadow);
}

.page-title {
    max-width: 900px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.page-desc {
    max-width: 820px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 17px;
    margin-top: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 18px;
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.detail-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 22px 68px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.detail-content {
    padding: clamp(20px, 3vw, 32px);
}

.video-player {
    position: relative;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #111827;
    font-size: 36px;
    font-weight: 950;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.38);
}

.detail-title {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.detail-meta {
    margin-top: 16px;
}

.detail-lead {
    color: rgba(255, 255, 255, 0.86);
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.95;
}

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

.detail-section h2 {
    font-size: 24px;
    font-weight: 950;
    margin-bottom: 12px;
}

.detail-section p {
    color: var(--muted);
    line-height: 2;
    margin-top: 10px;
}

.side-panel {
    padding: 18px;
}

.side-title {
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 14px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: rgba(245, 158, 11, 0.12);
    transform: translateX(3px);
}

.related-item img {
    width: 64px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.related-title {
    font-weight: 900;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.68);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, 0.62);
}

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

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

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

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

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

@media (max-width: 860px) {
    .header-inner {
        min-height: 66px;
    }

    .header-search {
        display: none;
    }

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

    .nav-links {
        position: fixed;
        top: 66px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero,
    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: end;
        padding: 28px 22px 96px;
    }

    .hero-poster {
        width: min(270px, 74vw);
        justify-self: start;
        order: -1;
        transform: none;
    }

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

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

    .ranking-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    main,
    .header-inner,
    .footer-inner {
        width: min(100% - 22px, 1240px);
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero {
        margin-top: 16px;
        border-radius: 24px;
        min-height: 690px;
    }

    .hero-track {
        min-height: 690px;
    }

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

    .hero-desc {
        font-size: 16px;
        line-height: 1.75;
    }

    .hero-controls {
        left: 22px;
        bottom: 22px;
    }

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

    .card-body {
        padding: 12px;
    }

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

    .card-desc {
        display: none;
    }

    .rank-item {
        grid-template-columns: 48px 66px minmax(0, 1fr);
    }

    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 15px;
    }

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

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }
}
