/* Generated static movie site stylesheet. */
:root {
    --bg: #f8fafc;
    --bg-soft: #eef2f7;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.10);
    --card: rgba(255, 255, 255, 0.92);
    --dark: #020617;
    --emerald: #10b981;
    --emerald-dark: #047857;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --radius: 24px;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.15), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1380px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.25);
}

.logo-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #334155;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    padding: 9px 12px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    color: white;
    background: var(--dark);
}

.hero-track {
    position: relative;
    min-height: 72vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    padding: 92px max(32px, calc((100vw - 1380px) / 2)) 86px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.38) 100%),
        var(--hero-image) center / cover no-repeat,
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.22), transparent 36rem);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(16, 185, 129, 0.24), transparent 28rem),
        radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.16), transparent 26rem);
}

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

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(110, 231, 183, 0.28);
    font-size: 13px;
    font-weight: 800;
}

.section-kicker {
    color: var(--emerald-dark);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.18);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.hero-poster,
.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, #0f172a, #047857);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
    aspect-ratio: 2 / 3;
}

.hero-poster img,
.detail-poster img,
.poster img,
.rank-thumb img,
.mini-poster-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-missing {
    position: relative;
    background:
        radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.42), transparent 45%),
        linear-gradient(135deg, #0f172a, #115e59 48%, #064e3b);
}

.poster-missing::after {
    content: "封面图";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-actions,
.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.24);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    cursor: pointer;
    border: 0;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: white;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: white;
}

.search-panel,
.content-section,
.page-shell,
.detail-shell {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.search-panel {
    margin-top: 34px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    align-items: center;
    gap: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-panel h2,
.section-head h2,
.detail-article h2,
.detail-meta-card h2 {
    margin: 8px 0 6px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.search-panel p,
.section-head p,
.category-panel p,
.movie-info p,
.rank-info p,
.site-footer p {
    color: var(--muted);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--text);
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.full-width {
    grid-column: 1 / -1;
}

.content-section {
    margin-top: 48px;
}

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

.section-more,
.text-link {
    color: var(--emerald-dark);
    font-weight: 900;
}

.text-link.muted {
    color: var(--muted);
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.36);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.68);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-info {
    padding: 16px;
}

.movie-meta,
.tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.movie-meta span,
.tag-list span {
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.22;
}

.movie-info p {
    margin: 0 0 12px;
    min-height: 3.1em;
}

.card-actions {
    margin-top: 14px;
    justify-content: space-between;
}

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

.compact-card .movie-info p {
    display: none;
}

.page-shell,
.detail-shell {
    padding-top: 36px;
    padding-bottom: 56px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    color: white;
    background:
        radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.28), transparent 30rem),
        linear-gradient(135deg, #020617, #0f172a 42%, #064e3b);
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 54px;
}

.small-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
}

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

.category-panel {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.category-panel-head span {
    color: var(--emerald-dark);
    font-weight: 900;
}

.category-panel h2 {
    margin: 8px 0;
    font-size: 28px;
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.mini-poster-row a {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

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

.detail-copy p {
    color: rgba(255, 255, 255, 0.80);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 18px;
}

.player-card,
.detail-content-grid,
.related-section {
    margin-top: 30px;
}

.player-card,
.detail-article,
.detail-meta-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.play-floating {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 122px;
    height: 122px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    background: rgba(16, 185, 129, 0.86);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 22px 50px rgba(16, 185, 129, 0.28);
}

.play-floating.hidden {
    display: none;
}

.player-line {
    margin: 14px 0 0;
    color: var(--muted);
}

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

.detail-article p {
    color: #334155;
    font-size: 17px;
}

.detail-meta-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-meta-card li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-meta-card li:last-child {
    border-bottom: 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 80px minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.rank-number {
    color: var(--emerald-dark);
    font-size: 24px;
    font-weight: 950;
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
}

.rank-score {
    display: grid;
    justify-items: end;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
}

.rank-score strong {
    color: var(--emerald-dark);
    font-size: 26px;
}

.search-results {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.search-result-card,
.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.search-result-card h3 {
    margin: 0 0 8px;
}

.search-result-card p,
.empty-state {
    color: var(--muted);
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0;
    color: #cbd5e1;
    background: #020617;
}

.footer-inner {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
    gap: 32px;
}

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

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

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

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

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

@media (max-width: 900px) {
    .header-inner {
        min-height: 64px;
    }

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        padding: 16px;
        justify-content: flex-start;
        border-radius: 22px;
        background: white;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

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

    .hero-slide,
    .detail-hero,
    .detail-content-grid,
    .search-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding-top: 78px;
    }

    .hero-poster,
    .detail-poster {
        width: min(280px, 72vw);
        margin: 0 auto;
    }

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

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

    .rank-score {
        grid-column: 2 / -1;
        justify-items: start;
    }

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

@media (max-width: 640px) {
    .movie-grid,
    .preview-grid,
    .ranking-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .page-hero,
    .detail-hero,
    .search-panel,
    .player-card,
    .detail-article,
    .detail-meta-card {
        padding: 20px;
        border-radius: 22px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

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

    .movie-info h3 {
        font-size: 17px;
    }

    .movie-info p,
    .card-actions .muted {
        display: none;
    }
}
