:root {
  --bg: #020914;
  --surface: rgba(4, 18, 34, 0.78);
  --surface-2: rgba(8, 28, 50, 0.72);
  --primary: #0d8bff;
  --primary-glow: #00d5ff;
  --accent: #ffc928;
  --danger: #ff1744;
  --text: #ffffff;
  --muted: #a9bad0;
  --border: rgba(80, 180, 255, 0.24);
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 132, 255, 0.22);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Segoe UI", "Montserrat", Tahoma, sans-serif;
  background-color: var(--bg);
  background:
    radial-gradient(circle at 20% 0%, rgba(13, 139, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(0, 213, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #030b16 0%, var(--bg) 44%, #01050c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.site-shell {
  width: min(100% - 48px, 1500px);
  margin: 0 auto;
  padding: 126px 0 18px;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 48px), 1500px);
  transform: translateX(-50%);
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(80, 180, 255, 0.22);
  background: linear-gradient(145deg, rgba(3, 13, 27, 0.94), rgba(4, 18, 34, 0.84));
  border-radius: 22px;
  box-shadow: 0 20px 70px rgba(0, 132, 255, 0.2);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(13, 139, 255, 0.6);
}

.brand-wave {
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(0, 213, 255, 0.8);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotateGlow 7s linear infinite;
}

.brand-mic {
  font-size: 35px;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.brand-name span,
.hero-card h1 span,
.identity-card h2 span {
  color: var(--primary);
  text-shadow: 0 0 24px rgba(13, 139, 255, 0.7);
}

.brand-subtitle {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.main-nav,
.listener-pill,
.glass,
.panel,
.chat-card,
.hero-card,
.quick-links a,
.identity-card,
.social-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), rgba(3, 13, 27, 0.64));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px;
  overflow-x: auto;
  border-radius: 18px;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 13px 16px;
  color: var(--text);
  border-radius: 13px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, var(--primary), #005fe8);
  box-shadow: 0 0 24px rgba(13, 139, 255, 0.54);
  transform: translateY(-1px);
}

.listener-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: max-content;
  padding: 15px 18px;
  color: var(--muted);
  border-radius: 18px;
}

.listener-pill strong {
  color: var(--text);
  font-size: 1.25rem;
}

.status-dot,
.online-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: #00d98b;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0, 217, 139, 0.8);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 9, 20, 0.98), rgba(2, 9, 20, 0.66), rgba(2, 9, 20, 0.92)),
    image-set(url("../assets/banner.webp") type("image/webp"), url("../assets/banner-source.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  opacity: 0.82;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 73% 42%, rgba(0, 213, 255, 0.34), transparent 14rem),
    linear-gradient(180deg, transparent, rgba(2, 9, 20, 0.88));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(24px, 4vw, 44px);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--danger);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(255, 23, 68, 0.52);
  animation: livePulse 1.8s ease-in-out infinite;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: 0.98;
}

.hero-card p,
.section-heading p,
.identity-card p,
.site-footer,
.chat-card small {
  color: var(--muted);
}

.hero-card p {
  margin: 14px 0 26px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.player-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(88px, 140px);
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 820px;
  padding: 18px;
  border: 1px solid rgba(80, 180, 255, 0.23);
  background: rgba(3, 14, 28, 0.82);
  border-radius: 20px;
}

.play-orb {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: var(--text);
  font-size: 2rem;
  background: radial-gradient(circle, #1a66ff, #071b3c 70%);
  border: 2px solid var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 38px rgba(0, 213, 255, 0.72), inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.play-orb.is-playing {
  animation: playerGlow 2.2s ease-in-out infinite;
}

.player-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.player-copy strong {
  overflow: hidden;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy span {
  color: var(--muted);
}

.now-playing-line {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  color: var(--primary-glow);
  white-space: nowrap;
}

.now-playing-label {
  flex: 0 0 auto;
  color: var(--primary-glow);
}

.now-playing-line.is-message .now-playing-label {
  display: none;
}

.now-playing-track {
  position: absolute;
  inset: 0 0 0 0;
  display: block;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.now-playing-label + .now-playing-track {
  position: relative;
  flex: 1 1 auto;
}

.now-playing-line.is-message .now-playing-track {
  flex-basis: 100%;
}

.now-playing-track::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 24px;
  pointer-events: none;
  content: "";
  background: linear-gradient(270deg, rgba(3, 14, 28, 0.92), transparent);
}

#playerStatus {
  display: inline-block;
  min-width: 100%;
  color: var(--primary-glow);
  white-space: nowrap;
}

.now-playing-line.is-scrolling #playerStatus {
  min-width: max-content;
  padding-right: 48px;
  will-change: transform;
}

.volume-control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.volume-control input {
  --volume-percent: 85%;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 24px;
  width: 100%;
}

.volume-control input::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--primary) 0 var(--volume-percent), rgba(255, 255, 255, 0.28) var(--volume-percent) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  height: 8px;
}

.volume-control input::-webkit-slider-thumb {
  appearance: none;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(13, 139, 255, 0.72);
  height: 18px;
  margin-top: -6px;
  width: 18px;
}

.volume-control input::-moz-range-track {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  height: 8px;
}

.volume-control input::-moz-range-progress {
  background: var(--primary);
  border-radius: 999px;
  height: 8px;
}

.volume-control input::-moz-range-thumb {
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(13, 139, 255, 0.72);
  height: 18px;
  width: 18px;
}

.volume-control input:focus-visible {
  outline: 2px solid var(--primary-glow);
  outline-offset: 4px;
}

.hero-actions,
.input-row,
.hero-notes,
.identity-stats {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 26, 49, 0.88);
  border-radius: 13px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
  border-color: rgba(0, 213, 255, 0.48);
  box-shadow: 0 0 24px rgba(0, 213, 255, 0.2);
  transform: translateY(-1px);
}

.btn.primary {
  min-width: 210px;
  background: linear-gradient(135deg, var(--primary), #005ce7);
}

.btn.ghost {
  min-width: 170px;
}

.btn.danger {
  background: rgba(255, 23, 68, 0.18);
  border-color: rgba(255, 23, 68, 0.5);
}

.btn.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.hero-notes {
  margin-top: 16px;
  color: var(--muted);
}

.chat-card,
.panel,
.identity-card,
.social-card {
  padding: 22px;
  border-radius: var(--radius);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading.compact > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.section-heading h2,
.identity-card h2,
.social-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading p {
  margin: 5px 0 0;
}

.nickname-form,
.message-form {
  display: grid;
  gap: 8px;
}

.nickname-form {
  margin-bottom: 14px;
}

label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(145, 195, 255, 0.18);
  outline: none;
  background: rgba(7, 22, 38, 0.86);
  border-radius: 11px;
}

input:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(0, 213, 255, 0.12);
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 250px;
  padding: 14px 6px 14px 0;
  margin: 12px 0;
  overflow-y: auto;
  scrollbar-color: var(--primary) transparent;
}

.message {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr auto;
  gap: 8px;
  align-items: baseline;
  color: var(--text);
  line-height: 1.4;
}

.message .nick {
  font-weight: 900;
}

.message .time {
  color: #8190a6;
  font-size: 0.8rem;
}

.moderation-panel {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.moderation-panel summary {
  padding: 14px 0 8px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.admin-help {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(0, 213, 255, 0.07);
  border: 1px solid rgba(0, 213, 255, 0.14);
  border-radius: 12px;
}

.admin-help strong {
  color: var(--primary-glow);
}

.moderation-grid,
.admin-list {
  display: grid;
  gap: 10px;
}

.moderation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.moderation-grid label,
.moderation-grid .input-row {
  grid-column: 1 / -1;
}

.admin-list {
  margin-top: 12px;
  color: var(--muted);
}

.admin-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-list li {
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.quick-links a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.quick-links a:hover {
  border-color: rgba(0, 213, 255, 0.52);
  transform: translateY(-2px);
}

.quick-links span {
  grid-row: 1 / 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--primary-glow);
  font-size: 1.45rem;
  border: 1px solid rgba(0, 213, 255, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 213, 255, 0.12);
}

.quick-links strong {
  line-height: 1.12;
}

.quick-links small {
  color: var(--muted);
}

.content-grid,
.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.95fr);
  gap: 22px;
  margin-bottom: 18px;
}

.replay-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.replay-card {
  overflow: hidden;
  border: 1px solid rgba(80, 180, 255, 0.2);
  background: rgba(2, 12, 24, 0.72);
  border-radius: 16px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.replay-card:hover {
  border-color: rgba(0, 213, 255, 0.52);
  transform: translateY(-3px);
}

.cover {
  display: grid;
  min-height: 120px;
  padding: 14px 12px;
  place-items: center;
  color: var(--text);
  font-size: clamp(1.1rem, 1.55vw, 1.62rem);
  font-weight: 1000;
  line-height: 1.04;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}

.cover.morning,
.cover.afternoon,
.cover.retro,
.cover.latino,
.cover.after {
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.58), rgba(13, 139, 255, 0.8)),
    url("../assets/banner-source.jpg") center/cover;
}

.cover.sports-banner {
  min-height: 120px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.14)),
    url("../assets/deportes-sin-limites-cover.png") center/cover no-repeat #050505;
}

.cover.zonamix-banner {
  min-height: 120px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.14)),
    url("../assets/zonamix-cover.png") center/cover no-repeat #050505;
}

.replay-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  justify-items: center;
  text-align: center;
}

.replay-body h3,
.replay-body p {
  margin: 0;
}

.replay-body h3 {
  min-height: 2.5em;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  line-height: 1.16;
  white-space: normal;
}

.replay-body p,
.replay-meta {
  color: var(--muted);
  font-size: 0.9rem;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
}

.replay-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.replay-body .btn,
.replay-body .more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 150px);
  min-width: 0;
  min-height: 38px;
  padding-inline: 10px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: var(--accent);
  background: rgba(255, 201, 40, 0.08);
  border: 1px solid rgba(255, 201, 40, 0.22);
  border-radius: 12px;
}

.schedule-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-left: 10px;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.schedule-list::-webkit-scrollbar {
  width: 8px;
}

.schedule-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.schedule-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-glow), var(--primary));
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(13, 139, 255, 0.45);
}

.schedule-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 11px 12px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
}

.schedule-row strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-row.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(13, 139, 255, 0.95), rgba(0, 82, 196, 0.9));
  box-shadow: 0 0 24px rgba(13, 139, 255, 0.3);
}

.schedule-row.active span {
  color: var(--accent);
  font-weight: 1000;
}

.identity-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.sun-mark {
  color: var(--accent);
  font-size: 5rem;
  filter: drop-shadow(0 0 20px rgba(255, 201, 40, 0.46));
}

.identity-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.identity-card p {
  max-width: 760px;
  line-height: 1.7;
}

.identity-stats {
  color: var(--muted);
}

.social-card {
  display: grid;
  align-content: center;
  gap: 18px;
}

.radio-info-card {
  margin: 0 0 18px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(80, 180, 255, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 213, 255, 0.1), transparent 24rem),
    linear-gradient(145deg, rgba(4, 18, 34, 0.82), rgba(3, 13, 27, 0.66));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.radio-info-card p {
  max-width: 1180px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
  text-align: center;
}

.detail-shell {
  min-height: 100vh;
}

.program-detail-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), rgba(3, 13, 27, 0.72));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.program-detail-card:has(.program-detail-cover.has-custom-cover) {
  grid-template-columns: minmax(420px, 1.2fr) minmax(0, 0.9fr);
  align-items: center;
}

.program-detail-cover {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 1000;
  line-height: 1.02;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.76);
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.58), rgba(13, 139, 255, 0.82)),
    url("../assets/banner-source.jpg") center/cover;
  border-radius: 20px;
}

.program-detail-cover.has-custom-cover {
  aspect-ratio: 1983 / 793;
  min-height: 0;
  padding: 0;
  background-color: #050505;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.program-detail-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.program-detail-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.96;
}

.program-detail-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.detail-placeholder {
  white-space: pre-line;
}

.detail-badge {
  width: max-content;
  margin: 0;
}

.program-archive {
  margin-top: 26px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(0, 120, 255, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(13, 139, 255, 0.14), transparent 32rem),
    rgba(1, 3, 20, 0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.archive-heading {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.archive-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.archive-heading h2 {
  margin: 0;
  color: var(--danger);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 24px rgba(255, 23, 68, 0.32);
}

.program-archive-player {
  width: 100%;
  margin: 0 0 18px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(80, 92, 255, 0.38);
  background:
    radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.08), transparent 8rem),
    linear-gradient(135deg, #11009b 0%, #09006f 48%, #07004f 100%);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.archive-item::after {
  position: absolute;
  right: -28px;
  bottom: -54px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.06);
  content: "U6";
  font-size: 8rem;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(-12deg);
}

.archive-item.is-empty::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px rgba(255, 23, 68, 0.65), 0 8px 26px rgba(0, 0, 0, 0.8);
  content: "PROXIMAMENTE";
  background:
    radial-gradient(circle at center, rgba(255, 23, 68, 0.2), transparent 14rem),
    rgba(1, 5, 22, 0.48);
  backdrop-filter: blur(5px) saturate(0.9);
}

.archive-item.is-empty .archive-play {
  opacity: 0.42;
}

.archive-thumb,
.archive-copy,
.archive-play {
  position: relative;
  z-index: 1;
}

.archive-thumb {
  min-height: 104px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.1), rgba(13, 139, 255, 0.18)),
    url("../assets/deportes-sin-limites-cover.png") center/cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.archive-thumb.alt-1 {
  background:
    linear-gradient(135deg, rgba(255, 23, 68, 0.14), rgba(13, 139, 255, 0.12)),
    url("../assets/deportes-sin-limites-cover.png") 35% center/cover;
}

.archive-thumb.alt-2 {
  background:
    linear-gradient(135deg, rgba(0, 213, 255, 0.16), rgba(255, 201, 40, 0.1)),
    url("../assets/deportes-sin-limites-cover.png") 62% center/cover;
}

.archive-thumb.alt-3 {
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.22), rgba(255, 23, 68, 0.1)),
    url("../assets/deportes-sin-limites-cover.png") right center/cover;
}

.archive-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.archive-type {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
}

.archive-type::before {
  color: var(--danger);
  content: "▮";
  margin-right: 7px;
}

.archive-copy h3,
.archive-copy p {
  margin: 0;
}

.archive-copy h3 {
  color: var(--text);
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  font-weight: 1000;
  line-height: 1.18;
}

.archive-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.archive-item.is-pending .archive-copy p {
  color: var(--accent);
}

.archive-play {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text);
  border: 0;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 23, 68, 0.36);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.archive-play:hover {
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.54);
  transform: scale(1.05);
}

.archive-play span {
  margin-left: 3px;
  font-size: 1rem;
  line-height: 1;
}

.social-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.social-links a {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 1000;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease;
}

.social-links svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.03);
}

.whatsapp { background: #1ec95b; }
.instagram { background: #e13030; }
.facebook { background: #1877f2; }
.tiktok { background: #00c8d7; }
.x-twitter { background: #050505; }
.youtube { background: #ff0033; }

.link-button {
  color: var(--primary-glow);
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes playerGlow {
  0%, 100% { box-shadow: 0 0 38px rgba(0, 213, 255, 0.72), inset 0 0 18px rgba(255, 255, 255, 0.18); }
  50% { box-shadow: 0 0 58px rgba(0, 213, 255, 0.92), inset 0 0 24px rgba(255, 255, 255, 0.24); }
}

@keyframes rotateGlow {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .now-playing-line.is-scrolling span {
    transform: none !important;
  }
}

@media (max-width: 1220px) {
  .site-shell {
    padding-top: 228px;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .listener-pill {
    justify-content: center;
  }

  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .replay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, 1500px);
  }

  .hero-grid,
  .content-grid,
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .replay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-detail-card {
    grid-template-columns: 1fr;
  }

  .program-detail-card:has(.program-detail-cover.has-custom-cover) {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 20px, 1500px);
    padding-top: 276px;
  }

  .site-header {
    top: 8px;
    width: min(100% - 20px, 1500px);
    padding-top: 10px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand-name {
    font-size: clamp(1.8rem, 12vw, 2.45rem);
  }

  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .nav-link {
    padding: 11px 14px;
  }

  .hero-content,
  .chat-card,
  .panel,
  .identity-card,
  .social-card {
    padding: 18px;
    border-radius: 18px;
  }

  .player-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .play-orb {
    width: 78px;
    height: 78px;
    margin: 0 auto;
  }

  .volume-control {
    justify-content: center;
  }

  .btn,
  .btn.primary,
  .btn.ghost {
    width: 100%;
    min-width: 0;
  }

  .input-row {
    flex-wrap: nowrap;
  }

  .input-row .btn {
    width: auto;
    min-width: 96px;
  }

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

  .replay-grid {
    grid-template-columns: 1fr;
  }

  .message {
    grid-template-columns: 1fr auto;
  }

  .message .text {
    grid-column: 1 / -1;
  }

  .archive-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .archive-heading span {
    display: none;
  }

  .archive-item {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .archive-thumb {
    min-height: 82px;
  }

  .archive-play {
    width: 38px;
    height: 38px;
  }

  .moderation-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .schedule-row span {
    grid-column: 2;
  }

  .identity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sun-mark {
    font-size: 4rem;
  }

  .identity-stats,
  .site-footer {
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .hero-card h1 {
    font-size: 2.2rem;
  }

  .section-heading {
    flex-direction: column;
  }

  .input-row {
    flex-wrap: wrap;
  }

  .input-row .btn {
    width: 100%;
  }

  .archive-item {
    grid-template-columns: 1fr auto;
  }

  .archive-thumb {
    grid-column: 1 / -1;
    aspect-ratio: 1983 / 793;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  body {
    min-height: 100svh;
  }

  .site-shell {
    width: calc(100% - 16px);
    padding-top: 238px;
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-wave {
    inset: 7px;
  }

  .brand-mic {
    font-size: 24px;
  }

  .brand-name {
    font-size: clamp(1.55rem, 9.5vw, 2.1rem);
  }

  .brand-subtitle {
    font-size: 0.54rem;
    letter-spacing: 0.22em;
  }

  .main-nav {
    gap: 4px;
    padding: 6px;
    border-radius: 15px;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  .listener-pill {
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .hero-content,
  .chat-card,
  .panel,
  .identity-card,
  .social-card {
    padding: 16px;
  }

  .hero-card h1 {
    font-size: clamp(2.15rem, 12vw, 3.15rem);
  }

  .player-card {
    gap: 12px;
    padding: 14px;
  }

  .player-copy strong {
    font-size: 1.08rem;
  }

  .now-playing-line {
    justify-content: center;
  }

  .volume-control {
    width: min(100%, 260px);
    margin: 0 auto;
  }

  .schedule-list {
    max-height: 312px;
    padding-right: 4px;
  }

  .schedule-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 11px 10px;
  }

  .schedule-row span {
    grid-column: 2;
    justify-self: start;
    font-size: 0.95rem;
  }

  .schedule-row.active span {
    justify-self: start;
  }

  .program-detail-cover.has-custom-cover {
    width: 100%;
  }

  .program-detail-copy h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .program-detail-copy p {
    font-size: 1rem;
  }

  .site-footer {
    padding-inline: 6px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .input-row {
    flex-wrap: wrap;
  }

  .input-row input,
  .input-row .btn {
    width: 100%;
    min-width: 0;
  }

  .chat-header {
    align-items: flex-start;
    gap: 10px;
  }

  .chat-header p {
    width: 100%;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }

  .archive-play {
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .site-shell {
    width: calc(100% - 12px);
    padding-top: 232px;
  }

  .site-header {
    width: calc(100% - 12px);
  }

  .brand-name {
    font-size: clamp(1.42rem, 9.2vw, 1.92rem);
  }

  .nav-link {
    padding: 9px 10px;
  }
}
