html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: #111827;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 1 auto;
}

.logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.28);
}

.logo-dot {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: #eab308;
    animation: pulse 1.8s infinite;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 15%, rgba(239, 68, 68, 0.24), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(234, 179, 8, 0.2), transparent 26%),
        linear-gradient(135deg, #111827 0%, #1f2937 52%, #111827 100%);
    color: #ffffff;
}

.hero-glow-one,
.hero-glow-two {
    position: absolute;
    border-radius: 9999px;
    filter: blur(72px);
    opacity: 0.45;
}

.hero-glow-one {
    width: 16rem;
    height: 16rem;
    background: #dc2626;
    top: 5rem;
    right: 8%;
}

.hero-glow-two {
    width: 24rem;
    height: 24rem;
    background: #ca8a04;
    bottom: -5rem;
    left: 4%;
}

.hero-slide {
    display: none;
    position: relative;
    z-index: 2;
}

.hero-slide.is-active {
    display: block;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
    }
}

.hero-cover-card {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.hero-cover-card:hover {
    transform: scale(1.025);
}

.hero-cover-card img,
.cover-frame img,
.poster-frame img,
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hero-cover-card:hover img,
.movie-card:hover .cover-frame img,
.related-card:hover .related-thumb img {
    transform: scale(1.06);
}

.cover-frame,
.poster-frame,
.related-thumb,
.hero-cover-card {
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.cover-frame.no-image img,
.poster-frame.no-image img,
.related-thumb.no-image img,
.hero-cover-card.no-image img,
img.is-empty {
    opacity: 0;
}

.cover-title-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cover-frame:not(.no-image) .cover-title-layer,
.poster-frame:not(.no-image) .cover-title-layer,
.related-thumb:not(.no-image) .cover-title-layer,
.hero-cover-card:not(.no-image) .cover-title-layer {
    display: none;
}

.hero-controls {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: 2.5rem;
}

.hero-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.2s ease;
}

.hero-dot.is-active {
    width: 2.25rem;
    background: #dc2626;
    border-color: #dc2626;
}

.hero-arrow {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(220, 38, 38, 0.95);
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

.cover-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.card-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3.5rem 0.75rem 0.85rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.card-body {
    padding: 0.85rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-card {
    display: block;
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(254, 202, 202, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.rank-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 5rem) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

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

.related-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: #f9fafb;
}

.related-thumb {
    position: relative;
    flex: 0 0 8rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.65rem;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
    transition: opacity 0.2s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 9999px;
    padding: 0.9rem 1.45rem;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.36);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    background: #b91c1c;
    transform: scale(1.04);
}

.filter-panel {
    border-radius: 1.25rem;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.72rem 1rem;
    background: #ffffff;
    outline: none;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

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

@media (max-width: 767px) {
    .hero-stage .container {
        padding-top: 2.25rem;
        padding-bottom: 1.25rem;
    }

    .rank-row {
        grid-template-columns: 2.5rem minmax(0, 4.25rem) minmax(0, 1fr);
        gap: 0.65rem;
    }

    .related-thumb {
        flex-basis: 6.5rem;
    }
}
