/* ==========================================================================
   KatDrama Ultra-Modern Design System & Visual Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-obsidian: #090a0f;
    --bg-surface: #0e1017;
    --bg-card: #12141c;
    --bg-card-hover: #181b26;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.18);
    --crimson: #ff2a55;
    --crimson-hover: #e01e47;
    --gold: #f59e0b;
    --emerald: #10b981;
    --purple: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-obsidian);
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 10% 0%, rgba(255, 42, 85, 0.05) 0px, transparent 40%),
        radial-gradient(at 90% 10%, rgba(139, 92, 246, 0.05) 0px, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
    font-weight: 800;
}

/* Movy Typography & Section Headers */
.movy-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .movy-section-title {
        font-size: 1.65rem;
    }
}
.movy-section-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.2rem;
}

/* Movy Rank Numbers for Top 10 */
.movy-rank-num {
    font-family: 'Outfit', sans-serif;
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 0.75;
    color: #090a0f;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.25);
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    user-select: none;
}
.group:hover .movy-rank-num {
    -webkit-text-stroke: 2px #ff2a55;
    color: rgba(255, 42, 85, 0.15);
    filter: drop-shadow(0 0 12px rgba(255, 42, 85, 0.4));
}
.movy-rank-num-1 {
    -webkit-text-stroke: 2px #f59e0b !important;
    color: rgba(245, 158, 11, 0.18) !important;
}
.movy-rank-num-2 {
    -webkit-text-stroke: 2px #cbd5e1 !important;
    color: rgba(203, 213, 225, 0.18) !important;
}
.movy-rank-num-3 {
    -webkit-text-stroke: 2px #d97706 !important;
    color: rgba(217, 119, 6, 0.18) !important;
}

/* Movy Primary & Secondary Action Buttons */
.movy-btn-play {
    background: #ffffff;
    color: #090a0f;
    font-weight: 800;
    font-size: 0.875rem;
    padding: 0.65rem 1.6rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.movy-btn-play:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}
.movy-btn-info {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1.4rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}
.movy-btn-info:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Movy Minimal Card */
.movy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.movy-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

/* Movy Genre Chip */
.movy-genre-card {
    background: rgba(18, 20, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}
.movy-genre-card:hover {
    background: rgba(30, 34, 48, 0.95);
    border-color: rgba(255, 42, 85, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Custom Scrollbars (Sleek, Minimal & Glowing)
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #030408;
}
::-webkit-scrollbar-thumb {
    background: #1b2133;
    border-radius: 9999px;
    transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff2a55;
    box-shadow: 0 0 10px rgba(255, 42, 85, 0.5);
}

.scrollbar-thin::-webkit-scrollbar {
    height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff2a55, #8b5cf6);
    border-radius: 9999px;
}

.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
    display: none;
    height: 0px;
    width: 0px;
}
.no-scrollbar,
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Ambient Glows & Lighting Effects
   ========================================================================== */
.ambient-glow-crimson {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 42, 85, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-purple {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Luxury Glassmorphism Panels & Pills
   ========================================================================== */
.glass-panel {
    background: rgba(10, 13, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Interactive Card Micro-Animations
   ========================================================================== */
.next-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.next-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 42, 85, 0.35);
    border-color: rgba(255, 42, 85, 0.5) !important;
}

.next-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.next-card:hover img {
    transform: scale(1.08);
}

/* Ranking Gold Card Hover */
.gold-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.6) !important;
}
.gold-card:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   Shimmer & Text Effects
   ========================================================================== */
@keyframes textShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.text-gradient-crimson {
    background: linear-gradient(135deg, #ffffff 20%, #ff2a55 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #ffffff 20%, #38bdf8 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-glow-crimson {
    background: linear-gradient(135deg, #ff2a55 0%, #d8143e 100%);
    box-shadow: 0 4px 20px rgba(255, 42, 85, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glow-crimson:hover {
    background: linear-gradient(135deg, #ff476e 0%, #ff2a55 100%);
    box-shadow: 0 6px 28px rgba(255, 42, 85, 0.65), 0 0 14px rgba(255, 42, 85, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn-glass-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}
.btn-glass-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Vignettes & Carousel
   ========================================================================== */
.hero-vignette {
    background: radial-gradient(circle at 60% 30%, transparent 20%, rgba(3, 4, 8, 0.5) 70%, #030408 100%),
                linear-gradient(to top, #030408 0%, rgba(3, 4, 8, 0.8) 25%, transparent 60%),
                linear-gradient(to right, #030408 0%, rgba(3, 4, 8, 0.85) 30%, transparent 70%);
}

/* Smooth heart pop animation */
@keyframes heartPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.4) rotate(-5deg); }
    70% { transform: scale(0.9) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.animate-heart {
    animation: heartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Skeleton Loading Shimmer */
@keyframes skeletonWave {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #090c15 25%, #151a2d 50%, #090c15 75%);
    background-size: 200% 100%;
    animation: skeletonWave 1.8s infinite;
}

/* Selection */
::selection {
    background-color: #ff2a55;
    color: #ffffff;
}

/* Site-wide copy restriction while allowing form inputs */
*, *::before, *::after {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

input, textarea {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    -webkit-touch-callout: default !important;
}
