/* RADIO V2 - estilos propios (aislados de /assets/style.css) */
:root {
  --rv2-bg: #0b0b0d;
  --rv2-card: #16161a;
  --rv2-card2: #1a1a1f;
  --rv2-tq: #38ffc3;
  --rv2-text: #f5f5f5;
  --rv2-muted: #a3a3ad;
  --rv2-red: #ff1f2e;
  --rv2-radius: 1.25rem;
}

html, body { overflow-x: hidden; }
body.rv2-standalone #navbar, body.rv2-standalone footer, body.rv2-standalone .radio-sticky-link, body.rv2-standalone #nav-radio-ticker { display: none !important; }
body.rv2-standalone #root { padding-top: 0 !important; }

#page-radio {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  box-sizing: border-box;
}

/* En /radio la navbar sigue visible: respetar su altura (en /radiov2 va a pantalla completa) */
body:not(.rv2-standalone) #page-radio {
  padding-top: 72px;
}

/* Schedule section: full width on all screens */
.radio-schedule-section {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Auspiciantes subtitle: more space before cards */
.radio-banner-cards-section .text-center.mb-10 p {
  margin-bottom: 2rem !important;
}

/* LISTENER FEEDBACK: fixed height, text fully visible */
.radio-live-feedback {
  min-height: 7.5rem;
  max-height: 7.5rem;
  overflow: hidden;
}
.radio-live-feedback-body {
  min-height: 5rem;
  max-height: 5rem;
  overflow: hidden;
  font-size: .7rem;
}
.radio-live-feedback-body .rlf-item {
  font-size: .7rem;
  line-height: 1.4;
}
.radio-live-feedback-body .rlf-msg {
  font-size: .7rem;
  line-height: 1.4;
}
/* Auto-scroll for long feedback messages */
.radio-live-feedback-body.is-scrolling .rlf-item {
  animation: rlf-scroll var(--scroll-dur, 8s) ease-in-out infinite alternate;
}
@keyframes rlf-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-1 * (100% - 5rem))); }
}

/* Sponsors section: full width on all screens, same as /radio */
.radio-banner-cards-section {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Filler card (SIEMPRE AL AIRE): horizontal, no dashed border */
.radio-schedule-filler {
  border: none !important;
}
.radio-schedule-filler .radio-schedule-program {
  flex-direction: row !important;
  align-items: stretch;
}
.radio-schedule-filler .radio-schedule-program-img {
  width: 12.6rem;
  min-width: 12.6rem;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  overflow: hidden;
}
.radio-schedule-filler .radio-schedule-program-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .25rem;
}
.radio-schedule-filler .radio-schedule-program-info {
  flex: 1;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: .25rem;
}
.radio-schedule-filler .radio-schedule-program-name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  line-height: 1.2;
}
.radio-schedule-filler .radio-schedule-program-artist,
.radio-schedule-filler .radio-schedule-program-time,
.radio-schedule-filler .radio-schedule-program-loc,
.radio-schedule-filler .radio-schedule-program-bio {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
}
.radio-schedule-filler .radio-schedule-day-title {
  color: var(--rv2-tq);
}

/* Reduce space between premium DJ and Weekly Schedule */
.radio-premium-rotator {
  margin-bottom: 0 !important;
}
.radio-schedule-section {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
}

/* Program cards: responsive grid (2 per row on mobile like original /radio) */
.radio-schedule-programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
  align-items: start;
}
@media (max-width: 768px) {
  .radio-schedule-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
}

/* Sponsors: use original Tailwind classes (grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6) */

/* ENCABEZADO */
.rv2-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .5rem 0 1rem;
}
.rv2-brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.rv2-logo {
  width: 5rem; height: 3rem;
  border-radius: .6rem; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: .25rem;
  box-sizing: border-box;
}
.rv2-logo-ph { opacity: .4; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rv2-logo img { width: 100%; height: 100%; object-fit: contain; }
.rv2-brand-text { min-width: 0; }
.rv2-title {
  font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase;
}
.rv2-powered { font-size: .75rem; color: #fff; margin-top: .25rem; }
.rv2-powered .rv2-cdj { color: var(--rv2-tq); font-weight: 700; }
.rv2-cdj { color: var(--rv2-tq); font-weight: 700; }

.rv2-header-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.rv2-vol { display: flex; align-items: center; gap: .4rem; }
.rv2-vol .radio-volume-slider { width: 72px; }
.rv2-play {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: none;
  background: var(--rv2-tq); color: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, opacity .2s;
  flex-shrink: 0; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.rv2-play:hover:not(:disabled) { transform: scale(1.06); }
.rv2-play:active:not(:disabled) { transform: scale(.94); }
.rv2-play:disabled { opacity: .4; cursor: not-allowed; }
.rv2-timebar .radio-live-badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  padding: .34rem .72rem; margin: 0; border-radius: 999px; white-space: nowrap;
}

/* INFORMACION HORARIA */
.rv2-timebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .5rem 0 1rem; flex-wrap: wrap;
}
.rv2-time-left { display: inline-flex; align-items: center; gap: .5rem; }
.rv2-flag { display: inline-flex; align-items: center; }
.rv2-flag svg { width: 20px; height: 14px; }
.rv2-art { font-size: .85rem; font-weight: 700; color: var(--rv2-muted); letter-spacing: .04em; }
.rv2-clock {
  font-family: ui-monospace, 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem; font-weight: 700; color: var(--rv2-tq);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* CARD PRINCIPAL */
.rv2-card {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: var(--rv2-radius); overflow: hidden;
  background: var(--rv2-card2);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  margin-bottom: 1rem;
}
.rv2-card-media { position: absolute; inset: 0; }
.rv2-card-media img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--rv2-card2);
}
.rv2-card-media {
  background: var(--rv2-card2);
}
.rv2-card-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #111114 0%, #19191f 100%);
}

.rv2-feedback {
  position: absolute; top: .85rem; left: .85rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, border-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}
.rv2-feedback:hover { background: rgba(56,255,195,.15); border-color: rgba(56,255,195,.4); color: var(--rv2-tq); }

.rv2-like-wrap {
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.rv2-like-wrap .radio-like-btn { color: #fff; touch-action: manipulation; }
.rv2-like-wrap .radio-like-count { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* PANEL - mas grande */
.rv2-panel {
  position: absolute; left: .85rem; bottom: .85rem; z-index: 3;
  max-width: 72%; min-height: 7.5rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); border-radius: .75rem;
  padding: .75rem 1rem;
  transition: opacity .25s ease;
  will-change: opacity;
  display: flex; flex-direction: column; gap: .05rem;
}
/* NEXT: foto y datos lado a lado */
.rv2-panel.rv2-panel--next {
  flex-direction: row; align-items: center; gap: .6rem;
  max-width: 80%;
}
.rv2-next-thumb-wrap {
  display: none; width: 5.5rem; flex-shrink: 0;
  border-radius: .5rem; overflow: hidden;
  border: 1px solid rgba(56,255,195,.3);
  position: absolute; left: .75rem; top: .75rem; bottom: .75rem;
  aspect-ratio: auto;
}
.rv2-panel.rv2-panel--next .rv2-next-thumb-wrap {
  display: block;
}
.rv2-next-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* NEXT: text offset to make room for the absolute image */
.rv2-panel.rv2-panel--next {
  padding-left: 7.5rem;
}
.rv2-panel.rv2-panel--next .rv2-panel-text {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem;
}
.rv2-panel.is-fading { opacity: 0; }
.rv2-panel-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rv2-tq); margin-bottom: .15rem;
}
.rv2-panel-name {
  font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv2-panel-artist {
  font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.75); margin-top: .05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv2-panel-sched {
  font-size: .8rem; font-weight: 700; color: var(--rv2-tq); margin-top: .1rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.rv2-panel-loc {
  font-size: .7rem; font-weight: 500; color: rgba(255,255,255,.45); margin-top: .05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* MODULOS */
.rv2-modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin-bottom: 1.5rem;
}
.rv2-mod {
  background: var(--rv2-card); border-radius: .9rem;
  padding: .85rem .75rem; text-align: center;
  border: 1px solid rgba(255,255,255,.06);
}
.rv2-mod-title {
  display: block; font-size: .6rem; font-weight: 800; letter-spacing: .1em;
  color: var(--rv2-muted); text-transform: uppercase; margin-bottom: .4rem;
}
.rv2-mod-val {
  display: block; font-family: ui-monospace, 'SF Mono', 'Consolas', monospace;
  font-size: 1.25rem; font-weight: 700; color: var(--rv2-tq);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.rv2-mod-left { color: #fbbf24; }

/* DETALLES */
.rv2-details { padding: .5rem 0 1.5rem; }
.rv2-bio-wrap { position: relative; }
.rv2-bio {
  font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: all .3s ease;
}
.rv2-bio.expanded {
  -webkit-line-clamp: unset; display: block;
}
.rv2-bio-toggle {
  background: none; border: none; color: var(--rv2-tq); font-size: .75rem;
  font-weight: 700; cursor: pointer; padding: .25rem 0; margin-bottom: .75rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.rv2-bio-toggle:hover { text-decoration: underline; }
.rv2-links {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
  align-items: center;
}
.rv2-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: .6rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: var(--rv2-tq); transition: background .2s, border-color .2s, transform .2s;
  touch-action: manipulation;
}
.rv2-icon-link:hover {
  background: rgba(56,255,195,.12); border-color: rgba(56,255,195,.35);
  transform: translateY(-1px);
}
.rv2-icon-link svg { width: 18px; height: 18px; }

/* RESPONSIVE - TABLET */
@media (max-width: 768px) {
  #page-radio { padding: .75rem .75rem 2.5rem; }
  .rv2-title { font-size: 1.5rem; }
  .rv2-play { width: 2.75rem; height: 2.75rem; }
  .rv2-panel { max-width: 80%; min-height: 6.5rem; }
  .rv2-panel-name { font-size: 1.25rem; }
  .rv2-panel-artist { font-size: .95rem; }
  .rv2-mod-val { font-size: 1.1rem; }
  .rv2-vol .radio-volume-slider { width: 60px; }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 600px) {
  #page-radio { padding: .5rem .75rem 2rem; }
  .rv2-header { gap: .5rem; }
  .rv2-title { font-size: 1.35rem; }
  .rv2-powered { font-size: .7rem; }
  .rv2-logo { min-width: 2.5rem; max-width: 4rem; height: 2.5rem; }
  .rv2-play { width: 2.5rem; height: 2.5rem; }
  .rv2-flag svg { width: 18px; height: 12px; }
  .rv2-art { font-size: .78rem; }
  .rv2-clock { font-size: 1rem; }
  .rv2-panel { max-width: 85%; min-height: 6rem; padding: .6rem .75rem; }
  .rv2-panel-name { font-size: 1.1rem; }
  .rv2-panel-artist { font-size: .85rem; }
  .rv2-panel-sched { font-size: .7rem; }
  .rv2-mod { padding: .7rem .5rem; }
  .rv2-mod-val { font-size: 1rem; }
  .rv2-mod-title { font-size: .55rem; }
  .rv2-vol .radio-volume-slider { width: 48px; }
  .rv2-vol .radio-player-card-vol { font-size: .65rem; }
  .rv2-icon-link { width: 36px; height: 36px; }
}

/* RESPONSIVE - SMALL MOBILE */
@media (max-width: 420px) {
  .rv2-modules { gap: .5rem; }
  .rv2-mod { padding: .6rem .3rem; }
  .rv2-mod-val { font-size: .9rem; }
  .rv2-panel { max-width: 90%; min-height: 5.5rem; }
  .rv2-feedback { font-size: .6rem; padding: .35rem .6rem; }
  .rv2-header-right { gap: .5rem; }
  .rv2-panel-name { font-size: 1rem; }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .rv2-card { aspect-ratio: 16 / 9; }
  .rv2-panel { min-height: 4.5rem; }
}
/* RADIO V2 - Schedule collapsible */
.rv2-sched-toggle {
  cursor: pointer;
  user-select: none;
  display: flex; align-items: center; justify-content: space-between;
}
.rv2-sched-chevron {
  font-size: .8rem; color: var(--rv2-tq); margin-left: .5rem;
  transition: transform .2s;
}

/* Filler card (ALWAYS ON AIR): ocupa todo el ancho del grid en pantallas chicas */
@media (max-width: 768px) {
  .radio-schedule-filler .radio-schedule-programs {
    grid-template-columns: 1fr !important;
  }
}

/* Filler card (ALWAYS ON AIR) en celular vertical: imagen arriba, datos abajo */
@media (max-width: 600px) {
  .radio-schedule-filler .radio-schedule-program {
    flex-direction: column !important;
    max-width: none;
  }
  .radio-schedule-filler .radio-schedule-program-img {
    width: 100% !important;
    min-width: 0 !important;
    height: 150px;
    aspect-ratio: auto;
  }
  .radio-schedule-filler .radio-schedule-program-img img {
    padding: .35rem;
  }
  .radio-schedule-filler .radio-schedule-program-info {
    padding: .8rem .9rem 1rem;
  }
}
@media (max-width: 420px) {
  .radio-schedule-filler .radio-schedule-program-img {
    height: 130px;
  }
}

/* Schedule collapsible */
.rv2-sched-toggle {
  cursor: pointer;
  user-select: none;
}
.rv2-sched-chevron {
  font-size: .8rem; color: var(--rv2-tq); margin-left: .5rem;
  transition: transform .2s;
}
