body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f5;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    padding-bottom: 70px; 
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Akcelerácia pre hlavičku */
    transform: translateZ(0); 
}

h1 { margin: 0; font-size: 1.8em; }
h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Layout a Reklamné Panely --- */
.page-layout-wrapper {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 10px;
    display: flex;
    gap: 20px;
}

.main-content {
    flex-grow: 1;
    min-width: 700px;
}

.ad-panel {
    width: 200px; 
    min-width: 150px;
    height: 500px; 
    padding: 15px;
    background-color: #f0f3f5;
    border: 1px dashed #ccc;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    border-radius: 8px;
}

.container {
    max-width: 100%;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.controls, .stations-list {
    background-color: #fcfcfc;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.controls { flex: 1; min-width: 250px; }
.stations-list { 
    flex: 3; 
    min-width: 300px; 
    /* Akcelerácia pre celý kontajner staníc */
    transform: translateZ(0);
}

/* Vyhľadávanie a Dropdown */
#country-select, #station-search {
    padding: 12px;
    width: calc(100% - 2px);
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #b0b0b0;
    font-size: 1em;
    background-color: #fff;
}
#station-search:focus { outline: none; border-color: #3498db; }

/* Zoznam Staníc */
#station-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9f9f9;
}

#station-ul li {
    /* Padding bez miesta pre logo */
    padding: 10px 15px 10px 15px; 
    margin: 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s, border-left 0.1s;
    overflow: hidden;
    white-space: nowrap;
    display: block; 
    line-height: 25px; 
    
    transform: translateZ(0);
}

#station-ul li:hover {
    background-color: #e8f4fb;
    border-left: 5px solid #3498db;
    padding-left: 10px;
}

#station-ul li.is-playing {
    background-color: #d1ecf1;
    border-left: 5px solid #2980b9;
    font-weight: bold;
}

/* --- Sticky Player Bar --- */
#sticky-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    z-index: 1000;
    
    /* Pôvodná akcelerácia */
    transform: translateZ(0); 
    will-change: transform;
    
    /* 💡 KĽÚČOVÁ OPRAVA PRE FIREFOX: Vytvorenie nového stacking kontextu */
    isolation: isolate; 
}

.player-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#now-playing-info-sticky {
    display: flex;
    align-items: center;
    /* Menší gap, keďže logo už nie je */
    gap: 10px; 
    flex: 1;
    overflow: hidden;
    margin-right: 20px;
    transform: translateZ(0);
}

#sticky-station-logo {
    /* Logo natrvalo skryté! */
    display: none !important; 
}

.metadata p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateZ(0);
}
#sticky-station-name {
    font-weight: bold;
    font-size: 1.1em;
}
#sticky-song-info {
    font-size: 0.9em;
    color: #b0c4de;
}

.audio-controls-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 20px;
}
.custom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#play-pause-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#play-pause-btn:disabled { background-color: #7f8c8d; cursor: not-allowed; }
#play-pause-btn:hover:not(:disabled) { background-color: #2980b9; }

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
#volume-slider {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    background: #bdc3c7;
    height: 6px;
    border-radius: 3px;
    outline: none;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px; 
    height: 15px;
    border-radius: 50%;
    background: #3498db; 
    cursor: pointer;
    margin-top: -4px;
}

#volume-icon { color: #b0c4de; font-size: 1.1em; }

.hidden { display: none !important; }

@media (max-width: 1200px) {
    .ad-panel { display: none; }
    .main-content { min-width: auto; }
}

@media (max-width: 768px) {
    .container { flex-direction: column; }
    .controls, .stations-list { min-width: unset; min-height: unset; }
    .player-content-wrapper { flex-direction: column; align-items: flex-start; gap: 10px; }
    .audio-controls-container { width: 100%; justify-content: center; }
}