:root {
    color-scheme: light;
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --accent: #2563eb;
    --ink: #111827;
    --muted: #64748b;
    --soft: #ecfeff;
    --soft-2: #eff6ff;
    --line: #dbeafe;
    --card: #ffffff;
    --shadow: 0 18px 45px 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(--ink);
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 36%, #eff6ff 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(14, 116, 144, 0.12);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: #083344;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.32);
}

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

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    background: rgba(8, 145, 178, 0.12);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: rgba(8, 145, 178, 0.12);
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-dark);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 52%, #0891b2 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(14, 165, 233, 0.48), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.24));
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 90px 0 130px;
}

.hero-stage {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 42px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(2.35rem, 7vw, 5.35rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: #ecfeff;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-section .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow,
.hero-side .eyebrow {
    color: #cffafe;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(8, 145, 178, 0.12);
    color: var(--primary-dark);
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

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

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

.btn-primary,
.btn-ghost,
.section-link,
.hero-side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(14, 116, 144, 0.22);
}

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

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.35);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster img,
.poster-link img,
.rank-thumb img,
.mini-card img,
.detail-poster img,
.category-image img,
.category-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 18px;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 34px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dots button.is-active {
    background: #ffffff;
}

.hero-side {
    align-self: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.hero-side h2 {
    margin: 0 0 20px;
    font-size: 1.5rem;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
}

.mini-card img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card em {
    margin-top: 2px;
    color: #cffafe;
    font-style: normal;
    font-size: 0.85rem;
}

.hero-side-link {
    width: 100%;
    margin-top: 18px;
    color: #0e7490;
    background: #ffffff;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    color: #ffffff;
}

.hero-wave svg {
    width: 100%;
    height: 96px;
}

.hero-wave path {
    fill: currentColor;
}

.quick-search {
    margin-top: -44px;
    position: relative;
    z-index: 4;
}

.search-panel,
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(8, 145, 178, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.feature-panel h2,
.story-card h2,
.detail-copy h1 {
    margin: 0;
    color: #0f172a;
    line-height: 1.18;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 0 18px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.search-form button {
    min-width: 112px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 800;
}

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

.soft-bg {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}

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

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--primary-dark);
    background: rgba(8, 145, 178, 0.11);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(8, 145, 178, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.76rem;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

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

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-card-meta a {
    color: var(--primary-dark);
}

.movie-card h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card p {
    min-height: 50px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.category-tile,
.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 150px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(8, 145, 178, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-image {
    overflow: hidden;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: #cffafe;
}

.category-copy strong,
.category-copy em,
.category-overview-card h2,
.category-overview-card p {
    display: block;
}

.category-copy strong,
.category-overview-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.2;
}

.category-copy em,
.category-overview-card p {
    color: var(--muted);
    font-style: normal;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.rank-list-wide {
    max-width: 980px;
    margin: 0 auto;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(8, 145, 178, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-number {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: #dbeafe;
}

.rank-copy h2 {
    margin: 0 0 5px;
    font-size: 1.08rem;
    line-height: 1.32;
}

.rank-copy p {
    margin: 0 0 8px;
    color: var(--muted);
}

.feature-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 30px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: var(--shadow);
}

.feature-panel h2 {
    color: #ffffff;
    font-size: 2rem;
}

.feature-panel p {
    color: #ecfeff;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    padding: 86px 0 70px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 58%, #0891b2 100%);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 auto 16px;
    color: #ffffff;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #ecfeff;
    font-size: 1.08rem;
}

.filter-bar {
    grid-template-columns: minmax(0, 1fr) 220px;
    margin-bottom: 28px;
}

.search-filter {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.category-overview-card {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 190px;
}

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

.category-collage img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #dbeafe;
}

.detail-hero {
    padding: 32px 0 56px;
    color: #ffffff;
    background: linear-gradient(135deg, #083344 0%, #0e7490 46%, #1d4ed8 100%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: #cffafe;
    font-size: 0.94rem;
}

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

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

.player-card,
.detail-info,
.story-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    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.16), rgba(2, 6, 23, 0.72));
    z-index: 3;
}

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

.play-button {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.3);
    font-size: 2rem;
    padding-left: 5px;
}

.play-overlay strong {
    font-size: 1.05rem;
}

.detail-info {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: #dbeafe;
}

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.detail-copy p,
.detail-meta {
    color: #e0f2fe;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.prose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
}

.story-card {
    padding: 28px;
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(8, 145, 178, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

.accent-card {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 34px;
    padding: 54px 0 40px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(8, 145, 178, 0.45);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

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

@media (max-width: 1100px) {
    .hero-inner,
    .rank-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-side,
    .feature-panel {
        position: static;
    }

    .hero-stage {
        min-height: 560px;
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

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

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

    .nav-links a {
        text-align: center;
    }

    .hero-section {
        min-height: 760px;
    }

    .hero-inner {
        padding-top: 54px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: start;
    }

    .hero-poster {
        width: min(260px, 70vw);
        justify-self: center;
    }

    .hero-dots {
        bottom: -8px;
    }

    .search-panel,
    .filter-bar,
    .search-filter,
    .footer-grid,
    .prose-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 72px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-section {
        min-height: 840px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1 {
        font-size: 2.25rem;
    }

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

    .search-form {
        flex-direction: column;
    }

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

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

    .detail-poster {
        width: min(220px, 80vw);
    }
}
