body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #111;
    color: #fff;
    overflow-x: hidden; /* sprečava horizontalni scroll na mobilnom */
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "logo player why"
        "logo player stats";
    gap: 12px 24px;
    padding: 24px 22px 24px 28px;
    background: radial-gradient(circle at 20% 50%, #1a2a1a, #111 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 160px;
    width: 100%;
    box-sizing: border-box;
}

.player-logo-panel  { grid-area: logo; }
.player-area        { grid-area: player; }
.player-info-panel  { grid-area: why; }
.live-stats         { grid-area: stats; align-self: end; }

/* ================================================
   LOGO PANEL – leva kolona u player sekciji
   ================================================ */
.player-logo-panel {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- IDLE STATE – animirani signal krugovi --- */
.player-logo-idle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.signal-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(29, 185, 84, 0.5);
    animation: ringPulse 2.4s ease-out infinite;
}

.ring-1 { width: 52px;  height: 52px;  animation-delay: 0s; }
.ring-2 { width: 96px;  height: 96px;  animation-delay: 0.6s; }
.ring-3 { width: 140px; height: 140px; animation-delay: 1.2s; }

@keyframes ringPulse {
    0%   { opacity: 0.9; transform: scale(0.8); }
    50%  { opacity: 0.4; }
    100% { opacity: 0;   transform: scale(1.1); }
}

.idle-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 2;
}

.idle-mera {
    font-size: 2rem;
    font-weight: 800;
    color: #e74c3c;
    letter-spacing: -1px;
}

.idle-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* --- ACTIVE STATE – logo stanice --- */
.player-logo-active {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.active-logo-wrap {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
    transition: box-shadow 0.4s ease;
}

.active-logo-wrap img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    object-fit: contain !important;
    padding: 10px !important;
    display: block !important;
}

.active-logo-wrap .logo-initials {
    width: 150px !important;
    height: 150px !important;
    font-size: 3rem !important;
    border-radius: 0 !important;
}

/* Zeleni glow kada svira */
.active-logo-wrap.is-playing {
    box-shadow: 0 8px 32px rgba(0,0,0,0.5),
                0 0 0 2px rgba(29,185,84,0.6),
                0 0 30px rgba(29,185,84,0.2);
}

/* Link ka sajtu stanice ispod loga */
.station-website-link {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    text-align: center;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.station-website-link:hover {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.player-area {
    flex: 1;
    padding: 4px 0;
    min-width: 0;
}

.utility-area {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
}

.player-controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-main {
    background: linear-gradient(135deg, #1db954, #159d47);
    border: none;
    padding: 12px 18px;
    font-size: 20px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.4);
    transition: all 0.2s ease;
}

.btn-main:hover {
    transform: scale(1.05);
}

.btn-secondary,
.btn-utility {
    background: #333;
    border: none;
    padding: 8px 12px;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.bottom-section {
    flex: 1;
    padding: 20px;
    padding-bottom: 52px; /* prostor za fixed footer */
    overflow: visible;
    min-height: 0;
}

/* .search-bar {
    margin-bottom: 15px;
} */

.search-bar input {
    width: 100%;
    padding: 10px;
    background: #222;
    border: none;
    color: #fff;
    border-radius: 6px;
}

/* ========================================= */
/* OSNOVNI IZGLED KARTICE */
/* ========================================= */

.station-card {
    flex: 0 0 auto;
    width: 220px;
    height: 280px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    position: relative;   /* neophodno da bi srce (absolute) bilo pozicionirano unutar kartice */
    transition: all 0.3s ease;
    overflow: visible;    /* VAŽNO: ne smemo seći karticu na hover (translateY) */
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ========================================= */
/* HOVER EFEKAT (blag, bez zelenog okvira) */
/* ========================================= */

.station-card:hover {
    transform: translateY(-4px);
    background: #252525;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: #444;
}

.station-carousel {
    flex: 1;
    overflow: visible;
    position: relative;
    padding-top: 8px;  /* prostor da se kartica podigne na hover bez sečenja */
    scroll-behavior: smooth; /* glatko skrolovanje na wheel ili scrollTo */
}

.station-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.station-carousel.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Logo deo */
.card-logo {
    width: 100%;
    height: 140px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* History modal logo – override Bootstrap max-width: 100% */
.history-logo-wrap img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    object-fit: cover !important;
    display: block !important;
    padding: 0 !important;
}

/* Detalji */
.station-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.station-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tekst deo */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* Meta tagovi */
.card-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: auto;
    overflow: hidden;
    align-items: center;
}

.meta-pill {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Genre pill je prvi i može biti najduži – dobija max-width */
.meta-pill:first-child {
    flex-shrink: 1;
    min-width: 0;
}

/* Bitrate pill nikad ne kraćujemo */
.meta-pill:last-child {
    flex-shrink: 0;
}

.card-location {
    display: flex;
    flex-direction: column;
    margin: 4px 0 6px 0;
}
.card-country {
    font-size: 12px;
    font-weight: 500;
    color: #bbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-city {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ako želiš da bude još izraženiji (npr. sa malim flag-om ili bojom) */
/* .card-country::before {
    content: "🌍 ";  /* ili koristi emoji za zastavu ako imaš podatak */
/*    font-size: 14px;
} */

/* ========================================= */
/* AKTIVNA STANICA (jedina sa zelenim efektom) */
/* ========================================= */

.active-station {
    z-index: 10; /* active je uvek najgore iznad svega */
    border: 2px solid #1db954 !important; /* zeleni okvir */
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.4) !important;
    background: rgba(29, 185, 84, 0.08) !important; /* blagi zeleni overlay */
    /* transform: scale(1.03); */
}

.carousel-wrapper {
    position: relative;
    display: flex;
    gap: 15px; /* razmak između strelica i trake */
    align-items: center;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(29, 185, 84, 0.8);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.6);
}

.carousel-btn.left {
    left: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
}

.carousel-btn.right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
}

/* ========================================= */
/* PLAYER STATUS INDIKATORI                  */
/* ========================================= */

.player-status {
    font-size: 1.4rem;
    min-width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.player-status.loading,
.player-status.buffering {
    color: #f39c12; /* narandžasta za loading/buffering */
    animation: pulse 1.5s infinite;
}

.player-status.error {
    color: #e74c3c; /* crvena za grešku */
}

.player-status.playing {
    color: #1db954; /* zelena kada pušta */
}

/* Pulsirajući efekat za loading/buffering */
@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Volume container stilovi */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volumeSlider {
    width: 100px;
    accent-color: #1db954; /* zelena linija za volume */
}

#volumeIcon {
    font-size: 1.3rem;
}

/* Disabled stanje za dugmad kada nema stanice */
.btn-main:disabled,
.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.search-bar input:focus {
    outline: none;
    border: 1px solid #1db954;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2);
    background: #1a1a1a;
}

.search-bar input::placeholder {
    color: #777;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

#stationSearch {
    width: 100%;
    padding: 10px 36px 10px 12px; /* prostor sa desne strane za X */
    box-sizing: border-box;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    opacity: 0.7;
    font-weight: bold;
    transition: opacity 0.2s, color 0.2s;
}

.clear-btn:hover {
    color: #fff;
    opacity: 1;
}

/* Sakrij X kada je polje prazno */
.clear-btn.hidden {
    display: none;
}

/* Search bar – svi elementi u jednom redu */
.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-bar .search-input-wrapper {
    flex: 1;
    min-width: 0;
}

/* Genre / Country filter dropdowns */
.filter-dropdowns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.filter-select {
    width: 130px;
    padding: 8px 24px 8px 10px;
    background: #1e1e1e;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #555;
    color: #fff;
}

.filter-select option {
    background: #1e1e1e;
    color: #ccc;
}

/* Aktivan filter – highlight */
.filter-select.active-filter {
    border-color: rgba(29,185,84,0.6);
    color: #fff;
}

.reset-filters-btn {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.reset-filters-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Mobilni prikaz — Reset dugme samo ikonica */
@media (max-width: 575px) {
    .reset-filters-btn {
        padding: 6px 8px;
    }
    .navbar-brand {
        font-size: 1rem !important;
    }
}

/* .search-results-info {
    text-align: center;
    padding: 10px 20px 10px;
    color: #888;
    font-size: 1.2rem;
    opacity: 0.8;
}

.search-results-info p {
    margin: 0;
}

#resultsCount {
    margin-top: 5px;
    font-weight: 500;
    color: #1db954; 
} */

#resultsCount strong {
    color: #fff;
}

/*Ispis podataka ispod play buttona*/
.station-extra-info {
    margin-top: 15px;
    font-size: 13px;
    color: #bbb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extra-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.suggested-by {
    font-style: italic;
    color: #888;
    font-size: 12px;
    margin: 5px 8px;
}

.suggested-by strong {
    color: #1db954;
}

#stationName {
    transition: color 0.2s ease;
}

#stationName:hover {
    color: #1db954;
    text-decoration: underline;
}

/* Dodatno podešavanje modala i formi */
#authModal .modal-content {
    border-radius: 12px;
}

#authModal .form-control {
    height: calc(3.5rem + 2px); /* malo viša polja za bolji touch */
    font-size: 1rem;
    /* padding: 1rem 0.75rem; */
}

#authModal .form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
}

#authModal .btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem;
}

/* Još uži modal na mobilnom ako treba */
@media (max-width: 576px) {
    #authModal .modal-dialog {
        margin: 0.5rem;
        max-width: 95%;
    }
}

.modal-header .btn-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-header .btn-close:focus {
    box-shadow: none;
}

/* Popravka za vidljivost teksta u modalima – mora biti na kraju fajla da pobedi body color */
#suggestModal,
#authModal,
#testModal {
    color: #212529 !important;
    /* crna boja za tekst */
}

#suggestModal .modal-title,
#suggestModal .form-label,
#suggestModal .modal-body,
#suggestModal .btn,
#suggestModal p,
#suggestModal h5,
#suggestModal .modal-header {
    color: #212529 !important;
    background-color: #ffffff !important;
}

#suggestModal .form-control {
    color: #212529 !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

#suggestModal .btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* Ukloni hover efekat na input poljima – ne treba da budu linkovi */
#stationSuggestName:hover,
input:hover {
    text-decoration: none !important;
    color: inherit !important;
    cursor: text !important;
}

.favorite-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: transform 0.2s, opacity 0.2s;

  /* Prazno srce je sakriveno po defaultu – pojavljuje se samo na hover kartice */
  opacity: 0;
}

/* Prazno srce se pojavljuje kad je miš na kartici */
.station-card:hover .favorite-heart {
  opacity: 1;
}

/* Puno srce (favorit) je UVEK vidljivo, bez obzira na hover */
.favorite-heart.is-favorite {
  opacity: 1 !important;
}

.favorite-heart:hover {
  transform: scale(1.2);
}

.favorite-heart i.bi-heart-fill {
  color: #dc3545;
}

/* ================================================
   FAVORITES BAR – banner koji se prikazuje kad je
   aktivan favorites filter u karuselu
   ================================================ */
.favorites-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(220, 53, 69, 0.12); /* blago crvenkasta pozadina */
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    color: #f8f9fa;
    font-size: 0.9rem;
    animation: fadeInBar 0.25s ease;
}

@keyframes fadeInBar {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.favorites-bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tooltip za srce kad korisnik nije ulogovan
   Pozicioniran je relativno u odnosu na .station-card (ne na srce)
   jer srce ima opacity:0 i tooltip bi bio nevidljiv unutar njega */
.heart-tooltip {
    position: absolute;
    top: 8px;           /* poravnat sa srcem koje je top:10px */
    right: 40px;        /* levo od srca */
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 200;
    animation: fadeInBar 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Mala strelica desno koja pokazuje ka srcu */
.heart-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -9px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(20, 20, 20, 0.95);
}

/* ================================================
   MOBILNI PRIKAZ – max-width: 768px
   Kompaktan player + vertikalni scroll kartica
   ================================================ */
@media (max-width: 768px) {

    /* --- LAYOUT --- */
    .top-section {
        flex-direction: column;
        padding: 12px 14px 10px;
        gap: 0;
    }

    .player-area {
        width: 100%;
        padding: 0;
    }

    .utility-area {
        display: none; /* sakrivamo desni panel na mobilnom */
    }

    .bottom-section {
        padding: 10px 12px;
        overflow: visible;
    }

    /* --- PLAYER NAZIV I PESMA --- */
    #stationName {
        font-size: 1.1rem !important;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin-bottom: 2px;
    }

    #currentSong {
        font-size: 0.8rem !important;
        opacity: 0.7;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin-bottom: 0px;
    }

    /* --- PLAYER KONTROLE --- */
    .player-controls {
        margin-top: 8px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    /* Play dugme – malo manji */
    .btn-main {
        padding: 9px 14px;
        font-size: 17px;
    }

    /* Stop dugme */
    .btn-secondary,
    .btn-utility {
        padding: 7px 10px;
        font-size: 14px;
    }

    /* Volume slider – kraći na mobilnom */
    #volumeSlider {
        width: 80px !important;
    }

    /* Extra info tagovi ispod kontrola */
    .station-extra-info {
        margin-top: 6px;
    }

    .extra-tags {
        gap: 6px;
    }

    .tag {
        font-size: 0.72rem;
        padding: 2px 8px;
    }

    /* --- SEARCH BAR --- */
    .search-bar {
        margin-bottom: 8px;
    }

    .search-input-wrapper input {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .search-bar {
        flex-wrap: wrap;
    }

    .filter-dropdowns {
        width: 100%;
        gap: 6px;
    }

    .filter-select {
        flex: 1;
        width: auto;
        font-size: 12px;
        padding: 7px 24px 7px 8px;
    }

    /* --- KARUSEL → VERTIKALNI SCROLL LISTA --- */

    /* Sakrivamo strelice – na mobilnom ih ne koristimo */
    #scrollLeftBtn,
    #scrollRightBtn {
        display: none !important;
    }

    /* Wrapper prelazi u normalni block flow */
    .carousel-wrapper {
        padding: 0;
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible; /* ne sečemo kartice – border mora biti vidljiv */
    }

    /* Track postaje vertikalna lista */
    .station-carousel {
        overflow: visible !important;
        padding-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #stationCarousel {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        transform: none !important;
        transition: none !important;
        width: 100% !important;      /* track mora biti ograničen na širinu parentа */
        max-width: 100% !important;
        min-width: 0 !important;     /* sprečava flex overflow */
    }

    /* Svaka kartica zauzima punu širinu roditeljskog elementa */
    .station-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;      /* visina se prilagođava sadržaju */
        flex-direction: row !important; /* logo levo, info desno */
        align-items: center;
        padding: 10px 12px;
        gap: 12px;
        border-radius: 12px;
    }

    /* Logo – manji i kvadratni */
    .card-logo {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    /* Sadržaj kartice – tekst ide desno od loga */
    .card-content {
        flex: 1;
        min-width: 0; /* da text-overflow radi */
        gap: 0px;
    }

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-country {
        font-size: 0.75rem;
        opacity: 0.7;
        margin-bottom: 4px;
    }

    .card-meta {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        overflow: hidden;
        align-items: center;
    }

    .meta-pill {
        font-size: 0.7rem;
        padding: 2px 7px;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .meta-pill:first-child {
        flex-shrink: 1;
        min-width: 0;
    }

    .meta-pill:last-child {
        flex-shrink: 0;
    }

    /* Srce – pozicionirano desno u row layoutu */
    .favorite-heart {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        opacity: 1 !important;        /* uvek vidljivo na mobilnom (nema hover) */
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Prazno srce je vidljivo ali bledo na mobilnom */
    .favorite-heart:not(.is-favorite) {
        opacity: 0.3 !important;
    }

    /* Tooltip srca na mobilnom – centriran unutar kartice, ne izlazi van */
    .heart-tooltip {
        right: 8px;
        left: auto;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        white-space: nowrap;
        max-width: 180px;
        font-size: 0.8rem;
    }

    /* Bez strelice na mobilnom – tooltip je uz srce */
    .heart-tooltip::after {
        display: none;
    }

    /* Favorites bar – kompaktniji */
    .favorites-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .favorites-bar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Logo panel – sakriven na mobilnom, player je kompaktan */
    .player-logo-panel {
        display: none;
    }
}

/* ================================================
   FLOATING "BACK TO PLAYER" DUGME
   Pojavljuje se na mobilnom kad korisnik skrola
   dole, nestaje kad je na vrhu stranice
   ================================================ */
#backToPlayerBtn {
    display: none; /* JS ga prikazuje kad treba */
    position: fixed;
    bottom: 24px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1db954, #159d47);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(29, 185, 84, 0.5);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

/* Vidljivo stanje – JS dodaje klasu 'visible' */
#backToPlayerBtn.visible {
    opacity: 1;
    display: flex;
}

#backToPlayerBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.7);
}

#backToPlayerBtn:active {
    transform: scale(0.95);
}

/* ================================================
   LOGO FALLBACK – inicijali kada nema slike
   ================================================ */
.logo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    border-radius: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    user-select: none;
}

/* Na mobilnom – manji inicijali jer je logo manji */
@media (max-width: 768px) {
    .logo-initials {
        font-size: 1.2rem;
        border-radius: 8px;
    }
}

/* ================================================
   TRENDING BADGE – rank broj na kartici
   ================================================ */
.trend-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.5);
}

/* Trending bar – žuta varijanta favorites bara */
.trending-bar {
    background: rgba(243, 156, 18, 0.1) !important;
    border-color: rgba(243, 156, 18, 0.3) !important;
}

/* Na mobilnom – trend badge prilagođen row layoutu */
@media (max-width: 768px) {
    .trend-badge {
        top: auto;
        bottom: 8px;
        left: 8px;
        font-size: 0.65rem;
    }
}
/* ================================================
   PLAYER INFO PANEL – desna kolona u top-section
   ================================================ */
.player-info-panel {
    width: 240px;
    display: flex;
    flex-direction: column;
}

/* --- LIVE STATS – horizontalna traka u jednom redu --- */
.live-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 9px 16px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
}

.stat-chip i { font-size: 0.95rem; }
.stat-ic-stations { color: #3498db; }
.stat-ic-plays    { color: #1db954; }
.stat-ic-members  { color: #e67e22; }

.stat-chip span:not(.stat-chip-label) {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.stat-chip-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.stat-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.9rem;
}

/* --- WHY REGISTER BOX --- */
.why-register {
    background: rgba(29, 185, 84, 0.05);
    border: 1px solid rgba(29, 185, 84, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}

.why-register:hover { border-color: rgba(29, 185, 84, 0.3); }
.why-register.hidden { display: none; }

.why-title {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 8px 0;
}

.why-title strong { color: #e74c3c; }

.why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;    
}

.why-list li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 7px;
}

.why-list li i { font-size: 0.7rem; flex-shrink: 0; }

.why-cta {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1db954;
    text-decoration: none;
    padding: 5px 0;
    border-top: 1px solid rgba(29,185,84,0.15);
    margin-top: 6px;
    transition: color 0.2s;
}

.why-cta:hover { color: #2ecc71; }

/* Mobilni – sakrivamo info panel i live-stats */
@media (max-width: 768px) {
    .player-info-panel { display: none; }
    .live-stats { display: none; }
    .top-section {
        display: flex;
        flex-direction: column;
    }
}

/* ================================================
   SITE FOOTER
   ================================================ */
#siteFooter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 32px;
    text-align: center;
    font-size: 12px;
    color: #555;
}
#siteFooter a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}
#siteFooter a:hover { color: #1db954; }

/* padding-bottom uklonjen – footer i cookie baner su position:fixed, ne trebaju prostor */

@media (max-width: 768px) {
    body { padding-bottom: 0; }
    .bottom-section { padding-bottom: 8px; }
    #backToPlayerBtn { bottom: 20px !important; }

    /* Footer postaje deo normalnog toka na mobilnom */
    #siteFooter { position: static; }

    /* Mobilni: country · city u jednom redu */
    .card-location {
        flex-direction: row;
        align-items: baseline;
        gap: 0;
    }
    .card-city::before {
        content: ' · ';
        color: #666;
    }
}
/* ================================================
   COOKIE INFO BANER
   ================================================ */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    animation: slideUpBanner .3s ease;
}

@keyframes slideUpBanner {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
    flex: 1;
}

.cookie-icon {
    color: #1db954;
    font-size: 18px;
    flex-shrink: 0;
}

.cookie-text a {
    color: #1db954;
    text-decoration: none;
    margin-left: 4px;
}
.cookie-text a:hover { text-decoration: underline; }

.cookie-ok-btn {
    background: #1db954;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
    white-space: nowrap;
}
.cookie-ok-btn:hover { background: #159d47; }

@media (max-width: 576px) {
    #cookieBanner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-ok-btn { width: 100%; text-align: center; }
}

/* ================================================
   SUGGEST FORMA – optional fields tip i badge-ovi
   ================================================ */
.suggest-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(29,185,84,0.08);
    border: 1px solid rgba(29,185,84,0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}
.suggest-tip i {
    color: #1db954;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.suggest-optional-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    background: rgba(255,255,255,0.08);
    color: #888;
}
.suggest-optional-badge--recommended {
    background: rgba(29,185,84,0.15);
    color: #1db954;
}

/* ================================================
   BROWSE ALL – dugme i grid panel
   ================================================ */
/* ================================================
   BROWSE ALL – dugme
   ================================================ */
.browse-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.browse-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.browse-all-btn:hover {
    background: rgba(29,185,84,0.1);
    border-color: rgba(29,185,84,0.4);
    color: #fff;
}
.browse-all-btn.active {
    background: rgba(29,185,84,0.12);
    border-color: rgba(29,185,84,0.5);
    color: #1db954;
}
.browse-all-btn i { font-size: 15px; }

/* ================================================
   BROWSE PANEL – wrapper
   ================================================ */
#browsePanel {
    margin-top: 4px;
}

/* Toolbar unutar browse panela */
.browse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.browse-count {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}
.browse-count strong {
    color: #ccc;
}

/* Sort dugmad */
.browse-sort {
    display: flex;
    align-items: center;
    gap: 6px;
}
.browse-sort-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.sort-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.sort-btn.active {
    background: rgba(29,185,84,0.12);
    border-color: rgba(29,185,84,0.4);
    color: #1db954;
}
.sort-btn i { font-size: 12px; }

/* ================================================
   BROWSE GRID
   ================================================ */
#browseGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    padding-bottom: 8px;
}

/* Browse kartica */
.browse-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
    min-width: 0;
    position: relative;
}
.browse-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.browse-card:active {
    transform: translateY(0);
}
.browse-card.active-browse {
    border-color: rgba(29,185,84,0.55);
    background: rgba(29,185,84,0.07);
    box-shadow: 0 0 0 1px rgba(29,185,84,0.2) inset;
}
/* Pulsing zelena tačka na aktivnoj kartici */
.browse-card.active-browse::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1db954;
    box-shadow: 0 0 0 0 rgba(29,185,84,0.5);
    animation: browsePulse 2s ease-out infinite;
}
@keyframes browsePulse {
    0%   { box-shadow: 0 0 0 0 rgba(29,185,84,0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(29,185,84,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}

.browse-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.browse-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.browse-logo .logo-initials {
    font-size: 1rem;
    border-radius: 8px;
}

.browse-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.browse-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.browse-meta {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.browse-genre {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================
   SKELETON LOADER
   ================================================ */
.browse-skeleton {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    pointer-events: none;
}
.skel-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    animation: skelShimmer 1.4s ease-in-out infinite;
}
.skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skel-line {
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.07);
    animation: skelShimmer 1.4s ease-in-out infinite;
}
.skel-line.short { width: 55%; }
.skel-line.medium { width: 75%; animation-delay: .15s; }
.skel-line.xshort { width: 40%; animation-delay: .3s; }

@keyframes skelShimmer {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* ================================================
   PAGINATION
   ================================================ */
.browse-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.page-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.page-btn.active {
    background: rgba(29,185,84,0.18);
    border-color: rgba(29,185,84,0.5);
    color: #1db954;
    font-weight: 600;
}
.page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.page-dots {
    color: #555;
    font-size: 13px;
    padding: 0 2px;
}
.browse-page-info {
    font-size: 11px;
    color: #555;
    text-align: center;
    padding-bottom: 4px;
}

/* ================================================
   SCROLL TO TOP (unutar browse panela)
   ================================================ */
/* #browseScrollTop {
    display: none;
    position: sticky;
    bottom: 16px;
    float: right;
    margin-right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(29,185,84,0.2);
    border: 1px solid rgba(29,185,84,0.4);
    color: #1db954;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
}
#browseScrollTop.visible {
    display: flex;
}
#browseScrollTop:hover {
    background: rgba(29,185,84,0.35);
} */

/* No results u browse */
.browse-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: #555;
    font-size: 14px;
}
.browse-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ================================================
   MOBILNI
   ================================================ */
@media (max-width: 768px) {
    #browseGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .browse-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .browse-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .browse-name { font-size: 12px; }
    .browse-meta { font-size: 10px; }
    .browse-toolbar {
        gap: 8px;
    }
    .browse-sort-label { display: none; }
}

/* ── Sleep Timer — circle ────────────────────────────────────── */
.sleep-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #555;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
    transition: border-color .25s;
    user-select: none;
    position: relative;
}

.sleep-circle:hover {
    border-color: #888;
}

/* Aktivno stanje — zelen border + pulsiranje */
.sleep-circle.active {
    border-color: #1db954;
    animation: sleep-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes sleep-ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0px rgba(29,185,84,.0); }
    50%       { box-shadow: 0 0 0 4px rgba(29,185,84,.25); }
}

/* Glavni tekst: "off" ili "10m" */
.sleep-circle-main {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    line-height: 1;
    transition: color .25s;
}
.sleep-circle.active .sleep-circle-main {
    color: #1db954;
}

/* Odbrojavanje: "29:45" */
.sleep-circle-sub {
    font-size: 9px;
    color: #1db954;
    line-height: 1;
    margin-top: 2px;
}

/* ── Sleep Toast ─────────────────────────────────────────────── */
.sleep-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}
.sleep-toast.visible {
    transform: translateX(-50%) translateY(0);
}

.sleep-toast-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.sleep-toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.sleep-toast-text strong {
    font-size: 14px;
    color: #fff;
}
.sleep-toast-text span {
    font-size: 12px;
    color: #888;
}

.sleep-toast-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    flex-shrink: 0;
    line-height: 1;
    transition: color .15s;
}
.sleep-toast-close:hover { color: #fff; }

/* Progress bar na dnu toasta */
.sleep-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1db954;
    border-radius: 0 0 12px 12px;
}

/* ── Announcement Banner u plejeru ───────────────────────────── */
.ann-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 0 20px 12px;
    font-size: 13px;
    line-height: 1.5;
    animation: annSlideIn .3s ease;
}
@keyframes annSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ann-banner.type-info    { background: rgba(52,152,219,.12); border: 1px solid rgba(52,152,219,.3); color: #7ec8e3; }
.ann-banner.type-success { background: rgba(29,185,84,.1);  border: 1px solid rgba(29,185,84,.3);  color: #1db954; }
.ann-banner.type-warning { background: rgba(243,156,18,.1); border: 1px solid rgba(243,156,18,.3); color: #f39c12; }
.ann-banner.type-danger  { background: rgba(231,76,60,.1);  border: 1px solid rgba(231,76,60,.3);  color: #e74c3c; }
.ann-banner-text { flex: 1; }
.ann-banner-close {
    background: transparent;
    border: none;
    color: currentColor;
    opacity: .6;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    flex-shrink: 0;
    line-height: 1;
}
.ann-banner-close:hover { opacity: 1; }

/* ================================================
   KOMPAKTAN PRIKAZ – ekrani male visine (laptopi 768px)
   Cilja visinu ekrana, ne širinu – ne utiče na mobilni
   ================================================ */
@media (max-height: 800px) and (min-width: 769px) {
 
    /* Footer postaje deo normalnog toka stranice – pojavljuje se pri skrolovanju */
    #siteFooter {
        position: static;
    }

    /* Uklanjamo padding rezervisan za fixed footer */
    .bottom-section {
        padding-bottom: 8px;
    }
    
    /* Smanjujemo top-section padding i visinu */
    .top-section {
        padding: 12px 22px 12px 28px;
        min-height: 120px;
        gap: 8px 25px;
    }
 
    /* Logo panel manji */
    .player-logo-panel {
        width: 120px;
        height: 120px;
    }
 
    .player-logo-active,
    .player-logo-idle {
        height: 120px !important;
    }

    .active-logo-wrap    
    {
        width: 120px !important;
        height: 120px !important;
    } 

    .active-logo-wrap img {
        width: 100px !important;
        height: 100px !important;
    }
 
    /* Signal krugovi skalirati */
    .ring-1 { width: 40px;  height: 40px; }
    .ring-2 { width: 74px;  height: 74px; }
    .ring-3 { width: 108px; height: 108px; }
 
    /* Naziv stanice i pesma – malo kompaktnije */
    #stationName {
        font-size: 1.1rem !important;
    }
 
    /* Kartica karusela – niža */
    .station-card {
        height: 220px;
    }

    .card-title {
        font-size: 0.85rem;
    }
 
    /* Bottom section – manje padding-a */
    .bottom-section {
        padding: 8px 22px 8px;
    }
 
    /* Search i filteri – kompaktnije */
    .search-filter-row {
        margin-bottom: 8px;
    }

    /* Web site link da bude vidljiv */
    .station-website-link{
        padding: 4px 0px;
        font-size: 0.75rem;
    }

    .carousel-wrapper {
        padding-left: 1px;
    }

    /* Text za zasto je dobro registrovati se */
    .why-register{
        padding: 2px 12px;
    }

    /* browse bar padding */
    .browse-bar {
        margin-bottom: 2px;
    }
}
/* ================================================
   ABOUT BUTTON (header)
   ================================================ */
.about-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    padding: 4px 8px;
    margin-left: 6px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.about-btn:hover { color: rgba(255,255,255,0.85); }

/* ================================================
   DONATE LINK (footer)
   ================================================ */
#siteFooter .donate-link {
    color: #f59e0b !important;
    font-weight: 500;
}
#siteFooter .donate-link:hover { color: #fbbf24 !important; opacity: 0.9; }

/* ================================================
   ABOUT MODAL
   ================================================ */
.about-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.about-modal-overlay.show {
    display: flex;
}
.about-modal-box {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    position: relative;
}
.about-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}
.about-modal-close:hover { color: #ccc; }
.about-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.about-logo {
    font-size: 22px;
    font-weight: 700;
    color: #eee;
}
.about-logo strong { color: #e53e3e; }
.about-subtitle {
    color: #888;
    font-size: 13px;
    margin: 4px 0 0;
}

/* Tabovi */
.about-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}
.about-tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.about-tab:hover { color: #ccc; }
.about-tab.active {
    background: rgba(255,255,255,0.1);
    color: #eee;
}

/* Tab content */
.about-tab-content { display: none; }
.about-tab-content.active { display: block; }

/* Lista features */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #ccc;
    line-height: 1.5;
}
.about-list li i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Register CTA */
.about-register-cta {
    margin-top: 20px;
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    color: #aaa;
    font-size: 13px;
}
.about-register-cta strong { color: #eee; }
.about-cta-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 24px;
    background: #1db954;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.about-cta-btn:hover { background: #17a34a; }

/* Support tab */
.about-support-text {
    color: #aaa;
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.about-support-text p { margin-bottom: 10px; }
.about-donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #f59e0b;
    color: #111;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.about-donate-btn:hover { background: #fbbf24; transform: translateY(-1px); color: #111; }
.about-support-note {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
.about-divider {
    border-color: rgba(255,255,255,0.07);
    margin: 20px 0;
}
.about-contact {
    text-align: center;
    font-size: 13px;
    color: #888;
}
.about-contact a {
    color: #1db954;
    text-decoration: none;
}
.about-contact a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .about-modal-box { padding: 20px 16px 18px; }
    .about-tab { font-size: 12px; padding: 6px 6px; }
}

/* ================================================
   SMART BANNER – guest registration nudge
   ================================================ */
#smartBanner {
    position: fixed;
    bottom: 40px; /* iznad footera */
    left: 50%;
    transform: translateX(-50%);
    z-index: 997;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 14px;
    padding: 16px 20px 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 680px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(29,185,84,0.1);
    animation: smartBannerIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes smartBannerIn {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.smart-banner-close {
    position: absolute;
    top: 2px;
    right: 10px;
    background: none;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .2s;
}
.smart-banner-close:hover { color: #aaa; }
.smart-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.smart-banner-body { flex: 1; min-width: 0; }
.smart-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #eee;
    margin-bottom: 4px;
}
.smart-banner-text {
    font-size: 12.5px;
    color: #999;
    line-height: 1.5;
}
.smart-banner-text strong { color: #1db954; }
.smart-banner-text em { font-style: normal; color: #ccc; }
.smart-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.smart-banner-cta {
    background: #1db954;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.smart-banner-cta:hover { background: #17a349; }
.smart-banner-later {
    background: none;
    border: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    transition: color .2s;
}
.smart-banner-later:hover { color: #999; }

@media (max-width: 576px) {
    #smartBanner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 42px;
        padding: 16px;
    }
    .smart-banner-actions {
        flex-direction: row;
        width: 100%;
    }
    .smart-banner-cta { flex: 1; text-align: center; }
}

/* ================================================
   MINI PLAYER BAR – sticky now playing
   ================================================ */
.mini-player-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #1db954;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: miniBarIn .25s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 2px 12px rgba(29,185,84,0.25);
}
@keyframes miniBarIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.mini-player-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: #1a1a1a;
    flex-shrink: 0;
}
.mini-player-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.mini-player-station {
    font-size: 13px;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-player-song {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.mini-player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1db954;
    border: none;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .15s;
}
.mini-player-btn:hover { background: #17a349; transform: scale(1.08); }

@media (max-width: 480px) {
    /* .mini-player-song { display: none; } */
    .mini-player-station { font-size: 12px; }
}