:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #eefcff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --deep: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.10), transparent 32rem), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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 {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong,
.footer-brand {
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: max-content;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 13px;
    color: #334155;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #0891b2;
    background: rgba(6, 182, 212, 0.10);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    margin-left: auto;
    min-width: 230px;
    flex: 0 1 320px;
}

.header-search input,
.quick-search-card input,
.filter-bar input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.quick-search-card input:focus,
.filter-bar input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.global-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 88vw);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    max-height: 420px;
    overflow: auto;
}

.global-results.is-open {
    display: block;
}

.global-results a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
}

.global-results a:hover {
    background: #ecfeff;
}

.global-results strong {
    display: block;
    font-size: 14px;
}

.global-results small {
    color: var(--muted);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #ecfeff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #0891b2;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-section {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    color: #ffffff;
    background: var(--deep);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 54px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 84px 24px 96px;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    isolation: isolate;
    z-index: 0;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.26)), var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: saturate(1.2);
    transform: translateX(-50%) scale(1.08);
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    background: radial-gradient(circle at 18% 24%, rgba(6, 182, 212, 0.42), transparent 28rem), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
    transform: translateX(-50%);
    z-index: -1;
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.section-heading span,
.page-hero span,
.detail-kicker,
.overview-copy span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0891b2;
    background: rgba(6, 182, 212, 0.11);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hero-content .eyebrow {
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.16);
    border-color: rgba(165, 243, 252, 0.28);
}

.hero-content h1,
.hero-content h2 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-content p {
    margin: 0;
    max-width: 680px;
    color: #dbeafe;
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn,
.play-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.play-trigger:hover {
    transform: translateY(-2px);
}

.btn.primary,
.play-trigger {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.25);
}

.btn.ghost {
    color: #0e7490;
    background: #ffffff;
    border: 1px solid rgba(6, 182, 212, 0.22);
}

.hero-content .btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn.text {
    color: #a5f3fc;
    padding-left: 6px;
    padding-right: 6px;
}

.btn.small {
    padding: 9px 14px;
    font-size: 13px;
}

.hero-poster {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4.2;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: inherit;
    z-index: 2;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dots button {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

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

.quick-panel,
.content-section,
.page-main,
.site-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.quick-search-card,
.quick-links,
.category-tile,
.movie-card,
.category-overview-card,
.detail-hero,
.player-section,
.detail-text,
.page-hero,
.filter-bar {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-search-card {
    padding: 24px;
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.overview-copy h2,
.detail-copy h1,
.detail-text h2 {
    margin: 10px 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.quick-search-card p,
.section-heading p,
.page-hero p,
.overview-copy p,
.detail-text p,
.card-body p,
.detail-line {
    color: var(--muted);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.quick-links a {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #0e7490;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
    font-weight: 900;
}

.content-section {
    padding-top: 72px;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(30px, 5vw, 46px);
}

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 3;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.card-body {
    padding: 16px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #0891b2;
    font-size: 12px;
    font-weight: 900;
}

.card-body h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.card-body h2 a:hover,
.inline-movie:hover strong,
.category-tile a:hover span,
.overview-copy a:hover {
    color: #0891b2;
}

.card-body p {
    margin: 0 0 14px;
    min-height: 4.8em;
    font-size: 14px;
}

.accent-section {
    margin-top: 72px;
    padding-top: 58px;
    padding-bottom: 58px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.10), rgba(37, 99, 235, 0.08));
    border-radius: 36px;
}

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

.inline-movie {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.inline-movie img {
    aspect-ratio: 2 / 2.7;
    border-radius: 13px;
}

.inline-movie strong,
.inline-movie small {
    display: block;
}

.inline-movie small {
    color: var(--muted);
}

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

.category-tile {
    padding: 20px;
}

.category-tile span {
    display: block;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-tile strong {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.category-tile div {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.category-tile div a {
    color: #0891b2;
    font-size: 13px;
    font-weight: 800;
}

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

.rank-strip .movie-card .card-body p {
    display: none;
}

.section-more {
    margin-top: 28px;
    text-align: center;
}

.page-main {
    padding-top: 38px;
    padding-bottom: 72px;
}

.page-hero {
    padding: 42px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff, #ecfeff 54%, #eff6ff);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 420px) 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 24px;
}

.filter-chips button {
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    padding: 9px 13px;
    color: #0e7490;
    background: #ecfeff;
    cursor: pointer;
    font-weight: 900;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    padding: 24px;
}

.overview-copy h2 {
    font-size: 32px;
}

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

.breadcrumb a {
    color: #0891b2;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    padding: 28px;
    margin-bottom: 30px;
}

.detail-poster {
    aspect-ratio: 2 / 2.85;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-line {
    font-size: 18px;
}

.detail-meta {
    margin: 18px 0;
}

.large-tags span {
    padding: 8px 12px;
}

.player-section {
    padding: 22px;
    margin-bottom: 30px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    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.28), rgba(2, 6, 23, 0.88));
    cursor: pointer;
}

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

.player-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
    font-size: 34px;
}

.player-cover strong {
    font-size: 28px;
}

.player-cover em {
    font-style: normal;
    color: #a5f3fc;
    font-weight: 900;
}

.play-trigger {
    margin-top: 18px;
}

.detail-text {
    padding: 30px;
    margin-bottom: 18px;
}

.detail-text h2 {
    font-size: 28px;
}

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

.site-footer {
    padding-top: 58px;
    padding-bottom: 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
    padding: 34px;
    border-radius: 30px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 24px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
}

.footer-bottom {
    padding: 20px 8px 0;
    color: var(--muted);
    text-align: center;
}

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

.no-results {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

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

    .mobile-toggle {
        display: inline-block;
    }

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

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

@media (max-width: 900px) {
    .header-inner {
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 58px;
    }

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

    .quick-panel,
    .filter-bar,
    .category-overview-card,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .wide-list,
    .overview-samples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .header-inner,
    .quick-panel,
    .content-section,
    .page-main,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text small {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

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

    .quick-panel {
        margin-top: -26px;
    }

    .quick-links,
    .movie-grid,
    .category-movie-grid,
    .rank-strip,
    .category-grid,
    .wide-list,
    .overview-samples,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero,
    .detail-text,
    .player-section {
        padding: 22px;
    }

    .player-cover strong {
        font-size: 20px;
    }
}
