:root {
  --bg: #07090b;
  --surface: rgba(18, 22, 26, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b4bcc4;
  --accent: #e8c547;
  --on-accent: #1a1404;
  --live: #ff7a18;
  --radius-art: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.bg {
  position: fixed;
  inset: -12%;
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 90, 104, 0.55), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(6, 40, 48, 0.8), var(--bg) 58%);
  background-size: cover;
  background-position: center;
  filter: blur(72px) saturate(1.35) brightness(0.38);
  transform: scale(1.15);
  z-index: -2;
  transition: background-image 0.9s ease;
}

.bg-veil {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.35), rgba(7, 9, 11, 0.88));
  z-index: -1;
}

.topbar {
  flex: 0 0 auto;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.1;
}

.brand-name span {
  color: var(--accent);
  font-weight: 700;
}

.brand-tag {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .brand-tag {
    display: none;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.install-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(60, 231, 242, 0.38);
  background: rgba(60, 231, 242, 0.16);
  color: var(--accent);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.install-btn:hover {
  background: rgba(60, 231, 242, 0.28);
  color: #fff;
}

.install-help[hidden] {
  display: none !important;
}

.install-help {
  position: fixed;
  top: 64px;
  right: max(16px, env(safe-area-inset-right));
  z-index: 30;
  width: min(280px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 20, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(16px);
}

.install-help p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.install-help-close {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c656c;
}

.live-pill[data-live="true"] .live-dot {
  background: var(--live);
  box-shadow: 0 0 0 5px rgba(255, 77, 109, 0.16);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.2); opacity: 0.75; }
}

.layout {
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 0 24px 12px;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(240px, 1.05fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: stretch;
}

.now-playing {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  padding: 0 8px;
  overflow: hidden;
  container-type: size;
  container-name: player;
}

.artwork-stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.artwork-frame {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1;
}

.vinyl {
  position: absolute;
  inset: 8% 0 8% 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111 0 14%, transparent 15%),
    repeating-radial-gradient(circle at center, #1a1a1a 0 2px, #0d0d0d 3px 5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(0) rotate(0deg);
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 0;
}

body.is-playing .vinyl {
  opacity: 1;
  transform: translateX(18%);
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to { transform: translateX(18%) rotate(360deg); }
}

.cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-art);
  background: #111;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 0.45s ease, transform 0.55s ease, box-shadow 0.4s ease;
}

body.is-playing .cover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(60, 231, 242, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.6);
}

.track-meta {
  flex: 0 1 auto;
  width: min(100%, 28rem);
  max-width: 100%;
  text-align: center;
}

.show-chip {
  margin: 0 auto 8px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(60, 231, 242, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  margin: 0 0 6px;
  max-width: 100%;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.05rem, 1.5cqh + 0.7rem, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
  text-align: center;
}

#artist {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.7cqh + 0.7rem, 1.02rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.album {
  margin: 4px 0 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-dock {
  flex: 0 0 auto;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress {
  width: 100%;
  margin: 10px 0 4px;
}

.progress-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.rp-eq {
  width: 100%;
  max-width: 320px;
  margin: 6px auto 2px;
  opacity: 0.4;
  overflow: hidden;
  pointer-events: none;
  flex: 0 0 auto;
  transition: opacity 0.4s ease;
}

.rp-eq * {
  pointer-events: none;
}

.rp-eq--active {
  opacity: 1;
}

.rp-eq-track,
.rp-eq-reflect {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 48px;
  padding: 0 4px;
}

.rp-eq-reflect {
  height: 20px;
  margin-top: 2px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.rp-eq-bar {
  flex: 1;
  max-width: 7px;
  min-width: 3px;
  height: 6px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bar-color) 85%, #fff),
    var(--bar-color) 55%,
    color-mix(in srgb, var(--bar-color) 70%, #000)
  );
  box-shadow:
    0 0 10px color-mix(in srgb, var(--bar-color) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-origin: bottom center;
}

.rp-eq-bar--reflect {
  border-radius: 1px 1px 3px 3px;
  transform: scaleY(-1);
  box-shadow: none;
  opacity: 0.6;
}

.rp-eq--active .rp-eq-bar {
  animation: rp-eq-bounce var(--bar-dur) ease-in-out infinite;
  animation-delay: var(--bar-delay);
}

@keyframes rp-eq-bounce {
  0%, 100% {
    height: 6px;
    opacity: 0.55;
  }
  35% {
    height: calc(var(--bar-max) * 0.55);
    opacity: 0.85;
  }
  55% {
    height: var(--bar-max);
    opacity: 1;
  }
  75% {
    height: calc(var(--bar-max) * 0.4);
    opacity: 0.75;
  }
}

.transport {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: clamp(4px, 1.2cqh, 10px);
  padding: 0;
  background: none;
  border: none;
  position: relative;
  z-index: 2;
}

.volume,
.transport-side {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: clamp(40px, 6.6cqh, 52px);
}

.transport-side {
  justify-content: flex-end;
}

.air-mark {
  width: clamp(18px, 2.8cqh, 22px);
  height: clamp(18px, 2.8cqh, 22px);
  fill: currentColor;
  color: rgba(255, 255, 255, 0.28);
}

body.is-playing .air-mark {
  color: var(--accent);
}

.volume {
  gap: 8px;
}

.icon-btn,
.play-btn {
  border: 0;
  cursor: pointer;
  background: none;
  color: inherit;
}

.icon-btn {
  width: clamp(32px, 5cqh, 36px);
  height: clamp(32px, 5cqh, 36px);
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.icon-btn:hover { color: #fff; }

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  grid-area: 1 / 1;
}

.icon-btn #icon-mute {
  display: none;
}

.icon-btn.is-muted #icon-vol {
  display: none;
}

.icon-btn.is-muted #icon-mute {
  display: block;
}

.volume input[type="range"] {
  width: 100%;
  max-width: 110px;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.play-btn {
  --play-size: clamp(42px, 6.8cqh, 52px);
  position: relative;
  width: var(--play-size);
  height: var(--play-size);
  border-radius: 50%;
  background: #fff;
  color: var(--on-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.play-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.play-btn:active {
  transform: scale(0.96);
}

.play-btn svg {
  width: 42%;
  height: 42%;
  fill: currentColor;
  grid-area: 1 / 1;
}

.play-btn #icon-play { margin-left: 2px; }

.play-btn.is-paused #icon-pause,
.play-btn.is-playing #icon-play,
.play-btn svg[hidden] {
  display: none;
}

.play-btn.is-playing #icon-pause {
  display: block;
}

.play-btn.is-loading svg { opacity: 0; }

.play-spinner {
  display: none;
  position: absolute;
  width: 46%;
  height: 46%;
  border: 2px solid rgba(4, 17, 20, 0.2);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin-loader 0.7s linear infinite;
}

.play-btn.is-loading .play-spinner { display: block; }

@keyframes spin-loader {
  to { transform: rotate(360deg); }
}

.up-next {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.up-next img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}

.up-next-label {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

#next-line {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  min-height: 0;
  margin: 6px 0 0;
  text-align: center;
  font-size: 13px;
  color: #ffb4c0;
}

.status:empty { display: none; }

.schedule-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 12px 10px;
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.schedule-head {
  flex: 0 0 auto;
  padding: 4px 12px 10px;
}

.schedule-head h2 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.schedule-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0 6px 8px;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.schedule-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.schedule-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.schedule-item strong {
  display: block;
  font-size: 13px;
}

.schedule-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-item.is-current {
  background: rgba(60, 231, 242, 0.1);
  border-color: rgba(60, 231, 242, 0.18);
  box-shadow: inset 3px 0 0 var(--accent);
}

.schedule-item.is-current time,
.schedule-item.is-current strong { color: var(--accent); }

footer {
  display: none;
}

body.aliento-hero {
  background: #071018;
  justify-content: flex-end;
  align-items: stretch;
}

body.aliento-hero .bg,
body.aliento-hero .bg-veil {
  display: none;
}

body.aliento-hero .hero-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  z-index: 0;
}

body.aliento-hero .hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

body.aliento-hero .topbar,
body.aliento-hero .layout,
body.aliento-hero .install-help {
  position: relative;
  z-index: 2;
}

body.aliento-hero .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  z-index: 4;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.aliento-hero .brand {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
}

body.aliento-hero .brand-copy {
  display: none;
}

body.aliento-hero .topbar-actions {
  position: relative;
  z-index: 5;
}

body.aliento-hero .brand-logo {
  width: auto;
  height: clamp(96px, 18vh, 168px);
  border-radius: 0;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

body.aliento-hero .hero-title {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  width: min(1040px, calc(100% - 320px));
  text-align: center;
  line-height: 0.98;
  pointer-events: none;
}

body.aliento-hero .hero-title-radio {
  display: block;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.9rem, 3.4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff8ea;
  text-shadow:
    0 1px 0 #fffdf6,
    1px 2px 0 #5a3d18,
    2px 4px 0 #3a2710,
    3px 6px 0 #1c1408,
    4px 10px 16px rgba(0, 0, 0, 0.45);
}

body.aliento-hero .hero-title-main {
  display: inline-block;
  margin-top: 4px;
  font-family: Cinzel, "Palatino Linotype", Palatino, serif;
  font-size: clamp(2.2rem, 6.2vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  background: linear-gradient(180deg, #fffef6 0%, #f6e7b8 32%, #d7b45a 68%, #9a7428 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 #fffdf4)
    drop-shadow(0 2px 0 #c9a24a)
    drop-shadow(1px 3px 0 #5c3d14)
    drop-shadow(2px 5px 0 #3a270c)
    drop-shadow(3px 8px 0 #1a1206)
    drop-shadow(4px 12px 18px rgba(0, 0, 0, 0.48));
}

body.aliento-hero .hero-title-fm {
  display: inline-block;
  margin-left: 0.32em;
  vertical-align: 0.18em;
  font-family: Cinzel, "Palatino Linotype", Palatino, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  letter-spacing: 0.16em;
  color: #fff8ea;
  -webkit-text-fill-color: #fff8ea;
  background: none;
  text-shadow:
    0 1px 0 #fffdf6,
    1px 2px 0 #5a3d18,
    2px 4px 0 #3a2710,
    3px 7px 0 #1c1408,
    4px 10px 14px rgba(0, 0, 0, 0.42);
}

body.aliento-hero .layout {
  position: absolute;
  left: 50%;
  top: max(9.75rem, 23vh);
  bottom: max(1.5%, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92%, calc(100% - 24px));
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr;
  grid-template-rows: min-content;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  align-items: end;
  justify-items: center;
  z-index: 2;
  overflow: visible;
}

body.aliento-hero .schedule-card,
body.aliento-hero footer {
  display: none;
}

body.aliento-hero .now-playing {
  width: min(1240px, 94%);
  height: auto;
  min-height: 0;
  max-height: none;
  container-type: normal;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  justify-content: flex-start;
  gap: 0;
}

body.aliento-hero .player-now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px 36px;
  align-items: center;
  width: 100%;
}

body.aliento-hero .artwork-stage {
  flex: 0 0 auto;
  width: min(46vh, 32vw, 500px, calc(100dvh - 26rem));
  height: min(46vh, 32vw, 500px, calc(100dvh - 26rem));
  min-height: 0;
  margin: 0;
}

body.aliento-hero .artwork-frame {
  width: 100%;
  height: 100%;
  max-width: none;
}

body.aliento-hero .cover {
  border-radius: 26px;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 248, 234, 0.18),
    0 22px 48px rgba(0, 0, 0, 0.42);
}

body.is-playing.aliento-hero .cover {
  transform: none;
  box-shadow:
    0 0 0 1px rgba(243, 226, 176, 0.35),
    0 22px 48px rgba(0, 0, 0, 0.42);
}

body.aliento-hero .rp-eq {
  display: block;
  width: min(680px, 72%);
  max-width: none;
  margin: 2px auto 4px;
  opacity: 0.42;
  filter: none;
}

body.aliento-hero .rp-eq--active {
  opacity: 0.88;
}

body.aliento-hero .rp-eq-track {
  height: 38px;
  gap: 3px;
  justify-content: stretch;
}

body.aliento-hero .rp-eq-reflect {
  display: none;
}

body.aliento-hero .rp-eq-bar {
  flex: 1 1 0;
  max-width: none;
  min-width: 3px;
  height: 7px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bar-color) 70%, #fff) 0%,
    var(--bar-color) 55%,
    color-mix(in srgb, var(--bar-color) 55%, #123) 100%
  );
  box-shadow: 0 0 6px color-mix(in srgb, var(--bar-color) 28%, transparent);
}

body.aliento-hero .vinyl {
  display: none;
}

body.aliento-hero .track-meta,
body.aliento-hero .player-dock {
  width: 100%;
}

body.aliento-hero .track-meta {
  text-align: left;
  width: auto;
  max-width: none;
}

body.aliento-hero .show-chip {
  margin: 0 0 12px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background: none;
  color: #ffe7a3;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-shadow:
    0 0 18px rgba(255, 210, 90, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.7);
}

body.aliento-hero h1 {
  font-size: clamp(1.95rem, 3.4vh + 0.95rem, 3.35rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  text-align: left;
  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.35),
    0 3px 14px rgba(0, 0, 0, 0.78);
}

body.aliento-hero #artist,
body.aliento-hero .album {
  text-align: left;
  color: #fff8ea;
  font-size: clamp(1.15rem, 1.8vh + 0.6rem, 1.65rem);
  font-weight: 600;
  line-height: 1.32;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

body.aliento-hero .show-chip,
body.aliento-hero h1,
body.aliento-hero #artist {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

body.aliento-hero .player-dock {
  width: 100%;
  max-width: none;
  margin-top: 4vh;
  padding-top: 0;
}

body.aliento-hero .progress {
  margin: 0 0 2px;
}

body.aliento-hero .progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
}

body.aliento-hero .times {
  font-size: 11px;
  color: rgba(255, 248, 234, 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

body.aliento-hero .play-btn {
  --play-size: 52px;
  background: #fff8ea;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.aliento-hero .icon-btn {
  width: 34px;
  height: 34px;
  color: rgba(255, 248, 234, 0.88);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

body.aliento-hero .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.aliento-hero .volume input[type="range"] {
  max-width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.32);
}

body.aliento-hero .up-next {
  width: 100%;
  margin-top: 4px;
  padding: 2px 0 0;
  background: none;
  border: none;
  border-radius: 0;
  grid-template-columns: 40px 1fr;
  gap: 10px;
}

body.aliento-hero .up-next img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

body.aliento-hero .up-next-label {
  font-size: 10px;
}

body.aliento-hero #next-line {
  font-size: 13px;
}

body.aliento-hero .icon-btn:hover {
  color: #fff;
}

body.aliento-hero .air-mark {
  color: rgba(255, 248, 234, 0.55);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

body.aliento-hero .up-next-label,
body.aliento-hero #next-line {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1100px) {
  .topbar,
  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 10px;
    padding: 0 16px 10px;
  }

  .now-playing {
    justify-content: stretch;
  }

  .volume input[type="range"] {
    max-width: 72px;
  }
}

@media (display-mode: standalone) {
  .install-btn,
  .install-help {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .rp-eq-track {
    height: 36px;
  }

  .rp-eq-reflect {
    height: 14px;
  }

  .topbar {
    padding: 10px 16px;
  }

  .transport {
    margin-top: 4px;
  }

  .volume input[type="range"] {
    display: none;
  }

  .album {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .rp-eq-track {
    height: 36px;
  }

  .rp-eq-reflect {
    height: 14px;
  }

  .brand-tag {
    display: none;
  }

  .album,
  .up-next {
    display: none;
  }
}

@container player (max-height: 480px) {
  .show-chip {
    display: none;
  }
}

/* —— Aliento: tablet y portátil —— */
@media (max-width: 1100px) {
  body.aliento-hero .hero-title {
    width: min(860px, calc(100% - 260px));
  }

  body.aliento-hero .hero-title-main {
    font-size: clamp(1.8rem, 5vw, 3.6rem);
  }

  body.aliento-hero .artwork-stage {
    width: clamp(260px, 42vh, 460px);
    height: clamp(260px, 42vh, 460px);
  }

  body.aliento-hero .now-playing {
    width: min(980px, 96%);
  }

  body.aliento-hero .player-dock {
    margin-top: 5vh;
  }
}

@media (max-width: 860px) {
  body.aliento-hero .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    width: min(96%, calc(100% - 20px));
    padding: 0;
    max-height: none;
  }

  body.aliento-hero .now-playing {
    justify-content: flex-start;
    max-height: none;
    width: 100%;
    min-height: 0;
  }

  body.aliento-hero .player-now {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 20px;
  }

  body.aliento-hero .artwork-stage {
    width: clamp(180px, 34vw, 320px);
    height: clamp(180px, 34vw, 320px);
  }

  body.aliento-hero .brand-logo {
    height: clamp(64px, 12vh, 96px);
  }

  body.aliento-hero .hero-title {
    width: min(520px, calc(100% - 220px));
  }

  body.aliento-hero .hero-title-radio {
    font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  }

  body.aliento-hero .hero-title-main {
    font-size: clamp(1.25rem, 4.2vw, 2.35rem);
  }

  body.aliento-hero .hero-title-fm {
    font-size: clamp(0.95rem, 2vw, 1.35rem);
  }

  body.aliento-hero h1 {
    font-size: clamp(1.25rem, 3.2vw, 2.1rem);
  }

  body.aliento-hero .play-btn {
    --play-size: 56px;
  }

  body.aliento-hero .icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* —— Aliento: celular vertical —— */
@media (max-width: 700px) {
  body.aliento-hero .topbar {
    align-items: center;
  }

  body.aliento-hero .brand-logo {
    height: clamp(52px, 10vh, 72px);
  }

  body.aliento-hero .hero-title {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 56px);
    left: 50%;
    width: calc(100% - 24px);
    max-width: none;
  }

  body.aliento-hero .layout {
    top: clamp(8.4rem, 26vh, 11.5rem);
  }

  body.aliento-hero .hero-title-radio {
    font-size: clamp(1.05rem, 4.4vw, 1.45rem);
  }

  body.aliento-hero .hero-title-main {
    display: block;
    margin-top: 2px;
    font-size: clamp(1.2rem, 6.4vw, 1.85rem);
    letter-spacing: 0.03em;
  }

  body.aliento-hero .hero-title-fm {
    margin-left: 0.2em;
    font-size: clamp(0.9rem, 3.4vw, 1.15rem);
  }

  body.aliento-hero .install-btn,
  body.aliento-hero .live-pill {
    height: 36px;
    min-height: 36px;
  }

  body.aliento-hero .player-now {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  body.aliento-hero .artwork-stage {
    width: min(72vw, 42vh, 340px);
    height: min(72vw, 42vh, 340px);
  }

  body.aliento-hero .cover {
    border-radius: 20px;
  }

  body.aliento-hero .track-meta,
  body.aliento-hero h1,
  body.aliento-hero #artist,
  body.aliento-hero .album,
  body.aliento-hero .show-chip {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.aliento-hero .show-chip {
    font-size: clamp(0.92rem, 3.4vw, 1.12rem);
    margin-bottom: 8px;
  }

  body.aliento-hero h1 {
    font-size: clamp(1.15rem, 5.4vw, 1.7rem);
  }

  body.aliento-hero #artist {
    font-size: clamp(0.9rem, 3.6vw, 1.1rem);
  }

  body.aliento-hero .player-dock {
    margin-top: 2.5vh;
  }

  body.aliento-hero .rp-eq {
    width: min(640px, 92%);
  }

  body.aliento-hero .rp-eq-track {
    height: 44px;
  }

  body.aliento-hero .up-next {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  body.aliento-hero .volume input[type="range"] {
    display: block;
    max-width: 96px;
    height: 6px;
  }

  body.aliento-hero .volume input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  body.aliento-hero .artwork-stage {
    width: min(78vw, 38vh, 300px);
    height: min(78vw, 38vh, 300px);
  }

  body.aliento-hero .hero-title {
    top: calc(env(safe-area-inset-top, 0px) + 50px);
  }
}

/* —— Aliento: celular / tablet horizontal —— */
@media (orientation: landscape) and (max-height: 560px) {
  body.aliento-hero .hero-title {
    top: max(4px, env(safe-area-inset-top));
    width: min(640px, calc(100% - 240px));
  }

  body.aliento-hero .layout {
    top: clamp(3.4rem, 24vh, 5.8rem);
  }

  body.aliento-hero .hero-title-radio {
    font-size: 1rem;
  }

  body.aliento-hero .hero-title-main {
    display: inline-block;
    font-size: clamp(1.1rem, 4.2vh, 1.7rem);
  }

  body.aliento-hero .brand-logo {
    height: clamp(44px, 14vh, 64px);
  }

  body.aliento-hero .player-now {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    gap: 12px 18px;
  }

  body.aliento-hero .artwork-stage {
    width: clamp(110px, 38vh, 220px);
    height: clamp(110px, 38vh, 220px);
  }

  body.aliento-hero .track-meta,
  body.aliento-hero h1,
  body.aliento-hero #artist,
  body.aliento-hero .show-chip {
    text-align: left;
    margin-left: 0;
  }

  body.aliento-hero h1 {
    font-size: clamp(1rem, 4.4vh, 1.55rem);
  }

  body.aliento-hero .player-dock {
    margin-top: 8px;
  }

  body.aliento-hero .up-next,
  body.aliento-hero .rp-eq-reflect {
    display: none;
  }

  body.aliento-hero .rp-eq-track {
    height: 22px;
  }

  body.aliento-hero .play-btn {
    --play-size: 44px;
  }
}

@media (display-mode: standalone) {
  body.aliento-hero .layout {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
