/* ============================
   GTA Radio FM — Styles
   ============================ */

@font-face {
    font-family: "GTA";
    src: url('pricedow.ttf') format('truetype');
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold:        #c8aa6e;
    --gold-light:  #f0e0a0;
    --gold-dim:    rgba(200, 170, 110, 0.25);
    --dark:        #080808;
    --dark-card:   rgba(12, 12, 12, 0.92);
    --text:        #e8e8e8;
    --text-dim:    #777;
    --shadow:      0 8px 32px rgba(0, 0, 0, 0.8);
    --radius:      14px;
    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition:  all 0.5s var(--ease);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    animation: bodyFadeIn 0.6s ease;
}

@keyframes bodyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* === Background === */
#bg-image {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.35) saturate(1.2);
    transform: scale(1.06);
    transition: background-image 1.4s var(--ease);
}

#bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

/* === Header === */
header {
    padding: 1.25rem 2rem 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.65) 100%);
    border-bottom: 1px solid var(--gold-dim);
    text-align: center;
    animation: slideDown 0.7s var(--ease);
}

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

#site-title {
    font-family: "GTA", sans-serif;
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow:
        0 0 24px rgba(200, 170, 110, 0.55),
        2px 2px 0 rgba(0, 0, 0, 0.9);
}

#breadcrumb {
    font-family: "GTA", sans-serif;
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: var(--text-dim);
    margin-top: 0.3rem;
    letter-spacing: 2px;
    min-height: 1.4em;
    transition: var(--transition);
}

#breadcrumb-game    { color: var(--gold-light); }
#breadcrumb-station { color: var(--text); }
#breadcrumb-sep     { color: rgba(200, 170, 110, 0.4); }

/* === Hero play button === */
#btn-hero-play {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.6rem 1.6rem;
    background: rgba(200, 170, 110, 0.14);
    border: 1.5px solid var(--gold);
    border-radius: 30px;
    color: var(--gold);
    font-family: "GTA", sans-serif;
    font-size: clamp(0.72rem, 2vw, 0.96rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, opacity 0.4s ease;
    animation: heroPulse 2.4s ease-in-out infinite;
}

#btn-hero-play i {
    font-size: 0.9em;
}

@keyframes heroPulse {
    0%,  100% { box-shadow: 0 0 0px rgba(200, 170, 110, 0); }
    50%        { box-shadow: 0 0 18px rgba(200, 170, 110, 0.45); }
}

#btn-hero-play:hover {
    background: rgba(200, 170, 110, 0.28);
    box-shadow: 0 0 24px rgba(200, 170, 110, 0.5);
    transform: scale(1.06);
    animation: none;
}

#btn-hero-play.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    animation: none;
}

@media (max-width: 600px) {
    html { font-size: 150%; }
    #btn-hero-play { font-size: 0.7rem; padding: 0.5rem 1.2rem; margin-top: 0.75rem; }
}

/* === Desktop scale (≈133% zoom) === */
@media (min-width: 900px) {
    html { zoom: 1.33; }

    /* GTA logos — even bigger than the zoom baseline */
    .game-item img      { height: 100px; }
    .game-text-fallback { height: 100px; }
}

/* === Game Bar === */
#game-bar {
    background: rgba(0, 0, 0, 0.82);
    border-bottom: 2px solid var(--gold-dim);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#game-bar::-webkit-scrollbar { display: none; }

#game-logos {
    display: flex;
    list-style: none;
    padding: 0.6rem 1.2rem;
    gap: 0.4rem;
    width: max-content;
    margin: 0 auto;
}

.game-item {
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.game-item img {
    display: block;
    height: 94px;
    width: auto;
    opacity: 0.35;
    filter: grayscale(1) brightness(1.3);
    transform: scale(0.86);
    transition: var(--transition);
    border-radius: 6px;
}

.game-item:hover img {
    opacity: 0.75;
    filter: grayscale(0.3);
    transform: scale(0.96);
}

.game-item.active img {
    opacity: 1;
    filter: grayscale(0) drop-shadow(0 0 10px var(--gold));
    transform: scale(1.08);
}

.game-text-fallback {
    font-family: "GTA", sans-serif;
    font-size: 0.6rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    padding: 0 0.4rem;
    max-width: 90px;
    text-align: center;
    line-height: 1.2;
}

/* === Wheel / Carousel === */
#wheel-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2.5rem 1rem 1.5rem;
    position: relative;
}

#carousel {
    position: relative;
    height: 140px;
    width: min(620px, 88vw);
    perspective: 900px;
    perspective-origin: center center;
    flex-shrink: 0;
}

/* Station cards */
.station-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease),
                border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
    will-change: transform, opacity;
}

.station-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    filter: grayscale(0.45);
    transition: filter 0.4s ease;
    pointer-events: none;
}

.card-text-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "GTA", sans-serif;
    font-size: 0.52rem;
    color: var(--text-dim);
    padding: 6px;
    line-height: 1.3;
}

/* Carousel positions — 3D wheel arc */
.station-card[data-pos="-4"],
.station-card[data-pos="4"],
.station-card[data-pos="-5"],
.station-card[data-pos="5"] {
    transform: translate(-50%, -50%) translateZ(-240px) scale(0.2);
    opacity: 0;
    pointer-events: none;
}

.station-card[data-pos="-3"] {
    transform: translate(-50%, -50%) translateX(-255px) translateZ(-130px) rotateY(48deg) scale(0.52);
    opacity: 0.09;
    pointer-events: none;
        filter: grayscale(1);
}

.station-card[data-pos="-2"] {
    transform: translate(-50%, -50%) translateX(-215px) translateZ(-82px) rotateY(30deg) scale(0.66);
    opacity: 0.23;
        filter: grayscale(1);
}

.station-card[data-pos="-1"] {
    transform: translate(-50%, -50%) translateX(-150px) translateZ(-30px) rotateY(15deg) scale(0.82);
    filter: grayscale(1);
    opacity: 0.45;
}

.station-card[data-pos="0"] {
    transform: translate(-50%, -50%) translateX(0) translateZ(0) rotateY(0deg) scale(1.25);
     opacity: 1;
  background: rgba(200, 170, 110, 0.14);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(200, 170, 110, 0.5), 0 0 60px rgba(200, 170, 110, 0.12);
    z-index: 5;
    cursor: default;
}

.station-card[data-pos="0"] img {
    filter: grayscale(0);
}

.station-card[data-pos="1"] {
    transform: translate(-50%, -50%) translateX(150px) translateZ(-30px) rotateY(-15deg) scale(0.82);
    opacity: 0.45;
        filter: grayscale(1);
}

.station-card[data-pos="2"] {
    transform: translate(-50%, -50%) translateX(215px) translateZ(-82px) rotateY(-30deg) scale(0.66);
    opacity: 0.23;
        filter: grayscale(1);
}

.station-card[data-pos="3"] {
    transform: translate(-50%, -50%) translateX(255px) translateZ(-130px) rotateY(-48deg) scale(0.52);
    opacity: 0.09;
    pointer-events: none;
        filter: grayscale(1);
}

/* Nav buttons */
.nav-btn {
    background: rgba(200, 170, 110, 0.12);
    border: 1px solid rgba(200, 170, 110, 0.28);
    color: var(--gold);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(200, 170, 110, 0.28);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(200, 170, 110, 0.3);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

#station-count {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    pointer-events: none;
    white-space: nowrap;
}

/* === Station Info Card === */
#station-info {
    max-width: 920px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

#info-card {
    background: var(--dark-card);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: infoSlideIn 0.5s var(--ease);
}

@keyframes infoSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

#info-header-row {
    display: flex;
    gap: 1.6rem;
    padding: 1.6rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#info-logo-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 170, 110, 0.18);
}

#info-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

#info-details { flex: 1; min-width: 0; }

#info-title {
    font-family: "GTA", sans-serif;
    font-size: clamp(1.25rem, 3.5vw, 2.1rem);
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 14px rgba(200, 170, 110, 0.4);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

#info-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.meta-item i {
    color: var(--gold);
    font-size: 0.78rem;
    width: 14px;
    text-align: center;
}

#info-genre {
    display: inline-block;
    background: rgba(200, 170, 110, 0.12);
    border: 1px solid rgba(200, 170, 110, 0.28);
    color: var(--gold-light);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

#info-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #bbb;
}

#info-desc.info-desc-empty {
    color: var(--text-dim);
    font-family: "GTA", sans-serif;
    letter-spacing: 2px;
}

/* Info links */
#info-links {
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 3.2rem;
    align-items: center;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition);
    border: 1px solid transparent;
    line-height: 1;
}

.info-link.fandom       { color: #5bc; border-color: rgba(85,187,204,0.35);  background: rgba(85,187,204,0.08); }
.info-link.fandom:hover  { background: rgba(85,187,204,0.22); }
.info-link.youtube       { color: #f55; border-color: rgba(255,85,85,0.35);   background: rgba(255,85,85,0.08); }
.info-link.youtube:hover  { background: rgba(255,85,85,0.22); }
.info-link.soundcloud    { color: #f83; border-color: rgba(255,136,51,0.35);  background: rgba(255,136,51,0.08); }
.info-link.soundcloud:hover { background: rgba(255,136,51,0.22); }
.info-link.spotify       { color: #1db954; border-color: rgba(29,185,84,0.35); background: rgba(29,185,84,0.08); }
.info-link.spotify:hover  { background: rgba(29,185,84,0.22); }
.info-link.apple         { color: #fa8; border-color: rgba(255,170,136,0.35); background: rgba(255,170,136,0.08); }
.info-link.apple:hover    { background: rgba(255,170,136,0.22); }

/* Tracklist */
#info-tracklist {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#info-tracklist summary {
    font-family: "GTA", sans-serif;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 2px;
    cursor: pointer;
    padding: 0.9rem 1.6rem;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.3s ease;
}

#info-tracklist summary::-webkit-details-marker { display: none; }

#info-tracklist summary i { font-size: 0.8rem; opacity: 0.7; }

#info-tracklist summary::after {
    content: '▾';
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

#info-tracklist[open] summary::after { transform: rotate(180deg); }

#info-tracklist summary:hover { background: rgba(200, 170, 110, 0.06); }

#tracklist-items {
    list-style: decimal;
    padding: 0.4rem 1.6rem 1.2rem 3.2rem;
    display: grid;
    gap: 0.25rem;
}

#tracklist-items li {
    font-size: 0.83rem;
    color: #aaa;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.45;
}

/* SoundCloud Player */
#info-player { padding: 1.1rem 1.6rem 1.4rem; }

#info-player iframe {
    width: 100%;
    height: 116px;
    border: none;
    border-radius: 10px;
    display: block;
}

/* Empty / loading */
.info-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
    font-family: "GTA", sans-serif;
    letter-spacing: 3px;
    font-size: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar         { height: 4px; width: 4px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: rgba(200, 170, 110, 0.3); border-radius: 2px; }

/* === Responsive === */
@media (max-width: 600px) {
    header { padding: 1rem 1rem 0.75rem; }

    .game-item img { height: 56px; }

    #carousel { height: 112px; width: 92vw; }

    .station-card { width: 80px; height: 80px; }

.station-card[data-pos="-3"] { transform: translate(-50%, -50%) translateX(-48vw) translateZ(-90px) rotateY(46deg) scale(0.50); }
.station-card[data-pos="-2"] { transform: translate(-50%, -50%) translateX(-32vw) translateZ(-60px) rotateY(28deg) scale(0.64); }
.station-card[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-20vw) translateZ(-24px) rotateY(14deg) scale(0.80); }

.station-card[data-pos="1"] { transform: translate(-50%, -50%) translateX(20vw) translateZ(-24px) rotateY(-14deg) scale(0.80); }
.station-card[data-pos="2"] { transform: translate(-50%, -50%) translateX(32vw) translateZ(-60px) rotateY(-28deg) scale(0.64); }
.station-card[data-pos="3"] { transform: translate(-50%, -50%) translateX(48vw) translateZ(-90px) rotateY(-46deg) scale(0.50); }
    #info-header-row { flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.2rem 1rem; }

    #info-logo-wrap { width: 96px; height: 96px; }

    #info-meta { justify-content: center; }

    .nav-btn { width: 38px; height: 38px; font-size: 0.9rem; }

    #info-links        { padding: 0.75rem 1rem; }
    #info-tracklist summary { padding: 0.75rem 1rem; }
    #tracklist-items   { padding-left: 2.4rem; }
    #info-player       { padding: 0.9rem 1rem 1.2rem; }
}

@media (max-width: 700px) {
#wheel-section {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-areas:
"carousel carousel"
"prev next"
"count count";
align-items: center;
justify-items: center;
row-gap: 0.65rem;
padding: 1rem 0.5rem 1rem;
overflow: hidden;
}

#carousel {
grid-area: carousel;
width: min(96vw, 430px);
height: 108px;
margin: 0 auto;
touch-action: pan-y;
}

#btn-prev { grid-area: prev; justify-self: end; }
#btn-next { grid-area: next; justify-self: start; }

.nav-btn {
width: 44px;
height: 44px;
font-size: 1rem;
}

#station-count {
grid-area: count;
position: static;
transform: none;
white-space: nowrap;
}
}
/* === Search bar === */
#search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.2rem;
    background: rgba(0, 0, 0, 0.78);
    border-bottom: 1px solid rgba(200, 170, 110, 0.1);
    justify-content: flex-end;
    position: relative;
}

#search-wrap {
    position: relative;
    width: min(520px, calc(100vw - 220px));
    max-width: 100%;
    transition: width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

#search-wrap.collapsed {
    width: 0;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
}

#search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.78rem;
    pointer-events: none;
}

#search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(200, 170, 110, 0.18);
    border-radius: 20px;
    color: var(--text);
    font-size: 0.84rem;
    padding: 0.38rem 1rem 0.38rem 2rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
}

#search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(10, 10, 10, 0.97);
    border: 1px solid rgba(200, 170, 110, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    max-height: 260px;
    overflow-y: auto;
    display: none;
    z-index: 20;
}

#search-suggestions.open { display: block; }

.search-suggestion-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 0.58rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-suggestion-item:last-child { border-bottom: none; }

.search-suggestion-item:hover,
.search-suggestion-item[aria-selected="true"] {
    background: rgba(200, 170, 110, 0.16);
}

#search-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

#search-input::placeholder { color: var(--text-dim); }

/* Search bar icon buttons */
#btn-random,
#btn-fav-filter,
#btn-search-toggle {
    background: rgba(200, 170, 110, 0.1);
    border: 1px solid rgba(200, 170, 110, 0.22);
    color: var(--gold);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    padding: 0;
    gap: 0.3rem;
}

#btn-fav-filter {
    width: auto;
    padding: 0 0.75rem;
    border-radius: 20px;
    font-size: 0.76rem;
}

#btn-random:hover,
#btn-fav-filter:hover,
#btn-search-toggle:hover {
    background: rgba(200, 170, 110, 0.26);
    border-color: var(--gold);
}

#btn-search-toggle.active {
    background: rgba(200, 170, 110, 0.26);
    border-color: var(--gold);
}

#btn-fav-filter.active {
    background: rgba(200, 0, 80, 0.22);
    border-color: rgba(255, 80, 120, 0.5);
    color: #ff5a8a;
}

#fav-count { font-size: 0.74rem; }

/* === Favourite button in info header === */
.fav-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-dim);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.2rem;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.fav-btn:hover {
    color: #ff5a8a;
    border-color: rgba(255, 90, 138, 0.4);
    transform: scale(1.14);
}

.fav-btn.active {
    color: #ff5a8a;
    border-color: rgba(255, 90, 138, 0.35);
}

@keyframes heartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.fav-pop { animation: heartPop 0.32s ease; }

/* Favourite indicator dot on carousel cards */
.station-card.fav::after {
    content: '♥';
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 0.52rem;
    color: #ff5a8a;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(255, 90, 138, 0.8);
}

/* === Playback badge === */
.playback-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.26rem 0.65rem;
    border-radius: 12px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: default;
    user-select: none;
}

.badge-stream     { color: #5cf; background: rgba(85,204,255,0.1);  border: 1px solid rgba(85,204,255,0.32); }
.badge-soundcloud { color: #f83; background: rgba(255,136,51,0.1);  border: 1px solid rgba(255,136,51,0.32); }
.badge-youtube    { color: #f55; background: rgba(255,85,85,0.1);   border: 1px solid rgba(255,85,85,0.32);  }
.badge-link       { color: #aaa; background: rgba(180,180,180,0.08); border: 1px solid rgba(180,180,180,0.25); }
.badge-none       { color: var(--text-dim); background: rgba(100,100,100,0.07); border: 1px solid rgba(100,100,100,0.18); }

/* === Live stream player === */
.stream-player {
    padding: 0.8rem 1.6rem 1.2rem;
}

.stream-player audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    outline: none;
    accent-color: var(--gold);
    display: block;
}

.stream-status {
    font-size: 0.74rem;
    min-height: 1.15em;
    margin-bottom: 0.45rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.stream-status.playing    { color: #5cf; }
.stream-status.connecting { color: #fa8; }
.stream-status.error      { color: #f55; }

/* === Tracklist filter === */
#tracklist-filter-wrap {
    padding: 0.3rem 1.6rem 0.55rem;
    display: none;
}

#tracklist-filter {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 170, 110, 0.16);
    border-radius: 16px;
    color: var(--text);
    font-size: 0.78rem;
    padding: 0.3rem 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

#tracklist-filter:focus { border-color: var(--gold); }

#tracklist-filter::placeholder { color: var(--text-dim); }

.track-no-match {
    color: var(--text-dim);
    font-style: italic;
    list-style: none;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.82rem;
}

.track-count {
    color: var(--text-dim);
    font-size: 0.74rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: normal;
    letter-spacing: 0;
    margin-left: 0.1rem;
}

/* === Responsive additions === */
@media (max-width: 600px) {
    #search-bar { padding: 0.45rem 0.7rem; gap: 0.4rem; }
    #search-wrap { width: calc(100vw - 170px); }
    .stream-player { padding: 0.6rem 1rem 1rem; }
    #tracklist-filter-wrap { padding: 0.25rem 1rem 0.45rem; }
    .fav-btn { width: 32px; height: 32px; font-size: 0.95rem; }
    #search-input { font-size: 0.8rem; }
}

/* === Nonstop Radio Bar === */
#radio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    background: rgba(8, 8, 8, 0.97);
    border-top: 1px solid rgba(200, 170, 110, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    padding-bottom: env(safe-area-inset-bottom);
    gap: 0.9rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.7);
}

#radio-bar.active {
    transform: translateY(0);
}

/* Add bottom padding when bar is visible */
body.has-radio-bar main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

/* Bar: station info (left) */
#rb-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    margin: 0 -0.5rem;
    transition: background 0.25s ease;
    outline: none;
}

#rb-info:hover,
#rb-info:focus-visible {
    background: rgba(200, 170, 110, 0.08);
}

#rb-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 170, 110, 0.15);
    flex-shrink: 0;
    padding: 3px;
}

#rb-text {
    min-width: 0;
    flex: 1;
}

#rb-title {
    display: block;
    font-family: "GTA", sans-serif;
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

#rb-game {
    display: block;
    font-size: 0.67rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}

/* Bar: playback controls (center) */
#rb-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

#rb-controls button {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.15s ease;
    padding: 0;
}

#rb-play {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.05rem !important;
    background: rgba(200, 170, 110, 0.14) !important;
    border: 1px solid rgba(200, 170, 110, 0.32) !important;
}

#rb-controls button:hover {
    background: rgba(200, 170, 110, 0.18);
    transform: scale(1.1);
}

/* Bar: close button (right) */
#rb-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 0;
}

#rb-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* Now-playing indicator on carousel cards */
.station-card.now-playing {
    border-color: var(--gold) !important;
    box-shadow: 0 0 16px rgba(200, 170, 110, 0.55), inset 0 0 0 1px rgba(200, 170, 110, 0.28) !important;
}

.station-card.now-playing::before {
    content: '▶';
    position: absolute;
    bottom: 4px;
    left: 5px;
    font-size: 0.46rem;
    color: var(--gold);
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(200, 170, 110, 0.9);
    line-height: 1;
}

/* Nonstop play button in info links row */
.btn-nonstop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(200, 170, 110, 0.35);
    background: rgba(200, 170, 110, 0.1);
    color: var(--gold);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1;
    transition: var(--transition);
}

.btn-nonstop:hover {
    background: rgba(200, 170, 110, 0.24);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.2);
}

/* Equaliser animation (pulsing bars) shown when nonstop is playing */
.rb-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    flex-shrink: 0;
}

.rb-eq span {
    display: block;
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.rb-eq span:nth-child(1) { animation-delay: 0s;    height: 8px; }
.rb-eq span:nth-child(2) { animation-delay: 0.2s;  height: 14px; }
.rb-eq span:nth-child(3) { animation-delay: 0.1s;  height: 6px; }
.rb-eq span:nth-child(4) { animation-delay: 0.3s;  height: 10px; }

@keyframes eqBounce {
    from { transform: scaleY(0.3); opacity: 0.7; }
    to   { transform: scaleY(1);   opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    #radio-bar { padding: 0 0.75rem; gap: 0.5rem; height: 60px; }
    #rb-logo   { width: 36px; height: 36px; }
    #rb-play   { width: 40px !important; height: 40px !important; }
    #rb-controls button { width: 32px; height: 32px; }
}
