:root {
  --ink: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #e7c27a;
  --gold-2: #f6e2b4;
  --bg: #070608;
  --danger: #ffb4a8;
  --ok: #b7e4c7;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }

.on-air-page { position: relative; overflow-x: hidden; }
.night {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(155, 27, 27, 0.28), transparent 55%),
    radial-gradient(700px 420px at 0% 100%, rgba(48, 28, 18, 0.45), transparent 60%),
    #070608;
}
.on-air-page > header,
.on-air-page > main,
.on-air-page > footer { position: relative; z-index: 1; }

.station-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 4.5vw;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { height: 4.5rem; width: auto; max-width: min(12rem, 70vw); object-fit: contain; }
.brand .logo-for-light { display: none; }
html.theme-light .brand .logo-for-dark { display: none; }
html.theme-light .brand .logo-for-light { display: block; }
.station-bar nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.visit { color: var(--muted); font-size: 0.92rem; margin-right: 0.15rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.55rem; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8, 8, 10, 0.72);
  text-decoration: none;
}
.btn:hover { border-color: rgba(231, 194, 122, 0.55); }
.btn--gold {
  background: linear-gradient(180deg, #c94141, #8e1616);
  color: #fff; border-color: transparent; font-weight: 600;
}
.btn--gold:hover { filter: brightness(1.08); }

.sanctuary {
  position: relative;
  margin: 0.2rem 4.5vw 0;
  min-height: 28rem;
  border-radius: 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.sanctuary__photo {
  position: absolute; inset: 0;
  background:
    url("https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=1400&q=70") center 42% / cover no-repeat;
}
.sanctuary__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 82% 42%, rgba(7, 6, 8, 0.5), transparent 72%),
    linear-gradient(90deg, rgba(7, 6, 8, 0.92) 0%, rgba(7, 6, 8, 0.72) 42%, rgba(7, 6, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 6, 8, 0.15), rgba(7, 6, 8, 0.55));
}
.sanctuary__copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 4.2rem 3rem 3.4rem;
}
.sanctuary__mark {
  position: absolute;
  z-index: 1;
  right: 2.2rem;
  top: 46%;
  height: 6rem;
  width: auto;
  max-width: min(14rem, 42%);
  padding: 0.65rem 0.95rem 0.4rem;
  background: rgba(8, 7, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  box-sizing: content-box;
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fecaca; font-size: 0.74rem; font-weight: 650;
}
.live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #ef4444;
  animation: live-pulse 1.6s ease-out infinite;
}
.on-air-page h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.on-air-page .lead {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: rgba(246, 243, 238, 0.82);
  font-size: 1.12rem;
  line-height: 1.55;
}

.deck {
  margin: -3.2rem 4.5vw 0;
  position: relative;
  z-index: 2;
}

.room {
  margin: 1.4rem 4.5vw 3rem;
  padding: 1.25rem 1.25rem 0.6rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.92), rgba(12, 12, 14, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.room__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 0.2rem 0.35rem 0.9rem;
}
.kicker {
  margin: 0 0 0.2rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fca5a5; font-size: 0.72rem; font-weight: 650;
}
.room h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.8rem;
}
.room__count { margin: 0; text-align: right; }
.room__count strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.room__count span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.room__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.room__list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.room__avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(163, 24, 24, 0.28);
  color: #fecaca; font-size: 0.75rem; font-weight: 700;
}
.room__who { min-width: 0; display: flex; flex-direction: column; }
.room__who strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room__who em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.room__empty { color: var(--muted); grid-column: 1 / -1; }

.ic-footer {
  margin-top: 0.5rem;
  padding: 3rem 4.5vw 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050506;
}
.ic-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.ic-footer__brand img { height: 2.8rem; width: auto; margin-bottom: 0.75rem; }
.ic-footer__brand p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.85rem;
  color: rgba(246, 243, 238, 0.62);
}
.ic-footer__social { display: flex; flex-direction: column; gap: 0.65rem; }
.ic-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(246, 243, 238, 0.62);
  text-decoration: none;
}
.ic-footer__social a:hover { color: #fff; }
.ic-footer__copy {
  width: 100%;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(247, 245, 242, 0.4);
  text-align: center;
}

/* Mesa igual à do estúdio: espiral, palco e barras. */
#peniel-radio-lp-player .peniel-radio,
#peniel-radio-lp-player .peniel-radio__chassis { width: 100%; max-width: none; }
#peniel-radio-lp-player .peniel-radio__chassis:has(.peniel-radio__grille--end) {
  grid-template-columns: 4.4rem minmax(0, 1fr) 4.4rem;
  gap: 0.7rem;
  min-height: 13rem;
}
#peniel-radio-lp-player .peniel-radio__grille,
#peniel-radio-lp-player .peniel-radio__grille--end {
  position: relative;
  min-height: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    url("../img/grille.svg") center / cover no-repeat,
    linear-gradient(165deg, #262830 0%, #0c0d10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  contain: paint;
}
#peniel-radio-lp-player .peniel-radio__grille::before,
#peniel-radio-lp-player .peniel-radio__grille--end::before,
#peniel-radio-lp-player .peniel-radio__grille::after,
#peniel-radio-lp-player .peniel-radio__grille--end::after {
  content: none;
}
#peniel-radio-lp-player .peniel-radio__panel {
  display: grid;
  grid-template-columns: minmax(10.5rem, 0.62fr) minmax(0, 1.85fr) minmax(8.2rem, 0.52fr);
  align-items: stretch;
  gap: 0.85rem;
  min-height: 100%;
  padding: 0.85rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(680px 220px at 72% -10%, rgba(185, 28, 28, 0.2), transparent 55%),
    linear-gradient(180deg, #222733 0%, #10131a 55%, #090b10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px rgba(0, 0, 0, 0.38);
}
#peniel-radio-lp-player .peniel-radio__brand-col {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.8rem;
  padding-right: 0.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
#peniel-radio-lp-player .peniel-radio__status,
#peniel-radio-lp-player .peniel-radio__hint { display: none !important; }
#peniel-radio-lp-player .peniel-radio__kicker { font-size: 0.95rem; font-weight: 750; letter-spacing: -0.02em; }
#peniel-radio-lp-player .peniel-radio__subtitle { margin-top: 0.15rem; font-size: 0.72rem; color: #a1a1aa; }
#peniel-radio-lp-player .peniel-radio__controls { display: flex; align-items: center; gap: 0.7rem; }
#peniel-radio-lp-player .peniel-radio__play {
  width: 2.9rem; height: 2.9rem; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.45);
}
#peniel-radio-lp-player .peniel-radio__volume { min-width: 6.2rem; max-width: 8.5rem; }
#peniel-radio-lp-player .peniel-radio__now-col { min-width: 0; display: flex; }
#peniel-radio-lp-player .peniel-radio__stage {
  flex: 1;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 0.35rem; min-height: 100%;
  padding: 0.9rem 1.05rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background:
    linear-gradient(145deg, rgba(185, 28, 28, 0.18), rgba(0, 0, 0, 0.15) 38%, rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.16), transparent 40%);
}
#peniel-radio-lp-player .peniel-radio__stage-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
#peniel-radio-lp-player .peniel-radio__stage-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fca5a5;
}
#peniel-radio-lp-player .peniel-radio__stage-label::before {
  content: ""; width: 0.42rem; height: 0.42rem; border-radius: 999px;
  background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}
#peniel-radio-lp-player .peniel-radio__viz {
  display: flex; align-items: flex-end; justify-content: flex-end;
  gap: 3px; height: 1.85rem;
}
#peniel-radio-lp-player .peniel-radio__viz i {
  display: block; width: 3px; height: 28%; border-radius: 999px;
  background: rgba(248, 113, 113, 0.55); transform-origin: bottom center;
}
#peniel-radio-lp-player .peniel-radio__viz.is-playing i {
  animation: peniel-radio-viz 0.85s ease-in-out infinite;
  background: #f87171;
}
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(1) { animation-delay: 0.05s; height: 35%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(2) { animation-delay: 0.18s; height: 55%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(3) { animation-delay: 0.02s; height: 80%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(4) { animation-delay: 0.28s; height: 45%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(5) { animation-delay: 0.12s; height: 70%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(6) { animation-delay: 0.22s; height: 40%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(7) { animation-delay: 0.08s; height: 90%; }
#peniel-radio-lp-player .peniel-radio__viz i:nth-child(8) { animation-delay: 0.32s; height: 50%; }
#peniel-radio-lp-player .peniel-radio__display {
  margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
#peniel-radio-lp-player .peniel-radio__track {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: #fff;
  white-space: normal;
}
#peniel-radio-lp-player .peniel-radio.is-commercial-break .peniel-radio__track,
#peniel-radio-lp-player .peniel-radio.is-station-ident .peniel-radio__track {
  color: #fff7ed;
}
#peniel-radio-lp-player .peniel-radio.is-commercial-break .peniel-radio__stage-label {
  color: #fcd34d;
}
#peniel-radio-lp-player .peniel-radio__artist { margin: 0.35rem 0 0; color: #d4d4d8; font-size: 0.9rem; }
#peniel-radio-lp-player .peniel-radio__next {
  margin: 0.45rem 0 0; font-size: 0.75rem; color: rgba(212, 212, 216, 0.92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#peniel-radio-lp-player .peniel-radio__progress { display: grid; gap: 0.28rem; margin-top: 0.7rem; }
#peniel-radio-lp-player .peniel-radio__progress-bar {
  height: 0.32rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
#peniel-radio-lp-player .peniel-radio__progress-fill {
  display: block; height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, #9b1b1b, #ef4444);
}
#peniel-radio-lp-player .peniel-radio__progress-times {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.68rem; font-weight: 650; color: rgba(212, 212, 216, 0.9);
}
#peniel-radio-lp-player .peniel-radio__audience {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.55rem;
  padding: 0.9rem 0.8rem; border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.22), rgba(0, 0, 0, 0.45));
}
#peniel-radio-lp-player .peniel-radio__audience-num {
  display: block; font-size: clamp(1.8rem, 2.4vw, 2.3rem); font-weight: 800; line-height: 0.95; color: #fff;
}
#peniel-radio-lp-player .peniel-radio__audience-label {
  display: block; margin-top: 0.3rem; font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fca5a5;
}
#peniel-radio-lp-player .peniel-radio__audience-meta {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.66rem; color: #c4c4cc;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes peniel-radio-viz {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  40% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(0.55); opacity: 0.8; }
}

@media (max-width: 980px) {
  .sanctuary { min-height: 22rem; }
  .sanctuary__copy { padding: 2.4rem 1.3rem 4.2rem; }
  .sanctuary__mark { height: 3.6rem; max-width: 70%; right: 0.8rem; top: 0.9rem; transform: none; padding: 0.4rem 0.55rem 0.25rem; }
  .on-air-page h1 { font-size: 3.1rem; }
  .deck { margin-top: -2.2rem; }
  #peniel-radio-lp-player .peniel-radio__chassis:has(.peniel-radio__grille--end) {
    grid-template-columns: 1fr;
  }
  #peniel-radio-lp-player .peniel-radio__grille { display: none; }
  #peniel-radio-lp-player .peniel-radio__panel { grid-template-columns: 1fr; }
  #peniel-radio-lp-player .peniel-radio__brand-col { border-right: 0; padding-right: 0; }
}

.radio-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}
.radio-theme button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  font-size: 0.78rem;
}
.radio-theme button.is-active { background: #8e1616; color: #fff; }

html.theme-light {
  --ink: #1c1917;
  --muted: rgba(28, 25, 23, 0.62);
  --line: rgba(28, 25, 23, 0.12);
  --bg: #f6f3ee;
  color-scheme: light;
}
html.theme-light .night {
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(185, 28, 28, 0.12), transparent 55%),
    #f6f3ee;
}
html.theme-light .btn { background: #fff; color: #1c1917; border-color: rgba(28, 25, 23, 0.18); }
html.theme-light .btn--gold {
  background: linear-gradient(180deg, #c94141, #8e1616);
  color: #fff;
  border-color: transparent;
}
html.theme-light .brand img {
  background: none;
  border-radius: 0;
  padding: 0;
}
html.theme-light .on-air-page h1,
html.theme-light .room h2,
html.theme-light .room__count strong,
html.theme-light .room__who strong {
  color: #f6f3ee;
}
html.theme-light .room__count span,
html.theme-light .room__who em,
html.theme-light .room__empty {
  color: rgba(246, 243, 238, 0.68);
}
html.theme-light .radio-theme { background: #fff; color: #1c1917; }
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  #peniel-radio-lp-player .peniel-radio__viz.is-playing i { animation: none; }
}
