@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap");

:root {
    color-scheme: dark;
    --ice-950: #020617;
    --ice-900: #0f172a;
    --ice-800: #1e293b;
    --ice-700: #334155;
    --ice-500: #64748b;
    --ice-300: #cbd5e1;
    --ice-200: #e2e8f0;
    --ice-50: #f8fafc;
    --frost-600: #0284c7;
    --frost-500: #0ea5e9;
    --frost-400: #38bdf8;
    --glacier-500: #06b6d4;
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-frost: 0 8px 32px rgba(31, 38, 135, 0.37);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem), linear-gradient(180deg, var(--ice-950), var(--ice-900) 48%, var(--ice-950));
    color: var(--ice-50);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.container-custom {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.26);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ice-300);
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.16);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.88);
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 999px;
}

.card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow-soft);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-frost);
}

.btn-primary,
.btn-secondary,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    padding: 13px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.28);
}

.btn-secondary {
    padding: 12px 22px;
    color: var(--ice-200);
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.section-link {
    padding: 10px 16px;
    color: var(--frost-400);
    background: rgba(14, 165, 233, 0.12);
}

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

.hero {
    position: relative;
    height: min(82vh, 820px);
    min-height: 580px;
    overflow: hidden;
    background: var(--ice-950);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.16) 100%), linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0) 34%);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    max-width: 720px;
    animation: fadeIn 0.7s ease both;
}

.hero-copy h1,
.page-hero h1,
.detail-main-copy h1 {
    margin: 18px 0;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 0;
    color: var(--ice-200);
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.75;
}

.hero-badges,
.poster-meta,
.hero-meta,
.movie-mini-meta,
.detail-meta-grid,
.tag-list,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pill,
.tag-list span,
.hero-meta span,
.movie-mini-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.pill {
    padding: 7px 12px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

.pill-blue {
    background: rgba(2, 132, 199, 0.9);
}

.rating {
    color: #facc15;
    font-weight: 800;
}

.hero-rating {
    font-size: 1.3rem;
}

.hero-meta {
    margin: 24px 0 30px;
    color: var(--ice-300);
}

.hero-meta span,
.movie-mini-meta span,
.tag-list span {
    padding: 6px 10px;
    background: rgba(30, 41, 59, 0.78);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--ice-700);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    width: 36px;
    background: var(--frost-500);
}

.content-section {
    padding: 72px 0;
}

.content-section + .content-section {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

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

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--frost-400);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.filter-panel h2,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.section-heading p {
    max-width: 820px;
    color: var(--ice-300);
    line-height: 1.7;
}

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

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ice-900);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.1) 52%, rgba(2, 6, 23, 0));
}

.poster-meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: space-between;
}

.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.94);
    font-weight: 800;
    font-size: 0.78rem;
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--frost-400);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--ice-300);
    font-size: 0.94rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-mini-meta {
    color: var(--ice-500);
    font-size: 0.78rem;
}

.movie-card-compact .movie-card-body {
    padding: 14px;
}

.movie-card-compact .movie-card-body p {
    display: none;
}

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

.category-tile {
    min-height: 176px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(6, 182, 212, 0.06)), rgba(15, 23, 42, 0.92);
}

.category-tile span {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.category-tile strong {
    display: block;
    margin: 16px 0 10px;
    color: var(--frost-400);
    font-size: 2.4rem;
}

.category-tile small {
    color: var(--ice-300);
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 420px);
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
    padding: 24px;
}

.filter-panel .filter-chips,
.filter-panel .filter-count {
    grid-column: 1 / -1;
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--ice-300);
    font-weight: 700;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
}

.search-box input:focus {
    border-color: var(--frost-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.filter-chip {
    padding: 9px 13px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: var(--ice-300);
    background: rgba(30, 41, 59, 0.72);
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.2);
}

.filter-count {
    margin: 0;
    color: #94a3b8;
}

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

.page-hero {
    position: relative;
    padding: 96px 0 64px;
    background: radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.22), transparent 22rem), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.compact-hero {
    padding-bottom: 48px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--ice-300);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--frost-400);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(0.95);
    transform: scale(1.06);
}

.detail-bg-shade {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76)), linear-gradient(0deg, var(--ice-950), rgba(2, 6, 23, 0.28));
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
}

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

.detail-meta-grid {
    margin: 24px 0;
}

.detail-meta-grid span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ice-200);
    background: rgba(30, 41, 59, 0.78);
}

.tag-list {
    margin-bottom: 28px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card {
    padding: 12px;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 32%), rgba(2, 6, 23, 0.38);
    cursor: pointer;
}

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.32);
    font-size: 2rem;
}

.video-player.is-playing .play-overlay {
    display: none;
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.detail-side p {
    color: var(--ice-300);
    line-height: 1.7;
}

.side-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--ice-300);
}

.side-stat strong {
    color: #ffffff;
}

.detail-article {
    padding: 30px;
}

.detail-article h2 {
    margin: 0 0 16px;
    font-size: 1.55rem;
}

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

.detail-article p {
    margin: 0;
    color: var(--ice-200);
    font-size: 1.04rem;
    line-height: 1.9;
}

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

.rank-row {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.36);
    background: rgba(30, 41, 59, 0.92);
}

.rank-row-link {
    display: grid;
    grid-template-columns: 74px 110px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    color: var(--frost-400);
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 110px;
    height: 148px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.25rem;
}

.rank-row p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--ice-300);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 44px 0;
    background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.site-footer p,
.site-footer a {
    color: var(--ice-300);
    line-height: 1.7;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--frost-400);
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow-frost);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        min-height: 640px;
    }

    .hero-arrow {
        display: none;
    }

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

    .row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-poster {
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

    .content-section {
        padding: 52px 0;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-main-copy h1 {
        font-size: 2.45rem;
    }

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

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

    .movie-mini-meta span:nth-child(3) {
        display: none;
    }

    .filter-panel {
        padding: 18px;
    }

    .rank-row-link {
        grid-template-columns: 52px 86px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-row img {
        width: 86px;
        height: 116px;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
