@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --accent: #9333ea;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #2a0845 0%, transparent 50%);
    background-attachment: fixed;
    color: #fff;
}

/* --- STILE SCROLLBAR GLOBALE E FORZATO --- */
::-webkit-scrollbar, .custom-scrollbar::-webkit-scrollbar { 
    width: 6px; 
    height: 6px; 
}
::-webkit-scrollbar-track, .custom-scrollbar::-webkit-scrollbar-track { 
    background: rgba(0, 0, 0, 0.2); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb, .custom-scrollbar::-webkit-scrollbar-thumb { 
    background: rgba(147, 51, 234, 0.4); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover, .custom-scrollbar::-webkit-scrollbar-thumb:hover { 
    background: rgba(147, 51, 234, 0.8); 
}

/* Effetto Vetro */
.glass-panel {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* --- THEATER MODE (Schermo intero del browser) --- */
body.theater-active {
    overflow: hidden !important;
}
body.theater-active nav,
body.theater-active footer {
    display: none !important; 
}
body.theater-active #playerContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    border: none !important;
    background: #000 !important;
}

/* Stile per la barra di avanzamento del video */
input[type=range].video-progress {
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 2px;
    outline: none;
}
input[type=range].video-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.8);
}