/* Static movie site extension styles. */
:root {
    color-scheme: light;
    --site-primary: #0284c7;
    --site-primary-dark: #0369a1;
    --site-secondary: #0f172a;
    --site-muted: #64748b;
    --site-soft: #f8fafc;
    --site-accent: #f59e0b;
    --site-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 42%, #f8fafc 100%);
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

img {
    max-width: 100%;
}

.site-header {
    backdrop-filter: blur(18px);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #f59e0b);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
}

.logo-text {
    letter-spacing: -0.03em;
}

.nav-link.active,
.nav-link:hover {
    color: var(--site-primary);
}

.mobile-menu {
    display: none;
}

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

.hero-slider {
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease, transform 600ms ease;
    transform: scale(1.015);
}

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

.hero-slide img.image-missing,
.movie-card img.image-missing,
.player-poster.image-missing {
    opacity: 0;
}

.hero-fallback-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(2, 132, 199, 0.55), transparent 36%),
        radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.42), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 52%, #082f49);
    z-index: -1;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.section-title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 0.25rem;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0284c7, #f59e0b);
}

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

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

@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.movie-card {
    min-width: 0;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.movie-card.is-hidden {
    display: none;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.30), transparent 36%),
        linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-frame::before {
    content: attr(data-cover);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.52);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
}

.poster-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.055);
}

.card-badge {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(2, 132, 199, 0.92);
    backdrop-filter: blur(8px);
}

.card-rating {
    position: absolute;
    z-index: 2;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
}

.tag-chip,
.category-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(2, 132, 199, 0.16);
    background: rgba(240, 249, 255, 0.9);
    color: #0369a1;
    padding: 0.35rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.filter-panel {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
}

.form-control {
    width: 100%;
    border-radius: 0.85rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0.78rem 0.9rem;
    color: #0f172a;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-control:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.9rem;
    background: #0284c7;
    color: #ffffff;
    padding: 0.78rem 1.15rem;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(2, 132, 199, 0.24);
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.30);
}

.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 0.76rem 1.05rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.ranking-row {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
}

.rank-number {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #f59e0b);
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.24), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.32);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.35rem;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.95);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.35);
}

.player-play-button.is-hidden {
    display: none;
}

.player-status {
    min-height: 1.5rem;
    color: #cbd5e1;
}

.prose-content p {
    margin-top: 1rem;
    line-height: 1.85;
    color: #334155;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.back-to-top {
    display: none;
}

.back-to-top.is-visible {
    display: inline-flex;
}

@media (max-width: 767px) {
    .hero-copy {
        padding-right: 1rem;
    }

    .hero-arrow {
        display: none;
    }

    .site-search-form {
        width: 100%;
    }
}
