/* Tema — sobrescrito por config.js */
:root {
  --color-primary: #1a6fb5;
  --color-primary-dark: #0d4a80;
  --color-primary-light: #5bb3f0;
  --color-bg-light: #e8f4fd;
  --color-accent: #f0a500;
  --color-accent-light: #ffd35a;
  --color-accent-stop: #5bb3f0;
  --audio-energy: 0;
  --color-dark: #1a1a2e;
  --color-white: #ffffff;
  --color-bg-gray: #0f1e2e;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Mobile (base) */
  --brand-size: clamp(1.05rem, 4.5vw, 1.35rem);
  --text-link-size: clamp(0.78rem, 2.8vw, 0.92rem);
  --control-size: clamp(68px, 20vw, 88px);
  --control-svg: clamp(28px, 8vw, 36px);
  --globe-size: clamp(130px, 42vw, 200px);
  --on-air-gap-x: clamp(1.35rem, 5vw, 2.85rem);
  --on-air-plate-width: clamp(6.25rem, 18vw, 8.25rem);
  --block-title: clamp(0.95rem, 3.8vw, 1.1rem);
  --partners-title: clamp(1.5rem, 6vw, 2rem);
  --app-padding: clamp(0.85rem, 3vw, 1.25rem);
  --stage-gap: clamp(1.25rem, 4vw, 2rem);
}

@media (min-width: 1024px) {
  :root {
    --brand-size: clamp(1.75rem, 2.2vw, 2.5rem);
    --text-link-size: clamp(0.85rem, 1vw, 1rem);
    --control-size: clamp(110px, 9vw, 140px);
    --control-svg: 48px;
    --globe-size: clamp(220px, 22vw, 360px);
    --block-title: clamp(1.1rem, 1.2vw, 1.35rem);
    --partners-title: clamp(2rem, 2.5vw, 3rem);
    --app-padding: clamp(1.5rem, 2.5vw, 3rem);
    --stage-gap: 2.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-white);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cenário 3D / grelha neon */
.scene {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

.scene__glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(26, 111, 181, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(91, 179, 240, 0.1), transparent 60%),
    linear-gradient(180deg, #0f1e2e 0%, var(--color-dark) 55%, #0a1220 100%);
  z-index: 0;
  pointer-events: none;
}

.scene__grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(26, 111, 181, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 111, 181, 0.35) 1px, transparent 1px);
  background-size: 48px 32px;
  transform: perspective(520px) rotateX(58deg) scale(2.2) translateY(-8%);
  transform-origin: center 80%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 85%, transparent 100%);
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--app-padding);
  padding-bottom: calc(var(--app-padding) + var(--safe-bottom));
}

/* Website e redes sociais */
.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 2vw, 0.65rem);
  justify-content: center;
}

.social-bar:empty {
  display: none;
}

.block--social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.block--social:has(.social-bar:empty) {
  display: none;
}

.block__title--social {
  font-size: clamp(1.45rem, 6.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  color: var(--color-accent-light);
  text-align: center;
  align-self: center;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(0.85rem, 3.5vw, 1.15rem);
  text-shadow:
    0 0 22px rgba(255, 211, 90, 0.55),
    0 0 42px rgba(240, 165, 0, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Stage layout */
.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--stage-gap);
}

.stage__lower {
  display: flex;
  flex-direction: column;
  gap: var(--stage-gap);
}

/* Hero + controls */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  text-align: center;
  width: 100%;
}

.hero__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 1.5rem);
  width: 100%;
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hero__volume-rail {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__brand-row {
  position: relative;
  display: block;
  width: var(--globe-size);
  min-height: var(--globe-size);
  margin-inline: auto;
}

.on-air-sign {
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.on-air-sign__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--on-air-plate-width);
  min-height: clamp(2.35rem, 7vw, 3.1rem);
  padding: 0.55rem 1rem;
  border-radius: 7px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #221816 0%, #0f0c0b 55%, #1a1412 100%);
  border: 2px solid #3a2c28;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -3px 6px rgba(0, 0, 0, 0.65),
    0 3px 10px rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.on-air-sign__text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3.1vw, 1.32rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  color: rgba(140, 36, 36, 0.38);
  text-shadow: none;
  transition:
    color 0.45s ease,
    text-shadow 0.45s ease,
    filter 0.45s ease;
}

body.is-audio-playing .on-air-sign__plate {
  border-color: rgba(255, 90, 70, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 200, 0.16),
    inset 0 -2px 5px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(255, 55, 40, 0.55),
    0 0 28px rgba(255, 40, 32, 0.38);
}

body.is-audio-playing .on-air-sign__text {
  color: #ff5248;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.45),
    0 0 10px rgba(255, 80, 65, 1),
    0 0 22px rgba(255, 50, 42, 0.95),
    0 0 38px rgba(255, 35, 28, 0.62);
  animation: onAirSignPulse 2.4s ease-in-out infinite;
}

@keyframes onAirSignPulse {
  0%,
  100% {
    filter: brightness(1.05);
  }

  50% {
    filter: brightness(1.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-audio-playing .on-air-sign__text {
    animation: none;
    filter: brightness(1.1);
  }
}

.hero__globe-wrap {
  position: relative;
  width: var(--globe-size);
  height: var(--globe-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-trigger {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 50%;
  outline: none;
  transition: filter var(--transition), box-shadow var(--transition);
}

.hero-logo-trigger.is-holding .hero__globe {
  filter: drop-shadow(0 0 28px rgba(91, 179, 240, 0.75));
}

body.is-audio-playing .hero-logo-trigger:not(.is-holding) .hero__globe {
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.65))
    drop-shadow(0 0 48px rgba(255, 255, 255, 0.38));
}

.hero-logo-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(91, 179, 240, 0.55);
}

.hero__rings {
  position: absolute;
  inset: -8%;
  pointer-events: none;
}

.hero__rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
}

.hero.is-playing .hero__rings span {
  animation: pulse-ring 2.4s ease-out infinite;
}

.hero.is-playing .hero__rings span:nth-child(2) {
  animation-delay: 0.8s;
}

.hero.is-playing .hero__rings span:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.hero__globe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(26, 111, 181, 0.4));
  transition: filter 0.45s ease;
}

.player-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 3vw, 1.25rem);
  width: 100%;
  max-width: min(100%, 320px);
}

.player-controls__center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2.5vw, 0.75rem);
  flex-shrink: 0;
}

.hero__volume-rail .volume-control {
  flex: 1;
  min-width: 0;
}

.volume-control {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.volume-control__label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
}

.volume-control__icon {
  width: clamp(18px, 5vw, 22px);
  height: clamp(18px, 5vw, 22px);
}

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

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary) var(--volume-pct, 50%),
    rgba(255, 255, 255, 0.15) var(--volume-pct, 50%),
    rgba(255, 255, 255, 0.15) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.volume-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

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

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.control {
  width: var(--control-size);
  height: var(--control-size);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
  flex-shrink: 0;
}

.control--toggle {
  background: linear-gradient(145deg, #42a5f5, #1565c0);
  box-shadow:
    0 0 30px rgba(66, 165, 245, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
  position: relative;
}

.control__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.control__icon svg {
  width: var(--control-svg);
  height: var(--control-svg);
}

.control__icon--play {
  opacity: 1;
  transform: scale(1);
}

.control__icon--play svg {
  margin-left: 4px;
}

.control__icon--stop {
  opacity: 0;
  transform: scale(0.6);
}

.hero.is-playing .control--toggle {
  background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
  box-shadow:
    0 0 30px rgba(26, 111, 181, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.hero.is-playing .control__icon--play {
  opacity: 0;
  transform: scale(0.6);
}

.hero.is-playing .control__icon--stop {
  opacity: 1;
  transform: scale(1);
}

.control:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.control:active {
  transform: scale(0.96);
}

.hero.is-playing .control--toggle {
  box-shadow: 0 0 40px rgba(26, 111, 181, 0.55);
}

.hero.is-loading .control--toggle {
  animation: btn-pulse 1.2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero__status {
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
  margin-bottom: 0;
}

.player-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  max-width: min(100%, 340px);
}

.player-refresh__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.25rem, 9vw, 2.65rem);
  height: clamp(2.25rem, 9vw, 2.65rem);
  padding: 0;
  border: 2px solid rgba(91, 179, 240, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.player-refresh__btn svg {
  width: clamp(1.15rem, 4.5vw, 1.35rem);
  height: clamp(1.15rem, 4.5vw, 1.35rem);
}

.player-refresh__btn:hover,
.player-refresh__btn:focus-visible {
  transform: scale(1.05);
  border-color: var(--color-primary-light);
  background: rgba(26, 111, 181, 0.7);
  box-shadow: 0 0 16px rgba(91, 179, 240, 0.3);
  outline: none;
}

.player-refresh__btn:active {
  transform: scale(0.96);
}

.player-refresh__btn.is-spinning svg {
  animation: refresh-spin 0.65s ease-in-out;
}

.player-refresh__info {
  position: relative;
  flex-shrink: 0;
}

.player-refresh__info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 1.5px solid rgba(91, 179, 240, 0.45);
  border-radius: 50%;
  background: rgba(26, 111, 181, 0.25);
  color: var(--color-primary-light);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.player-refresh__info-btn:hover,
.player-refresh__info-btn:focus-visible {
  background: rgba(26, 111, 181, 0.45);
  border-color: var(--color-primary-light);
  color: #fff;
  outline: none;
}

.player-refresh__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: min(16rem, 72vw);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 30, 46, 0.96);
  border: 1px solid rgba(91, 179, 240, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: clamp(0.72rem, 2.2vw, 0.8rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.player-refresh__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 30, 46, 0.96);
}

@media (hover: hover) and (pointer: fine) {
  .player-refresh__info:hover .player-refresh__tooltip,
  .player-refresh__info:focus-within .player-refresh__tooltip {
    opacity: 1;
    visibility: visible;
  }
}

.player-refresh__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

@keyframes refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.hero.has-error .hero__status {
  color: #ff8a80;
}

/* Weather widget */
.weather {
  --weather-glow-sun: rgba(255, 201, 58, 0.38);
  --weather-glow-rain: rgba(91, 179, 240, 0.32);
  --weather-glow-cloud: rgba(200, 220, 240, 0.22);

  position: relative;
  width: 100%;
  max-width: min(100%, 420px);
  margin-inline: auto;
  padding: clamp(0.65rem, 2.2vw, 0.9rem) clamp(0.7rem, 2.2vw, 0.95rem);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(26, 111, 181, 0.18) 0%, rgba(15, 30, 46, 0.72) 42%, rgba(26, 26, 46, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(91, 179, 240, 0.38);
  border-radius: 18px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(240, 165, 0, 0.06) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.weather::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary-light) 25%,
    var(--color-accent) 50%,
    var(--color-primary-light) 75%,
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

.weather::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(91, 179, 240, 0.14), transparent 68%);
  pointer-events: none;
}

.weather[hidden] {
  display: none;
}

.weather__header {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(0.5rem, 1.8vw, 0.65rem);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(91, 179, 240, 0.15);
}

.weather__title {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
}

.weather__location {
  color: var(--color-primary-light);
  font-weight: 700;
}

.weather__days {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.8vw, 0.6rem);
}

.weather__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: clamp(0.5rem, 1.8vw, 0.65rem) clamp(0.35rem, 1.2vw, 0.5rem) clamp(0.45rem, 1.5vw, 0.55rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.32) 100%);
  border: 1px solid rgba(91, 179, 240, 0.22);
  border-radius: 14px;
  text-align: center;
  min-height: 7.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.weather__day--clear,
.weather__day--partly {
  border-color: rgba(240, 165, 0, 0.22);
}

.weather__day--rain,
.weather__day--drizzle,
.weather__day--showers {
  border-color: rgba(91, 179, 240, 0.28);
}

.weather__label {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 2vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 111, 181, 0.35);
  border: 1px solid rgba(91, 179, 240, 0.28);
}

.weather__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.75rem, 9vw, 3.2rem);
  height: clamp(2.75rem, 9vw, 3.2rem);
  margin: 0.1rem 0;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
}

.weather__icon::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.weather__icon svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.weather__icon--clear::before,
.weather__icon--partly::before {
  background: radial-gradient(circle, var(--weather-glow-sun) 0%, transparent 72%);
}

.weather__icon--cloudy::before,
.weather__icon--fog::before,
.weather__icon--unknown::before {
  background: radial-gradient(circle, var(--weather-glow-cloud) 0%, transparent 72%);
}

.weather__icon--drizzle::before,
.weather__icon--rain::before,
.weather__icon--showers::before {
  background: radial-gradient(circle, var(--weather-glow-rain) 0%, transparent 72%);
}

.weather__icon--thunder::before {
  background: radial-gradient(circle, rgba(255, 201, 58, 0.28) 0%, rgba(91, 179, 240, 0.2) 45%, transparent 72%);
}

.weather__icon--snow::before {
  background: radial-gradient(circle, rgba(232, 244, 253, 0.35) 0%, transparent 72%);
}

.weather__desc {
  font-size: clamp(0.7rem, 2.1vw, 0.78rem);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem;
}

.weather__temps {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 2.6vw, 0.98rem);
  font-weight: 700;
  line-height: 1;
  margin-top: 0.05rem;
}

.weather__min {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.weather__sep {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  font-size: 0.85em;
}

.weather__max {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(240, 165, 0, 0.25);
}

.weather--error .weather__days {
  min-height: 4.5rem;
  align-items: center;
}

.weather__fallback {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 0.5rem;
  font-size: clamp(0.76rem, 2.3vw, 0.86rem);
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.weather--loading .weather__day--skeleton {
  min-height: 7.15rem;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 8%,
    rgba(91, 179, 240, 0.12) 18%,
    rgba(255, 255, 255, 0.03) 33%
  );
  background-size: 200% 100%;
  animation: weather-shimmer 1.4s ease infinite;
  border-color: rgba(91, 179, 240, 0.14);
}

@keyframes weather-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Blocks: podcasts & partners */
.block__title {
  font-family: var(--font-display);
  font-size: var(--block-title);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.block[hidden] {
  display: none;
}

.em-alta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
}

/* Partners carousel — 1 slide visível em todos os tamanhos */
.partners-carousel {
  --partners-visible: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Text link buttons (social & podcasts) */
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem clamp(0.85rem, 3vw, 1.15rem);
  font-family: var(--font-display);
  font-size: var(--text-link-size);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  color: #0a1a14;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  flex-shrink: 0;
}

.podcast-bar a.text-link:hover,
.podcast-bar a.text-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 111, 181, 0.35);
  outline: none;
}

/* Redes sociais — cores de marca e texto claro (mobile + desktop) */
.social-bar .text-link {
  color: #fff;
  background-color: var(--color-primary);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.social-bar a.text-link:hover,
.social-bar a.text-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.social-bar .text-link--website {
  background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
  border-color: rgba(91, 179, 240, 0.45);
}

.social-bar .text-link--linkedin {
  background: linear-gradient(180deg, #0a66c2 0%, #004182 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.social-bar .text-link--facebook {
  background: linear-gradient(180deg, #1877f2 0%, #0e4f9f 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.social-bar .text-link--instagram {
  background: linear-gradient(
    135deg,
    #f9ce34 0%,
    #ee2a7b 42%,
    #d62976 58%,
    #962fbf 78%,
    #4f5bd5 100%
  );
  border-color: rgba(255, 255, 255, 0.2);
}

.social-bar .text-link--whatsapp {
  background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.social-bar a.text-link--website:hover,
.social-bar a.text-link--website:focus-visible {
  box-shadow: 0 6px 22px rgba(91, 179, 240, 0.55);
}

.social-bar a.text-link--linkedin:hover,
.social-bar a.text-link--linkedin:focus-visible {
  box-shadow: 0 6px 22px rgba(10, 102, 194, 0.55);
}

.social-bar a.text-link--facebook:hover,
.social-bar a.text-link--facebook:focus-visible {
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.5);
}

.social-bar a.text-link--instagram:hover,
.social-bar a.text-link--instagram:focus-visible {
  box-shadow: 0 6px 22px rgba(238, 42, 123, 0.45);
}

.social-bar a.text-link--whatsapp:hover,
.social-bar a.text-link--whatsapp:focus-visible {
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.social-bar a.text-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.podcast-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.45rem, 2vw, 0.65rem);
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.65rem, 2.5vw, 1rem);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(26, 111, 181, 0.4);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 0 24px rgba(26, 111, 181, 0.12);
}

.block--podcasts {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.block__title--podcasts {
  color: var(--color-accent);
  text-align: center;
  align-self: center;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.partners-carousel__controls {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 0.5rem);
  width: 100%;
}

.partners-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: clamp(10px, 2.5vw, 18px);
  padding-inline: 0;
  box-sizing: border-box;
  border-radius: 12px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.partners-carousel__viewport.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.partners-carousel__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.25rem, 8vw, 2.75rem);
  height: clamp(2.25rem, 8vw, 2.75rem);
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(91, 179, 240, 0.55);
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.partners-carousel__nav svg {
  width: clamp(1.35rem, 4.5vw, 1.65rem);
  height: clamp(1.35rem, 4.5vw, 1.65rem);
  fill: currentColor;
}

.partners-carousel__nav:hover:not(:disabled),
.partners-carousel__nav:focus-visible:not(:disabled) {
  transform: scale(1.06);
  border-color: var(--color-primary-light);
  background: rgba(26, 111, 181, 0.65);
  box-shadow: 0 0 18px rgba(91, 179, 240, 0.35);
  outline: none;
}

.partners-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.partners-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.partners-carousel.is-instant .partners-carousel__track {
  transition: none;
}

.partners-carousel__slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0;
}

.partner-card {
  position: relative;
  overflow: visible;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0 clamp(0.25rem, 1vw, 0.65rem) clamp(0.25rem, 1vw, 0.65rem);
  height: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(26, 111, 181, 0.35);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition);
}

.partner-card > * {
  position: relative;
  z-index: 1;
}

body.is-audio-playing .partner-card {
  border-color: rgba(91, 179, 240, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(91, 179, 240, 0.12);
}

a.partner-card {
  cursor: pointer;
}

div.partner-card {
  cursor: default;
}

.partner-card:hover,
.partner-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(26, 111, 181, 0.3);
  outline: none;
}

body.is-audio-playing .partner-card:hover,
body.is-audio-playing .partner-card:focus-visible {
  border-color: rgba(91, 179, 240, 0.5);
}

.partner-card:active {
  transform: scale(0.98);
}

.partner-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  isolation: isolate;
  line-height: 0;
}

body.is-audio-playing .partner-card__media {
  overflow: visible;
  background: transparent;
}

body.is-audio-playing .partner-card__media img,
body.is-audio-playing .partner-card__media .partner-card__placeholder {
  animation: partnerMediaRgbDropGlow 8s linear infinite;
}

@keyframes partnerMediaRgbDropGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 5px 14px rgba(255, 42, 109, 0.72))
      drop-shadow(0 8px 30px rgba(255, 42, 109, 0.48))
      drop-shadow(0 10px 46px rgba(255, 42, 109, 0.26))
      drop-shadow(5px 7px 20px rgba(255, 42, 109, 0.4))
      drop-shadow(-5px 7px 20px rgba(255, 42, 109, 0.4));
  }

  16% {
    filter:
      drop-shadow(0 5px 14px rgba(255, 123, 46, 0.72))
      drop-shadow(0 8px 30px rgba(255, 123, 46, 0.48))
      drop-shadow(0 10px 46px rgba(255, 123, 46, 0.26))
      drop-shadow(5px 7px 20px rgba(255, 123, 46, 0.4))
      drop-shadow(-5px 7px 20px rgba(255, 123, 46, 0.4));
  }

  33% {
    filter:
      drop-shadow(0 5px 14px rgba(255, 225, 74, 0.72))
      drop-shadow(0 8px 30px rgba(255, 225, 74, 0.48))
      drop-shadow(0 10px 46px rgba(255, 225, 74, 0.26))
      drop-shadow(5px 7px 20px rgba(255, 225, 74, 0.4))
      drop-shadow(-5px 7px 20px rgba(255, 225, 74, 0.4));
  }

  50% {
    filter:
      drop-shadow(0 5px 14px rgba(61, 255, 122, 0.72))
      drop-shadow(0 8px 30px rgba(61, 255, 122, 0.48))
      drop-shadow(0 10px 46px rgba(61, 255, 122, 0.26))
      drop-shadow(5px 7px 20px rgba(61, 255, 122, 0.4))
      drop-shadow(-5px 7px 20px rgba(61, 255, 122, 0.4));
  }

  66% {
    filter:
      drop-shadow(0 5px 14px rgba(56, 217, 255, 0.72))
      drop-shadow(0 8px 30px rgba(56, 217, 255, 0.48))
      drop-shadow(0 10px 46px rgba(56, 217, 255, 0.26))
      drop-shadow(5px 7px 20px rgba(56, 217, 255, 0.4))
      drop-shadow(-5px 7px 20px rgba(56, 217, 255, 0.4));
  }

  83% {
    filter:
      drop-shadow(0 5px 14px rgba(107, 92, 255, 0.72))
      drop-shadow(0 8px 30px rgba(107, 92, 255, 0.48))
      drop-shadow(0 10px 46px rgba(107, 92, 255, 0.26))
      drop-shadow(5px 7px 20px rgba(107, 92, 255, 0.4))
      drop-shadow(-5px 7px 20px rgba(107, 92, 255, 0.4));
  }
}

.partner-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(91, 179, 240, 0.35);
  border-radius: 8px;
  box-sizing: border-box;
}

.partner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 8px 8px 0 0;
}

.partner-card__title {
  width: 100%;
  margin: 0;
  padding: clamp(0.65rem, 2vw, 1rem) clamp(0.75rem, 2.5vw, 1.25rem);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--color-accent-light);
  border-top: 1px solid rgba(91, 179, 240, 0.35);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0;
  min-height: clamp(3rem, 10vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.partner-card__hint {
  margin: 0;
  padding: 0.45rem clamp(0.65rem, 2vw, 0.85rem) 0.65rem;
  font-size: clamp(0.74rem, 2.3vw, 0.84rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: var(--color-accent);
  border-top: 1px solid rgba(91, 179, 240, 0.15);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 0 0 8px 8px;
}

.partner-card:not(:has(.partner-card__hint)) .partner-card__title:not(.is-empty) {
  border-radius: 0 0 8px 8px;
}

.partner-card__title.is-empty {
  border-top: none;
  background: #000;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body.is-audio-playing .partner-card__media img,
  body.is-audio-playing .partner-card__media .partner-card__placeholder {
    animation: none;
    filter:
      drop-shadow(0 5px 14px rgba(200, 220, 255, 0.6))
      drop-shadow(0 8px 30px rgba(200, 220, 255, 0.36))
      drop-shadow(0 10px 46px rgba(200, 220, 255, 0.2))
      drop-shadow(5px 7px 20px rgba(200, 220, 255, 0.32))
      drop-shadow(-5px 7px 20px rgba(200, 220, 255, 0.32));
  }
}

/* Mobile — sem cursor de volume; logo, play e NO AR centrados */
@media (max-width: 1023px) {
  .hero__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 2.5vw, 0.85rem);
    width: 100%;
    max-width: 100%;
  }

  .hero__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: clamp(0.55rem, 2.5vw, 0.85rem);
  }

  .hero__center {
    width: 100%;
  }

  .hero__brand-row {
    margin-inline: auto;
  }

  .player-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  .hero__volume-rail {
    display: none;
  }

  .player-controls__center {
    justify-content: center;
    align-items: center;
  }

  .on-air-sign {
    position: static;
    top: auto;
    left: auto;
    margin-left: 0;
  }

  .on-air-sign__plate {
    width: clamp(4.1rem, 24vw, 5.15rem);
    min-height: clamp(1.85rem, 6vw, 2.35rem);
    padding: 0.38rem 0.62rem;
  }

  .on-air-sign__text {
    font-size: clamp(0.68rem, 2.4vw, 0.82rem);
    letter-spacing: 0.18em;
  }

  .hero__status {
    max-width: min(100%, 320px);
    margin-inline: auto;
    text-align: center;
  }

  .player-refresh {
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
  }
}

/* Mobile: player → Em Alta → tempo → Mais sobre a RCM → podcasts */
@media (max-width: 1023px) {
  .stage__lower {
    display: contents;
  }

  .hero {
    order: 1;
  }

  .block--partners {
    order: 2;
    margin-top: 0;
  }

  .weather {
    order: 3;
  }

  .block--social {
    order: 4;
    width: 100%;
  }

  .block--social .social-bar {
    justify-content: center;
    max-width: 100%;
  }

  .block--podcasts {
    order: 5;
  }

  .block--partners .em-alta-heading {
    margin-top: 0;
  }
}

/* Modal admin */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #1a2332;
  border: 1px solid rgba(91, 179, 240, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal__box h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal__box p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.modal__box input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #3a4f66;
  background: #0f1419;
  color: #fff;
  font: inherit;
  margin-bottom: 1rem;
}

.modal__box input:focus {
  outline: 2px solid var(--color-primary);
}

.modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.modal__btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.modal__btn--ghost {
  background: transparent;
  color: #9eb0c4;
  border: 1px solid #3a4f66;
}

.modal__btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.modal__error {
  color: #ef9a9a;
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 1.25rem;
  text-align: center;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__link {
  color: inherit;
  text-decoration: none;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  outline: none;
}

.footer__install {
  margin-top: 0.6rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

/* ——— Desktop ——— */
@media (min-width: 1024px) {
  :root {
    --globe-size: clamp(200px, 18vw, 280px);
  }

  .app {
    max-width: 1600px;
  }

  .block--social {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    align-items: flex-end;
    width: auto;
    max-width: min(100%, 52%);
    pointer-events: none;
  }

  .block--social .social-bar {
    justify-content: flex-end;
    pointer-events: auto;
    gap: 0.5rem;
  }

  .block--social .social-bar .text-link {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    padding: 0.48rem clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 700;
  }

  .block--social .social-bar .text-link--website {
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
    border-color: rgba(91, 179, 240, 0.45);
  }

  .block--social .social-bar .text-link--linkedin {
    background: linear-gradient(180deg, #0a66c2 0%, #004182 100%);
  }

  .block--social .social-bar .text-link--facebook {
    background: linear-gradient(180deg, #1877f2 0%, #0e4f9f 100%);
  }

  .block--social .social-bar .text-link--instagram {
    background: linear-gradient(
      135deg,
      #f9ce34 0%,
      #ee2a7b 42%,
      #d62976 58%,
      #962fbf 78%,
      #4f5bd5 100%
    );
  }

  .block--social .social-bar .text-link--whatsapp {
    background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
  }

  .block--social .social-bar a.text-link--website:hover,
  .block--social .social-bar a.text-link--website:focus-visible {
    box-shadow: 0 6px 22px rgba(91, 179, 240, 0.55);
  }

  .block--social .social-bar a.text-link--linkedin:hover,
  .block--social .social-bar a.text-link--linkedin:focus-visible {
    box-shadow: 0 6px 22px rgba(10, 102, 194, 0.55);
  }

  .block--social .social-bar a.text-link--facebook:hover,
  .block--social .social-bar a.text-link--facebook:focus-visible {
    box-shadow: 0 6px 22px rgba(24, 119, 242, 0.5);
  }

  .block--social .social-bar a.text-link--instagram:hover,
  .block--social .social-bar a.text-link--instagram:focus-visible {
    box-shadow: 0 6px 22px rgba(238, 42, 123, 0.45);
  }

  .block--social .social-bar a.text-link--whatsapp:hover,
  .block--social .social-bar a.text-link--whatsapp:focus-visible {
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  }

  .block--social .social-bar a.text-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
  }

  .block__title--social {
    display: none;
  }

  .stage {
    display: grid;
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 1.25rem 2rem;
    align-items: start;
    min-height: calc(100dvh - 100px);
  }

  .hero,
  .weather,
  .block--social,
  .block--podcasts,
  .block--partners {
    order: unset;
  }

  .hero {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding-top: 0;
    min-height: 0;
  }

  .hero__row {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.25rem, 2vw, 2rem);
    max-width: 100%;
    margin: 0;
    width: 100%;
    display: flex;
  }

  .hero__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
  }

  .hero__center {
    align-items: flex-start;
    margin-top: -0.75rem;
  }

  .hero__brand-row {
    width: min(100%, calc(var(--globe-size) + var(--on-air-gap-x) + var(--on-air-plate-width)));
    margin-inline: 0;
  }

  .on-air-sign {
    position: absolute;
    top: clamp(0px, 0.6vw, 8px);
    left: calc(var(--globe-size) + var(--on-air-gap-x));
    z-index: 2;
    margin-left: 0;
  }

  .hero__volume-rail {
    min-height: 0;
    padding: 0;
  }

  .hero__volume-rail .volume-slider {
    transform: none;
    width: 100%;
    height: 8px;
  }

  .em-alta-heading {
    font-size: clamp(2.75rem, 4.5vw, 4.5rem);
    margin-bottom: 1.25rem;
  }

  .player-controls {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: min(100%, 340px);
    gap: 1rem;
    display: flex;
  }

  .player-controls__center {
    display: flex;
    flex-shrink: 0;
  }

  .player-controls .control--toggle {
    flex-shrink: 0;
  }

  .hero__volume-rail {
    flex: 1;
    min-width: 0;
  }

  .hero__volume-rail .volume-control {
    flex: 1;
    min-width: 0;
  }

  .hero__status {
    text-align: left;
    max-width: 340px;
  }

  .player-refresh {
    justify-content: flex-start;
    max-width: 340px;
  }

  .player-refresh__tooltip {
    left: 0;
    transform: none;
    text-align: left;
  }

  .player-refresh__tooltip::after {
    left: 1.5rem;
    transform: none;
  }

  .weather {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    max-width: min(100%, 340px);
    margin-inline: 0;
  }

  .weather__title {
    text-align: left;
  }

  .stage__lower {
    display: contents;
  }

  .block--podcasts {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    padding-bottom: 0.5rem;
    align-items: center;
  }

  .block--partners {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    width: 100%;
    padding-left: 0;
  }

  .partners-carousel__nav {
    width: 3rem;
    height: 3rem;
  }

  .partners-carousel__nav svg {
    width: 1.85rem;
    height: 1.85rem;
  }

  .block--partners .partner-card__title {
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    min-height: 4.25rem;
  }

  .partners-carousel {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .partners-carousel__viewport {
    width: 100%;
  }

  .block--partners .partners-carousel {
    --partners-visible: 1;
  }

  .block--partners .partner-card__media {
    width: 100%;
  }
}

/* Mobile compact — menos scroll na primeira ecrã (≤640px; desktop inalterado) */
@media (max-width: 640px) {
  :root {
    --text-link-size: 0.68rem;
    --control-size: 56px;
    --control-svg: 22px;
    --globe-size: clamp(96px, 27vw, 112px);
    --on-air-gap-x: clamp(0.7rem, 4vw, 1.05rem);
    --on-air-plate-width: clamp(5rem, 30vw, 6.35rem);
    --app-padding: 0.6rem 0.7rem;
    --stage-gap: 0.65rem;
  }

  .app {
    padding-bottom: calc(0.5rem + var(--safe-bottom));
  }

  .block--social .social-bar {
    justify-content: center;
    gap: 0.28rem;
  }

  .block--social .text-link {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
    border-width: 1.5px;
    min-height: 2rem;
  }

  .block__title--social {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    margin-bottom: 0.65rem;
    letter-spacing: 0.08em;
  }

  .stage {
    gap: var(--stage-gap);
  }

  .hero {
    gap: 0.4rem;
  }

  .hero__row {
    gap: 0.45rem;
  }

  .hero__globe {
    filter: drop-shadow(0 0 16px rgba(26, 111, 181, 0.35));
  }

  .player-controls__center {
    gap: 0.5rem;
  }

  .control {
    border-width: 2px;
  }

  .volume-control {
    gap: 0.15rem;
  }

  .volume-control__icon {
    width: 16px;
    height: 16px;
  }

  .volume-slider {
    height: 6px;
  }

  .volume-slider::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    margin-top: -4.5px;
  }

  .volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
  }

  .hero__status {
    font-size: 0.72rem;
    line-height: 1.25;
    max-width: 260px;
  }

  .player-refresh {
    margin-top: 0.3rem;
    gap: 0.35rem;
    max-width: min(100%, 280px);
  }

  .player-refresh__btn {
    width: 2rem;
    height: 2rem;
    border-width: 1.5px;
  }

  .player-refresh__btn svg {
    width: 1rem;
    height: 1rem;
  }

  .player-refresh__info-btn {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.65rem;
  }

  /* Weather — faixa minimalista */
  .weather {
    max-width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 12px;
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .weather::after {
    display: none;
  }

  .weather__header {
    margin-bottom: 0.3rem;
    padding-bottom: 0.28rem;
  }

  .weather__title {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
  }

  .weather__days {
    gap: 0.3rem;
  }

  .weather__day {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    min-height: 0;
    padding: 0.35rem 0.4rem;
    border-radius: 10px;
  }

  .weather__desc {
    display: none;
  }

  .weather__label {
    font-size: 0.58rem;
    padding: 0.08rem 0.32rem;
    flex-shrink: 0;
    min-width: 2.65rem;
    text-align: center;
  }

  .weather__icon {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    flex-shrink: 0;
  }

  .weather__icon::before {
    inset: 0;
  }

  .weather__temps {
    margin-top: 0;
    margin-left: auto;
    font-size: 0.7rem;
    gap: 0.12rem;
    flex-shrink: 0;
  }

  .weather--loading .weather__day--skeleton,
  .weather--error .weather__days {
    min-height: 2.5rem;
  }

  .weather__fallback {
    padding: 0.45rem 0.35rem;
    font-size: 0.72rem;
  }

  /* Mais sobre a RCM — compacto */
  .block--social {
    gap: 0.35rem;
  }

  .block__title--social {
    font-size: clamp(1.1rem, 5.2vw, 1.35rem);
    margin-bottom: 0.45rem;
  }

  .block--social .text-link {
    padding: 0.32rem 0.62rem;
    font-size: 0.66rem;
    border-width: 1px;
    min-height: 1.95rem;
  }

  /* Podcasts — compacto */
  .block--podcasts {
    gap: 0.35rem;
  }

  .block__title--podcasts {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .block--podcasts .text-link {
    padding: 0.28rem 0.5rem;
    font-size: 0.66rem;
    border-width: 1.5px;
    min-height: 1.95rem;
  }

  .podcast-bar {
    gap: 0.28rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
  }

  .footer {
    padding-top: 0.65rem;
  }

  .footer__copy {
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) and (max-height: 760px) {
  :root {
    --stage-gap: 0.5rem;
    --globe-size: clamp(88px, 24vw, 104px);
    --control-size: 52px;
    --control-svg: 20px;
  }

  .hero {
    gap: 0.3rem;
  }

  .hero__row {
    gap: 0.35rem;
  }

  .hero__status {
    font-size: 0.68rem;
  }

  .player-refresh {
    margin-top: 0.2rem;
  }

  .weather {
    padding: 0.32rem 0.42rem;
  }

  .weather__icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  .block__title--podcasts {
    margin-bottom: 0.28rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 1280px) {
  .scene__grid {
    background-size: 64px 40px;
  }
}
