:root {
    --night-950: #0b1f33;
    --night-900: #102a43;
    --night-850: #183752;
    --night-800: #243b53;
    --night-700: #334e68;
    --night-600: #486581;
    --text-main: #f3f4f6;
    --text-muted: #b6c2cf;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(16, 42, 67, 0.72);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 32rem),
        linear-gradient(180deg, var(--night-900), var(--night-950));
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background-color: rgba(255, 255, 255, 0.04);
}

a {
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 31, 51, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--amber), #ffcc66);
    color: #111827;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.28);
}

.brand-text {
    font-size: 1.2rem;
}

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

.nav-link {
    color: #d1d5db;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fbbf24;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(36, 59, 83, 0.86);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.wide-search input,
.movie-filter-input {
    border: 0;
    outline: 0;
    color: #f9fafb;
    background: rgba(16, 42, 67, 0.9);
}

.header-search input {
    width: 14rem;
    padding: 0.7rem 0.85rem;
}

.header-search button,
.mobile-search button,
.wide-search button {
    padding: 0.7rem 1rem;
    color: #111827;
    font-weight: 700;
    background: var(--amber);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    font-size: 1.6rem;
}

.mobile-panel {
    display: none;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 1rem;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search {
    display: flex;
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid var(--line);
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem;
}

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.mobile-links a,
.nav-chip,
.hero-categories a,
.filter-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d1d5db;
    background: rgba(36, 59, 83, 0.72);
    padding: 0.45rem 0.8rem;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 34rem;
    overflow: hidden;
    background: var(--night-900);
}

.hero-static-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-bg,
.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 31, 51, 0.94), rgba(16, 42, 67, 0.72), rgba(16, 42, 67, 0.24)),
        linear-gradient(0deg, rgba(11, 31, 51, 0.94), transparent 60%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
    width: min(42rem, calc(100% - 2rem));
    transform: translateY(-50%);
    animation: fadeIn 0.6s ease-in-out;
}

.hero-kicker,
.section-kicker {
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h2,
.page-hero h1,
.detail-title-wrap h1 {
    margin-top: 0.75rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.02;
    font-weight: 900;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.hero-desc,
.page-hero p,
.detail-one-line {
    max-width: 44rem;
    margin-top: 1rem;
    color: #e5e7eb;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    font-weight: 800;
}

.hero-side-card {
    position: absolute;
    right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
    top: 50%;
    width: 18rem;
    transform: translateY(-50%);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(11, 31, 51, 0.58);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-side-card strong {
    display: block;
    margin-bottom: 0.8rem;
    color: #fbbf24;
}

.hero-side-item {
    display: grid;
    grid-template-columns: 3.8rem 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 0.9rem;
    color: #f3f4f6;
}

.hero-side-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-side-item img {
    width: 3.8rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.65rem;
}

.hero-categories {
    position: absolute;
    left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
    bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-categories a:hover,
.filter-link:hover,
.nav-chip:hover {
    border-color: rgba(245, 158, 11, 0.55);
    color: #fbbf24;
}

.hero-dots {
    position: absolute;
    right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
    bottom: 2rem;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.content-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.content-section {
    padding-top: 4rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.8rem;
}

.section-heading h2 {
    margin-top: 0.35rem;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
}

.section-heading p {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.section-more {
    color: #fbbf24;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    gap: 1rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.05rem;
    background: rgba(36, 59, 83, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.38);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.featured-grid .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
}

.play-mini {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.9);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
}

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

.rank-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    min-width: 2rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    text-align: center;
    color: #111827;
    font-weight: 900;
    background: #fbbf24;
}

.movie-card-body {
    padding: 0.9rem;
}

.movie-card h3 {
    margin-top: 0.55rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.featured-grid .movie-card h3 {
    font-size: 1.25rem;
}

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

.movie-card p {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.card-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.13);
    font-size: 0.78rem;
}

.category-preview-list {
    display: grid;
    gap: 2rem;
}

.category-strip {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(16, 42, 67, 0.46);
}

.strip-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.strip-heading h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.strip-heading a {
    color: #fbbf24;
}

.page-main {
    min-height: 70vh;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.small-hero {
    padding: 5rem 1rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.24), transparent 32rem),
        linear-gradient(135deg, #102a43, #243b53 55%, #102a43);
}

.small-hero > div {
    max-width: 80rem;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.94rem;
}

.breadcrumb a {
    color: #fbbf24;
}

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

.category-card {
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(36, 59, 83, 0.64);
}

.category-card-main {
    display: block;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(255, 255, 255, 0.02));
}

.category-card-main span {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-card-main strong {
    display: block;
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.7;
}

.category-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 1rem;
}

.category-card-links a {
    color: #d1d5db;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.filter-bar,
.wide-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.4rem;
}

.movie-filter-input,
.wide-search input {
    width: min(100%, 32rem);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
}

.wide-search button {
    border-radius: 0.9rem;
}

.ranking-list {
    display: grid;
    gap: 0.65rem;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 3rem 3.6rem 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.6rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.55rem;
    color: #f3f4f6;
    background: rgba(36, 59, 83, 0.58);
}

.ranking-row:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateX(4px);
}

.ranking-number {
    color: #fbbf24;
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    width: 3.6rem;
    height: 3.6rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.ranking-title {
    font-weight: 800;
}

.ranking-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.detail-hero {
    min-height: 34rem;
}

.detail-backdrop,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-shade {
    background:
        linear-gradient(90deg, rgba(11, 31, 51, 0.96), rgba(16, 42, 67, 0.78), rgba(16, 42, 67, 0.42)),
        linear-gradient(0deg, rgba(11, 31, 51, 0.98), transparent 70%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.detail-title-wrap {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.player-section {
    margin-top: -3rem;
    position: relative;
    z-index: 3;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1.25rem;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

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

.play-icon-large {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 0 38px rgba(245, 158, 11, 0.42);
    font-size: 2rem;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.5rem;
    padding-top: 3rem;
}

.detail-article,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(36, 59, 83, 0.52);
    padding: 1.5rem;
}

.detail-article h2,
.detail-side h2,
.footer-column h2 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

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

.detail-article p {
    margin-top: 0.8rem;
    color: #dbe4ee;
    line-height: 2;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.65rem 0.8rem;
    margin-top: 1rem;
}

.detail-side dt {
    color: #fbbf24;
}

.detail-side dd {
    color: #d1d5db;
}

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--line);
    background: rgba(11, 31, 51, 0.85);
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 2rem;
}

.footer-about p,
.footer-column a,
.footer-bottom {
    color: var(--text-muted);
}

.footer-about p {
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-column ul {
    margin-top: 1rem;
    display: grid;
    gap: 0.55rem;
}

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

.footer-bottom {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.2rem 1rem 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.92rem;
}

[data-movie-card].is-filtered-out {
    display: none;
}

@media (max-width: 1100px) {
    .hero-side-card {
        display: none;
    }

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

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: 38rem;
    }

    .hero-categories {
        right: 1rem;
        bottom: 4.2rem;
    }

    .hero-dots {
        left: 1rem;
        right: auto;
    }

    .featured-grid,
    .category-grid,
    .home-ranking,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-title-wrap {
        grid-template-columns: 8rem 1fr;
        gap: 1rem;
    }
}

@media (max-width: 560px) {
    .header-inner {
        gap: 0.6rem;
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero h2,
    .page-hero h1,
    .detail-title-wrap h1 {
        font-size: 2rem;
    }

    .hero-actions,
    .filter-bar,
    .wide-search {
        flex-direction: column;
        align-items: stretch;
    }

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

    .ranking-row {
        grid-template-columns: 2.2rem 3.2rem 1fr;
    }

    .ranking-meta {
        grid-column: 3;
        white-space: normal;
    }

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

    .detail-poster {
        max-width: 12rem;
    }
}
