:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --cyan-soft: #e0f7ff;
    --slate: #0f172a;
    --slate-soft: #334155;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: rgba(255, 255, 255, 0.86);
    --glass: rgba(255, 255, 255, 0.76);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.26);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 16px;
    color: #334155;
    border-radius: 14px;
    font-weight: 650;
    transition: all 0.22s ease;
}

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

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 13px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transform: scale(1.04);
}

.hero-slide.is-active .hero-image {
    animation: heroFloat 9s ease-in-out infinite alternate;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(6, 182, 212, 0.46), transparent 38%),
        radial-gradient(circle at 75% 20%, rgba(37, 99, 235, 0.46), transparent 35%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: center;
    gap: 64px;
    padding: 70px 0 110px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #0891b2;
    background: rgba(224, 247, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 14px;
    max-width: 760px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
}

.hero-text {
    max-width: 700px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-size: 13px;
}

.card-meta span {
    background: #f1f5f9;
    color: #64748b;
}

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

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.22s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.32);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    text-align: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    pointer-events: none;
}

.hero-control,
.hero-dot {
    pointer-events: auto;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.hero-control {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    font-size: 32px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 30px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section-block {
    padding: 64px 0;
}

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

.section-head h2 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #cbd5e1;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62));
    opacity: 0.7;
}

.duration,
.type-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(10px);
}

.duration {
    right: 12px;
}

.type-badge {
    left: 12px;
    background: rgba(37, 99, 235, 0.86);
}

.play-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.36);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    backdrop-filter: blur(12px);
    transition: all 0.22s ease;
}

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

.card-content {
    padding: 18px;
}

.card-content h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.card-content h3 a:hover {
    color: var(--blue);
}

.card-content p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #2563eb;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.tile-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tile-covers img {
    width: 100%;
    height: 118px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

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

.category-tile p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.category-tile span {
    color: var(--blue);
    font-weight: 800;
}

.rank-panel {
    padding-top: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 88px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.22s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.rank-number {
    color: #0891b2;
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 88px;
    height: 58px;
    border-radius: 13px;
    object-fit: cover;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    line-height: 1.35;
}

.rank-info em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    padding: 82px 0 72px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.35), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.4), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e3a8a 52%, #155e75);
}

.simple-hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 42px;
    align-items: center;
}

.mini-rank {
    grid-template-columns: 1fr;
}

.mini-rank .rank-item {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.16);
}

.mini-rank .rank-info em,
.mini-rank .rank-number {
    color: #cbd5e1;
}

.search-panel {
    padding: 56px 0 72px;
}

.filter-card {
    position: sticky;
    top: 82px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.filter-card input,
.filter-card select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 13px 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
}

.filter-card input:focus,
.filter-card select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    display: none;
    padding: 54px;
    text-align: center;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.category-preview {
    margin-bottom: 42px;
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.category-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.category-preview h2 {
    margin: 0 0 8px;
}

.category-preview p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    padding: 38px 0 62px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.32), transparent 32%),
        linear-gradient(135deg, #020617, #172554 54%, #0e7490);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 26px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info .lead-text {
    max-width: 800px;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

.detail-info .primary-btn {
    margin-top: 26px;
}

.large-tags span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.15);
}

.watch-section {
    margin-top: -34px;
}

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

.main-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.7)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.82));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.34);
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.article-card,
.side-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.article-card {
    padding: 32px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 18px;
}

.article-card p {
    margin: 0 0 24px;
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 700;
}

.side-card a {
    color: var(--blue);
}

.site-footer {
    padding: 54px 0;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #67e8f9;
}

.site-footer p {
    margin: 14px 0 0;
    max-width: 520px;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fff;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 48px;
    height: 48px;
    display: none;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

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

@keyframes heroFloat {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.1) translate3d(-12px, 8px, 0);
    }
}

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

    .hero-content,
    .page-hero-grid,
    .content-section {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .mini-rank,
    .side-card {
        max-width: 520px;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
    }

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 54px;
    }

    .hero-poster {
        max-width: 310px;
        margin: 0 auto;
    }

    .hero-controls {
        justify-content: center;
    }

    .section-head,
    .category-preview-head {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

    .movie-grid,
    .preview-grid,
    .category-grid,
    .rank-list,
    .long-rank,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-card {
        position: static;
        grid-template-columns: 1fr;
    }

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

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

    .article-card {
        padding: 24px;
    }
}
