:root {
  --bg: #0a0612;
  --ink: #e6e7eb;
  --magenta: #ff2b6a;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --surface: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, Arial, sans-serif;
  background-color: var(--bg);
  background: url("img/fondo-latencia.jpg") right center / cover no-repeat fixed,
    radial-gradient(900px 600px at 15% 15%, rgba(255,43,106,.18), transparent 60%),
    radial-gradient(900px 600px at 85% -10%, rgba(124,58,237,.20), transparent 60%);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35)) drop-shadow(0 0 20px rgba(124,58,237,.55));
}

@media(max-width:720px) {
.logo {
  width: 160px;
}
}


.tagline {
  margin: 0;
  font-size: 18px;
}

.tagline span {
  color: var(--cyan);
  font-weight: 800;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #e6e7eb;
  opacity: .95;
  font-weight: 700;
  margin-right: 18px;
  text-decoration: none;
}

nav a:hover,nav a.active {
  color: var(--cyan);
  text-decoration: underline;
}

.dial {
  font-size: 42px;
  font-weight: 900;
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(255,43,106,.5);
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 20px auto;
  width: calc(100% - 40px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.section {
  padding: 16px 18px;
}

.title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
}

audio {
  width: 100%;
  height: 50px;
}

.chat-h {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.nick input {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.av {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.bubble {
  flex: 1;
}

.meta2 {
  font-size: 11px;
  opacity: .7;
}

.chat-f {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-f input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  color: var(--ink);
  outline: none;
}

.btn {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.btn:hover {
  background: rgba(255,255,255,.12);
}

footer {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: rgba(230,231,235,.75);
  border-top: 1px solid var(--border);
}

@media(max-width:720px) {
.dial {
  font-size: 32px;
}

nav a {
  margin-right: 14px;
}
}


.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 440px;
}

@media(max-width:720px) {
.chat {
  height: 360px;
}
}


.msgs {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 6, 18, .88);
  backdrop-filter: blur(6px);
}

.topbar .left {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-link {
  display: flex;
  align-items: center;
}

.logo {
  width: 200px;
  height: auto;
  max-width: 40vw;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.35)) drop-shadow(0 0 16px rgba(124,58,237,.5));
}

.mainnav {
  display: flex;
  gap: 28px;
}

.mainnav .tab {
  position: relative;
  font-weight: 900;
  letter-spacing: .2px;
  color: #e6e7eb;
  text-decoration: none;
  opacity: .95;
  padding: 10px 6px;
  border-radius: 8px;
  transition: transform .12s ease, opacity .12s ease;
}

.mainnav .tab:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.mainnav .tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease-in-out;
  border-radius: 3px;
}

.mainnav .tab.active::after {
  transform: scaleX(1);
}

.mainnav .tab.active {
  color: var(--cyan);
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  width: calc(100% - 40px);
}

@media (max-width: 900px) {
.logo {
  width: 160px;
}

.mainnav {
  gap: 16px;
  flex-wrap: wrap;
}
}


.topbar--grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.mainnav {
  justify-self: center;
  display: flex;
  gap: 34px;
}

.logo {
  width: 260px;
  height: auto;
  max-width: 42vw;
}

@media (max-width: 900px) {
.logo {
  width: 200px;
}

.mainnav {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
}


.dial {
  font-size: 64px;
  font-weight: 900;
  color: #ff2b6a;
  text-shadow: 0 0 10px rgba(255,43,106,.55);
}

@media (min-width: 1200px) {
.dial {
  font-size: 72px;
}
}


.dial--neon {
  animation: neonPulse 2.8s ease-in-out infinite;
}

@keyframes neonPulse {
  0%,100%{ text-shadow: 0 0 10px rgba(255,43,106,.45), 0 0 24px rgba(255,43,106,.35), 0 0 40px rgba(124,58,237,.25);
  opacity: .96;
}

50% {
  text-shadow: 0 0 18px rgba(255,43,106,.65), 0 0 36px rgba(255,43,106,.50), 0 0 60px rgba(124,58,237,.38);
  opacity: 1;
}

.mainnav .tab {
  font-weight: 800;
  font-size: 18px;
  padding: 12px 8px;
}

.topbar {
  padding: 6px 18px;
}

@media (min-width:1100px) {
.mainnav .tab {
  font-size: 20px;
}
}


.brand-link {
  padding-left: 14px;
}

.logo {
  width: 320px;
  height: auto;
}

@media (max-width: 900px) {
.logo {
  width: 230px;
}
}


.cassette {
  position: relative;
  background: linear-gradient(180deg, rgba(18,12,28,.6), rgba(12,8,20,.6));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 18px;
  overflow: hidden;
}

.cassette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,43,106,.12);
  border: 1px solid rgba(255,43,106,.5);
  text-shadow: 0 0 8px rgba(255,43,106,.7);
  box-shadow: 0 0 12px rgba(255,43,106,.4), inset 0 0 0 1px rgba(255,43,106,.4);
  animation: liveBlink 1.8s ease-in-out infinite;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2b6a;
  box-shadow: 0 0 8px #ff2b6a, 0 0 18px rgba(255,43,106,.8);
}

@keyframes liveBlink {
  0%,100%{ opacity: .92;
  filter: brightness(1);
}

50% {
  opacity: .65;
  filter: brightness(1.15);
  transform: scale(1.05);
}

.transport {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  justify-content: center;
  margin: 10px 0 6px;
}

.btn-ctrl {
  background: radial-gradient(60% 60% at 50% 35%, rgba(255,255,255,.15), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.2);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
}

.btn-ctrl:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
}

.btn-ctrl:active {
  transform: translateY(0) scale(.98);
}

.icon {
  width: 0;
  height: 0;
  border-style: solid;
}

.icon-play {
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #e6e7eb;
}

.icon-pause {
  width: 16px;
  height: 16px;
  display: flex;
  gap: 4px;
}

.icon-pause span {
  width: 5px;
  height: 16px;
  background: #e6e7eb;
  display: block;
}

.cassette audio {
  width: 100%;
  height: 38px;
  opacity: .0001;
  position: absolute;
  pointer-events: none;
}

.vu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  width: 520px;
}

.vu-title {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  opacity: .8;
  background: rgba(10,6,18,.9);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.vu canvas {
  width: 100%;
  height: 70px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.25));
  border-radius: 8px;
}

.scale {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10px;
  opacity: .6;
}

.btn-stop {
  position: relative;
}

.btn-stop::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: #e6e7eb;
  border-radius: 2px;
}

.label-stream {
  opacity: .85;
  font-weight: 700;
  letter-spacing: .2px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 14px;
}

.volume {
  appearance: none;
  width: 280px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  outline: none;
  border: 1px solid var(--border);
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22d3ee;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 10px rgba(34,211,238,.75), 0 0 20px rgba(124,58,237,.45);
  cursor: pointer;
}

.volume::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22d3ee;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 10px rgba(34,211,238,.75), 0 0 20px rgba(124,58,237,.45);
  cursor: pointer;
}

.vu-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
}

.speaker {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.1), rgba(0,0,0,.55));
  border: 1px solid var(--border);
  box-shadow: inset 0 0 20px rgba(0,0,0,.6), 0 0 12px rgba(124,58,237,.25);
  position: relative;
  overflow: hidden;
}

.speaker::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 50%;
}

.speaker .cone {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.15), rgba(0,0,0,.8));
  transform: scale(1);
}

.speaker.vibe .cone {
  animation: conePulse .12s linear infinite;
}

@keyframes conePulse {
  0%,100%{ transform: scale(1);
}

.cassette::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), inset 0 0 40px rgba(124,58,237,.15);
}

.cassette::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(1200px 300px at 10% -20%, rgba(255,43,106,.12), transparent 60%),
              radial-gradient(1200px 300px at 90% -20%, rgba(34,211,238,.10), transparent 60%);
  filter: saturate(120%);
  animation: neonSweep 6s ease-in-out infinite;
  opacity: .55;
}

@keyframes neonSweep {
  0%,100%{ opacity: .5;
}
