/* Static movie site stylesheet generated from the uploaded dark blue/cyan visual style. */
:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-strong: rgba(15, 23, 42, 0.92);
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --orange: #f97316;
    --green: #22c55e;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 38rem),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(59, 130, 246, 0.32);
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

.nav-shell,
.category-strip-inner,
.page-shell,
.footer-grid,
.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.22);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 1.22rem;
    background: linear-gradient(90deg, #60a5fa, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.96rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
    outline: none;
    border-radius: 999px;
    padding: 10px 14px;
}

.header-search input {
    width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.filter-bar button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    padding: 10px 16px;
    background: linear-gradient(90deg, #2563eb, #0891b2);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.mobile-nav-link {
    color: #cbd5e1;
    padding: 10px 4px;
}

.category-strip {
    background: rgba(2, 6, 23, 0.42);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    overflow-x: auto;
}

.category-strip-inner {
    display: flex;
    gap: 18px;
    padding: 9px 0;
    white-space: nowrap;
}

.category-strip a {
    color: #94a3b8;
    font-size: 0.92rem;
}

.category-strip a:hover {
    color: #67e8f9;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide > img,
.detail-backdrop img,
.category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide.image-missing {
    background:
        radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.4), transparent 32rem),
        linear-gradient(135deg, rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.98));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.7) 46%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 16px));
    bottom: 86px;
    width: min(760px, calc(100% - 48px));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.hero-content h1,
.sub-hero h1,
.detail-info h1 {
    margin: 16px 0;
    line-height: 1.08;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    letter-spacing: -0.05em;
}

.hero-content p,
.sub-hero p,
.detail-line {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.hero-meta,
.detail-meta,
.ranking-meta,
.meta-line,
.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.ranking-meta span,
.meta-line span,
.card-stats span {
    border-radius: 999px;
    padding: 3px 9px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.82rem;
}

.hero-actions,
.sub-hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.56);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(8, 145, 178, 0.18);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.5);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.site-intro {
    width: min(1280px, calc(100% - 32px));
    margin: -48px auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.intro-card {
    display: block;
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: var(--radius-md);
    padding: 20px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-card span,
.intro-card p {
    color: var(--muted);
    margin: 0;
}

.intro-card strong {
    display: block;
    margin: 6px 0;
    font-size: 2rem;
    line-height: 1;
}

.page-shell {
    padding: 56px 0;
}

.home-shell {
    display: grid;
    gap: 64px;
}

.content-section {
    display: grid;
    gap: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #67e8f9;
    white-space: nowrap;
}

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

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

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

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

.movie-card,
.horizontal-card,
.ranking-row,
.category-card,
.player-section,
.detail-content,
.hot-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: 0 16px 50px rgba(2, 6, 23, 0.22);
    overflow: hidden;
}

.movie-card {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(15, 23, 42, 0.9);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.32), transparent 16rem),
        linear-gradient(135deg, rgba(30, 64, 175, 0.82), rgba(15, 23, 42, 0.92));
}

.movie-card .poster-wrap {
    aspect-ratio: 2 / 3;
}

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

.movie-card:hover .movie-poster,
.category-card:hover .movie-poster,
.horizontal-card:hover .movie-poster {
    transform: scale(1.06);
}

.poster-play,
.rank-badge {
    position: absolute;
    z-index: 3;
}

.poster-play {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    color: #ffffff;
    opacity: 0;
    background: rgba(37, 99, 235, 0.82);
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: linear-gradient(90deg, #f97316, #facc15);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.movie-card h3,
.horizontal-card h3,
.ranking-info h2 {
    margin: 0;
    line-height: 1.3;
}

.movie-card h3 {
    min-height: 2.6em;
    font-size: 1.02rem;
}

.movie-card p,
.horizontal-card p,
.ranking-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    color: #bae6fd;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.78rem;
    background: rgba(8, 145, 178, 0.12);
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 380px);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
}

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

.horizontal-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.horizontal-rank strong {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    min-height: 32px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.hot-panel {
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.13), transparent 24rem),
        linear-gradient(90deg, rgba(30, 58, 138, 0.32), rgba(8, 47, 73, 0.18));
}

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

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    align-items: end;
    padding: 92px max(24px, calc((100vw - 1280px) / 2 + 16px)) 58px;
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.26), transparent 28rem),
        linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(15, 23, 42, 0.98));
}

.sub-hero > div {
    position: relative;
    z-index: 2;
}

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

.category-card {
    position: relative;
    min-height: 240px;
    color: #ffffff;
}

.category-bg {
    position: absolute;
    inset: 0;
    opacity: 0.42;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.32));
}

.category-card-content {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 30px;
}

.category-card-content span {
    color: #67e8f9;
    font-weight: 700;
}

.category-card-content h2 {
    margin: 10px 0;
    font-size: 2rem;
}

.category-card-content p {
    margin: 0;
    color: #cbd5e1;
}

.filter-bar {
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.74);
}

.filter-bar input {
    flex: 1 1 280px;
}

.filter-bar select {
    min-width: 140px;
}

.result-count {
    margin-bottom: 18px;
    color: var(--muted);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 86px 1fr 120px;
    align-items: center;
    gap: 16px;
    padding: 14px;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    background: rgba(30, 41, 59, 0.9);
}

.top-gold .ranking-number {
    background: linear-gradient(135deg, #f97316, #facc15);
}

.top-silver .ranking-number {
    background: linear-gradient(135deg, #94a3b8, #e2e8f0);
    color: #0f172a;
}

.top-bronze .ranking-number {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.ranking-thumb {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.heat-box {
    text-align: right;
}

.heat-box span {
    color: var(--muted);
    font-size: 0.82rem;
}

.heat-box strong {
    display: block;
    font-size: 1.45rem;
    color: #67e8f9;
}

.detail-hero {
    min-height: 520px;
    padding-top: 88px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(2px);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.74) 52%, rgba(2, 6, 23, 0.4) 100%);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-tags {
    margin-top: 16px;
}

.detail-shell {
    display: grid;
    gap: 42px;
}

.player-section,
.detail-content {
    padding: 24px;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.32), rgba(2, 6, 23, 0.76));
}

.play-overlay.is-hidden {
    display: none;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.32);
}

.player-source {
    color: var(--muted);
    word-break: break-all;
}

.detail-content h2 {
    margin: 0 0 10px;
}

.detail-content p {
    margin: 0 0 22px;
    color: #cbd5e1;
}

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

.detail-facts div {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 14px;
    background: rgba(2, 6, 23, 0.28);
}

.detail-facts span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.detail-facts strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
}

.footer-grid p {
    margin: 12px 0 0;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: #67e8f9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

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

@media (max-width: 820px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        bottom: 68px;
    }

    .hero-nav {
        display: none;
    }

    .top-grid,
    .movie-grid,
    .compact-grid,
    .full-grid,
    .hot-list,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .heat-box {
        grid-column: 3;
        text-align: left;
    }

    .detail-inner {
        grid-template-columns: 140px 1fr;
        gap: 18px;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .category-strip-inner,
    .page-shell,
    .footer-grid,
    .footer-bottom,
    .site-intro {
        width: min(100% - 22px, 1280px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content h1,
    .sub-hero h1,
    .detail-info h1 {
        font-size: 2.2rem;
    }

    .site-intro,
    .top-grid,
    .movie-grid,
    .compact-grid,
    .full-grid,
    .hot-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        grid-auto-columns: minmax(280px, 88vw);
    }

    .sub-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .detail-poster {
        width: min(210px, 66vw);
    }

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

    .ranking-thumb {
        display: none;
    }

    .heat-box {
        grid-column: 2;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
