:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(30, 41, 59, 0.82);
    --panel-solid: #1e293b;
    --panel-soft: #334155;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --amber: #f59e0b;
    --amber-deep: #d97706;
    --orange: #f97316;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.17), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.14), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.page-shell,
.hero-inner,
.intro-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo {
    font-size: 21px;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.34);
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-mark {
    transform: scale(1.08) rotate(-3deg);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-weight: 650;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-shell a {
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: #ffffff;
}

.nav-link.is-active {
    color: var(--amber);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.72);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(30, 41, 59, 0.45);
}

.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.76);
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: var(--bg-deep);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.7) 30%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 82px 0;
}

.hero-copy {
    max-width: 760px;
    animation: riseIn 0.75s ease both;
}

.hero-eyebrow,
.eyebrow {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 22px 44px rgba(2, 6, 23, 0.64);
}

.hero-text {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.intro-actions a,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.primary-button,
.intro-actions a:first-child {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.3);
}

.ghost-button,
.intro-actions a:last-child {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(14px);
}

.ghost-button.small {
    min-height: 40px;
    padding: 0 18px;
}

.primary-button:hover,
.ghost-button:hover,
.intro-actions a:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.52);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: max(18px, calc((100vw - 1240px) / 2 - 74px));
}

.hero-next {
    right: max(18px, calc((100vw - 1240px) / 2 - 74px));
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

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

.intro-panel {
    padding: 36px 0 0;
}

.intro-shell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 34px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.72));
    box-shadow: var(--shadow);
}

.intro-shell h2,
.page-title-block h1,
.section-heading h2,
.detail-head h1 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.intro-shell h2,
.page-title-block h1,
.detail-head h1 {
    font-size: clamp(32px, 4.8vw, 54px);
    line-height: 1.12;
}

.intro-shell p,
.page-title-block p,
.detail-head p {
    max-width: 820px;
    color: var(--muted);
    line-height: 1.85;
}

.page-shell {
    padding: 56px 0;
}

.top-space {
    padding-top: 46px;
}

.page-title-block {
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 34px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(30, 41, 59, 0.72));
    box-shadow: var(--shadow);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.25);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--subtle);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.86);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.no-results {
    margin: -8px 0 34px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 16px;
    padding: 18px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
}

.content-section {
    margin-top: 62px;
}

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

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-more {
    min-height: 40px;
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.68);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.movie-card-link:hover {
    transform: translateY(-7px) scale(1.01);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 26px 58px rgba(2, 6, 23, 0.38);
}

.movie-poster {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.movie-card:not(.is-compact) .movie-poster {
    aspect-ratio: 2 / 2.7;
}

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

.movie-card-link:hover .movie-poster img {
    transform: scale(1.08);
    filter: saturate(1.12) brightness(0.88);
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.1) 35%, rgba(2, 6, 23, 0.88) 100%);
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 42px;
    border-radius: 999px;
    padding: 7px 10px;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.34);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtle);
    font-size: 12px;
}

.movie-meta-line span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.movie-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.28s ease;
}

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

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

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

.tag-row span {
    padding: 5px 9px;
    color: #fde68a;
    font-size: 12px;
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.08);
}

.tag-row.large span {
    padding: 8px 12px;
    font-size: 13px;
}

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

.category-tile,
.category-overview-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.72);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.88));
}

.category-tile-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    gap: 8px;
    padding: 20px;
}

.category-tile-content strong {
    color: #ffffff;
    font-size: 23px;
}

.category-tile-content em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

.category-overview-card a {
    min-height: 0;
    padding: 18px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-cover-stack img {
    width: 100%;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 25px;
}

.category-overview-card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--subtle);
}

.breadcrumb a {
    color: #fcd34d;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
}

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

.player-card,
.detail-side-card,
.story-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.76);
    box-shadow: var(--shadow);
}

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

.main-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76));
}

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

.player-play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.32);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 8;
    border-radius: 14px;
    padding: 13px 15px;
    color: #ffffff;
    background: rgba(185, 28, 28, 0.88);
}

.detail-side-card {
    padding: 18px;
}

.detail-side-card img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 2 / 2.7;
    margin-bottom: 18px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side-card dl div {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 10px;
}

.detail-side-card dt {
    color: var(--subtle);
    font-size: 13px;
}

.detail-side-card dd {
    margin: 0;
    color: #ffffff;
    font-weight: 750;
    line-height: 1.6;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 28px;
}

.story-card {
    padding: 24px;
}

.tags-card {
    grid-column: 1 / -1;
}

.story-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

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

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

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

.footer-shell {
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 16px;
    font-size: 20px;
}

.footer-shell p,
.footer-shell li,
.footer-shell a {
    color: var(--subtle);
    line-height: 1.8;
}

.footer-shell a:hover {
    color: #fbbf24;
}

.footer-shell h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-shell ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 22px;
    text-align: center;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-inner {
        padding: 70px 0;
    }

    .hero-control {
        display: none;
    }

    .filter-panel,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-head {
        display: grid;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .footer-shell,
    .page-shell,
    .hero-inner,
    .intro-shell {
        width: min(100% - 22px, 1240px);
    }

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

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

    .hero-slider {
        height: 520px;
    }

    .hero-meta span {
        font-size: 12px;
    }

    .hero-actions,
    .intro-actions,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro-shell,
    .page-title-block,
    .detail-head {
        padding: 22px;
        border-radius: 22px;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

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

    .story-card {
        padding: 20px;
    }

    .category-cover-stack img {
        height: 70px;
    }
}
