/* Reset e fonte moderna */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #000000 100%);
  color: white;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Container principal com glassmorphism */
.tv-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

/* Overlay com efeito de vidro */
.glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
}

/* Container da imagem com animações modernas - 100% da tela */
.image-container {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) contrast(1.1) saturate(1.2);
  z-index: 2;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0,0,0,0.2) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

/* Overlay de texto moderno */
.image-text-overlay {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 10;
  animation: slideUp 0.8s ease-out;
  line-height: 1.4;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Barra superior moderna - centralizada */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
  backdrop-filter: blur(15px);
  z-index: 200;
}

/* Controles centralizados */
.controls-center {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Logo/Brand removido */
.brand {
  display: none;
}

.date-time {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: center;
  line-height: 1.3;
}

/* Botões modernos com efeitos - ajustados */
.modern-btn {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: clamp(40px, 6vw, 50px);
  height: clamp(40px, 6vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  transition: all 0.3s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.modern-btn:hover::before {
  width: 80px;
  height: 80px;
}

.modern-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modern-btn:active {
  transform: scale(0.95);
}

/* Player do YouTube completamente invisível - versão agressiva */
#youtubePlayer,
#youtubePlayer *,
#youtubePlayer iframe,
#youtubePlayer div {
  position: absolute !important;
  top: -20000px !important;
  left: -20000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: -99999 !important;
  display: none !important;
  overflow: hidden !important;
}

/* Esconder qualquer elemento relacionado ao YouTube */
iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"] {
  position: absolute !important;
  top: -30000px !important;
  left: -30000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  z-index: -999999 !important;
}

/* Botão de ativar som moderno */
#enableSound {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5rem 3rem;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 99999;
  cursor: pointer;
  display: none;
  font-weight: 600;
  animation: soundPulse 2s infinite;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes soundPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 0 30px rgba(102, 126, 234, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

#enableSound:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Indicador de música tocando */
.music-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.music-indicator.active {
  opacity: 1;
  transform: translateY(0);
}

.music-waves {
  display: flex;
  gap: 3px;
}

.wave {
  width: 3px;
  height: 20px;
  background: linear-gradient(to top, #00f5ff, #0080ff);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 20px; }
}

/* Efeitos de partículas */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Player invisível - solução definitiva */
#hiddenPlayerContainer,
#hiddenPlayerContainer *,
#hiddenPlayerContainer iframe {
  position: absolute !important;
  top: -99999px !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: -999999 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: none !important;
}

/* Loading state */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00f5ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .top-bar {
    padding: 1rem;
  }
  
  .controls-center {
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
  }
  
  .image-text-overlay {
    bottom: 5%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
  }
  
  .music-indicator {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .controls-center {
    gap: 0.6rem;
    padding: 0.5rem 1rem;
  }
  
  .date-time {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .modern-btn {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

/* Modo fullscreen - melhorado */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen,
:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
}

.fullscreen-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
}do */
.floating-logo {
  position: absolute;
  top: 15%;
  left: 2rem;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 1rem;
  border: 2px solid rgba(0, 245, 255, 0.3);
  z-index: 50;
  animation: logoFloat 4s ease-in-out infinite;
  max-width: 120px;
}

.logo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: white;
}

.logo-content i {
  font-size: 1.8rem;
  color: #00f5ff;
  text-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.logo-content span {
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(45deg, #00f5ff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.03); }
}

/* Banner de promoções - reposicionado */
.promo-banner {
  position: absolute;
  top: 15%;
  right: 2rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 15px;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
  z-index: 50;
  animation: promoPulse 3s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
  max-width: 280px;
}

.promo-content {
  color: white;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes promoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3); }
  50% { transform: scale(1.02); box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4); }
}

/* Ticker de serviços - melhorado */
.services-ticker {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 70;
  border-top: 1px solid rgba(0, 245, 255, 0.3);
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

.ticker-content {
  display: flex;
  animation: tickerScroll 25s linear infinite;
  white-space: nowrap;
  padding: 0.6rem 0;
}

.ticker-content span {
  padding: 0 3rem;
  color: white;
  font-weight: 500;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  flex-shrink: 0;
}

.ticker-content i {
  color: #00f5ff;
  margin-right: 0.4rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* QR Code section - reposicionado */
.qr-section {
  position: absolute;
  bottom: 8%;
  right: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 1rem;
  color: #333;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 50;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: qrGlow 2s ease-in-out infinite alternate;
  max-width: 140px;
}

.qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.qr-placeholder i {
  font-size: 1.5rem;
  color: #25d366;
}

.qr-code {
  width: 60px;
  height: 60px;
  background: white;
  border: 2px solid #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-squares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 45px;
  height: 45px;
}

.qr-squares div {
  background: #333;
  border-radius: 1px;
}

.qr-squares div:nth-child(2n) {
  background: transparent;
}

.qr-content p {
  font-size: 0.75rem;
  line-height: 1.2;
  margin: 0;
  color: #333;
  font-weight: 600;
}

@keyframes qrGlow {
  0% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.15); }
  100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }
}

/* Player invisível - solução definitiva */
#hiddenPlayerContainer,
#hiddenPlayerContainer *,
#hiddenPlayerContainer iframe {
  position: absolute !important;
  top: -99999px !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: -999999 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: none !important;
}

/* Responsividade para novos elementos - ajustada */
@media (max-width: 768px) {
  .floating-logo {
    left: 1rem;
    padding: 0.8rem;
    max-width: 100px;
  }
  
  .logo-content i {
    font-size: 1.5rem;
  }
  
  .logo-content span {
    font-size: 0.8rem;
  }
  
  .promo-banner {
    right: 1rem;
    padding: 0.6rem 1rem;
    max-width: 240px;
  }
  
  .promo-content {
    font-size: 0.8rem;
  }
  
  .qr-section {
    right: 1rem;
    padding: 0.8rem;
    max-width: 120px;
  }
  
  .qr-code {
    width: 50px;
    height: 50px;
  }
  
  .qr-squares {
    width: 38px;
    height: 38px;
  }
  
  .qr-content p {
    font-size: 0.7rem;
  }
  
  .ticker-content span {
    padding: 0 2rem;
    font-size: 0.8rem;
  }
  
  .contact-info {
    font-size: 0.7rem;
    gap: 0.5rem;
  }
  
  .services-ticker {
    bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .floating-logo {
    top: 12%;
    left: 0.5rem;
    padding: 0.6rem;
    max-width: 80px;
  }
  
  .logo-content i {
    font-size: 1.2rem;
  }
  
  .logo-content span {
    font-size: 0.7rem;
  }
  
  .promo-banner {
    top: 12%;
    right: 0.5rem;
    padding: 0.5rem 0.8rem;
    max-width: 200px;
  }
  
  .promo-content {
    font-size: 0.7rem;
  }
  
  .qr-section {
    bottom: 6%;
    right: 0.5rem;
    padding: 0.6rem;
    max-width: 100px;
  }
  
  .qr-code {
    width: 40px;
    height: 40px;
  }
  
  .qr-squares {
    width: 30px;
    height: 30px;
  }
  
  .qr-content p {
    font-size: 0.6rem;
  }
  
  .services-ticker {
    bottom: 1.5rem;
  }
  
  .ticker-content span {
    padding: 0 1.5rem;
    font-size: 0.7rem;
  }
  
  .contact-info {
    font-size: 0.6rem;
    gap: 0.3rem;
  }
}
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00f5ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .top-bar {
    padding: 1rem;
  }
  
  .controls {
    gap: 0.5rem;
  }
  
  .image-text-overlay {
    bottom: 5%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
  }
  
  .music-indicator {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.2rem;
  }
  
  .date-time {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .modern-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Modo fullscreen - melhorado */
:fullscreen .tv-container,
:-webkit-full-screen .tv-container,
:-moz-full-screen .tv-container,
:-ms-fullscreen .tv-container {
  width: 100vw !important;
  height: 100vh !important;
}

.fullscreen-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
}