/* ==========================================================================
   SKUPINA CREDIT - UKAZKY.CSS (styly specifické pro ukazky.html)
   ========================================================================== */

/* === PŘEHRÁVAČ === */

.player-section { position: relative; overflow: hidden; background: #ffffff !important; padding: calc(var(--header-height) + 60px) 20px 120px; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee; min-height: 800px; }
.modern-player { position: relative; z-index: 10; max-width: 1000px; margin: 0 auto; background: #111111 !important; border: 1px solid rgba(255, 179, 0, 0.2) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.15) !important; border-radius: 24px; color: #ffffff !important; overflow: hidden; }
.player-header-top { padding: 60px 50px 30px; text-align: center; }
.now-playing-label { font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-bottom: 16px; text-shadow: none !important; }
.player-track-name { font-family: var(--font-display); font-size: 3rem; letter-spacing: 2px; margin: 0; text-transform: uppercase; line-height: 1.2; color: #ffffff !important; }
.player-progress-wrap { padding: 0 80px; }
.player-times { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.6) !important; }
.player-progress-area { width: 100%; height: 8px; border-radius: 4px; cursor: pointer; position: relative; background: rgba(255, 255, 255, 0.1) !important; }
.player-progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 4px; position: relative; transition: width 0.1s linear; box-shadow: 0 0 15px var(--accent); }
.player-progress-bar::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px var(--accent); opacity: 0; transition: opacity 0.2s; }
.player-progress-area:hover .player-progress-bar::after { opacity: 1; }
.player-controls-wrap { padding: 40px 80px 60px; display: flex; align-items: center; justify-content: center; gap: 60px; }
.btn-ctrl { background: none; border: none; font-size: 1.8rem; cursor: pointer; transition: all 0.2s; color: rgba(255, 255, 255, 0.6) !important; }
.btn-ctrl:hover { transform: scale(1.1); color: #ffffff !important; }
.btn-play-main { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 2rem; border: none; cursor: pointer; transition: all 0.3s; color: #111 !important; box-shadow: 0 8px 25px var(--accent-soft) !important; }
.btn-play-main:hover { transform: scale(1.05); background: #fff; box-shadow: 0 12px 30px rgba(255, 179, 0, 0.5) !important; }


/* === PLAYLIST === */

.modern-playlist { list-style: none; margin: 0; padding: 0; background: rgba(0, 0, 0, 0.4) !important; border-top: 1px solid rgba(255, 255, 255, 0.05) !important; max-height: 350px; overflow-y: auto; }
.modern-playlist li { padding: 14px 50px; display: flex; align-items: center; gap: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; font-weight: 500; color: rgba(255, 255, 255, 0.6) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
.modern-playlist li:last-child { border-bottom: none !important; }
.modern-playlist li:hover { background: rgba(255, 179, 0, 0.05) !important; color: #ffffff !important; }
.modern-playlist li.active { background: rgba(255, 179, 0, 0.1) !important; color: var(--accent) !important; border-left: 6px solid var(--accent) !important; }
.modern-playlist::-webkit-scrollbar { 
    width: 12px; /* Dvojnásobná šířka pro pohodlné chycení */
}
.modern-playlist::-webkit-scrollbar-track { 
    background: rgba(0, 0, 0, 0.2); 
    border-radius: 0 0 24px 0; /* Respektuje zaoblení rohu přehrávače */
}
.modern-playlist::-webkit-scrollbar-thumb { 
    background: rgba(255, 179, 0, 0.5); /* Zvýšena základní viditelnost (z 0.3 na 0.5) */
    border-radius: 10px; 
    border: 3px solid #111111; /* Přidá falešný okraj, aby posuvník šel dobře chytit */
}
.modern-playlist::-webkit-scrollbar-thumb:hover { 
    background: rgba(255, 179, 0, 0.9); /* Při najetí se krásně rozzáří */
}


/* === EQ IKONA === */

.eq-icon { display: none; gap: 4px; height: 18px; align-items: flex-end; }
.eq-icon span { width: 4px; background: var(--accent); border-radius: 4px; animation: eqBounce 0.5s infinite alternate; }
.eq-icon span:nth-child(2) { animation-delay: 0.2s; }
.eq-icon span:nth-child(3) { animation-delay: 0.4s; }
.modern-playlist li.active .eq-icon.playing { display: flex; }
.modern-playlist li.active i.fa-music { display: none; }

@keyframes eqBounce { 0% { height: 4px; } 100% { height: 18px; } }


/* === VIZUALIZÉR === */

#visualizer-container { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; z-index: 1; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.visualizer-bar { background: var(--accent); border-radius: 3px 3px 0 0; transform: scaleY(0.01); transform-origin: bottom; transition: transform 0.05s linear, opacity 0.1s ease; height: 70%; flex-shrink: 0; }

@media (min-width: 2560px) {
    #visualizer-container { left: 50%; transform: translateX(-50%); max-width: 2560px; }
}


/* === RESPONZIVITA === */

@media (max-width: 768px) {
    .player-section { padding: calc(var(--header-height) + 30px) 20px 80px; }
    .modern-player { margin: 0; border-radius: 16px; }
    .player-header-top { padding: 40px 24px 20px; }
    .player-track-name { font-size: 1.8rem; }
    .player-progress-wrap { padding: 0 24px; }
    .player-controls-wrap { padding: 24px 24px 40px; gap: 30px; }
    .btn-play-main { width: 60px; height: 60px; font-size: 1.5rem; box-shadow: 0 8px 25px rgba(255, 179, 0, 0.4) !important; }
    .modern-playlist li { padding: 12px 24px; font-size: 0.9rem; }
    .visualizer-bar { border-radius: 1px 1px 0 0; }
}

@media (max-width: 480px) {
    .player-track-name { font-size: 1.4rem; }
    .btn-ctrl { font-size: 1.5rem; }
}
