/* ============================================================
   LEPS STREAM — Custom Stylesheet & Design System Tokens
   Midnight Social Cinema Visual Identity
   ============================================================ */

/* Root Font & Selection Definitions */
:root {
    --color-midnight-bg: #0A0D14;
    --color-midnight-surface: #111622;
    --color-midnight-card: #161C2C;
    --color-electric-violet: #8B5CF6;
    --color-electric-hover: #7C3AED;
    --color-warm-coral: #F28A72;
    --font-space: 'Space Grotesk', sans-serif;
    --font-dmsans: 'DM Sans', sans-serif;
}

body {
    background-color: var(--color-midnight-bg);
    color: #F8FAFC;
    font-family: var(--font-dmsans);
    overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4, .font-display {
    font-family: var(--font-space);
}

/* Ambient Grain Overlay Texture */
.bg-grain {
    background-image: radial-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Glassmorphism Panels & Cards */
.glass-panel {
    background: rgba(17, 22, 34, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(135deg, rgba(22, 28, 44, 0.7) 0%, rgba(17, 22, 34, 0.45) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 220ms ease-out;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -10px rgba(139, 92, 246, 0.25);
}

.glass-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: all 200ms ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-electric-violet);
    outline: none;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Atmospheric Visual Effects */
.projection-beam {
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.2) 0%, rgba(242, 138, 114, 0.04) 45%, transparent 70%);
}

.text-glow {
    text-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

/* Room Video Player Aspect Ratio & Fullscreen Styling */
#player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

#player-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    max-width: none !important;
}

#player-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

#player-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0A0D14;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

/* Chat Message Container Smooth Auto-Scroll */
#chat-messages {
    scroll-behavior: smooth;
}
