* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cor-do-texto);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 18, .52), rgba(3, 6, 12, .92)),
    url("../img/background.png") center / cover fixed no-repeat,
    #050812;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(0, 69, 177, .35), transparent 34%);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: .75rem;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: calc(.55rem + env(safe-area-inset-top)) clamp(.85rem, 3vw, 1.4rem) .55rem;
  background: var(--cor-da-barra);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--cor-do-icone);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.nav-icon sl-icon {
  font-size: 1.35rem;
}

.nav-title {
  min-width: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-items: center;
  width: min(100%, 760px);
  min-height: calc(100vh - 58px - env(safe-area-inset-top));
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 2rem) calc(1.25rem + env(safe-area-inset-bottom));
  gap: clamp(.9rem, 2vh, 1.4rem);
}

.radio-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
}

.brand-stage {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background:
    #fff url("../img/logo.png") center / 78% auto no-repeat;
  box-shadow: 0 30px 75px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .1);
}

.brand-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, .14));
}

.player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: .45rem;
  min-height: 34px;
  padding: .45rem .7rem;
  border-radius: 8px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(3, 7, 16, .76);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}

.live-pill span {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #a8b3c7;
  box-shadow: 0 0 0 .25rem rgba(168, 179, 199, .16);
}

.live-pill strong {
  font: inherit;
}

.live-pill.is-live span {
  background: #26e66f;
  box-shadow: 0 0 0 .25rem rgba(38, 230, 111, .18);
}

.live-pill.is-loading span {
  background: #ffd166;
  box-shadow: 0 0 0 .25rem rgba(255, 209, 102, .18);
}

.channel-select {
  width: min(100%, 420px);
  margin: 0 auto;
}

.hide {
  display: none;
}

.cantor {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 2.7rem;
  color: var(--cor-do-texto);
  text-align: center;
}

.cantor > span {
  display: -webkit-box;
  max-width: min(100%, 620px);
  overflow: hidden;
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
  cursor: pointer;
}

.control-panel {
  display: grid;
  grid-template-columns: 48px minmax(76px, 96px) 48px;
  grid-template-areas:
    "down play up"
    "label label label";
  align-items: center;
  justify-content: center;
  gap: .7rem 1rem;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: .95rem 1rem;
  border-radius: 8px;
  background: rgba(8, 12, 22, .7);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
}

.play-shell {
  grid-area: play;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(76px, 18vw, 92px);
  height: clamp(76px, 18vw, 92px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--cor-do-icone);
  background: var(--cor-da-barra);
  box-shadow: 0 16px 35px rgba(0, 69, 177, .42);
  cursor: pointer;
}

.play-shell::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 3px solid transparent;
  border-top-color: rgba(52, 213, 255, .95);
  border-right-color: rgba(38, 230, 111, .85);
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}

.play-shell.is-playing::before {
  opacity: 1;
  animation: playRing 1.2s linear infinite;
}

.play-shell.is-loading::before {
  opacity: .75;
  border-top-color: rgba(255, 209, 102, .95);
  border-right-color: rgba(255, 255, 255, .45);
  animation: playRing .85s linear infinite;
}

.play-button {
  position: relative;
  z-index: 1;
  font-size: clamp(2.8rem, 10vw, 3.7rem);
}

@keyframes playRing {
  to {
    transform: scale(.94) rotate(360deg);
  }
}

.volume-shell {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--cor-do-icone);
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
}

.volume-shell:active {
  transform: scale(.96);
}

.volume-shell sl-icon {
  font-size: 1.9rem;
}

#volMenos {
  grid-area: down;
}

#volMais {
  grid-area: up;
}

.volume-label {
  grid-area: label;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

.compartilhar {
  margin-left: .75rem;
}

sl-drawer::part(header) {
  min-height: 64px;
}

sl-drawer::part(title) {
  font-weight: 800;
}

sl-menu-label::part(base) {
  color: rgba(255, 255, 255, .56);
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

sl-menu-item::part(base) {
  min-height: 48px;
  border-radius: 8px;
  color: #fff;
}

sl-button::part(base) {
  border-radius: 8px;
}

@media (max-width: 420px) {
  .app-shell {
    min-height: calc(100svh - 58px - env(safe-area-inset-top));
    padding-top: .85rem;
    gap: .85rem;
  }

  .brand-stage {
    width: min(100%, 330px);
  }

  .control-panel {
    gap: .65rem .85rem;
    padding: .85rem;
  }
}

@media (max-height: 700px) {
  .app-shell {
    gap: .65rem;
  }

  .brand-stage {
    width: min(100%, 270px);
  }

  .cantor {
    min-height: 2.2rem;
  }

  .control-panel {
    padding-block: .75rem;
  }
}
