
      /* --- CSS GLOBAL & VARIABILE --- */
        :root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-stream: #2196F3; 
    --accent-live: #f44336;   
    --transition-speed: 0.5s;
    --shadow: 0 4px 6px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
}

        body {
    font-family: sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center;      
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 100vh;
    margin: 0;
}

      /* --- CSS HEADER --- */
      .header-card-container {
    width: 300px;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    margin-bottom: -10px; 
    overflow: hidden;
    background: transparent;
    pointer-events: none; 
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 15px 20px;
}

.header-text-anim-box {
    text-align: center; 
    flex: 0 0 160px; 
    margin: 0;
    padding: 0;
}

.static-top {
    font-size: 12px; 
    color: #aaa; 
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
    text-transform: uppercase;
}

.scene {
    width: 100%; 
    height: 24px; 
    overflow: hidden;
    position: relative;
    margin: 0 auto; 
    padding: 0;
    display: block; 
    background: transparent;
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: slideVertical 12s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

.card {
    height: 24px; 
    min-height: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    color: white;
}

.vibe { color: #fff; }
.energy { color: #fff; }
.flow { color: #fff; }

.header-logo-box {
    flex: 0 0 80px; 
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes slideVertical {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-24px); }
    66%, 94% { transform: translateY(-48px); }
    100% { transform: translateY(0); }
}

@media screen and (max-width: 320px) {
    .header-card-container {
        width: 100% !important;
    }
}

      /* --- CSS PLAYER CARD --- */

    .player-card {
    width: 90%;          
    max-width: 300px;   
    min-width: 280px;   
    
    min-height: 400px;  
    
    padding: 30px;      
    padding-bottom: 60px; 

    background-color: var(--card-bg);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('../img/background.jpg');
    
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    text-align: center;
    
    position: relative; 
    z-index: 2; 
    
    color: var(--text-color);
    box-sizing: border-box;

    border-radius: 10px;
    transition: border-color var(--transition-speed);
    border-top: 5px solid var(--accent-stream);
}

@media (max-width: 320px) {
    .player-card {
        width: 95%;
        min-width: 95%;
    }
}

        .player-card.live-mode {
            border-color: var(--accent-live);
        }

        /* --- INFO BOX --- */
        .info-box {
            margin-top: 0;
            margin-bottom: 45px; 
            min-height: 50px; 
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: normal; 
            background-color: transparent;
        }

        .player-card.live-mode .info-box {
            background-color: transparent;
        }

        .info-text {
            font-size: 12px; 
            font-weight: bold;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
            margin: 0;
            line-height: 1.4; 
            text-align: center;
            max-width: 90%;
        }

        /* --- CANVAS VISUALIZER --- */
        .visualizer-container {
            width: 100%;
            height: 80px;
            margin-bottom: 20px;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        canvas#viz-canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* --- WRAPPER PENTRU WIDGET-URI --- */
        .widget-indicators-wrapper {
            position: absolute;
            bottom: 10px;      
            left: 0;
            width: 100%;       
            height: 30px;      
            pointer-events: none; 
            display: flex;
            justify-content: space-between;
            align-items: center; 
            padding: 0 15px;
            box-sizing: border-box;
        }

        /* --- TEXT TOGGLE VIZUALIZATOR (Stânga jos) --- */
        .viz-toggle-text {
            font-size: 10px;
            font-weight: bold;
            color: #888;
            cursor: pointer;
            pointer-events: auto; 
            text-transform: uppercase;
            letter-spacing:1px;
            transition: color 0.3s;
            user-select: none;
        }

        .viz-toggle-text:hover {
            color: #fff;
        }

        .viz-toggle-text.active {
            color: var(--accent-stream);
        }
        
        .live-mode .viz-toggle-text.active {
            color: var(--accent-live);
        }

        /* --- BADGE (Dreapta JOS) --- */
        .status-badge {
            display: inline-block;
            padding: 6px 15px; 
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            background-color: #333;
            color: #aaa;
            transition: all var(--transition-speed);
            animation: pulse-blue 2s infinite;
            line-height: 1; 
        }

        .player-card:not(.live-mode) .status-badge {
            background-color: var(--accent-stream);
            color: white;
        }

        .player-card.live-mode .status-badge {
            background-color: var(--accent-live);
            color: white;
            animation: pulse-red 2s infinite;
        }

        /* --- CONTROLS & BANDA --- */
        .controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 70px; 
        }

        /* BUTONUL */
        .controls button {
            background-color: transparent;
            border: 2px solid var(--text-color);
            color: var(--text-color);
            padding: 10px 25px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s;
            animation: none; 
            box-shadow: none;
            position: relative;
            z-index: 10;
        }

        .controls button:hover {
            background-color: transparent;
            color: var(--text-color);
            border-color: var(--text-color);
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(255,255, 255, 0.3);
        }

        .controls button:active {
            transform: scale(0.95);
        }

        .live-mode .controls button {
            box-shadow: none;
            animation: none;
        }

        /* --- VOLUME SLIDER --- */
        .volume-container {
            width: 80%;
            margin-top: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .volume-slider {
            -webkit-appearance: none; 
            width: 100%; 
            background: transparent; 
            --seek-before-width: 80%;
        }

        .volume-slider:focus {
            outline: none; 
        }

        /* Track-ul - Chrome/Safari/Edge */
        .volume-slider::-webkit-slider-runnable-track {
            width: 100%;
            height: 4px;
            cursor: pointer;
            border-radius: 2px;
            background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--seek-before-width, 80%), #444 var(--seek-before-width, 80%), #444 100%);
        }
        
        /* Thumb-ul - Chrome/Safari/Edge */
        .volume-slider::-webkit-slider-thumb {
            height: 16px;
            width: 16px;
            border-radius: 50%;
            background: var(--text-color);
            cursor: pointer;
            -webkit-appearance: none;
            margin-top: -6px; 
            box-shadow: 0 0 5px rgba(0,0,0,0.5);
            transition: transform 0.1s;
        }

        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        /* Firefox Track */
        .volume-slider::-moz-range-track {
            width: 100%;
            height: 4px;
            cursor: pointer;
            border-radius: 2px;
            background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--seek-before-width, 80%), #444 var(--seek-before-width, 80%), #444 100%);
        }

        /* Firefox Thumb */
        .volume-slider::-moz-range-thumb {
            height: 16px;
            width: 16px;
            border: none;
            border-radius: 50%;
            background: var(--text-color);
            cursor: pointer;
            box-shadow: 0 0 5px rgba(0,0,0,0.5);
        }

        /* Banda statică */
        .news-band {
            margin-top: 5px;
            width: 100%; 
            height: 30px; 
            background-color: rgba(0,0,0,0.4);
            overflow: hidden;
            position: relative;
            border-radius: 4px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 10px;
        }

        .news-text {
            font-size: 11px; 
            color: #ddd;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            line-height: 30px;
            margin: 0;
        }
        
        /* ANIMAȚII BADGE */
        @keyframes pulse-blue {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
        }

        @keyframes pulse-red {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
        }

        /* --- ACORDEON STYLES --- */
        .accordion-wrapper {
            width: 90%;
            max-width: 300px;
            margin-top: 10px;
            margin-bottom: 40px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .accordion-item {
            background-color: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid rgba(255,255,255,0.05);
        }

        .accordion-header {
            padding: 15px 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-color);
            transition: background 0.3s;
            user-select: none;
        }

        .accordion-header:hover {
            background-color: rgba(255,255,255,0.05);
        }

        /* Săgeata CSS */
        .accordion-header::after {
            content: '';
            width: 0; 
            height: 0; 
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-left: 6px solid #888;
            transition: transform 0.3s ease;
        }

        /* Când header-ul este activ (deschis) */
        .accordion-header.active::after {
            transform: rotate(90deg);
            border-left-color: var(--accent-stream);
        }

        .accordion-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            background-color: rgba(0,0,0,0.2);
        }

        .accordion-content {
            padding: 15px 20px;
            font-size: 13px;
        }

        /* Stiluri specifice pentru lista din Program */
        .program-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .program-list li {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            justify-content: space-between;
        }
        .program-list li:last-child {
            border-bottom: none;
        }
        .program-time {
            font-weight: bold;
            color: var(--accent-stream);
            margin-right: 10px;
        }
        
        /* --- STILURI PENTRU INFORMAȚIILE DE LA FINAL PROGRAM --- */
        .page-info {
            font-size: 12px;
            color: #ccc;
            margin-top: 15px; /* Spațiu față de lista de mai sus */
            margin-bottom: 8px;
            padding: 8px 12px;
            background-color: rgba(255, 255, 255, 0.03); /* Fundal foarte discret */
            border-radius: 4px;
            border-left: 3px solid var(--accent-stream); /* Accent color pe stânga */
            line-height: 1.4;
        }

        /* --- BUTON TELEGRAM (STILIZARE) --- */
        .btn-telegram-mini {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            background-color: #26A5E4; /* Telegram Blue */
            color: white;
            text-decoration: none;
            font-weight: bold;
            font-size: 14px;
            padding: 10px 15px;
            border-radius: 50px; /* Pill shape */
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            transition: all 0.2s ease;
            gap: 10px; /* Spațiu icon-text */
            box-sizing: border-box;
        }

        .btn-telegram-mini:hover {
            background-color: #208ac2;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.4);
        }

        .btn-telegram-mini:active {
            transform: translateY(0);
        }

        /* --- STILURI SPECIFICE PENTRU INFO BOX DIN TELEGRAM --- */
        .telegram-info-box {
            margin-top: 15px;
            margin-bottom: 10px; /* Redus putin marginea de jos */
            border-top: 1px solid rgba(255,255,255,0.1); /* Bordură de sus pentru separare vizuală */
            padding-top: 15px;
        }

        /* Suprascriem marginile pentru lista compactă din Telegram */
        .telegram-info-box .page-info {
            margin-top: 5px;
            margin-bottom: 5px;
            border-left-width: 2px; /* Puțin mai subțire */
        }

        /* Titlul INFO din Telegram */
        .telegram-info-box .info-header {
            color: var(--accent-stream);
            font-weight: bold;
            margin-top: 0;
            margin-bottom: 8px;
            display: block;
            font-size: 13px;
        }
        
        /* Stiluri specifice pentru mesajele Telegram */
        .telegram-messages-container {
            display: flex;
            flex-direction: column;
            align-items: flex-start; 
            gap: 8px;
            font-family: sans-serif;
            max-height: 300px;
            overflow-y: auto; 
            overflow-x: hidden; 
            word-wrap: break-word; 
            width: 100%; 
        }

        /* Scrollbar personalizat */
        .telegram-messages-container::-webkit-scrollbar {
            width: 6px;
        }
        .telegram-messages-container::-webkit-scrollbar-track {
            background: transparent;
        }
        .telegram-messages-container::-webkit-scrollbar-thumb {
            background-color: #444;
            border-radius: 3px;
        }
        .telegram-messages-container::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

        .msg-item {
            width: 85%; 
            background-color: rgba(255, 255, 255, 0.04); 
            border-radius: 8px;
            padding: 8px 12px; 
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s ease; 
        }

        .msg-item:hover {
            background-color: rgba(33, 150, 243, 0.15); 
            border-color: rgba(33, 150, 243, 0.3);
            transform: translateX(5px); 
            cursor: pointer;
        }

        .msg-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .msg-author {
            font-weight: 700; 
            font-size: 11px; 
            color: #fff;
        }
        
        .msg-text {
            font-size: 13px;
            line-height: 1.4;
            color: #ccc;
        }

        .msg-poll-link {
            display: inline-block;
            margin-top: 8px;
            text-decoration: none;
            background-color: #2196F3;
            color: white;
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 11px;
            transition: background 0.2s;
        }
        
        .msg-poll-link:hover {
            background-color: #1976D2;
        }
    