/* ============================================================
   Rádio PWA — folha de estilos principal
   Mobile first: a interface sempre usa a largura de um celular.
   ============================================================ */

:root {
  --red: #e01b24;
  --red-bright: #f0343b;
  --red-deep: #a90f16;
  --amber: #f5a11a;
  --ink: #24150f;
  --ink-soft: #5b473d;
  --white: #ffffff;
  --glass: rgba(22, 8, 4, 0.34);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-space: 78px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1b0b06 radial-gradient(120% 100% at 50% 0%, #4a1d0d 0%, #1b0b06 62%, #0d0503 100%);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  color: #24150f;
  text-align: center;
  z-index: 200;
}

/* ---------- Estrutura ---------- */

.app-shell {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--red-deep);
}

.bg {
  position: absolute;
  inset: -2px;
  z-index: 0;
  background-color: #c71b21;
  background-image:
    linear-gradient(180deg,
      rgba(14, 4, 2, 0.58) 0%,
      rgba(14, 4, 2, 0.12) 24%,
      rgba(48, 10, 3, 0.12) 48%,
      rgba(24, 5, 2, 0.5) 74%,
      rgba(12, 3, 2, 0.88) 100%),
    url("../assets/images/background.png");
  background-image:
    linear-gradient(180deg,
      rgba(14, 4, 2, 0.58) 0%,
      rgba(14, 4, 2, 0.12) 24%,
      rgba(48, 10, 3, 0.12) 48%,
      rgba(24, 5, 2, 0.5) 74%,
      rgba(12, 3, 2, 0.88) 100%),
    image-set(
      url("../assets/images/background.webp") type("image/webp"),
      url("../assets/images/background.png") type("image/png"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 55% at 50% 34%, transparent 40%, rgba(40, 6, 2, 0.28) 100%);
  pointer-events: none;
}

.top-fade {
  position: absolute;
  inset: 0 0 auto;
  z-index: 15;
  height: calc(var(--safe-top) + 92px);
  background: linear-gradient(180deg,
    rgba(10, 3, 2, 0.55) 0%,
    rgba(10, 3, 2, 0.32) 46%,
    rgba(10, 3, 2, 0) 100%);
  pointer-events: none;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.screen--player {
  padding: calc(var(--safe-top) + 66px) 18px calc(var(--safe-bottom) + var(--nav-space));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.screen--player[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.screen--player::-webkit-scrollbar {
  display: none;
}

/* ---------- Barra superior ---------- */

.topbar {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.topbar__right {
  position: relative;
  pointer-events: auto;
}

.topbar .chrome-btn {
  pointer-events: auto;
}

.chrome-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--white);
  background: rgba(24, 8, 4, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.2s;
}

.chrome-btn:hover {
  background: rgba(30, 10, 5, 0.42);
}

.chrome-btn:active {
  transform: scale(0.93);
}

.chrome-btn--solid {
  background: rgba(255, 255, 255, 0.14);
}

.chrome-btn.is-active {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.22);
}

.timer-badge {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #35170f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

/* ---------- Tela do player ---------- */

.player {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.8svh, 16px);
}

.player__stage {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2svh, 20px);
}

.artwork {
  position: relative;
  width: clamp(156px, min(68vw, 34svh), 272px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.artwork::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: -1;
  background: radial-gradient(circle at 50% 55%, rgba(255, 112, 68, 0.45), transparent 66%);
  filter: blur(18px);
}

.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 7px rgba(255, 255, 255, 0.07);
}

.live-pill {
  position: absolute;
  top: 11px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(199, 20, 30, 0.93);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s;
}

.live-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: live-pulse 1.7s ease-in-out infinite;
}

.live-pill.is-paused {
  background: rgba(28, 16, 12, 0.72);
}

.live-pill.is-paused .live-pill__dot {
  background: #d9cbc4;
  animation: none;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.visualizer span {
  width: 5px;
  height: 100%;
  border-radius: 6px;
  background: var(--white);
  transform: scaleY(0.32);
  transform-origin: center;
}

.visualizer.is-active {
  opacity: 0.95;
}

.visualizer.is-active span {
  animation: equalize 1s ease-in-out infinite;
}

.visualizer.is-active span:nth-child(1) {
  animation-delay: -0.55s;
  animation-duration: 0.9s;
}

.visualizer.is-active span:nth-child(2) {
  animation-delay: -0.2s;
  animation-duration: 1.15s;
}

.visualizer.is-active span:nth-child(3) {
  animation-delay: -0.7s;
  animation-duration: 0.8s;
}

.visualizer.is-active span:nth-child(4) {
  animation-delay: -0.35s;
  animation-duration: 1.05s;
}

.visualizer.is-active span:nth-child(5) {
  animation-delay: -0.8s;
  animation-duration: 0.95s;
}

@keyframes equalize {
  0%, 100% { transform: scaleY(0.3); }
  35% { transform: scaleY(1); }
  65% { transform: scaleY(0.55); }
}

.track {
  width: 100%;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.track__name,
.track__sub {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.track__name {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.track__sub {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0.84;
}

.marquee__text {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
  will-change: transform;
}

.track__name.is-scrolling .marquee__text,
.track__sub.is-scrolling .marquee__text {
  animation: marquee var(--scroll-duration, 10s) ease-in-out infinite alternate;
}

@keyframes marquee {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--scroll-distance, -20px)); }
}

.player__controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(180deg, var(--red-bright), var(--red) 55%, var(--red-deep));
  box-shadow:
    0 18px 34px rgba(170, 8, 16, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 0 8px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.2s;
}

.play:hover {
  box-shadow:
    0 20px 40px rgba(170, 8, 16, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 0 8px rgba(255, 255, 255, 0.08);
}

.play:active {
  transform: scale(0.95);
}

.play svg {
  width: 38px;
  height: 38px;
}

.play .icon-play {
  margin-left: 3px;
}

.play .icon-pause,
.play.is-playing .icon-play {
  display: none;
}

.play.is-playing .icon-pause {
  display: block;
}

.play.is-buffering .icon-play,
.play.is-buffering .icon-pause {
  display: none;
}

.play__spinner {
  display: none;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.play.is-buffering .play__spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-line {
  min-height: 15px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
  transition: opacity 0.2s, color 0.2s;
}

.status-line[data-state="error"] {
  color: #ffe0e0;
  opacity: 1;
}

.status-line[data-state="live"] {
  opacity: 0.82;
}

.volume {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume .icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.volume .icon-btn:active {
  transform: scale(0.9);
}

.volume .icon-btn .icon {
  width: 23px;
  height: 23px;
}

.volume .icon-vol-off {
  display: none;
}

.volume.is-muted .icon-vol-on {
  display: none;
}

.volume.is-muted .icon-vol-off {
  display: block;
}

.volume.is-muted .range,
.volume.is-muted .icon-vol-end {
  opacity: 0.45;
}

.icon-vol-end {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.range {
  flex: 1;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.95) var(--fill, 85%),
    rgba(255, 255, 255, 0.3) var(--fill, 85%),
    rgba(255, 255, 255, 0.3) 100%);
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
}

.range::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.95);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.range:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 99px;
}

/* ---------- Redes sociais ---------- */

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.social-link:active {
  transform: scale(0.9);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-link svg[data-stroke="true"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Modo soneca ---------- */

.screen--timer {
  z-index: 30;
  padding-top: calc(var(--safe-top) + 6px);
  background-color: #2c0b06;
  background-image:
    linear-gradient(180deg, rgba(18, 5, 3, 0.86) 0%, rgba(70, 14, 5, 0.55) 45%, rgba(18, 5, 3, 0.92) 100%),
    url("../assets/images/background.png");
  background-image:
    linear-gradient(180deg, rgba(18, 5, 3, 0.86) 0%, rgba(70, 14, 5, 0.55) 45%, rgba(18, 5, 3, 0.92) 100%),
    image-set(
      url("../assets/images/background.webp") type("image/webp"),
      url("../assets/images/background.png") type("image/png"));
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3%);
  transition: opacity 0.26s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.screen--timer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.timer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 4px;
}

.timer-head h2 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timer-head__spacer {
  width: 46px;
  flex: 0 0 auto;
}

.timer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3svh, 26px);
  padding: 6px 20px calc(var(--safe-bottom) + 22px);
}

.dial {
  position: relative;
  width: clamp(232px, 74vw, 312px);
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
  outline: none;
}

.dial:active {
  cursor: grabbing;
}

.dial:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 6px;
  border-radius: 50%;
}

.dial svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0.5 0.5;
}

.dial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 4;
}

.dial-progress {
  fill: none;
  stroke: var(--white);
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 130px 130px;
  transition: stroke-dashoffset 0.2s linear;
}

.dial-handle {
  fill: var(--white);
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.35));
  transition: cx 0.2s linear, cy 0.2s linear;
}

.dial.is-dragging .dial-progress,
.dial.is-dragging .dial-handle {
  transition: none;
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}

.dial-center span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

.dial-center strong {
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.preset {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.preset:active {
  transform: scale(0.95);
}

.preset.is-active {
  border-color: var(--white);
  background: var(--white);
  color: #35150d;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(100%, 280px);
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: #2a120b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s var(--ease), background 0.2s, color 0.2s;
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: #1d0b06;
  color: var(--white);
}

.pill-btn__icon {
  width: 20px;
  height: 20px;
}

.timer-note {
  max-width: 280px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
  opacity: 0.62;
}

/* ---------- Menu lateral ---------- */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(12, 4, 2, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: min(86%, 342px);
  display: flex;
  flex-direction: column;
  border-radius: 0 26px 26px 0;
  background: #fffdfb;
  color: var(--ink);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer__head {
  padding: calc(var(--safe-top) + 22px) 22px 20px;
  background: linear-gradient(160deg, #fff3e5 0%, #fffaf6 72%);
  border-bottom: 1px solid #f2e8e1;
}

.drawer__logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(120, 40, 20, 0.18);
}

.drawer__head h2 {
  margin: 14px 0 2px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.drawer__head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #806b60;
}

.drawer__install {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 12px 2px;
  padding: 11px 12px;
  border: 1px solid #ffd8b5;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff3e4, #ffe8d3);
  color: #4f2415;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.drawer__install:hover {
  background: linear-gradient(135deg, #ffedda, #ffddc0);
}

.drawer__install:active {
  transform: scale(0.985);
}

.drawer__install-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fffdfb;
  color: #c3141d;
  box-shadow: 0 5px 14px rgba(120, 40, 20, 0.12);
}

.drawer__install-icon .icon {
  width: 21px;
  height: 21px;
}

.drawer__install-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.drawer__install-text strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

.drawer__install-text small {
  color: #8a6550;
  font-size: 11px;
  line-height: 1.3;
}

.drawer__install-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.45;
  transform: rotate(180deg);
}

.drawer__nav {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__nav-label {
  margin: 8px 12px 5px;
  color: #a1887a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer__divider {
  height: 1px;
  margin: 9px 12px;
  background: #f2e8e1;
}

.drawer__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #2b1e18;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
}

.drawer__item:hover,
.drawer__item:active {
  background: #faf2ec;
}

.drawer__item.is-current {
  background: #fdf0e6;
  color: #a3121c;
}

.drawer__item.is-current .icon {
  color: #c3141d;
  opacity: 1;
}

.drawer__item .icon {
  width: 22px;
  height: 22px;
  opacity: 0.68;
}

.drawer__item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.drawer__section {
  padding: 15px 22px calc(var(--safe-bottom) + 18px);
  border-top: 1px solid #f2e8e1;
  background: #fffdfb;
}

.drawer__label {
  margin: 0 0 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1887a;
}

.version {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4d3c33;
}

.version > .icon {
  width: 21px;
  height: 21px;
  opacity: 0.55;
}

.version strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.version small {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: #8d786c;
}

.net {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 11.5px;
  font-weight: 500;
  color: #7a655a;
}

.net__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.14);
}

.net__dot.is-offline {
  background: #d95858;
  box-shadow: 0 0 0 3px rgba(217, 88, 88, 0.14);
}

/* ---------- Diálogos ---------- */

dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(10, 4, 2, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog-card {
  display: flex;
  flex-direction: column;
  max-height: min(82dvh, 660px);
  padding: 22px;
  border-radius: 24px;
  background: #fffdfb;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dialog-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4ece5;
  color: #4d3c33;
  cursor: pointer;
  transition: background 0.2s;
}

.dialog-close:hover {
  background: #ece0d7;
}

.dialog-close .icon {
  width: 18px;
  height: 18px;
}

.dialog-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  font-size: 14px;
  line-height: 1.65;
  color: #4d3c33;
  -webkit-user-select: text;
  user-select: text;
  scrollbar-width: thin;
}

.dialog-body p {
  margin: 0 0 10px;
}

.dialog-body h4 {
  margin: 18px 0 5px;
  font-size: 13.5px;
  font-weight: 800;
  color: #261713;
}

.dialog-body strong {
  color: #261713;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.dialog-copy {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f4ece5;
  color: #4d3c33;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.dialog-copy:hover {
  background: #ece0d7;
}

/* ---------- Avisos ---------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 22px);
  z-index: 80;
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 7, 4, 0.92);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.24s, transform 0.24s, visibility 0.24s;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Splash ---------- */

.splash {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #d51c24;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash img {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(80, 0, 4, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.22);
  animation: splash-breathe 1.8s ease-in-out infinite;
}

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


/* ---------- Páginas internas ---------- */

.screen--page {
  z-index: 2;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: calc(var(--safe-top) + 74px) 18px calc(var(--safe-bottom) + var(--nav-space) + 14px);
  scroll-padding-bottom: calc(var(--safe-bottom) + var(--nav-space) + 14px);
  background: linear-gradient(180deg,
    rgba(18, 5, 3, 0.58) 0%,
    rgba(16, 5, 3, 0.88) 28%,
    rgba(10, 3, 2, 0.97) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.26s var(--ease), visibility 0.26s;
}

.screen--page.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.screen--page::-webkit-scrollbar {
  display: none;
}

.page-head {
  margin-bottom: 20px;
}

.page-kicker {
  margin: 0 0 6px;
  color: #ffd7a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-sub {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

/* Agora no ar */

.on-air {
  position: relative;
  overflow: hidden;
  padding: 17px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(224, 27, 36, 0.9), rgba(130, 9, 17, 0.92));
  box-shadow: 0 18px 40px rgba(90, 4, 8, 0.34);
}

.on-air::after {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -65%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 94, 0.35), transparent 62%);
  pointer-events: none;
}

.on-air > * {
  position: relative;
  z-index: 1;
}

.on-air__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.on-air__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 3, 2, 0.28);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.on-air__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe1a8;
  box-shadow: 0 0 0 3px rgba(255, 225, 168, 0.16);
  animation: live-pulse 1.7s ease-in-out infinite;
}

.on-air__time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.on-air h2 {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.on-air p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  line-height: 1.4;
}

.on-air__bar {
  height: 4px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.26);
}

.on-air__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--white);
  transition: width 0.6s linear;
}

.on-air--empty {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.on-air--empty .on-air__tag--muted {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

/* Dias e lista da programação */

.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: 18px 0 12px;
}

.day-tab {
  position: relative;
  padding: 9px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.65);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.day-tab.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd08a;
  transform: translateX(-50%);
}

.day-tab.is-active {
  border-color: var(--white);
  background: var(--white);
  color: #35150d;
}

.day-tab.is-active.is-today::after {
  background: var(--red);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.show {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.052);
  transition: background 0.2s, border-color 0.2s;
}

.show.is-live {
  border-color: rgba(255, 151, 120, 0.42);
  background: linear-gradient(135deg, rgba(224, 27, 36, 0.22), rgba(255, 255, 255, 0.07));
}

.show__time {
  flex: 0 0 51px;
  padding-top: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.show__time strong {
  display: block;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
}

.show.is-live .show__time strong {
  color: #ffd5a2;
}

.show__body {
  flex: 1;
  min-width: 0;
}

.show__body h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.show__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11.5px;
  line-height: 1.4;
}

.show__badge {
  display: none;
  align-self: center;
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--white);
  color: #a30f16;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.show.is-live .show__badge {
  display: inline-flex;
}

.page-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10.5px;
  text-align: center;
}

.schedule-empty,
.team-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Equipe */

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

.team-card {
  position: relative;
  overflow: hidden;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.team-card::after {
  content: "";
  position: absolute;
  right: -45%;
  top: -55%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 92, 0.12), transparent 65%);
  pointer-events: none;
}

.team-card.is-live {
  border-color: rgba(255, 170, 90, 0.45);
  box-shadow: 0 12px 30px rgba(90, 4, 8, 0.18);
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7b43a, #e01b24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.team-card:nth-child(4n + 2) .team-avatar {
  background: linear-gradient(135deg, #ffd36e, #e05a1b);
}

.team-card:nth-child(4n + 3) .team-avatar {
  background: linear-gradient(135deg, #ff9f6e, #b3121d);
}

.team-card:nth-child(4n + 4) .team-avatar {
  background: linear-gradient(135deg, #e8c06a, #992a12);
}

.team-card h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.team-role {
  display: block;
  margin-bottom: 7px;
  color: #ffd49a;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-bio {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.team-live {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--white);
  color: #a90f16;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.team-card.is-live .team-live {
  display: inline-flex;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.callout strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.callout p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
  line-height: 1.4;
}

.callout__link {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: #2a120b;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

/* Pedido */

.order-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
}

.order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wa-circle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.14);
  color: #63f3a1;
}

.wa-circle .icon {
  width: 24px;
  height: 24px;
}

.order-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.order-head small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.quick-chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.quick-chip:active {
  background: rgba(255, 255, 255, 0.14);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  -webkit-user-select: text;
  user-select: text;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  font-size: 15px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.28);
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #31e178, #1aa94f);
  color: #063515;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(11, 120, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s;
}

.wa-btn:active {
  transform: scale(0.98);
}

.wa-btn .icon {
  width: 22px;
  height: 22px;
}

.order-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
}

.info-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.info-card h2 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- Menu inferior ---------- */

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 7px 8px calc(var(--safe-bottom) + 7px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(20, 7, 3, 0.84), rgba(12, 3, 2, 0.97));
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-item .icon {
  width: 21px;
  height: 21px;
  transition: color 0.2s, transform 0.2s;
}

.nav-item.is-active {
  color: var(--white);
}

.nav-item.is-active .icon {
  color: #ffd08a;
  transform: translateY(-1px);
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #ffd08a;
  box-shadow: 0 0 10px rgba(255, 208, 138, 0.55);
}

.nav-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

/* ---------- Ajustes de tela ---------- */

@media (max-height: 700px) {
  :root {
    --nav-space: 68px;
  }

  .screen--player {
    padding-top: calc(var(--safe-top) + 58px);
    padding-bottom: calc(var(--safe-bottom) + var(--nav-space));
  }

  .screen--page {
    padding-top: calc(var(--safe-top) + 66px);
  }

  .player {
    gap: 7px;
  }

  .player__stage {
    gap: 8px;
  }

  .artwork {
    width: clamp(144px, min(66vw, 30svh), 210px);
  }

  .artwork img {
    border-radius: 24px;
  }

  .visualizer {
    height: 20px;
  }

  .track {
    min-height: 58px;
    gap: 1px;
  }

  .track__name {
    font-size: 19px;
  }

  .track__sub {
    font-size: 13px;
  }

  .player__controls {
    gap: 6px;
  }

  .play {
    width: 76px;
    height: 76px;
  }

  .play svg {
    width: 33px;
    height: 33px;
  }

  .volume {
    max-width: 330px;
  }

  .socials {
    min-height: 46px;
    padding: 3px 6px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .social-link svg {
    width: 19px;
    height: 19px;
  }

  .timer-body {
    gap: 14px;
    padding-bottom: calc(var(--safe-bottom) + 14px);
  }

  .dial {
    width: clamp(210px, 66vw, 256px);
  }

  .pill-btn {
    min-height: 50px;
  }
}

@media (max-width: 360px) {
  .track__name {
    font-size: 20px;
  }

  .page-head h1 {
    font-size: 25px;
  }

  .team-card {
    padding: 14px 12px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .social-link svg {
    width: 19px;
    height: 19px;
  }

  .preset {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (min-height: 680px) {
  body {
    padding: 24px;
  }

  .app-shell {
    height: min(900px, calc(100dvh - 48px));
    border-radius: 38px;
    box-shadow:
      0 44px 90px rgba(0, 0, 0, 0.58),
      0 0 0 1px rgba(255, 255, 255, 0.09);
  }

  .topbar {
    top: calc(var(--safe-top) + 18px);
    left: 20px;
    right: 20px;
  }

  .screen--player {
    padding-top: calc(var(--safe-top) + 78px);
    padding-left: 26px;
    padding-right: 26px;
  }

  .screen--timer {
    padding-top: calc(var(--safe-top) + 14px);
  }

  .screen--page {
    padding-left: 26px;
    padding-right: 26px;
  }

  .bottom-nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .drawer {
    border-radius: 0 30px 30px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
