:root {
    color-scheme: dark;
    --bg: #050609;
    --bg-soft: #111827;
    --panel: rgba(17, 24, 39, 0.72);
    --panel-strong: rgba(31, 41, 55, 0.86);
    --line: rgba(255, 255, 255, 0.09);
    --text: #ffffff;
    --muted: #a7b0c2;
    --muted-2: #717b8f;
    --orange: #f97316;
    --orange-2: #fb923c;
    --red: #dc2626;
    --yellow: #facc15;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 0%, rgba(220, 38, 38, 0.16), transparent 26rem),
        linear-gradient(180deg, #111827 0%, #07080d 36%, #000000 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 10, 16, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
    font-size: 15px;
}

.logo-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--orange-2), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 14px;
    color: #d1d5db;
    font-size: 15px;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(220, 38, 38, 0.92));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(31, 41, 55, 0.92);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.96);
}

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

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

.hero-track,
.hero-slide {
    min-height: 78vh;
}

.hero-slide {
    position: relative;
    display: none;
    align-items: center;
    isolation: isolate;
}

.hero-slide.is-active {
    display: grid;
}

.hero-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.78) 36%, rgba(0, 0, 0, 0.22) 72%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.98) 0%, transparent 44%),
        radial-gradient(circle at 26% 48%, rgba(249, 115, 22, 0.28), transparent 36rem);
}

.hero-content {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 90px;
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(249, 115, 22, 0.52);
    border-radius: 999px;
    color: var(--orange-2);
    background: rgba(249, 115, 22, 0.13);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1,
.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.rank-meta,
.wide-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
}

.hero-meta span,
.rank-meta span,
.wide-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: #fed7aa;
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 750;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.32);
}

.btn-ghost {
    background: rgba(31, 41, 55, 0.74);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

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

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

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(31, 41, 55, 0.82);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.content-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.intro-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.strip-card,
.category-tile,
.category-overview-card,
.movie-card,
.wide-card,
.rank-row,
.player-panel,
.detail-side,
.detail-article,
.catalog-tools {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.strip-card {
    padding: 24px;
    border-radius: 22px;
}

.strip-card span,
.category-copy span {
    color: var(--orange-2);
    font-weight: 800;
    font-size: 13px;
}

.strip-card strong {
    display: block;
    margin: 8px 0;
    font-size: 20px;
}

.strip-card p,
.section-head p,
.category-tile p,
.category-copy p,
.card-desc,
.wide-card p,
.rank-copy p,
.detail-article p,
.footer-brand p {
    color: var(--muted);
}

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

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

.section-head p {
    margin: 6px 0 0;
}

.section-more {
    color: var(--orange-2);
    font-weight: 750;
    white-space: nowrap;
}

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

.category-tile {
    padding: 14px;
    border-radius: 22px;
    transition: 0.25s ease;
    overflow: hidden;
}

.category-tile:hover,
.movie-card:hover,
.wide-card:hover,
.rank-row:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.42);
}

.tile-posters,
.category-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.tile-posters img,
.category-preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-tile h3,
.category-copy h2 {
    margin: 0 0 8px;
}

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

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

.movie-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.25s ease;
}

.poster-box {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 55%);
}

.score-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 850;
}

.rank-badge {
    left: 10px;
    right: auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.play-hover {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: 0.25s ease;
}

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

.card-info {
    padding: 14px;
}

.card-info h3 {
    margin: 0 0 6px;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin: 0 0 8px;
    font-size: 12px;
}

.card-desc {
    margin: 0;
    min-height: 42px;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-tools {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
}

.search-panel {
    display: flex;
    gap: 14px;
    align-items: center;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.7);
}

.search-field input {
    width: 100%;
    height: 46px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-group select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #ffffff;
    background: #111827;
}

.empty-state {
    display: none;
    margin: 14px 0 0;
    color: var(--muted);
}

.empty-state.is-visible {
    display: block;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    transition: 0.25s ease;
}

.wide-card img {
    width: 150px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.wide-card h3 {
    margin: 8px 0 8px;
    font-size: 22px;
}

.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0 32px;
}

.small-hero,
.category-hero,
.ranking-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    transition: 0.25s ease;
}

.category-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 96px 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    transition: 0.25s ease;
}

.rank-row img {
    width: 96px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 900;
}

.rank-num.top-one,
.rank-num.top-two,
.rank-num.top-three {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-copy h2 {
    margin: 0 0 7px;
    font-size: 22px;
}

.rank-copy p {
    margin: 0 0 10px;
}

.breadcrumb {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

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

.detail-layout {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.player-panel,
.detail-side,
.detail-article {
    border-radius: 28px;
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

.player-cover.is-hidden {
    display: none;
}

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

.player-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.24), transparent 20rem);
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.42);
    transform: translate(-50%, -50%);
    font-size: 32px;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.player-title-row h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 36px);
}

.player-title-row p {
    margin: 0;
    color: var(--muted);
}

.detail-side {
    padding: 18px;
}

.detail-poster {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-score {
    margin: 18px 0 8px;
    display: flex;
    align-items: end;
    gap: 10px;
}

.detail-score strong {
    color: var(--yellow);
    font-size: 42px;
    line-height: 1;
}

.detail-score span {
    color: var(--muted);
}

.detail-content {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 0;
}

.detail-article {
    padding: 28px;
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    font-size: 17px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.45);
}

.info-list dt {
    color: var(--muted-2);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 750;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.78);
}

.footer-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.footer-logo .logo-mark {
    width: 34px;
    height: 34px;
}

.footer-brand p {
    max-width: 440px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-content: start;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.24);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted-2);
    font-size: 14px;
}

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 18px;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        padding-top: 100px;
    }

    .intro-strip,
    .category-grid,
    .wide-grid,
    .category-overview-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .search-panel,
    .player-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .category-overview-card,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .content-section,
    .page-hero,
    .breadcrumb,
    .detail-layout,
    .detail-content,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 22px, 1200px);
    }

    .hero-content {
        width: min(100% - 22px, 1200px);
    }

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

    .btn {
        width: 100%;
    }

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

    .card-info {
        padding: 12px;
    }

    .card-info h3 {
        font-size: 14px;
    }

    .wide-card {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }

    .wide-card img {
        width: 110px;
    }

    .rank-meta,
    .hero-meta {
        gap: 6px;
    }

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

    .big-play {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
