:root {
  --night: #170824;
  --plum: #2b0c3e;
  --wine: #5a1650;
  --magenta: #c2338f;
  --coral: #ff4f7b;
  --orange: #ff9a3c;
  --gold: #ffcc33;
  --cream: #fff3e0;
  --cream-dim: rgba(255, 243, 224, 0.68);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.11);
  --glass-line: rgba(255, 255, 255, 0.12);
  --live: #ff3b4e;
  --amber: #ffb547;

  --font-ui: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--night);
  background-image: radial-gradient(130% 75% at 50% 100%, #8a2450 0%, var(--wine) 32%, var(--plum) 62%, var(--night) 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

.app {
  display: flex;
  flex-direction: column;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 59, 78, 0.14);
  border: 1px solid rgba(255, 59, 78, 0.45);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.pill[data-state="live"] .dot { animation: blink 1.4s ease-in-out infinite; }
.pill[data-state="connecting"] {
  background: rgba(255, 181, 71, 0.14);
  border-color: rgba(255, 181, 71, 0.45);
}
.pill[data-state="connecting"] .dot { background: var(--amber); animation: blink 0.8s ease-in-out infinite; }
.pill[data-state="off"] {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--cream-dim);
}
.pill[data-state="off"] .dot { background: var(--cream-dim); }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.lang button {
  min-width: 40px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-dim);
  font: 700 0.75rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--night);
}
.lang button { position: relative; }
/* A touch area about 44px tall, bigger than the button looks */
.lang button::after {
  content: "";
  position: absolute;
  inset: -11px 0;
}
.lang button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- hero: logo + play button ---------- */

.hero {
  text-align: center;
  margin-top: 20px;
}

.logo {
  position: relative;
  width: min(86vw, 360px);
  margin: 0 auto;
}
/* warm sunset glow behind the logo */
.logo::before {
  content: "";
  position: absolute;
  inset: -12% -10% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 60, 0.38) 0%, rgba(255, 79, 123, 0.14) 45%, transparent 70%);
  opacity: 0.8;
  transition: opacity 0.6s ease;
}
body[data-play="playing"] .logo::before {
  opacity: 1;
  animation: breathe 4s ease-in-out infinite;
}
.logo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.4));
}

.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 0;
  margin: 18px auto 0;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 214, 92, 0.14), 0 14px 34px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.play:hover { transform: scale(1.05); }
.play:active { transform: scale(0.96); }
.play:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.play svg {
  grid-area: 1 / 1;
  width: 38px;
  height: 38px;
  fill: currentColor;
}
.play .icon-play { margin-left: 5px; }
.play .icon-pause { display: none; }
body[data-play="playing"] .play .icon-play,
body[data-play="connecting"] .play .icon-play { display: none; }
body[data-play="playing"] .play .icon-pause,
body[data-play="connecting"] .play .icon-pause { display: block; }

.play .spinner {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  opacity: 0;
}
body[data-play="connecting"] .play .spinner {
  opacity: 1;
  animation: spin 0.9s linear infinite;
}
.play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
body[data-play="playing"] .play::after { animation: ripple 2.2s ease-out infinite; }
body[data-hint] .play::after {
  border-color: var(--gold);
  animation: ripple 1.6s ease-out infinite;
}

.tagline {
  margin: 0.7rem 0 0;
  color: var(--cream-dim);
  font-size: 1rem;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 214, 92, 0.12);
  border: 1px solid rgba(255, 214, 92, 0.4);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  animation: nudge 1.6s ease-in-out infinite;
}
.hint svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---------- now playing ---------- */

.player-card {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.now {
  display: flex;
  align-items: center;
  gap: 14px;
}
.now-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.now-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.now-title {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.eq {
  display: flex;
  flex: none;
  align-items: flex-end;
  gap: 3px;
  width: 27px;
  height: 24px;
}
.eq i {
  width: 3px;
  height: 25%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
  transition: height 0.3s ease;
}
body[data-play="playing"] .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
body[data-play="playing"] .eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.2s; }
body[data-play="playing"] .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.5s; }
body[data-play="playing"] .eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.3s; }
body[data-play="playing"] .eq i:nth-child(5) { animation-duration: 1s; animation-delay: -0.7s; }

.msg {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: #ffc0c8;
}

/* ---------- volume ---------- */

.volume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-line);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.icon-btn:hover { background: var(--glass-hover); }
.icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn .icon-muted { display: none; }
.volume.is-muted .icon-vol { display: none; }
.volume.is-muted .icon-muted { display: block; }

/* The slider is 32px tall so it's easy to grab; the track drawn inside stays thin. */
input[type="range"] {
  --fill: 100%;
  flex: 1;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0 var(--fill), rgba(255, 255, 255, 0.16) var(--fill) 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0 var(--fill), rgba(255, 255, 255, 0.16) var(--fill) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- call-in button ---------- */

.call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--orange), var(--coral));
  color: var(--night);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.call:hover { background: linear-gradient(90deg, #ffab5c, #ff6b91); }
.call:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.call svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- sections (videos, socials) ---------- */

.block { margin-top: 36px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title .rule {
  flex: 1;
  height: 1px;
  background: var(--glass-line);
}
.section-title a {
  flex: none;
  color: var(--cream-dim);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.section-title a:hover { color: var(--cream); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  border: 1px solid var(--glass-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--cream);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-row:hover { background: var(--glass-hover); transform: translateX(2px); }
.social-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.social-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
}
.social-icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-icon svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-icon--fb { background: #1877f2; }
.social-icon--yt { background: #ff0000; }
.social-icon--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon--wa { background: #25d366; }
.social-icon--share { background: rgba(255, 204, 51, 0.14); color: var(--gold); }

.social-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.social-text strong { font-size: 1rem; font-weight: 700; }
.social-text small { margin-top: 1px; font-size: 0.85rem; color: var(--cream-dim); }
.chev {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cream-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-dim);
}
.credit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-line);
  font-size: 0.78rem;
}
.credit a {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.credit a[href]:hover { text-decoration: underline; }

/* ---------- motion ---------- */

@keyframes blink { 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes nudge { 50% { transform: translateY(-3px); } }
@keyframes eq {
  0% { height: 20%; }
  100% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  body[data-play="playing"] .eq i { height: 70%; }
}

@media (min-height: 860px) {
  .hero { margin-top: 40px; }
}

/* ---------- computers & tablets: player left, videos + socials right ---------- */

@media (min-width: 900px) {
  .app {
    max-width: 1080px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .col-player {
    position: sticky;
    top: 24px;
  }
  .hero { margin-top: 8px; }
  .col-side { padding-top: 28px; }
  .col-side .block:first-child { margin-top: 0; }
  .foot {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
  }
  .credit {
    flex-basis: 100%;
  }
}
