:root {
    --bg: #f8fbff;
    --bg-soft: #eef6ff;
    --surface: #ffffff;
    --surface-dark: #0f172a;
    --text: #15213a;
    --muted: #667085;
    --line: rgba(15, 23, 42, 0.1);
    --brand: #0891b2;
    --brand-2: #2563eb;
    --accent: #22d3ee;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #edf7ff 45%, #f8fafc 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.22), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.16), transparent 26rem),
        radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.12), transparent 30rem);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--brand-2));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

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

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

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #e0f2fe;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #0f172a;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 56px 0 44px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2b63 0%, #0f172a 48%, #0e7490 100%);
}

.hero-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.18;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-aura {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.34;
}

.hero-aura-one {
    top: -120px;
    left: 4%;
    background: #22d3ee;
}

.hero-aura-two {
    right: -80px;
    bottom: -140px;
    background: #2563eb;
}

.hero-shell {
    position: relative;
    z-index: 2;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 52px;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
    max-width: 720px;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 13px;
    border: 1px solid rgba(34, 211, 238, 0.36);
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-title-like {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #cffafe, #93c5fd, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-like {
    display: block;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 3vw, 2.75rem);
    font-weight: 850;
}

.hero-copy p {
    margin: 0;
    max-width: 640px;
    color: #dbeafe;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.8;
}

.hero-tags,
.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.meta-pills span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 12px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 32px rgba(8, 145, 178, 0.28);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.62));
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.detail-backdrop img,
.player-video,
.category-preview img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transition: all 0.2s ease;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.hero-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 999px;
}

.hero-arrow:hover,
.hero-dot.is-active {
    background: #22d3ee;
}

.hero-dot.is-active {
    width: 30px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.hero-quick-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

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

.content-section.with-search {
    padding-bottom: 34px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-card h2 {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-heading p,
.page-hero p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.row-heading {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.left-heading {
    margin-left: 0;
    text-align: left;
}

.section-link,
.tile-cta {
    color: var(--brand-2);
    font-weight: 800;
}

.search-panel {
    max-width: 720px;
    margin: 0 auto 30px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 18px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.search-box span {
    color: var(--brand-2);
    font-weight: 900;
}

.search-box input {
    flex: 1;
    min-height: 48px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 1rem;
}

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

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 145, 178, 0.34);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.15);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #dbeafe;
}

.poster-frame img {
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-2);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.22s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 850;
}

.year-badge {
    right: 10px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
    left: 10px;
    min-width: 30px;
    padding: 5px 8px;
    text-align: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card em,
.rank-row em {
    color: #64748b;
    font-size: 0.78rem;
    font-style: normal;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.card-tags span {
    padding: 5px 8px;
    color: #0369a1;
    background: #e0f2fe;
}

.soft-panel {
    width: min(1220px, calc(100% - 24px));
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.category-tile {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.14);
}

.category-preview {
    display: grid;
    aspect-ratio: 16 / 9;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.category-preview img {
    min-width: 0;
}

.category-tile strong {
    padding: 18px 18px 8px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 900;
}

.category-tile em {
    padding: 0 18px 18px;
    color: #64748b;
    font-style: normal;
    line-height: 1.65;
}

.tile-cta {
    margin: auto 18px 18px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    padding: 22px;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 38px 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.rank-number {
    color: var(--brand-2);
    font-weight: 950;
}

.rank-row img {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
}

.rank-row strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 70px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2b63, #0f172a 55%, #0e7490);
}

.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image: radial-gradient(circle at 30% 10%, rgba(34, 211, 238, 0.6), transparent 20rem);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.page-hero p {
    color: #dbeafe;
    font-size: 1.1rem;
}

.page-actions {
    justify-content: center;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 38px 0 68px;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(12px);
    transform: scale(1.05);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.66) 55%, rgba(15, 23, 42, 0.42));
}

.detail-shell {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #cbd5e1;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
}

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.detail-one-line {
    max-width: 790px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 1.16rem;
    line-height: 1.85;
}

.meta-pills span {
    padding: 8px 13px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.11);
}

.detail-tags span {
    background: rgba(34, 211, 238, 0.14);
}

.player-section {
    padding-top: 44px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
}

.player-video {
    display: block;
    background: #020617;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.64));
    font-size: 1.05rem;
    font-weight: 900;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-2);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.article-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 24px;
}

.story-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    padding: 28px;
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.story-card p {
    margin: 0;
    color: #475569;
    line-height: 1.95;
}

.site-footer {
    margin-top: 40px;
    padding: 32px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-shell p {
    margin: 0;
}

.footer-shell nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: 20px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-weight: 800;
}

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }

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

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

    .nav-links {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-copy,
    .hero-copy p {
        max-width: none;
    }

    .hero-tags,
    .hero-actions {
        justify-content: center;
    }

    .hero-poster {
        width: min(360px, 74vw);
        margin: 0 auto;
    }

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

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

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

    .article-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nav-shell,
    .footer-shell,
    .hero-shell,
    .content-section,
    .page-hero-inner,
    .detail-shell {
        width: min(100% - 22px, 1180px);
    }

    .hero-section {
        padding-top: 34px;
    }

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

    .hero-copy h1,
    .hero-title-like {
        font-size: clamp(2rem, 15vw, 3.6rem);
    }

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

    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .search-box {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        padding: 14px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .play-circle {
        width: 64px;
        height: 64px;
    }

    .story-card {
        padding: 22px;
    }
}
