@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;700;900&display=swap');

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

body {
  min-height: 100vh;
  background: #0d0d0d;
  background-image:
    radial-gradient(ellipse at top, #1a0533 0%, transparent 60%),
    radial-gradient(ellipse at bottom, #0d001a 0%, transparent 60%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  padding-top: 56px;
}

/* Menu Superior */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #18181bee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.nav-brand {
  font-weight: 900;
  font-size: 1rem;
  color: #bf5af2;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff66;
  transition: all 0.3s;
}

.live-indicator.is-live {
  color: #ff4444;
  text-shadow: 0 0 8px #ff444488;
  animation: blink 1.5s infinite;
}

.btn-live {
  padding: 0.45rem 1rem;
  background: #1f1f23;
  border: 1px solid #ffffff20;
  color: #ffffff88;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-live.is-live {
  background: #9146ff;
  border-color: #9146ff;
  color: #fff;
  box-shadow: 0 0 15px #9146ff44;
}

.btn-live:hover {
  transform: scale(1.05);
}

.btn-clips {
  padding: 0.45rem 1rem;
  background: #1f1f23;
  border: 1px solid #ffffff20;
  color: #ffffff88;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-clips:hover {
  background: #9146ff;
  color: #fff;
  transform: scale(1.05);
}

.btn-donate {
  padding: 0.45rem 1rem;
  background: #1f1f23;
  border: 1px solid #ffffff20;
  color: #ffffff88;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-donate:hover {
  background: #1db954;
  color: #fff;
  transform: scale(1.05);
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}

.title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #bf5af2;
  text-shadow: 0 0 20px #bf5af2, 0 0 60px #bf5af288;
  margin-bottom: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}

.glitch::before {
  color: #ff006e;
  animation: glitch1 3s infinite;
  clip-path: inset(0 0 80% 0);
}

.glitch::after {
  color: #00f5d4;
  animation: glitch2 3s infinite;
  clip-path: inset(80% 0 0 0);
}

.subtitle {
  font-size: 1.2rem;
  color: #ffffffaa;
  margin-bottom: 1.5rem;
}

.btn-live-big {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1rem, 3vw, 1.6rem);
  text-decoration: none;
  border-radius: 14px;
  animation: pulseLive 1.5s ease-in-out infinite;
  box-shadow: 0 0 30px #ff000044, 0 0 60px #ff000022;
  margin-bottom: 2rem;
  transition: transform 0.2s;
}

.btn-live-big:hover {
  transform: scale(1.08);
}

.btn-live-big.hidden {
  display: none;
}

@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 30px #ff000044, 0 0 60px #ff000022; }
  50% { box-shadow: 0 0 50px #ff000088, 0 0 80px #ff000044; }
}

.meme-section {
  background: #ffffff08;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.meme-text {
  font-size: 1.4rem;
  color: #fff;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.meme-narrator {
  font-size: 0.9rem;
  color: #ff6b6b;
  font-weight: 700;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.8rem;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd70066;
}

.stat-label {
  font-size: 0.85rem;
  color: #ffffff77;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-play {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #bf5af2, #7b2ff7);
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px #bf5af244;
  animation: float 3s ease-in-out infinite;
}

.btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 40px #bf5af288;
}

.btn-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.4rem;
}

.footer-meme {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #ffffff44;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translateX(0); }
  92% { transform: translateX(-4px); }
  94% { transform: translateX(4px); }
}

@keyframes glitch2 {
  0%, 90%, 100% { transform: translateX(0); }
  93% { transform: translateX(3px); }
  95% { transform: translateX(-3px); }
}

/* Memes flutuantes */
.floating-memes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.meme-float {
  position: absolute;
  top: var(--top);
  left: -10%;
  width: clamp(60px, 10vw, 120px);
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  animation: flyLeft var(--duration) linear var(--delay) infinite;
  opacity: 0;
  filter: drop-shadow(0 0 6px #bf5af244);
}

.meme-float.reverse {
  left: auto;
  right: -10%;
  animation: flyRight var(--duration) linear var(--delay) infinite;
}

@keyframes flyLeft {
  0% { left: -10%; transform: rotate(0deg) scale(1); opacity: 0; }
  5% { opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.3); opacity: 0.6; }
  95% { opacity: 0.6; }
  100% { left: 110%; transform: rotate(360deg) scale(1); opacity: 0; }
}

@keyframes flyRight {
  0% { right: -10%; left: auto; transform: rotate(0deg) scale(1); opacity: 0; }
  5% { opacity: 0.6; }
  50% { transform: rotate(-180deg) scale(1.3); opacity: 0.6; }
  95% { opacity: 0.6; }
  100% { right: 110%; left: auto; transform: rotate(-360deg) scale(1); opacity: 0; }
}



.container {
  position: relative;
  z-index: 1;
}

/* Fake Twitch Chat */
.twitch-chat {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 70vh;
  background: #18181b;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 30px #00000066;
}

.chat-header {
  background: #1f1f23;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #efeff1;
  font-weight: 700;
  border-bottom: 1px solid #ffffff10;
}

.chat-live {
  font-size: 0.7rem;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #ffffff22;
  border-radius: 4px;
}

.chat-msg {
  font-size: 0.8rem;
  color: #efeff1;
  line-height: 1.4;
  animation: msgIn 0.3s ease;
}

.chat-user {
  font-weight: 700;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-input {
  padding: 0.5rem;
  border-top: 1px solid #ffffff10;
}

.chat-input input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: #0e0e10;
  border: 1px solid #ffffff15;
  border-radius: 6px;
  color: #ffffff44;
  font-size: 0.75rem;
  cursor: not-allowed;
}

.chat-input input::placeholder {
  color: #ffffff44;
}

@media (max-width: 900px) {
  .twitch-chat {
    display: none;
  }
  .spotify-player {
    display: none;
  }
}

/* Spotify Player */
.spotify-player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 280px;
  background: #181818;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  box-shadow: 0 0 20px #00000066;
}

.sp-album img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.sp-info {
  display: flex;
  flex-direction: column;
}

.sp-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-artist {
  font-size: 0.75rem;
  color: #b3b3b3;
}

.sp-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.sp-btn {
  color: #b3b3b3;
  font-size: 1rem;
  cursor: default;
}

.sp-play {
  color: #fff;
  font-size: 1.4rem;
}

.sp-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-bar {
  width: 100%;
  height: 4px;
  background: #404040;
  border-radius: 2px;
  overflow: hidden;
}

.sp-bar-fill {
  height: 100%;
  width: 0%;
  background: #1db954;
  border-radius: 2px;
  transition: width 1s linear;
}

.sp-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #b3b3b3;
}

/* Mensagem offline */
.offline-msg {
  font-size: 1.1rem;
  color: #ff6b6b;
  font-style: italic;
  margin-top: 1rem;
}

.offline-msg.hidden {
  display: none;
}

/* Modo Offline */
body.offline-mode {
  background: #1a1a1a;
  background-image: none;
}

body.offline-mode .top-nav {
  display: none;
}

body.offline-mode .floating-memes {
  display: none;
}

body.offline-mode .twitch-chat {
  display: none;
}

body.offline-mode .spotify-player {
  display: none;
}

body.offline-mode .subtitle {
  display: none;
}

body.offline-mode {
  padding-top: 0;
}
