/* Radio uživo – player modal (inspirisan Naxi stilom) */
.radio-u-zivo-trigger {
    display: inline-block;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.radio-u-zivo-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

.radio-u-zivo-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.radio-u-zivo-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.radio-u-zivo-modal {
    position: relative;
    width: 100%;
    max-width: min(1400px, var(--ruv-modal-width, 95vw));
    max-height: var(--ruv-modal-height, 95vh);
    min-height: 70vh;
    background: linear-gradient(180deg, #0f1729 0%, #1a2744 50%, #0d1424 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.radio-u-zivo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.radio-u-zivo-close:hover {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.radio-u-zivo-modal.has-custom-bg {
    background: var(--ruv-bg-color, #0f1729);
}
.radio-u-zivo-modal.has-bg-image {
    background-image: var(--ruv-bg-image);
    background-size: cover;
    background-position: center;
}

/* Layout: gore "Trenutno slušate", ispod žanrovi u jednom redu sa skrolom */
.radio-u-zivo-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 32px 24px 16px;
    flex: 1;
    min-height: 0;
}

.radio-u-zivo-modal.layout-default .radio-u-zivo-layout {
    flex-direction: column;
}

.radio-u-zivo-modal.layout-side .radio-u-zivo-layout {
    flex-direction: row;
    gap: 24px;
}
.radio-u-zivo-modal.layout-side .radio-u-zivo-current {
    flex: 0 0 38%;
}
.radio-u-zivo-modal.layout-side .radio-u-zivo-genres-section {
    flex: 1 1 62%;
}
@media (max-width: 768px) {
    .radio-u-zivo-modal.layout-side .radio-u-zivo-layout {
        flex-direction: column;
    }
    .radio-u-zivo-modal.layout-side .radio-u-zivo-current,
    .radio-u-zivo-modal.layout-side .radio-u-zivo-genres-section {
        flex: 1 1 auto;
    }
}

.radio-u-zivo-current {
    display: block;
    padding: 24px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.4) 0%, rgba(15, 23, 41, 0.6) 100%);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.radio-u-zivo-label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.radio-u-zivo-brand .radio-u-zivo-station-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #facc15;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}
.radio-u-zivo-current-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .radio-u-zivo-current-inner {
        flex-direction: column;
    }
}
.radio-u-zivo-current-main {
    flex: 0 1 28%;
    min-width: 0;
}
.radio-u-zivo-now-program {
    flex: 1 1 36%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    border-left: 1px solid rgba(148, 163, 184, 0.35);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
}
@media (max-width: 768px) {
    .radio-u-zivo-now-program {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
        border-bottom: 1px solid rgba(148, 163, 184, 0.35);
        padding: 12px 0;
        margin: 8px 0;
    }
}
.radio-u-zivo-now-program-label {
    margin: 0 0 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.radio-u-zivo-now-program-art-wrap {
    width: 100%;
    max-width: 140px;
    margin-bottom: 10px;
}
.radio-now-playing-art.radio-now-program-art {
    width: 100%;
    aspect-ratio: 1;
    max-width: 140px;
    border-radius: 10px;
    display: none;
}
.radio-now-playing-art.radio-now-program-art.is-visible {
    display: block;
}
.radio-u-zivo-now-playing {
    margin: 0;
    font-size: 0.9rem;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}
.radio-u-zivo-history {
    flex: 0 1 36%;
    min-width: 0;
    padding-left: 12px;
}
@media (max-width: 768px) {
    .radio-u-zivo-history {
        padding-left: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
    }
}
.radio-u-zivo-history-title {
    margin: 0 0 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
/* Kontejner za poslednjih 5 – div (ne ul/ol) da tema ne doda brojeve */
.radio-u-zivo-history-list {
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #cbd5e1;
}
.radio-u-zivo-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.radio-u-zivo-history-item:last-child {
    border-bottom: none;
}
.radio-u-zivo-history-item.is-empty {
    border-bottom: none;
    opacity: 0.7;
}
.radio-u-zivo-history-item-art {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}
.radio-u-zivo-history-item-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.radio-u-zivo-share {
    margin-top: 16px;
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f1729;
    background: #facc15;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.radio-u-zivo-share:hover {
    background: #fde047;
    transform: translateY(-1px);
}

/* Sekcija žanrova ispod – horizontalni skrol sa strelicama */
.radio-u-zivo-genres-section {
    flex: 0 0 auto;
    border-top: 1px solid rgba(100, 116, 139, 0.3);
    border-bottom: 1px solid rgba(250, 204, 21, 0.25);
    padding: 16px 0;
    margin: 0 -8px;
}
.radio-u-zivo-stations-title {
    margin: 0 0 12px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}
.radio-u-zivo-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.radio-u-zivo-carousel-prev,
.radio-u-zivo-carousel-next {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #e2e8f0;
    background: rgba(30, 58, 95, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.radio-u-zivo-carousel-prev:hover,
.radio-u-zivo-carousel-next:hover {
    color: #facc15;
    background: rgba(30, 58, 95, 0.9);
}

.radio-u-zivo-stations-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 8px 4px;
    flex: 1;
    min-width: 0;
}
.radio-u-zivo-stations-carousel::-webkit-scrollbar {
    height: 6px;
}
.radio-u-zivo-stations-carousel::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 3px;
}
.radio-u-zivo-stations-carousel::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.4);
    border-radius: 3px;
}

/* Kartica žanra – pozadinska slika + overlay + naziv + play */
.radio-u-zivo-station-card {
    flex: 0 0 200px;
    width: 200px;
    height: 140px;
    position: relative;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    padding: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    background: linear-gradient(145deg, var(--station-color, #1e3a5f) 0%, color-mix(in srgb, var(--station-color, #1e3a5f) 60%, #000) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.radio-u-zivo-station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.radio-u-zivo-station-card.is-active {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

.radio-station-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}
.radio-u-zivo-station-card[style*="background-image"] .radio-station-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.radio-station-card-label {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 44px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    pointer-events: none;
}

.radio-station-card-play {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.95);
    color: #0f1729;
    border-radius: 50%;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.radio-station-card-now {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Player bar (dole) */
.radio-u-zivo-player-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(180deg, #0d1424 0%, #0a0f1a 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.radio-u-zivo-play {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #facc15;
    color: #0f1729;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    flex-shrink: 0;
}
.radio-u-zivo-play:hover {
    background: #fde047;
    transform: scale(1.05);
}
.radio-u-zivo-play .radio-play-icon {
    font-size: 24px;
    line-height: 1;
}
.radio-u-zivo-play.is-playing .radio-play-icon { font-size: 0; }
.radio-u-zivo-play.is-playing .radio-play-icon::before { content: '❚❚'; font-size: 18px; }

.radio-u-zivo-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 180px;
}
.radio-volume-icon { font-size: 1.25rem; }
.radio-u-zivo-volume {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}
.radio-u-zivo-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #facc15;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s;
}
.radio-u-zivo-volume::-webkit-slider-thumb:hover { transform: scale(1.1); }
.radio-u-zivo-volume::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #facc15;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.radio-u-zivo-player-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
