* {
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #dbeafe;
    --gold: #facc15;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

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

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--surface-soft);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #334155;
}

.hero {
    position: relative;
    height: 64vh;
    min-height: 520px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-badge span {
    color: var(--gold);
}

.hero h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.tag-list span {
    background: #eff6ff;
    color: var(--blue-dark);
}

.tag-list.large span {
    font-size: 14px;
    background: var(--blue-soft);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.global-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.global-search button {
    color: #ffffff;
    background: var(--blue);
}

.primary-btn:hover,
.global-search button:hover {
    transform: translateY(-2px);
    background: var(--blue-dark);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.78);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.search-band,
.content-section,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    padding-bottom: 28px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.category-block h2,
.ranking-copy h2 {
    margin: 0;
    line-height: 1.18;
}

.search-band h2,
.section-head h2,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
}

.global-search,
.filter-box {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
}

.global-search input,
.filter-box input,
.filter-box select {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: transparent;
}

.filter-box select {
    max-width: 180px;
    border-left: 1px solid var(--line);
}

.content-section {
    padding-top: 56px;
    padding-bottom: 12px;
}

.content-section.no-top {
    padding-top: 0;
}

.section-head,
.category-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section-more {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.section-more:hover {
    color: #ffffff;
    background: var(--blue);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #cbd5e1, #e0f2fe);
}

.poster img {
    transition: transform 0.4s ease;
}

.movie-card:hover .poster img,
.compact-card:hover img,
.ranking-row:hover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 48px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #0f172a;
    background: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.28);
}

.card-body {
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.movie-card h3,
.movie-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a,
.movie-card h2 a,
.ranking-copy h2 a,
.review-row h3 a {
    transition: color 0.2s ease;
}

.movie-card h3 a:hover,
.movie-card h2 a:hover,
.ranking-copy h2 a:hover,
.review-row h3 a:hover {
    color: var(--blue);
}

.movie-card p {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.horizontal-row {
    display: grid;
    grid-auto-columns: minmax(260px, 310px);
    grid-auto-flow: column;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

.scroll-actions {
    display: flex;
    gap: 10px;
}

.scroll-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-dark);
    background: var(--blue-soft);
    cursor: pointer;
    font-size: 26px;
}

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

.category-tile,
.category-block,
.story-card,
.ranking-panel,
.review-row,
.ranking-row {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-tile {
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tile-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    height: 88px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-soft);
}

.category-tile strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.category-tile span:last-child,
.category-block p,
.page-hero p,
.story-card p,
.detail-info .lead,
.ranking-copy p,
.review-row p {
    color: #475569;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
    gap: 28px;
}

.split-section > div .content-section {
    padding: 0;
}

.review-list,
.ranking-list,
.category-overview {
    display: grid;
    gap: 18px;
}

.review-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 16px;
}

.review-thumb {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-soft);
}

.rank-mini {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--blue);
    font-weight: 900;
}

.review-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.review-row p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ranking-panel {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 92px;
}

.ranking-panel ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.ranking-num,
.ranking-position {
    color: var(--blue);
    font-weight: 900;
}

.page-main,
.detail-main {
    padding-top: 34px;
    padding-bottom: 64px;
}

.page-hero {
    margin-bottom: 34px;
    padding: 42px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.58), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a);
    box-shadow: var(--shadow);
}

.page-hero.small-hero {
    max-width: 100%;
}

.page-hero .eyebrow {
    color: #93c5fd;
}

.page-hero h1 {
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .filter-box {
    max-width: 760px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-hero input,
.page-hero select {
    color: #ffffff;
}

.page-hero input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.category-block {
    padding: 24px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto;
    gap: 3px 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface-soft);
}

.compact-cover {
    grid-row: 1 / span 2;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #dbeafe;
}

.compact-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.compact-meta {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: 13px;
}

.ranking-list {
    padding: 0 0 22px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 58px 96px 1fr 74px;
    align-items: center;
    gap: 18px;
    padding: 16px;
}

.ranking-position {
    font-size: 24px;
    text-align: center;
}

.ranking-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-soft);
}

.ranking-copy h2 {
    font-size: 22px;
}

.ranking-copy p {
    display: -webkit-box;
    margin: 8px 0 10px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-score {
    display: inline-flex;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #0f172a;
    background: var(--gold);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue-dark);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-poster {
    border-radius: 22px;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.detail-info .lead {
    margin: 18px 0;
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 18px;
    font-size: 15px;
}

.player-section {
    margin-bottom: 34px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    font-weight: 900;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.36);
    font-size: 32px;
}

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

.story-card {
    padding: 24px;
}

.story-card h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.story-card p {
    margin: 0;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand strong,
.site-footer h2 {
    color: #ffffff;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand span:last-child {
    color: #94a3b8;
    font-size: 13px;
}

.site-footer p {
    max-width: 440px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

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

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

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

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

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

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        display: none;
        padding: 12px 24px 18px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    }

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

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

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

    .hero-arrow {
        display: none;
    }

    .search-band,
    .split-section,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        align-items: start;
    }

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

    .ranking-panel {
        position: static;
    }

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

    .ranking-row {
        grid-template-columns: 42px 78px 1fr;
    }

    .ranking-score {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .nav-inner,
    .hero-content,
    .search-band,
    .content-section,
    .page-main,
    .detail-main,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .hero {
        min-height: 620px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

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

    .section-head,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .global-search,
    .filter-box,
    .multi-filter {
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .global-search input,
    .filter-box input,
    .filter-box select {
        min-height: 42px;
    }

    .filter-box select {
        max-width: none;
        border-left: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.4);
    }

    .page-hero,
    .detail-hero,
    .category-block,
    .story-card {
        padding: 22px;
        border-radius: 22px;
    }

    .review-row,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .review-thumb,
    .ranking-cover {
        width: 140px;
    }

    .ranking-position {
        text-align: left;
    }

    .player-box {
        border-radius: 20px;
    }
}
