:root {
  --bg: #0b0b0f;
  --panel: #17171f;
  --panel2: #101016;
  --text: #fff;
  --muted: #c9c9ce;

  --green: #0a8f6a;
  --red: #d8191e;
  --purple: #5b21e6;
  --gold: #f2b705;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(91,33,230,.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(216,25,30,.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(10,143,106,.16),
      transparent 35%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

.wrap {
  width: min(900px, calc(100% - 24px));
  margin: auto;
  padding: 18px 0 40px;
}

.card {
  background:
    linear-gradient(
      180deg,
      rgba(28,28,38,.93),
      rgba(14,14,20,.93)
    );

  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;

  box-shadow:
    0 24px 70px rgba(0,0,0,.42);

  padding: 24px;
}

.brand {
  text-align: center;
  border-top: 6px solid var(--gold);
}

.logo {
  width: min(700px,100%);
  max-height: 220px;
  object-fit: contain;
}

h1 {
  font-size: clamp(2rem,6vw,3.8rem);
  margin: 6px 0 4px;
}

.brand p,
.player p {
  color: var(--muted);
}

.player,
.section-card {
  margin-top: 18px;
}


/* PLAYER */

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.status,
.on-air {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;

  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.status {
  background: #2a2a32;
}

.status.live {
  background: rgba(216,25,30,.28);
}

.status.loading {
  background: rgba(242,183,5,.22);
}

.status.error {
  background: #612400;
}

.on-air {
  background: rgba(216,25,30,.18);
  color: #ff7377;
  border: 1px solid rgba(216,25,30,.35);
}

.now-playing {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 24px;
}

.cover-wrap {
  position: relative;
}

.cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;

  border-radius: 22px;

  box-shadow:
    0 18px 50px rgba(0,0,0,.5);
}

.label {
  color: var(--gold);

  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
}

h2 {
  font-size: clamp(1.8rem,5vw,3rem);
  line-height: 1.05;
  margin: 8px 0;
}

.track-title {
  font-size: clamp(1.05rem,3vw,1.45rem);
  font-weight: 800;
  color: #eee;
  margin-top: 10px;
}

.album {
  margin-top: 8px;
  color: var(--muted);
}

.year {
  margin-top: 4px;
  color: var(--gold);
  font-weight: 800;
}


/* PROGRESS */

.progress-block {
  margin-top: 24px;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
}

.progress-track {
  height: 7px;
  margin-top: 7px;

  overflow: hidden;
  border-radius: 999px;

  background: rgba(255,255,255,.1);
}

.progress-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--green),
      var(--purple),
      var(--red)
    );
}

.progress-note {
  margin-top: 6px;
  color: #777;
  font-size: .7rem;
}


/* PLAY BUTTON */

.play {
  width: 100%;
  min-height: 68px;

  border: 0;
  border-radius: 999px;

  margin-top: 22px;

  color: #fff;

  font-weight: 950;
  font-size: 1rem;

  cursor: pointer;

  background:
    linear-gradient(
      110deg,
      var(--green),
      var(--purple) 58%,
      var(--red)
    );

  box-shadow:
    0 14px 34px rgba(91,33,230,.24);
}

.volume {
  display: grid;
  grid-template-columns: auto 1fr auto;

  gap: 12px;
  align-items: center;

  margin-top: 22px;

  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.volume input {
  width: 100%;
  accent-color: var(--purple);
}


/* LINKS */

.primary-links {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 12px;
  margin-top: 22px;
}

.primary-links a,
.small-link {
  text-align: center;
  text-decoration: none;

  color: #fff;

  border:
    1px solid rgba(255,255,255,.1);

  padding: 14px;

  border-radius: 16px;

  background:
    rgba(255,255,255,.05);

  font-weight: 800;
}

.primary-links .request-link {
  background:
    linear-gradient(
      110deg,
      rgba(10,143,106,.35),
      rgba(91,33,230,.35)
    );
}

.secondary-link {
  text-align: center;
  margin-top: 16px;
}

.secondary-link a {
  color: #8f8f98;
  font-size: .82rem;
}


/* SECTIONS */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 18px;
}

h3 {
  margin: 5px 0 0;
  font-size: clamp(1.5rem,4vw,2.1rem);
}

.small-link {
  padding: 9px 13px;
  font-size: .8rem;
}


/* ADVISORY */

.advisory {
  display: grid;
  gap: 5px;

  padding: 13px 15px;
  margin-bottom: 16px;

  border-radius: 14px;

  border:
    1px solid rgba(242,183,5,.28);

  background:
    rgba(242,183,5,.07);

  color: #ddd;
  font-size: .82rem;
}

.advisory strong {
  color: var(--gold);
}


/* DEDICATIONS */

.dedications {
  display: grid;
  gap: 12px;
}

.dedication {
  display: grid;
  grid-template-columns: 72px 1fr;

  gap: 14px;
  align-items: center;

  padding: 13px;

  border-radius: 16px;

  background: rgba(255,255,255,.035);

  border:
    1px solid rgba(255,255,255,.07);
}

.dedication img {
  width: 72px;
  height: 72px;

  object-fit: cover;
  border-radius: 12px;
}

.listener {
  font-weight: 900;
}

.dedication-message {
  margin-top: 4px;
  line-height: 1.35;
}

.dedication-track {
  margin-top: 7px;
  color: var(--muted);
  font-size: .78rem;
}


/* TOP 10 */

.top10 {
  display: grid;
  gap: 9px;
}

.chart-row {
  display: grid;

  grid-template-columns:
    48px
    62px
    minmax(0,1fr)
    auto;

  gap: 13px;
  align-items: center;

  padding: 10px 12px;

  border-radius: 15px;

  background: rgba(255,255,255,.035);

  border:
    1px solid rgba(255,255,255,.065);
}

.rank {
  color: var(--gold);
  font-weight: 950;
  font-size: 1.15rem;
  text-align: center;
}

.chart-row img {
  width: 62px;
  height: 62px;

  object-fit: cover;
  border-radius: 10px;
}

.chart-info {
  min-width: 0;
}

.chart-info strong,
.chart-info span {
  display: block;
}

.chart-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.request-count {
  text-align: center;
  min-width: 65px;
}

.request-count strong,
.request-count span {
  display: block;
}

.request-count strong {
  font-size: 1.25rem;
  color: var(--gold);
}

.request-count span {
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
}


/* EMPTY / LOADING */

.loading-card,
.empty-card {
  padding: 22px;

  text-align: center;

  border-radius: 15px;

  background: rgba(255,255,255,.035);

  color: var(--muted);
}


/* MOBILE */

@media (max-width: 650px) {

  .wrap {
    width: min(100% - 16px,900px);
  }

  .card {
    border-radius: 20px;
    padding: 18px;
  }

  .now-playing {
    grid-template-columns: 1fr;
  }

  .cover {
    width: min(330px,100%);
    margin: auto;
  }

  .track-info {
    text-align: center;
  }

  .primary-links {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-row {
    grid-template-columns:
      38px
      54px
      minmax(0,1fr);
  }

  .chart-row img {
    width: 54px;
    height: 54px;
  }

  .request-count {
    grid-column: 3;
    text-align: left;
  }

  .request-count strong,
  .request-count span {
    display: inline;
  }

  .request-count span {
    margin-left: 4px;
  }
}

/* RBL Top 10 - Direct Request */

.chart-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.chart-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    min-height: 36px;
    padding: 7px 14px;

    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 999px;

    background: rgba(255, 193, 7, 0.08);
    color: #ffc107;

    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.04em;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.chart-request:hover {
    transform: translateY(-1px);
    background: rgba(255, 193, 7, 0.16);
    border-color: rgba(255, 193, 7, 0.65);
}

.chart-request:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .chart-actions {
        gap: 8px;
        flex-direction: column;
        align-items: flex-end;
    }

    .chart-request {
        min-width: 64px;
        min-height: 32px;
        padding: 5px 10px;
    }
}
/* =========================================================
   RBL Live - V24
   Request Center -> AL AIRE acknowledgement
   ========================================================= */

.request-ack {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;

    width: 100%;
    margin: 0 0 18px;
    padding: 16px 18px;

    border: 1px solid rgba(255,193,7,.32);
    border-radius: 18px;

    background:
        linear-gradient(
            110deg,
            rgba(255,193,7,.10),
            rgba(93,46,238,.10)
        );

    box-shadow:
        0 14px 36px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.04);

    opacity: 0;
    transform: translateY(-8px) scale(.985);

    transition:
        opacity .28s ease,
        transform .28s ease,
        border-color .28s ease;
}

.request-ack[hidden] {
    display: none !important;
}

.request-ack.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.request-ack-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    min-width: 48px;

    border: 1px solid rgba(255,193,7,.42);
    border-radius: 50%;

    background: rgba(255,193,7,.09);
    color: #ffc107;

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

.request-ack-content {
    flex: 1;
    min-width: 0;
}

.request-ack-kicker {
    display: block;
    margin-bottom: 3px;

    color: #ffc107;

    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.request-ack-content > strong {
    display: block;

    color: #fff;

    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .035em;
}

.request-ack-track {
    margin-top: 5px;

    color: rgba(255,255,255,.92);

    font-size: .92rem;
    line-height: 1.35;
    font-weight: 800;

    overflow-wrap: anywhere;
}

.request-ack-content small {
    display: block;
    margin-top: 4px;

    color: rgba(255,255,255,.58);

    font-size: .76rem;
    line-height: 1.4;
}

.request-ack-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;

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

    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.65);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.request-ack-close:hover {
    color: #fff;
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
}

.request-ack-close:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .request-ack {
        gap: 11px;
        padding: 13px;
        border-radius: 15px;
    }

    .request-ack-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }

    .request-ack-content > strong {
        font-size: 1rem;
    }

    .request-ack-track {
        font-size: .82rem;
    }

    .request-ack-content small {
        font-size: .70rem;
    }
}

/* RBL V25 — Share + Social */
.primary-links .share-link {
  min-width: 0;
  min-height: 52px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(10,143,106,.26), rgba(91,33,230,.35));
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary-links .rbl-site-link { grid-column: 1 / -1; }
.primary-links .share-link:hover { border-color: var(--gold); }
.primary-links .share-link.is-copied { color: var(--gold); border-color: var(--gold); }
.primary-links .share-link:focus-visible,
.facebook-community:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.facebook-community {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid rgba(80,145,255,.4);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(24,119,242,.16), rgba(91,33,230,.12));
  color: var(--text);
  text-decoration: none;
}
.facebook-community:hover { border-color: #83b4ff; }
.facebook-community-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font: bold 34px/1 Arial, sans-serif;
}
.facebook-community-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.facebook-community-copy strong,
.facebook-community-copy span,
.facebook-community-copy small { display: block; }
.facebook-community-copy strong { color: var(--gold); font-size: .8rem; letter-spacing: .1em; }
.facebook-community-copy span { margin-top: 5px; font-size: .9rem; line-height: 1.4; }
.facebook-community-copy small { margin-top: 5px; color: var(--muted); font-size: .7rem; }
.facebook-community-arrow { color: #a9caff; font-size: 1.5rem; }
@media (max-width: 650px) {
  .facebook-community { gap: 11px; padding: 13px; }
}
