* {
    box-sizing: border-box;
}

:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(30, 41, 59, 0.72);
    --panel-solid: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --orange: #f97316;
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-inner,
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.38);
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    border-left: 11px solid #ffffff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.brand-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 15px;
}

.desktop-nav a,
.mobile-menu a,
.footer-links a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.7);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

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

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

.mobile-menu-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    display: grid;
    gap: 12px;
    color: var(--muted);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.78) 34%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.28) 58%, rgba(15, 23, 42, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 86px;
}

.hero-copy {
    width: min(720px, 100%);
}

.hero-kicker,
.meta-row,
.tag-row,
.card-meta,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker {
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.9);
    font-size: 13px;
    font-weight: 700;
}

.pill-amber {
    color: #111827;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

.hero p {
    margin: 0 0 30px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    max-width: 680px;
}

.hero-actions,
.action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--sky);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
    background: var(--sky-dark);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    right: min(7vw, 72px);
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--sky);
}

.section {
    padding: 54px 0;
}

.section-tight {
    padding-top: 30px;
}

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

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    width: 10px;
    height: 28px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-desc {
    margin: 8px 0 0;
    color: var(--soft);
    line-height: 1.7;
}

.more-link {
    color: #fbbf24;
    font-weight: 700;
    white-space: nowrap;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card,
.category-card,
.info-panel,
.article-panel,
.filter-panel,
.rank-card,
.next-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
}

.movie-card,
.category-card,
.rank-card,
.next-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.next-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.38);
}

.cover-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #020617;
}

.movie-card.portrait .cover-wrap {
    aspect-ratio: 3 / 4;
}

.cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover .cover-wrap img,
.rank-card:hover img,
.category-card:hover .category-card-bg img {
    transform: scale(1.06);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 64%);
}

.cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-title-small {
    font-size: 16px;
}

.card-text {
    margin: 0;
    color: var(--soft);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 12px;
    color: var(--soft);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.large-card .cover-wrap {
    aspect-ratio: 16 / 9;
}

.large-card .card-title {
    font-size: 23px;
}

.category-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #111827;
}

.category-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.42;
}

.category-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.18));
}

.category-card-content {
    position: relative;
    z-index: 2;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.7;
}

.rank-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    min-height: 126px;
}

.rank-number {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.rank-card .cover-wrap {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
}

.rank-card .card-body {
    padding: 14px 16px;
}

.page-hero {
    padding: 64px 0 26px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0)),
        radial-gradient(circle at 30% 0%, rgba(14, 165, 233, 0.18), transparent 36rem);
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--soft);
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 14px 0 0;
    max-width: 780px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.filter-panel {
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
}

.input,
.select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 14px;
    outline: 0;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
}

.input:focus,
.select:focus {
    border-color: rgba(14, 165, 233, 0.74);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: rgba(30, 41, 59, 0.64);
    border: 1px solid var(--line);
}

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

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

.player-shell {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #020617;
    box-shadow: var(--shadow);
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.12));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.video-player.is-playing .play-layer {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--sky-dark));
    box-shadow: 0 22px 52px rgba(14, 165, 233, 0.42);
    cursor: pointer;
    position: relative;
}

.play-button::after {
    content: "";
    position: absolute;
    left: 33px;
    top: 25px;
    border-left: 24px solid #ffffff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

.info-panel,
.article-panel {
    border-radius: var(--radius);
    padding: 22px;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
}

.info-list dt {
    color: var(--soft);
}

.info-list dd {
    margin: 0;
    color: #ffffff;
}

.article-panel {
    margin-top: 26px;
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.tag-row {
    margin-top: 18px;
}

.tag {
    padding: 7px 11px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.65);
    font-size: 13px;
}

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

.next-card {
    padding: 18px;
}

.next-card strong {
    display: block;
    margin-bottom: 6px;
}

.next-card span {
    color: var(--soft);
    font-size: 14px;
}

.site-footer {
    margin-top: 54px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.9);
}

.footer-grid {
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-text {
    margin: 14px 0 0;
    color: var(--soft);
    line-height: 1.8;
}

.footer-title {
    margin: 0 0 14px;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--soft);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

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

    .mobile-toggle {
        display: block;
    }

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

    .feature-grid,
    .rank-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav-inner,
    .container,
    .mobile-menu-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 18px;
    }

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

    .hero-content {
        padding-bottom: 82px;
    }

    .hero-dots {
        right: 18px;
        bottom: 24px;
    }

    .section {
        padding: 38px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .filter-panel,
    .next-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 104px 1fr;
    }

    .page-hero {
        padding-top: 42px;
    }

    .footer-grid {
        padding: 32px 0;
    }
}
