@charset "UTF-8";

:root {
    color-scheme: light;
    --bg: #f6f8ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(99, 102, 241, 0.16);
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #4f46e5;
    --gold: #f59e0b;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 14px 40px rgba(37, 99, 235, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 46%, #eef3ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1240px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    color: #334155;
    flex: 1;
}

.desktop-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--primary);
    border-color: var(--primary);
}

.top-search {
    width: min(320px, 28vw);
    display: flex;
    align-items: center;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    overflow: hidden;
    background: #f8fbff;
}

.top-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--text);
    background: transparent;
}

.top-search button {
    border: 0;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    color: var(--primary);
    background: #eef5ff;
    border-radius: 999px;
    padding: 9px 14px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav.is-open {
    display: grid;
}

.mobile-nav a {
    padding: 11px 14px;
    border-radius: 14px;
    background: #f1f6ff;
    color: #1f2937;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 24px 42px;
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto auto;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.20), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-heading h1,
.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-heading p,
.page-hero p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-slider {
    position: relative;
    min-height: 500px;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 32px;
    padding: 56px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    color: #fff;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 64, 175, 0.78) 47%, rgba(15, 23, 42, 0.46) 100%),
        var(--hero-poster);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: scale(1.04);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy h2 {
    margin: 14px 0 16px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.85;
}

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

.hero-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #1d4ed8;
    background: #dbeafe;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.30);
}

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

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ghost-btn.dark {
    color: var(--primary);
    background: #eef5ff;
    border-color: rgba(37, 99, 235, 0.18);
}

.hero-poster {
    height: 390px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-controls button.is-active {
    width: 54px;
    background: #fff;
}

.hero-category-strip {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.hero-category-strip a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    color: #1e40af;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
}

.section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 24px;
}

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

.section-title h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-title a {
    color: var(--primary);
    font-weight: 800;
}

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

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

.listing-grid {
    margin-top: 22px;
}

.movie-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.16);
}

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

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

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

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

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-title:hover {
    color: var(--primary);
}

.card-body p {
    min-height: 46px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.category-card,
.category-overview-card {
    min-height: 180px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.16);
}

.category-card span,
.category-overview-card span {
    color: var(--primary);
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin: 18px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.category-card em,
.category-overview-card p {
    display: block;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.category-overview-card strong {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
}

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: stretch;
}

.recommend-panel,
.filter-panel,
.content-card {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
}

.recommend-panel {
    padding: 34px;
    background:
        radial-gradient(circle at 80% 15%, rgba(96, 165, 250, 0.28), transparent 16rem),
        linear-gradient(145deg, #ffffff, #eef5ff);
}

.recommend-panel h2 {
    margin: 12px 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.recommend-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.rank-index {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.rank-poster {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: #dbeafe;
}

.rank-title {
    display: inline-block;
    color: var(--text);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.35;
}

.rank-meta,
.rank-desc {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.rank-score {
    color: var(--gold);
    font-size: 20px;
}

.page-main {
    padding-bottom: 28px;
}

.page-hero {
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 54px 34px;
    border-radius: 34px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at 85% 12%, rgba(79, 70, 229, 0.18), transparent 18rem),
        linear-gradient(145deg, #ffffff, #eef5ff);
}

.simple-hero p,
.channel-hero p {
    max-width: 850px;
}

.ranking-hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.86)),
        linear-gradient(145deg, #1d4ed8, #4f46e5);
    color: #fff;
}

.ranking-hero p,
.ranking-hero .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
    padding: 20px;
}

.filter-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
    gap: 12px;
}

.filter-form input,
.filter-form select {
    width: 100%;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    outline: 0;
    color: var(--text);
    background: #f8fbff;
}

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

.filter-form button {
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.is-filtered-out {
    display: none !important;
}

.stacked-previews {
    display: grid;
    gap: 38px;
}

.category-preview {
    padding-bottom: 10px;
}

.small-title h2 {
    font-size: 30px;
}

.breadcrumb {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    max-width: 1240px;
    margin: 20px auto 0;
    padding: 34px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.24), transparent 18rem),
        linear-gradient(145deg, #ffffff, #eef5ff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #dbeafe;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.detail-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #1e40af;
    background: #dbeafe;
    font-weight: 800;
    font-size: 13px;
}

.detail-one-line {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.36);
    font-size: 30px;
}

.player-overlay span:last-child {
    font-size: 20px;
    font-weight: 900;
}

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

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    color: #475569;
    line-height: 1.9;
    font-size: 16px;
}

.site-footer {
    margin-top: 46px;
    padding: 38px 24px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.site-footer strong {
    display: block;
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
}

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

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

    .top-search {
        margin-left: auto;
        width: min(420px, 44vw);
    }

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

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand {
        font-size: 19px;
    }

    .top-search {
        order: 3;
        width: 100%;
    }

    .hero {
        padding: 34px 16px 24px;
    }

    .hero-slider {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px 24px;
    }

    .hero-controls {
        left: 24px;
        bottom: 24px;
    }

    .section-wrap {
        padding: 32px 16px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .detail-content,
    .footer-inner,
    .split-section {
        grid-template-columns: 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        margin: 22px 16px 0;
        padding: 38px 24px;
        border-radius: 26px;
    }

    .detail-hero {
        margin: 18px 16px 0;
        padding: 24px;
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .hero-heading h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 32px;
    }

    .hero-copy h2 {
        font-size: 34px;
    }

    .hero-copy p,
    .hero-heading p,
    .page-hero p,
    .detail-one-line {
        font-size: 15px;
    }

    .movie-grid,
    .compact-grid {
        gap: 16px;
    }

    .card-body h3 {
        font-size: 17px;
    }

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