:root {
    --site-bg: #0f172a;
    --site-card: #ffffff;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-accent: #f59e0b;
    --site-accent-dark: #d97706;
    --site-dark: #020617;
    --site-radius: 1.25rem;
    --site-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

body {
    min-height: 100vh;
    background: #f8fafc;
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
    font-size: 0.82rem;
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #111827;
    background: #fef3c7;
}

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

.header-search input,
.mobile-search input,
.listing-toolbar input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    outline: none;
    padding: 12px 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.listing-toolbar input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 1.2rem;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

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

.mobile-search {
    margin-top: 8px;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 1s ease, visibility 1s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.15)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.08) 45%, rgba(2, 6, 23, 0.24));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 80px;
    max-width: 760px;
    color: #ffffff;
}

.hero-eyebrow,
.section-heading span,
.listing-toolbar span,
.page-hero-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #f59e0b;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 0.94;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.tag-list span {
    background: #f3f4f6;
    color: #4b5563;
}

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

.primary-button,
.secondary-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.28);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
    width: 48px;
    background: #f59e0b;
}

.section-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.listing-toolbar h2,
.page-hero-content h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.section-heading p,
.page-hero-content p {
    margin-top: 14px;
    color: #64748b;
    font-size: 1.04rem;
    line-height: 1.8;
}

.row-heading,
.listing-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    min-height: 40px;
    color: #92400e;
    background: #fef3c7;
}

.quick-stats,
.category-grid,
.movie-grid,
.category-overview-grid,
.detail-text-grid,
.footer-shell {
    display: grid;
    gap: 24px;
}

.quick-stats {
    grid-template-columns: repeat(3, 1fr);
}

.quick-stats a,
.category-tile,
.category-overview-card,
.movie-card,
.detail-side-card,
.detail-article {
    border: 1px solid #e5e7eb;
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.quick-stats a {
    display: grid;
    gap: 6px;
    padding: 26px;
}

.quick-stats strong {
    font-size: 1.35rem;
    font-weight: 950;
}

.quick-stats span {
    color: #64748b;
}

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

.category-tile {
    position: relative;
    min-height: 196px;
    overflow: hidden;
    padding: 24px;
    color: #111827;
}

.category-glow {
    position: absolute;
    inset: auto -30% -40% -30%;
    height: 120px;
    opacity: 0.14;
    filter: blur(18px);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-tile strong {
    position: relative;
    display: block;
    font-size: 1.35rem;
    font-weight: 950;
}

.category-tile em,
.category-tile small {
    position: relative;
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-style: normal;
    line-height: 1.65;
}

.category-tile small {
    color: #92400e;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #0f172a;
    background-image: linear-gradient(135deg, #111827, #92400e);
    background-position: center;
    background-size: cover;
}

.poster-frame::after,
.detail-poster::after,
.rank-thumb::after,
.category-poster-stack span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.04));
}

.poster-badge,
.poster-year {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    color: #111827;
    background: #f59e0b;
}

.poster-year {
    right: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

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

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

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

.movie-card-body h2 {
    min-height: 3.1rem;
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.06rem;
    line-height: 1.45;
    font-weight: 950;
}

.movie-card-body p {
    min-height: 3.2rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

.movie-meta-line {
    margin: 12px 0;
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 900;
}

.highlight-block {
    width: min(1320px, calc(100% - 24px));
    margin-top: 72px;
    padding: 54px 20px;
    border-radius: 36px;
    background: linear-gradient(135deg, #111827, #451a03);
}

.highlight-block .section-heading h2,
.highlight-block .section-heading p {
    color: #ffffff;
}

.highlight-block .movie-card {
    border-color: rgba(255, 255, 255, 0.14);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, #020617, #111827);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    top: 18%;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    filter: blur(40px);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 820px;
}

.page-hero-content h1,
.page-hero-content p {
    color: #ffffff;
}

.slim-hero {
    padding-bottom: 72px;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 230px;
}

.category-poster-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    background: #111827;
}

.category-poster-stack span {
    position: relative;
    background-position: center;
    background-size: cover;
    border-radius: 16px;
}

.category-overview-body {
    padding: 26px;
}

.category-overview-body h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 950;
}

.category-overview-body p {
    margin-top: 12px;
    color: #64748b;
    line-height: 1.75;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-samples a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 0.82rem;
    font-weight: 800;
}

.listing-toolbar {
    margin-bottom: 28px;
}

.listing-toolbar input {
    max-width: 360px;
}

.empty-result {
    display: none;
    margin-top: 24px;
    color: #64748b;
    text-align: center;
}

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

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

.rank-row a {
    display: grid;
    grid-template-columns: 70px 72px 1fr 92px;
    align-items: center;
    gap: 18px;
    min-height: 96px;
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 38px rgba(15, 23, 42, 0.06);
}

.rank-number {
    color: #f59e0b;
    font-size: 1.35rem;
    font-weight: 950;
}

.rank-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 18px;
    background-color: #111827;
    background-position: center;
    background-size: cover;
}

.rank-main strong,
.rank-main em {
    display: block;
}

.rank-main strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
}

.rank-main em {
    margin-top: 6px;
    color: #64748b;
    font-style: normal;
}

.rank-action {
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    align-items: center;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.46)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
    backdrop-filter: blur(6px);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    align-items: end;
    gap: 48px;
    padding: 86px 0 72px;
}

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background-color: #111827;
    background-position: center;
    background-size: cover;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.detail-one-line {
    max-width: 820px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.16rem;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    scroll-margin-top: 96px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: radial-gradient(circle at center, #1e293b, #020617);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.52), rgba(120, 53, 15, 0.28));
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: #f59e0b;
    font-size: 2rem;
    box-shadow: 0 24px 64px rgba(245, 158, 11, 0.38);
}

.play-overlay strong {
    font-size: 1.25rem;
}

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

.detail-text-grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
}

.detail-article,
.detail-side-card {
    padding: 32px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    font-weight: 950;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    color: #334155;
    font-size: 1.05rem;
    line-height: 2;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
}

.detail-side-card dt {
    color: #64748b;
    font-weight: 900;
}

.detail-side-card dd {
    color: #111827;
    font-weight: 800;
}

.site-footer {
    margin-top: 86px;
    color: #cbd5e1;
    background: #020617;
}

.footer-shell {
    width: min(1280px, calc(100% - 32px));
    grid-template-columns: 2fr 1fr 1fr;
    margin: 0 auto;
    padding: 56px 0;
}

.footer-logo {
    color: #ffffff;
}

.site-footer p {
    max-width: 560px;
    margin-top: 18px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 18px;
    color: #f59e0b;
    font-size: 1rem;
    font-weight: 950;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.92rem;
}

[data-searchable][hidden] {
    display: none !important;
}

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

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

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

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

    .hero-slider {
        min-height: 560px;
    }

    .hero-content {
        bottom: 74px;
    }

    .hero-control {
        display: none;
    }

    .quick-stats,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-overview-grid,
    .detail-text-grid,
    .footer-shell {
        grid-template-columns: 1fr 1fr;
    }

    .category-overview-card a,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .category-poster-stack {
        min-height: 220px;
    }

    .detail-shell {
        min-height: auto;
        padding-top: 56px;
    }

    .detail-poster {
        width: min(320px, 72vw);
    }
}

@media (max-width: 640px) {
    .nav-shell {
        width: min(100% - 24px, 1280px);
        height: 64px;
    }

    .site-logo,
    .footer-logo {
        font-size: 1.06rem;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .hero-slider {
        height: 76vh;
        min-height: 560px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 64px;
    }

    .hero-content h1,
    .detail-info h1 {
        letter-spacing: -0.05em;
    }

    .section-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 52px;
    }

    .quick-stats,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-overview-grid,
    .detail-text-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .row-heading,
    .listing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .listing-toolbar input {
        max-width: none;
    }

    .movie-card-body h2 {
        min-height: auto;
    }

    .rank-row a {
        grid-template-columns: 44px 60px 1fr;
        gap: 12px;
    }

    .rank-action {
        display: none;
    }

    .rank-thumb {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .detail-shell {
        width: min(100% - 24px, 1280px);
        gap: 28px;
        padding-bottom: 52px;
    }

    .detail-poster {
        width: min(260px, 78vw);
        border-radius: 26px;
    }

    .detail-article,
    .detail-side-card {
        padding: 24px;
    }

    .video-shell {
        border-radius: 22px;
    }
}
