:root {
  --brand-red: #FF4127;
  --brand-orange: #FFA835;
  --background: #1a0905;
  --foreground: #faf7f2;
  --gradient-brand: linear-gradient(135deg, #FF4127 0%, #FFA835 100%);
  --gradient-hero: linear-gradient(120deg, rgba(255,65,39,0.85) 0%, rgba(20,5,2,0.65) 50%, rgba(255,168,53,0.55) 100%);
  --shadow-glow: 0 0 60px -10px #FF4127, 0 0 120px -40px #FFA835;
  --shadow-elegant: 0 30px 80px -20px rgba(255, 65, 39, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;

  background-image: url('fotos/f.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: brightness(0.2);
}

.bg-overlay {
  z-index: 1;
}

.bg-waves {
  z-index: 2;
}

.hero,
.top-nav,
.footer-note {
  position: relative;
  z-index: 10;
}
.wave {
  position: absolute;
  width: 200%; height: 200%;
  border-radius: 45%;
  left: -50%; top: -50%;
  pointer-events: none;
}
@keyframes wave { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.wave-1 { background: rgba(255, 65, 39, 0.06); animation: wave 18s linear infinite; }
.wave-2 { background: rgba(255, 168, 53, 0.05); animation: wave 24s linear infinite reverse; }
.wave-3 { background: rgba(255, 255, 255, 0.03); animation: wave 30s linear infinite; }

/* Glass */
.glass {
  background: rgba(20, 5, 2, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 168, 53, 0.2);
}

/* Text gradient */
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-orange { color: var(--brand-orange); font-weight: 500; }

/* Top Nav */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 30; padding: 20px 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px;
  padding: 12px 20px;
}
@media (min-width: 768px) { .nav-inner { padding: 12px 28px; } .top-nav { padding: 20px 48px; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { position: relative; width: 40px; height: 40px; }
.brand-logo-glow {
  position: absolute; inset: 0;
  background-image: var(--gradient-brand);
  border-radius: 9999px;
  filter: blur(10px); opacity: 0.6;
  transition: opacity .3s;
}
.brand:hover .brand-logo-glow { opacity: 1; }
.brand-logo-circle {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 9999px;
  background-image: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.brand-text { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
@media (min-width: 768px) { .brand-text { font-size: 18px; } }

.nav-links { display: none; gap: 32px; font-size: 14px; font-weight: 500; }
@media (min-width: 768px) { .nav-links { display: flex; align-items: center; } }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--brand-orange); }

.btn-chat {
  display: flex; align-items: center; gap: 8px;
  background-image: var(--gradient-brand);
  color: #fff;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-elegant);
  transition: transform .2s;
}
.btn-chat:hover { transform: scale(1.05); }
.chat-label { display: none; }
@media (min-width: 640px) { .chat-label { display: inline; } }

/* Hero */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 128px 24px 80px;
}
@media (min-width: 768px) { .hero { padding: 128px 48px 80px; } }

.hero-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; gap: 48px;
  align-items: center;
}
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--brand-orange);
}
.ping { position: relative; display: inline-flex; width: 8px; height: 8px; }
.ping-outer {
  position: absolute; inset: 0; border-radius: 9999px;
  background: var(--brand-red); opacity: .75;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
.ping-inner {
  position: relative;
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--brand-red);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Typing */
@keyframes typing { 0%, 100% { width: 0; } 40%, 70% { width: 25ch; } }
@keyframes blink { 50% { border-color: transparent; } }
.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--brand-orange);
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-orange);
  font-size: 14px;
  margin-bottom: 20px;
  animation: typing 6s steps(22) infinite, blink .8s infinite;
}
@media (min-width: 768px) { .typing { font-size: 16px; } }

.hero-title {
  font-size: 40px; font-weight: 900;
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero-title { font-size: 60px; } }
@media (min-width: 1024px) { .hero-title { font-size: 70px; } }

.hero-desc {
  font-size: 16px; max-width: 500px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px; line-height: 1.6;
}
@media (min-width: 768px) { .hero-desc { font-size: 18px; } }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.btn-play-main {
  display: flex; align-items: center; gap: 12px;
  background-image: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 24px 8px 8px;
  box-shadow: var(--shadow-elegant);
  transition: transform .2s;
}
.btn-play-main:hover { transform: scale(1.05); }
.play-icon-wrap {
  width: 40px; height: 40px; border-radius: 9999px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}

.link-underline {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.link-underline:hover { color: #fff; border-color: var(--brand-orange); }

/* Player Card */
.animate-slide-up {
  animation: slide-up .8s ease-out both;
}
.delay-200 { animation-delay: .2s; }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-card {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .player-card { padding: 40px; } }
.player-card-glow {
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background-image: var(--gradient-brand);
  opacity: .3; filter: blur(60px);
  border-radius: 9999px;
}
.player-card-inner { position: relative; }
.player-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--brand-orange);
  margin-bottom: 4px;
}
.player-title { font-size: 22px; font-weight: 700; }

.eq {
  display: flex; align-items: flex-end; gap: 4px;
  height: 40px;
}
.eq-bar {
  width: 4px; height: 20%;
  background: linear-gradient(to top, #FF4127, #FFA835);
  border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.3;
}
.playing .eq-bar { animation-play-state: running; opacity: 1; }
@keyframes eq {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

.play-wrap { display: flex; justify-content: center; margin: 24px 0; }
.btn-play-big {
  position: relative;
  width: 96px; height: 96px; border-radius: 9999px;
  background-image: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform .2s;
}
.btn-play-big:hover { transform: scale(1.1); }
.pulse-ring::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 9999px;
  background: var(--brand-red);
  animation: pulse-ring 2.4s cubic-bezier(.4,0,.6,1) infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.now-playing { text-align: center; margin-top: 32px; }
.now-title { font-size: 18px; font-weight: 600; }
.now-sub { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

.stats {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; text-align: center;
}
.stat-icon { display: flex; justify-content: center; color: var(--brand-orange); margin-bottom: 4px; }
.stat-value { font-size: 14px; font-weight: 700; }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }

/* Footer */
.footer-note {
  position: relative; z-index: 10;
  text-align: center; padding-bottom: 24px;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* Chat */
.chat-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.chat-overlay.open { opacity: 1; pointer-events: auto; }

.chat-panel {
  position: fixed; z-index: 50;
  bottom: 24px; right: 24px;
  width: 92vw; max-width: 380px;
  height: 70vh; max-height: 520px;
  border-radius: 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  transform: translateY(32px); opacity: 0; pointer-events: none;
  transition: transform .3s, opacity .3s;
}
.chat-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background-image: var(--gradient-brand);
  color: #fff;
}
.chat-head-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.chat-close { color: rgba(255,255,255,.8); }
.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { font-size: 14px; }
.chat-msg .name { font-weight: 600; color: var(--brand-orange); }
.chat-msg .text { color: rgba(255,255,255,.9); }

.chat-form {
  padding: 12px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: 8px;
}
.chat-form input {
  flex: 1; background: rgba(255,255,255,.1);
  border: none; outline: none;
  border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: #fff;
}
.chat-form input::placeholder { color: rgba(255,255,255,.5); }
.chat-form input:focus { box-shadow: 0 0 0 2px var(--brand-orange); }
.chat-form button {
  width: 40px; height: 40px; border-radius: 9999px;
  background-image: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.chat-form button:hover { transform: scale(1.05); }
