body.radio-maquete {
  background: #794420;
  isolation: isolate;
}
body.radio-maquete::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/fundo-viva.jpeg") center / cover no-repeat;
}
.radio-maquete .wrap { width: min(100%, 1080px); padding: 12px 10px 60px; }
.radio-maquete .viva-head { margin-bottom: 11px; }
.radio-marca {
  width: clamp(190px, 61vw, 320px);
  aspect-ratio: 2 / 1;
  margin: auto;
  background: url("logotipo-radio-viva-nitido.png") center / contain no-repeat;
}
.radio-maquete .viva-head p { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px auto 9px; font-size: clamp(14px, 4.6vw, 24px); }
.radio-maquete .viva-head p::before, .radio-maquete .viva-head p::after { content: ""; width: clamp(12px, 6vw, 28px); border-top: 1px solid; }
.radio-maquete .viva-weather { border-color: #fff; background: #754723; padding: 3px 9px; white-space: nowrap; font-size: clamp(9px, 2.65vw, 13px); }
.radio-maquete .listen-entry { border: 0; margin: 0 0 12px; padding: 0; }
.radio-maquete .listen-buttons { display: flex; justify-content: center; }
.radio-maquete #listen-continuous { width: auto; min-height: 44px; padding: 7px 15px; font-size: clamp(13px, 3.8vw, 18px); border: 1.5px solid #fff; border-radius: 999px; background: linear-gradient(100deg, #7800ea, #ec0089); }
.radio-maquete .library:has(#grid) { margin: 0; padding: 0; border: 0; }
.radio-maquete .library-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.radio-maquete #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.radio-maquete #grid .card { min-height: 0; border-color: #fff; border-radius: 12% / 22%; aspect-ratio: 344 / 177; }
@media (min-width: 740px) { .radio-maquete #grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.radio-agenda { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 0 15px; border: 1px solid #fff; border-radius: 999px; text-decoration: none; font-weight: 700; }

.radio-maquete #grid .card {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  padding: 7px 41% 7px 7%;
  align-items: center;
  border: 1.5px solid #fff;
  background: radial-gradient(ellipse at 52% 0, #b68048, transparent 64%), linear-gradient(145deg, #925b31, #6f411f);
}
.radio-maquete #grid .card::before {
  content: ''; position: absolute; pointer-events: none; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0, #ffe1a499, transparent 43%), radial-gradient(ellipse at 50% 100%, #ffd58d66, transparent 43%);
}
.radio-maquete #grid .card b {
  position: relative; z-index: 1; margin: 0;
  font: 700 clamp(12px, 3.8vw, 22px)/1.12 Arial, sans-serif;
  color: #fff; overflow-wrap: normal;
}
.radio-maquete #grid .card span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.card-illustration { position: absolute; right: 4%; top: 13%; width: 43%; height: 58%; object-fit: contain; overflow: hidden; mask-image: radial-gradient(ellipse, black 48%, transparent 79%); }
.radio-maquete #grid .card::after {
  content: ''; position: absolute; right: 8%; bottom: 10%;
  width: 12%; aspect-ratio: 1;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4l15 8-15 8z' fill='none' stroke='%23ffc72b' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.episode-list { display: grid; gap: 10px; margin-top: 12px; }
.episode-card { display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 64px; padding: 9px; text-align: left; border-color: #fff; border-radius: 14px; }
.episode-card img { width: 32%; max-width: 180px; aspect-ratio: 16/9; object-fit: contain; border-radius: 8px; }
.listen-all { height: auto; min-height: 48px; padding: 10px 16px; font-size: 16px; border-color: #fff; }
.card-status { padding: 9px 12px; background: #613719; border-radius: 10px; }
@media (min-width:740px) {
  .radio-maquete #grid .card b { font-size: clamp(12px, 1.9vw, 22px); }
}

.radio-maquete .viva-head { position: relative; }
.radio-back { position: absolute; top: 0; left: 0; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #fff; border-radius: 50%; color: #fff; background: transparent; text-decoration: none; font: 36px/1 Arial, sans-serif; }
.radio-back span { transform: translateY(-2px); }

/* A faixa mantém uma linha; em ecrãs pequenos permite deslocação horizontal. */
.radio-maquete .viva-weather { overflow-x: auto; max-width: 100%; box-sizing: border-box; scrollbar-width: thin; text-align: left; }
.radio-maquete .viva-weather select { width: auto; max-width: 110px; min-height: 0; height: auto; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; vertical-align: baseline; }
.radio-maquete .viva-weather option { background: #754723; color: #fff; }
.radio-maquete .viva-weather a { color: inherit; }
.radio-maquete .viva-weather select:focus-visible, .radio-maquete .viva-weather a:focus-visible { outline: 2px solid #ffd557; outline-offset: 1px; }
