/* ==========================================================================
   Radio Platform – Premium Station Cards
   ========================================================================== */

.station-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.station-card--modern {
    position: relative;
    min-width: 0;
    overflow: hidden;

    border: 1px solid rgba(91, 77, 245, 0.10);
    border-radius: 26px;
    background: #ffffff;

    box-shadow:
        0 12px 34px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.station-card--modern:hover {
    transform: translateY(-8px);
    border-color: rgba(91, 77, 245, 0.22);

    box-shadow:
        0 28px 68px rgba(15, 23, 42, 0.15);
}

/* Gornji dio kartice */

.station-card--modern .station-card-image {
    position: relative;

    display: grid;
    width: 100%;
    height: 290px;
    place-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(139, 92, 246, 0.13),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #f9faff,
            #eef1fb
        );

    text-decoration: none;
}

.station-card--modern .station-card-image img {
    display: block;

    width: 86%;
    height: 86%;

    padding: 0;
    object-fit: contain;

    filter:
        drop-shadow(
            0 14px 24px rgba(31, 41, 55, 0.12)
        );

    transform: scale(1);
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.station-card--modern:hover .station-card-image img {
    transform: scale(1.08);

    filter:
        drop-shadow(
            0 20px 32px rgba(31, 41, 55, 0.17)
        );
}

.station-card--modern .station-card-placeholder {
    display: grid;
    width: 126px;
    height: 126px;
    place-items: center;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            rgba(91, 77, 245, 0.13),
            rgba(139, 92, 246, 0.18)
        );

    font-size: 62px;
}

/* Status */

.station-card--modern .station-card-status-dot {
    position: absolute;
    top: 16px;
    right: 16px;

    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.90);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.13);

    backdrop-filter: blur(10px);
}

.station-card--modern .station-card-status-dot > span {
    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #94a3b8;
}

.station-card--modern .station-card-status-dot.is-online > span {
    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.14);
}

.station-card--modern .station-card-status-dot.is-offline > span {
    background: #ef4444;

    box-shadow:
        0 0 0 4px rgba(239, 68, 68, 0.13);
}

.station-card--modern .station-card-status-dot.is-unknown > span {
    background: #94a3b8;

    box-shadow:
        0 0 0 4px rgba(148, 163, 184, 0.14);
}

/* Donji dio */

.station-card--modern .station-card-body {
    padding: 22px 22px 24px;
}

.station-card--modern .station-card-title {
    margin: 0;

    overflow: hidden;

    color: var(--public-text);

    font-size: 21px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.025em;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-card--modern .station-card-title a {
    color: inherit;
    text-decoration: none;
}

.station-card--modern .station-card-title a:hover {
    color: var(--public-primary);
}

.station-card--modern .station-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 14px;
}

.station-card--modern .station-card-location {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;

    overflow: hidden;

    color: var(--public-text-soft);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    white-space: nowrap;
}

.station-card--modern .station-card-location > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-card--modern .station-card-location-icon {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;

    border-radius: 50%;

    background: rgba(91, 77, 245, 0.10);
    color: var(--public-primary);

    font-size: 11px;
    font-weight: 900;
}

/* Play dugme */

.station-card--modern .station-card-play-button {
    position: relative;

    display: inline-grid;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--public-primary),
            var(--public-secondary)
        );

    color: transparent;

    box-shadow:
        0 12px 28px rgba(91, 77, 245, 0.30);

    font-size: 0;
    line-height: 1;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.station-card--modern .station-card-play-button > span {
    display: none !important;
}

.station-card--modern .station-card-play-button::before {
    display: block;

    content: "▶";

    color: #f0e9e9;

    font-size: 19px;
    font-weight: 700;
    line-height: 1;

    transform: translateX(1px);
}

.station-card--modern .station-card-play-button:hover {
    transform: scale(1.09);

    box-shadow:
        0 18px 38px rgba(1, 0, 12, 0.4);
}

.station-card--modern
.station-card-play-button.is-playing::before {
    content: "Ⅱ";

    font-size: 21px;
    font-weight: 900;

    transform: translateY(6px);
}

.station-card--modern
.station-card-play-button.is-loading::before {
    width: 19px;
    height: 19px;

    content: "";

    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 50%;

    transform: none;

    animation:
        premiumStationButtonSpin
        0.75s
        linear
        infinite;
}

@keyframes premiumStationButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */

@media (max-width: 1100px) {
    .station-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .station-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .station-card--modern .station-card-image {
        height: 240px;
    }

    .station-card--modern .station-card-body {
        padding: 20px;
    }

    .station-card--modern .station-card-title {
        font-size: 19px;
    }

    .station-card--modern .station-card-play-button {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        flex-basis: 46px;
    }
}
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Poskrbi, da je kartica vedno kvadratna */
}

/*
 * ============================================================
 * RADIO PLATFORM – FAVORITE BUTTON LIGHT THEME FIX v1.0
 * ============================================================
 */

/*
 * Neaktivni favorit – LIGHT.
 */
html[data-theme="light"]
.favorite-toggle {

    background:
        #ffffff;

    color:
        #8a97aa;

    border:
        1px solid
        rgba(148, 163, 184, 0.28);

    box-shadow:
        0 6px 18px
        rgba(15, 23, 42, 0.06);
}


/*
 * Hover – LIGHT.
 */
html[data-theme="light"]
.favorite-toggle:hover {

    background:
        #f8f9ff;

    color:
        #6557f5;

    border-color:
        rgba(101, 87, 245, 0.28);
}


/*
 * Aktivni favorit – LIGHT.
 */
html[data-theme="light"]
.favorite-toggle.is-favorite {

    background:
        #fff1f4;

    color:
        #ff5f7e;

    border-color:
        rgba(255, 95, 126, 0.34);

    box-shadow:
        0 6px 18px
        rgba(255, 95, 126, 0.10);
}


/*
 * Aktivni hover – LIGHT.
 */
html[data-theme="light"]
.favorite-toggle.is-favorite:hover {

    background:
        #ffe8ee;

    color:
        #f04468;

    border-color:
        rgba(240, 68, 104, 0.40);
}


/* ==========================================================================
   RADIO PLATFORM – CARD NOW PLAYING POLISH v1.0 START
   ========================================================================== */


/*
|--------------------------------------------------------------------------
| Now Playing red
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 10px;

    padding:
        7px
        9px;

    border-radius: 9px;

    background:
        rgba(91, 77, 245, 0.045);

    transition:
        background 160ms ease,
        border-color 160ms ease;
}


/*
|--------------------------------------------------------------------------
| Music ikona
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex:
        0
        0
        18px;

    width: 18px;
    height: 18px;

    font-size: 13px;

    transform-origin:
        center;

    opacity: 0.72;
}


/*
|--------------------------------------------------------------------------
| Naziv pjesme
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing-text {
    min-width: 0;
    max-width: 100%;

    display: block;

    overflow: hidden;

    color:
        var(--public-text-soft);

    font-size: 12.5px;

    font-weight: 650;

    line-height: 1.35;

    white-space: nowrap;

    text-overflow: ellipsis;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}


/*
|--------------------------------------------------------------------------
| Metadata uspješno učitana
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing-text[
    data-metadata-state="ready"
] {
    color:
        var(--public-text);
}


.latest-station-card__now-playing:has(
    .latest-station-card__now-playing-text[
        data-metadata-state="ready"
    ]
) {
    background:
        rgba(91, 77, 245, 0.065);
}


/*
 * Diskretan LIVE puls.
 */
.latest-station-card__now-playing:has(
    .latest-station-card__now-playing-text[
        data-metadata-state="ready"
    ]
)
.latest-station-card__now-playing-icon {

    opacity: 1;

    animation:
        radio-card-now-playing-pulse
        2.4s
        ease-in-out
        infinite;
}


@keyframes radio-card-now-playing-pulse {

    0%,
    100% {
        transform:
            scale(1);

        opacity:
            0.76;
    }

    50% {
        transform:
            scale(1.12);

        opacity:
            1;
    }

}


/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing-text[
    data-metadata-state="loading"
] {
    opacity: 0.62;

    animation:
        radio-card-metadata-loading
        1.25s
        ease-in-out
        infinite;
}


@keyframes radio-card-metadata-loading {

    0%,
    100% {
        opacity:
            0.42;
    }

    50% {
        opacity:
            0.82;
    }

}


/*
|--------------------------------------------------------------------------
| Nema metadata
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing-text[
    data-metadata-state="empty"
] {
    opacity:
        0.68;

    font-weight:
        550;
}


/*
|--------------------------------------------------------------------------
| Metadata greška
|--------------------------------------------------------------------------
*/

.latest-station-card__now-playing-text[
    data-metadata-state="error"
] {
    color:
        #b76c72;

    opacity:
        0.85;

    font-weight:
        550;
}


/*
|--------------------------------------------------------------------------
| Hover kartice
|--------------------------------------------------------------------------
*/

.latest-station-card:hover
.latest-station-card__now-playing {

    background:
        rgba(91, 77, 245, 0.085);
}


.latest-station-card:hover
.latest-station-card__now-playing-text[
    data-metadata-state="ready"
] {
    color:
        var(--public-primary);
}


/*
|--------------------------------------------------------------------------
| Dark theme
|--------------------------------------------------------------------------
*/

html[data-theme="dark"]
.latest-station-card__now-playing {

    background:
        rgba(56, 189, 248, 0.045);
}


html[data-theme="dark"]
.latest-station-card__now-playing:has(
    .latest-station-card__now-playing-text[
        data-metadata-state="ready"
    ]
) {

    background:
        rgba(56, 189, 248, 0.065);
}


html[data-theme="dark"]
.latest-station-card:hover
.latest-station-card__now-playing {

    background:
        rgba(56, 189, 248, 0.085);
}


html[data-theme="dark"]
.latest-station-card:hover
.latest-station-card__now-playing-text[
    data-metadata-state="ready"
] {
    color:
        #63c9f4;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .latest-station-card__now-playing {
        margin-top:
            8px;

        padding:
            6px
            8px;
    }


    .latest-station-card__now-playing-text {
        font-size:
            12px;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .latest-station-card__now-playing-icon,
    .latest-station-card__now-playing-text {

        animation:
            none !important;
    }

}


/* ==========================================================================
   RADIO PLATFORM – CARD NOW PLAYING POLISH v1.0 END
   ========================================================================== */


/* ==========================================================================
   RADIO PLATFORM – CARD NOW PLAYING DARK READABILITY v1.1 START
   ========================================================================== */

html[data-theme="dark"]
.latest-station-card__now-playing-text[
    data-metadata-state="ready"
] {
    color:
        #b9cbe0;

    opacity:
        1;
}


html[data-theme="dark"]
.latest-station-card__now-playing-icon {
    color:
        #63c9f4;

    opacity:
        0.88;
}


html[data-theme="dark"]
.latest-station-card__now-playing {

    background:
        rgba(56, 189, 248, 0.065);

    border:
        1px solid
        rgba(56, 189, 248, 0.035);
}


html[data-theme="dark"]
.latest-station-card:hover
.latest-station-card__now-playing-text[
    data-metadata-state="ready"
] {
    color:
        #72d4f8;
}


html[data-theme="dark"]
.latest-station-card__now-playing-text[
    data-metadata-state="error"
] {
    color:
        #ef8d98;
}


/* ==========================================================================
   RADIO PLATFORM – CARD NOW PLAYING DARK READABILITY v1.1 END
   ========================================================================== */

/* ==========================================================
   RADIO PLATFORM — Station Card Taxonomy Layout v1
   ========================================================== */

/*
 * Country + genre rows
 */
.latest-station-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.latest-station-card__country,
.latest-station-card__genre-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.latest-station-card__taxonomy-icon {
    flex: 0 0 auto;
    line-height: 1;
}

.latest-station-card__country-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.latest-station-card__country-link:hover,
.latest-station-card__country-link:focus-visible {
    text-decoration: underline;
}

.latest-station-card__country-flag {
    flex: 0 0 auto;
}

.latest-station-card__genres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.genre-badge--link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.genre-badge--link:hover,
.genre-badge--link:focus-visible {
    text-decoration: underline;
}

/*
 * Keep content flexible and avoid taxonomy overflow.
 */
.latest-station-card__content {
    min-width: 0;
}

.latest-station-card__title,
.latest-station-card__country-link,
.genre-badge--link,
.latest-station-card__now-playing-text {
    overflow-wrap: anywhere;
}

/*
 * Desktop actions remain aligned to the right.
 */
.latest-station-card__actions {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.65rem;
}

/*
 * ==========================================================
 * Mobile layout
 * ==========================================================
 */
@media (max-width: 700px) {

    .latest-station-card {
        position: relative;
    }

    /*
     * Reserve a little space on the right side of the title
     * for the online/offline status.
     */
    .latest-station-card__content {
        padding-right: 4.8rem;
    }

    /*
     * Status moves to the upper-right area of the card.
     */
    .latest-station-card__actions {
        position: static;
        display: contents;
    }

    .latest-station-card__status {
        position: absolute;
        top: 0.9rem;
        right: 0.9rem;
        z-index: 2;
        white-space: nowrap;
    }

    /*
     * Play/Pause button sits near Now Playing instead of
     * occupying a separate full bottom action row.
     */
    .latest-station-card__play-button {
        position: absolute;
        right: 0.9rem;
        bottom: 0.9rem;
        min-width: auto;
        width: auto;
        max-width: 6.8rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    /*
     * Leave room for the play button on the Now Playing row.
     */
    .latest-station-card__now-playing {
        padding-right: 7.2rem;
        min-height: 2.5rem;
    }

    /*
     * Country and genres become compact mobile metadata rows.
     */
    .latest-station-card__meta {
        gap: 0.3rem;
        margin-top: 0.25rem;
    }

    .latest-station-card__country,
    .latest-station-card__genre-row {
        gap: 0.35rem;
    }

    .latest-station-card__genres {
        gap: 0.25rem;
    }

    .genre-badge--link {
        line-height: 1.25;
    }
}

/*
 * Narrow phones.
 */
@media (max-width: 430px) {

    .latest-station-card__content {
        padding-right: 4.25rem;
    }

    .latest-station-card__status {
        right: 0.7rem;
    }

    .latest-station-card__play-button {
        right: 0.7rem;
        bottom: 0.7rem;
        max-width: 5.9rem;
        font-size: 0.82rem;
    }

    .latest-station-card__now-playing {
        padding-right: 6.3rem;
    }
}

/* ==========================================================
   RADIO PLATFORM — Station Card Final Mobile Polish v1
   ========================================================== */

/*
 * Taxonomy links remain clickable but visually clean.
 * No underline in normal, hover or keyboard-focus state.
 */
.latest-station-card__country-link,
.latest-station-card__country-link:hover,
.latest-station-card__country-link:focus,
.latest-station-card__country-link:focus-visible,
.genre-badge--link,
.genre-badge--link:hover,
.genre-badge--link:focus,
.genre-badge--link:focus-visible {
    text-decoration: none;
}

/*
 * Final mobile arrangement:
 *
 *   Online                     Favorite
 *
 *          Station title
 *          Country
 *          Genres
 *          Logo
 *
 *                         Play/Pause
 *
 *          Now Playing
 */
@media (max-width: 700px) {

    /*
     * Card becomes positioning context for the
     * floating status and Play/Pause controls.
     */
    .latest-station-card {
        position: relative;
    }

    /*
     * Status belongs to the upper-left side,
     * visually above the station logo.
     */
    .latest-station-card__status {
        position: absolute;
        top: 0.9rem;
        left: 0.9rem;
        right: auto;
        z-index: 3;
        white-space: nowrap;
    }

    /*
     * Remove the old reserved right-side title space.
     * Favorite already owns its own corner.
     */
    .latest-station-card__content {
        padding-right: 0;
    }

    /*
     * Play/Pause moves to the right side of the main
     * station area instead of the bottom metadata row.
     */
    .latest-station-card__play-button {
        position: absolute;
        top: 3.9rem;
        right: 0.9rem;
        bottom: auto;

        width: auto;
        min-width: 6.4rem;
        max-width: 7.4rem;

        padding-left: 0.9rem;
        padding-right: 0.9rem;

        z-index: 3;
    }

    /*
     * Now Playing gets its own clean row below the
     * station information and Play/Pause control.
     */
    .latest-station-card__now-playing {
        padding-right: 0;
        margin-top: 0.75rem;
        min-height: 2.5rem;
    }
}

/*
 * Fine tuning for narrow phones.
 */
@media (max-width: 430px) {

    .latest-station-card__status {
        top: 0.7rem;
        left: 0.7rem;
        right: auto;
    }

    .latest-station-card__play-button {
        top: 3.75rem;
        right: 0.7rem;
        bottom: auto;

        min-width: 5.8rem;
        max-width: 6.4rem;

        padding-left: 0.7rem;
        padding-right: 0.7rem;

        font-size: 0.82rem;
    }

    .latest-station-card__now-playing {
        padding-right: 0;
    }
}

/* ==========================================================
   RADIO PLATFORM — Station Card Final Mobile Polish v1 END
   ========================================================== */

/* ==========================================================
   RADIO PLATFORM — Mobile Now Playing Full Width v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * Play/Listen ostaje na desnoj strani glavnog dijela kartice.
     * Ne mijenjamo njegov trenutni A6B položaj.
     */

    /*
     * Now Playing postaje zaseban puni red ispod glavnog
     * sadržaja kartice.
     */
    .latest-station-card__now-playing {
        position: relative;
        width: 100%;
        max-width: none;

        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;

        padding-left: 0.9rem;
        padding-right: 0.9rem;

        box-sizing: border-box;
        clear: both;
    }

    /*
     * Tekst pjesme smije koristiti cijelu dostupnu širinu.
     */
    .latest-station-card__now-playing-text {
        display: block;
        min-width: 0;
        width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /*
     * Now Playing red ne rezervira više prostor za Play dugme.
     */
    .latest-station-card__now-playing {
        padding-right: 0.9rem;
    }
}

@media (max-width: 430px) {

    .latest-station-card__now-playing {
        width: 100%;

        margin-top: 0.9rem;

        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .latest-station-card__now-playing-text {
        width: 100%;
    }
}

/* ==========================================================
   RADIO PLATFORM — Mobile Now Playing Full Width v1 END
   ========================================================== */

/* ==========================================================
   RADIO PLATFORM — True Mobile Full Width Now Playing v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * Now Playing je fizički unutar content kolone.
     *
     * Na mobilnom ga zato širimo ulijevo preko prostora
     * rezerviranog za logo i udesno preko ostatka content
     * kolone, tako da vizualno postane zaseban puni red.
     *
     * Play/Listen ostaje na postojećoj A6 poziciji.
     */
    .latest-station-card__now-playing {
        width: auto;
        max-width: none;

        /*
         * Logo + razmak prema content koloni.
         */
        margin-left: -8.9rem;

        /*
         * Dodatni prostor prema desnom rubu kartice.
         */
        margin-right: -0.2rem;

        /*
         * Now Playing spuštamo ispod glavnog reda
         * logo / naziv / država / žanrovi / Play.
         */
        margin-top: 2.25rem;

        padding-left: 0.9rem;
        padding-right: 0.9rem;

        box-sizing: border-box;
    }

    .latest-station-card__now-playing-text {
        display: block;

        min-width: 0;
        width: 100%;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/*
 * Uži telefoni imaju nešto manji logo i unutrašnje razmake.
 */
@media (max-width: 430px) {

    .latest-station-card__now-playing {
        margin-left: -7.9rem;
        margin-right: -0.1rem;
        margin-top: 2.1rem;

        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

/* ==========================================================
   RADIO PLATFORM — True Mobile Full Width Now Playing v1 END
   ========================================================== */

/* ==========================================================
   RADIO PLATFORM — Mobile Now Playing Alignment Fix v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * A6D je ispravno spustio Now Playing ispod glavnog
     * sadržaja, ali ga je negativni margin povukao izvan
     * lijevog ruba kartice.
     *
     * Ovdje zadržavamo vertikalni položaj, ali vraćamo
     * cijeli Now Playing blok unutar granica kartice.
     */
    .latest-station-card__now-playing {
        margin-left: -7rem;
        margin-right: 0;

        padding-left: 1rem;
        padding-right: 1rem;

        overflow: hidden;
    }

    .latest-station-card__now-playing-text {
        min-width: 0;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {

    .latest-station-card__now-playing {
        margin-left: -6.1rem;
        margin-right: 0;

        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* ==========================================================
   RADIO PLATFORM — Mobile Now Playing Alignment Fix v1 END
   ========================================================== */

/* ==========================================================
   RADIO PLATFORM — Final Mobile Now Playing Alignment v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * Final visual tuning:
     * - left edge aligns visually with station logo
     * - row sits slightly lower beneath main station content
     * - Play/Listen position remains unchanged
     */
    .latest-station-card__now-playing {
        margin-left: -5.45rem;
        margin-right: -0.05rem;
        margin-top: -2.55rem;

        padding-left: 0.95rem;
        padding-right: 0.95rem;
        transform: translateY(26px);

        box-sizing: border-box;
        overflow: hidden;
    }

    .latest-station-card__now-playing-text {
        min-width: 0;
        width: 100%;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {

    .latest-station-card__now-playing {
        margin-left: -4.55rem;
        margin-right: 0;

        padding-left: 0.85rem;
        padding-right: 0.85rem;

        transform: translateY(24px);
    }
}

/* ==========================================================
   RADIO PLATFORM — Final Mobile Now Playing Alignment v1 END
   ========================================================== */

/* ==========================================================
   RADIO PLATFORM — Mobile Card Play Icon v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * Desktop zadržava tekstualno dugme.
     * Mobilni prikaz koristi samo Play/Pause simbol,
     * kao globalni player.
     */
    .latest-station-card__play-button {
        width: 2.75rem;
        min-width: 2.75rem;
        max-width: 2.75rem;
        height: 2.75rem;

        padding: 0;

        border-radius: 50%;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        /*
         * Sakrivamo postojeći:
         * "▶ Slušaj" / pause tekst.
         */
        font-size: 0;
        line-height: 1;

        overflow: hidden;
    }

    /*
     * Play stanje.
     */
    .latest-station-card__play-button::before {
        content: "▶";

        display: block;

        font-size: 1rem;
        line-height: 1;

        transform: translateX(1px);
    }

    /*
     * Aktivna stanica / Pause stanje.
     * JS već upravlja klasom is-playing.
     */
    .latest-station-card__play-button.is-playing::before {
        content: "❚❚";

        font-size: 0.9rem;

        transform: none;
    }
}

@media (max-width: 430px) {

    .latest-station-card__play-button {
        width: 2.6rem;
        min-width: 2.6rem;
        max-width: 2.6rem;
        height: 2.6rem;
    }

    .latest-station-card__play-button::before {
        font-size: 0.95rem;
    }

    .latest-station-card__play-button.is-playing::before {
        font-size: 0.84rem;
    }
}

/* ==========================================================
   RADIO PLATFORM — Mobile Card Play Icon v1 END
   ========================================================== */
/* ==========================================================
   RADIO PLATFORM — Mobile Card Icon Only Fix v2
   ========================================================== */

@media (max-width: 700px) {

    .latest-station-card__play-button {
        position: absolute;

        /*
         * Zadržava postojeću boju dugmeta.
         * Tekst koji JS upisuje šaljemo izvan vidljivog dijela.
         */
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;

        text-indent: -9999px;
        white-space: nowrap;

        overflow: hidden;
    }

    .latest-station-card__play-button::before {
        content: "▶";

        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        /*
         * Poništavamo text-indent roditelja.
         */
        text-indent: 0;

        color: #ffffff;
        -webkit-text-fill-color: #ffffff;

        font-size: 1rem;
        line-height: 1;

        transform: translateX(1px);
    }

    .latest-station-card__play-button.is-playing::before {
        content: "❚❚";

        text-indent: 0;

        color: #ffffff;
        -webkit-text-fill-color: #ffffff;

        font-size: 0.9rem;

        transform: none;
    }
}

@media (max-width: 430px) {

    .latest-station-card__play-button::before {
        font-size: 0.95rem;
    }

    .latest-station-card__play-button.is-playing::before {
        font-size: 0.84rem;
    }
}

/* ==========================================================
   RADIO PLATFORM — Mobile Card Icon Only Fix v2 END
   ========================================================== */
   /* ==========================================================
   RADIO PLATFORM — FINAL MOBILE STATION CARD v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * --------------------------------------------------------
     * FAVORITE
     * --------------------------------------------------------
     */

    .latest-station-card > .favorite-toggle {
        right: 0.45rem;
    }

    /*
     * --------------------------------------------------------
     * PLAY / PAUSE — ICON ONLY
     * --------------------------------------------------------
     */

    .latest-station-card__play-button {
        position: absolute;
        top: 3.9rem;
        right: 0.3rem;
        bottom: auto;

        width: 2.75rem;
        min-width: 2.75rem;
        max-width: 2.75rem;
        height: 2.75rem;

        padding: 0;

        border-radius: 50%;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        /*
         * JS može upisivati Listen / Loading / Pause.
         * Taj stvarni tekst ostaje funkcionalno prisutan,
         * ali je izvan vidljivog područja.
         */
        text-indent: -9999px;
        white-space: nowrap;
        overflow: hidden;

        /*
         * Final accent.
         * Ovo ćemo po potrebi zamijeniti EXACT bojom
         * globalnog player toggle dugmeta.
         */

       background:
    linear-gradient(
        135deg,
        #5b4df5,
        #38bdf8
    );

color: #ffffff;

border:
    1px solid rgba(91, 77, 245, 0.20);

box-shadow:
    0 13px 30px rgba(91, 77, 245, 0.24);

        z-index: 3;
    }
    .latest-station-card__play-button:hover {
    box-shadow:
        0 17px 38px rgba(91, 77, 245, 0.32);
}

    /*
     * Play ikona.
     */
    .latest-station-card__play-button::before {
        content: "▶";

        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        text-indent: 0;

        color: #ffffff;
        -webkit-text-fill-color: #ffffff;

        font-size: 1rem;
        line-height: 1;

        transform: translateX(1px);
    }

    /*
     * Pause ikona.
     */
    .latest-station-card__play-button.is-playing::before {
        content: "❚❚";

        text-indent: 0;

        color: #ffffff;
        -webkit-text-fill-color: #ffffff;

        font-size: 0.9rem;

        transform: none;
    }

    /*
     * --------------------------------------------------------
     * NOW PLAYING
     * --------------------------------------------------------
     *
     * Ovo su tvoje ručno pogođene vrijednosti.
     */

    .latest-station-card__now-playing {
        width: auto;
        max-width: none;

        margin-left: -5.45rem;
        margin-right: -0.05rem;
        margin-top: -2.55rem;

        padding-left: 0.95rem;
        padding-right: 0.95rem;

        box-sizing: border-box;

        overflow: hidden;

        transform:
            translateY(26px);
    }

    .latest-station-card__now-playing-text {
        min-width: 0;
        width: 100%;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /*
     * --------------------------------------------------------
     * COUNTRY / GENRE LINKS
     * --------------------------------------------------------
     */

    .latest-station-card__country-link,
    .latest-station-card__country-link:hover,
    .latest-station-card__country-link:focus,
    .latest-station-card__country-link:focus-visible,
    .genre-badge--link,
    .genre-badge--link:hover,
    .genre-badge--link:focus,
    .genre-badge--link:focus-visible {
        text-decoration: none;
    }
}


/*
 * ==========================================================
 * NARROW PHONES
 * ==========================================================
 */

@media (max-width: 430px) {

    /*
     * Favorit još malo prema desnom rubu.
     */
    .latest-station-card > .favorite-toggle {
        right: 0.3rem;
    }

    /*
     * Mala Play/Pause tipka.
     */
    .latest-station-card__play-button {
        right: 0.3rem;

        width: 2.6rem;
        min-width: 2.6rem;
        max-width: 2.6rem;
        height: 2.6rem;
    }

    .latest-station-card__play-button::before {
        font-size: 0.95rem;
    }

    .latest-station-card__play-button.is-playing::before {
        font-size: 0.84rem;
    }

    /*
     * Tvoje pogođene mobile vrijednosti.
     */
    .latest-station-card__now-playing {
        margin-left: -4.55rem;
        margin-right: 0;

        padding-left: 0.85rem;
        padding-right: 0.85rem;

        transform:
            translateY(24px);
    }
}

/* ==========================================================
   RADIO PLATFORM — FINAL MOBILE STATION CARD v1 END
   ========================================================== */
   .latest-station-card__play-button {
    background:
        linear-gradient(
            135deg,
            #5b4df5,
            #38bdf8
        ) !important;

    color: #ffffff !important;

    border:
        1px solid rgba(91, 77, 245, 0.20) !important;

    box-shadow:
        0 13px 30px rgba(91, 77, 245, 0.24) !important;
}

.latest-station-card__play-button:hover {
    box-shadow:
        0 17px 38px rgba(91, 77, 245, 0.32) !important;
}
/* LIGHT */
html[data-theme="light"]
.latest-station-card__play-button {
    background:
        linear-gradient(
            135deg,
            #5b4df5,
            #38bdf8
        ) !important;

    color: #ffffff !important;

    border:
        1px solid rgba(91, 77, 245, 0.20) !important;

    box-shadow:
        0 13px 30px rgba(91, 77, 245, 0.24) !important;
}

html[data-theme="light"]
.latest-station-card__play-button::before,
html[data-theme="light"]
.latest-station-card__play-button.is-playing::before {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* DARK */
html[data-theme="dark"]
.latest-station-card__play-button {
    background: #ffffff !important;
    color: #102032 !important;
    border: 0 !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"]
.latest-station-card__play-button::before,
html[data-theme="dark"]
.latest-station-card__play-button.is-playing::before {
    color: #102032 !important;
    -webkit-text-fill-color: #102032 !important;
}
html[data-theme="light"]
.latest-station-card__play-button:hover {
    box-shadow:
        0 17px 38px rgba(91, 77, 245, 0.32) !important;
}

html[data-theme="dark"]
.latest-station-card__play-button:hover {
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.30) !important;
}
/* ==========================================================
   RADIO PLATFORM — FAVORITES / LATEST FINAL MOBILE OVERRIDE v1
   ========================================================== */

@media (max-width: 700px) {

    /*
     * Kartica je positioning context za mobilne kontrole.
     */
    .latest-station-card {
        position: relative;
    }

    /*
     * ONLINE / OFFLINE
     * Gornji lijevi kut.
     */
    .latest-station-card__status {
        position: absolute;
        top: 0.85rem;
        left: 0.9rem;
        right: auto;
        z-index: 5;
        white-space: nowrap;
    }

    /*
     * FAVORITE
     * Gornji desni kut.
     */
    .latest-station-card > .favorite-toggle {
        position: absolute;
        top: 0.55rem;
        right: 0.55rem;
        z-index: 6;
    }

    /*
     * Content ne rezervira stari prostor s desne strane.
     */
    .latest-station-card__content {
        min-width: 0;
        padding-right: 0;
    }

    /*
     * PLAY / PAUSE
     * Mala kružna tipka desno.
     */
    .latest-station-card__play-button {
        position: absolute;
        top: 3.9rem;
        right: 0.45rem;
        bottom: auto;

        width: 2.75rem;
        min-width: 2.75rem;
        max-width: 2.75rem;
        height: 2.75rem;

        padding: 0;
        border-radius: 50%;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        z-index: 5;
    }

    /*
     * NOW PLAYING
     * Zadržavamo postojeću provjerenu geometriju,
     * ali je zaključavamo kao posljednje mobile pravilo.
     */
    .latest-station-card__now-playing {
        width: auto;
        max-width: none;

        margin-left: -5.45rem;
        margin-right: -0.05rem;
        margin-top: -2.55rem;

        padding-left: 0.95rem;
        padding-right: 0.95rem;

        box-sizing: border-box;
        overflow: hidden;

        transform: translateY(26px);
    }

    .latest-station-card__now-playing-text {
        display: block;
        min-width: 0;
        width: 100%;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/*
 * Uži telefoni.
 */
@media (max-width: 430px) {

    .latest-station-card__status {
        top: 0.7rem;
        left: 0.7rem;
        right: auto;
    }

    .latest-station-card > .favorite-toggle {
        top: 0.45rem;
        right: 0.35rem;
    }

    .latest-station-card__play-button {
        top: 3.75rem;
        right: 0.35rem;

        width: 2.6rem;
        min-width: 2.6rem;
        max-width: 2.6rem;
        height: 2.6rem;
    }

    .latest-station-card__now-playing {
        margin-left: -4.55rem;
        margin-right: 0;

        padding-left: 0.85rem;
        padding-right: 0.85rem;

        transform: translateY(24px);
    }
}

/* ==========================================================
   RADIO PLATFORM — FAVORITES / LATEST FINAL MOBILE OVERRIDE v1 END
   ========================================================== */


/* ==========================================================
   RADIO PLATFORM — MOBILE STATION TITLE SIZE v1
   ========================================================== */

@media (max-width: 700px) {

    .latest-station-card__title {
        font-size: 16px;
        line-height: 1.25;
    }

}

@media (max-width: 430px) {

    .latest-station-card__title {
       font-size: 14px !important;
    }

}

/* ==========================================================
   RADIO PLATFORM — MOBILE STATION TITLE SIZE v1 END
   ========================================================== */
