:root {
  --ink: #080a10;
  --panel: rgba(20, 23, 34, .72);
  --accent: #6d5dfc;
  --accent-rgb: 109, 93, 252;
  --accent-soft: #a9a1ff;
  --text: #f7f8fc;
  --muted: #a8adbd;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { width: 100%; height: 100%; overflow: hidden; background: var(--ink); }

body {
  margin: 0;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--text);
  background: radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb), .2), transparent 44%), var(--ink);
  font-family: "DM Sans", sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 56px));
  height: 100%;
  min-height: 0;
  margin: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(72px, 11vh, 104px);
  min-height: 0;
}

.install-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: 13px;
  padding: 7px 13px 7px 8px;
  background: rgba(var(--accent-rgb), .1);
  color: #eceaff;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.install-button:hover { background: rgba(var(--accent-rgb), .2); transform: translateY(-1px); }
.install-icon { display: grid; width: 30px; height: 30px; border-radius: 9px; place-items: center; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; line-height: 1; }
.install-copy { display: grid; gap: 1px; text-align: left; }
.install-copy small { color: var(--accent-soft); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.install-copy b { color: #f1efff; font: 700 10px "DM Sans", sans-serif; }
.install-button[hidden] { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font: 700 14px "DM Sans", sans-serif;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
#navMonogram { color: var(--accent-soft); font-size: 11px; font-weight: 800; }

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.045);
  color: #dfe2ec;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.live-pill span, .eyebrow > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4f64;
  box-shadow: 0 0 0 5px rgba(255,79,100,.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  height: calc(100% - clamp(72px, 11vh, 104px));
  min-height: 0;
  padding: clamp(12px, 2.5vh, 30px) 0 clamp(18px, 4vh, 50px);
}

.identity { display: grid; place-items: center; min-width: 0; }

.logo-stage {
  position: relative;
  display: grid;
  width: min(100%, 450px, 52vh);
  aspect-ratio: 1;
  place-items: center;
}

.logo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .38) 0, rgba(var(--accent-rgb), .15) 34%, transparent 68%);
  opacity: .75;
}

.logo-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  box-shadow: 0 28px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.13);
  transform: rotate(-3deg);
}

.logo-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%);
  content: "";
  pointer-events: none;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 11%;
}

#monogram {
  color: var(--text);
  font: 800 clamp(48px, 7vw, 82px)/.82 "DM Sans", sans-serif;
  letter-spacing: -.07em;
  text-align: center;
}

.signal {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-radius: 50%;
}

.signal-one { inset: 3%; }
.signal-two { inset: 15%; }

.content { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 22px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow > span:first-child { background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .12); }

h1 {
  max-width: 700px;
  margin: 0;
  font: 800 clamp(46px, 6.4vw, 88px)/.94 "DM Sans", sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}

#description {
  max-width: 580px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
}

.player-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 620px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 16px 18px 16px 16px;
  background: linear-gradient(110deg, rgba(35,39,54,.96), rgba(20,23,34,.96));
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
}

.play-button {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 0;
  border-radius: 18px;
  place-items: center;
  background: var(--accent);
  box-shadow: 0 12px 35px rgba(var(--accent-rgb), .38);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.play-button:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 42px rgba(var(--accent-rgb), .48); }
.play-button:active { transform: scale(.96); }
.play-button:focus-visible, .volume-button:focus-visible, #socials a:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .45); outline-offset: 3px; }

.track-info { min-width: 0; }
.track-info small { display: block; margin-bottom: 5px; color: var(--accent-soft); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.track-info strong { display: block; overflow: hidden; font: 700 15px "DM Sans", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.now-artist { display: block; overflow: hidden; margin-top: 2px; color: #9298aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.equalizer {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 12px;
  margin-top: 10px;
  opacity: .32;
}

.equalizer i { width: 3px; height: 12px; border-radius: 3px; background: var(--accent-soft); transform: scaleY(.28); transform-origin: bottom; transition: transform .18s ease; }
.equalizer i:nth-child(2n) { height: 8px; transform: scaleY(.36); }
.equalizer i:nth-child(3n) { height: 11px; transform: scaleY(.22); }
.player-card.playing .equalizer { opacity: 1; }
.player-card.playing .equalizer i { transform: scaleY(.75); }
.player-card.playing .equalizer i:nth-child(2n) { transform: scaleY(.52); }
.player-card.playing .equalizer i:nth-child(3n) { transform: scaleY(1); }
.player-card.playing .equalizer i:nth-child(4n) { transform: scaleY(.64); }

.volume-button {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  place-items: center;
  background: rgba(255,255,255,.055);
  color: #dfe2ec;
  cursor: pointer;
  font-size: 19px;
}

.actions { margin-top: 30px; }
.actions > p { margin: 0 0 12px; color: #787e90; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
#socials { display: flex; flex-wrap: wrap; gap: 9px; }

#socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.04);
  color: #d9dce6;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

#socials a:hover { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .12); transform: translateY(-2px); }
#socials a span { color: var(--accent-soft); font-size: 10px; }
#socials .social-whatsapp { border-color: rgba(37, 211, 102, .3); background: rgba(37, 211, 102, .1); color: #dfffea; }
#socials .social-whatsapp span { color: #25d366; }
#socials .social-whatsapp:hover { border-color: rgba(37, 211, 102, .7); background: rgba(37, 211, 102, .18); }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 56px));
  margin: auto;
  border-top: 1px solid rgba(255,255,255,.07);
  min-height: 54px;
  padding: 17px 0;
  color: #686e80;
  font-size: 10px;
  letter-spacing: .05em;
}

footer a { color: #8e94a5; text-decoration: none; }
footer strong { color: #c9cdd8; }

.install-help {
  width: min(430px, calc(100% - 30px));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  padding: 0;
  background: #121521;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
}

.install-help::backdrop { background: rgba(3,4,8,.9); }
.install-help > div { position: relative; padding: 34px; text-align: center; }
.install-help .eyebrow { justify-content: center; margin: 18px 0 10px; }
.install-help h2 { margin: 0; font: 800 28px "DM Sans", sans-serif; letter-spacing: -.04em; }
.install-help p:not(.eyebrow) { margin: 14px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.install-help-icon { display: grid; width: 58px; height: 58px; margin: auto; border-radius: 18px; place-items: center; background: rgba(var(--accent-rgb), .15); color: var(--accent-soft); font-size: 28px; }
.install-help-close { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; color: #878d9e; cursor: pointer; font-size: 24px; }
.install-help-accept { width: 100%; border: 0; border-radius: 14px; padding: 14px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 800; }

@media (max-width: 900px) {
  body { background: radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb), .15), transparent 48%), var(--ink); }
  .logo-glow { display: none; }
  .logo-card { box-shadow: 0 18px 48px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.13); }
  .player-card { box-shadow: 0 12px 36px rgba(0,0,0,.22); }
  .hero { grid-template-columns: 1fr; grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(8px, 2vh, 22px); padding-top: 0; text-align: center; }
  .logo-stage { width: min(56vw, 34vh, 340px); }
  .content { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { justify-content: center; }
  #description { margin: clamp(10px, 2vh, 20px) 0 clamp(14px, 2.5vh, 26px); }
  .player-card { width: min(100%, 620px); text-align: left; }
  .actions { display: grid; justify-items: center; }
  #socials { justify-content: center; }
}

@media (max-width: 560px) {
  .site-shell, footer { width: min(100% - 30px, 1180px); }
  .topbar { height: 68px; }
  .brand { max-width: 48%; }
  #navName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { height: calc(100% - 68px); padding: 14px 0 14px; }
  .logo-stage { width: min(58vw, 29vh, 250px); }
  .logo-card { width: 76%; border-radius: 25%; }
  h1 { font-size: clamp(34px, 11vw, 54px); }
  #description { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .player-card { gap: 13px; margin-top: 6px; border-radius: 19px; padding: 13px; }
  .play-button { width: 52px; height: 52px; border-radius: 16px; }
  .volume-button { display: none; }
  .live-pill { padding: 8px 10px; }
  footer { min-height: 58px; align-items: center; flex-direction: row; gap: 8px; padding: 7px 0; text-align: center; }
  footer > span { display: none; }
  footer a { margin-left: auto; }
  footer .install-button { padding: 5px 10px 5px 6px; }
  footer .install-icon { width: 28px; height: 28px; }
}

@media (max-width: 390px) {
  #navName { display: none; }
  .brand { width: 38px; }
  footer a { font-size: 8px; }
}

@media (max-height: 680px) {
  .actions { margin-top: 15px; }
  .actions > p { display: none; }
  .eyebrow { margin-bottom: 10px; }
  #description { margin-top: 10px; margin-bottom: 14px; }
  .player-card { padding-top: 11px; padding-bottom: 11px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .site-shell, footer { width: min(100% - 30px, 1180px); }
  .topbar { height: 58px; }
  .hero { height: calc(100% - 58px); grid-template-columns: minmax(180px, .65fr) minmax(360px, 1.35fr); grid-template-rows: 1fr; gap: 30px; padding: 10px 0; text-align: left; }
  .logo-stage { width: min(35vw, 54vh, 250px); }
  .content { align-items: flex-start; }
  .eyebrow { justify-content: flex-start; }
  h1 { font-size: clamp(30px, 7vw, 52px); }
  #description { display: none; }
  .player-card { width: min(100%, 560px); }
  .actions { display: none; }
  footer { position: fixed; right: 15px; bottom: 10px; display: block; width: auto; min-height: 0; border: 0; padding: 0; }
  footer > span, footer > a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
