/* Reset e Base */
html, body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #f1f1f1;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  text-align: center;
  scroll-behavior: smooth;
  padding-top: 50px;
}

/* Títulos */
h1 {
  margin: 20px 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  color: #00bfff;
}

/* Categorias */
.category {
  margin: 40px 10px;
}

.category-title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  margin-bottom: 20px;
  color: #00bfff;
  text-shadow: 1px 1px 2px #000;
}

/* Botões de canais */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.channel-button {
  width: 160px;
  height: 90px;
  background: linear-gradient(145deg, #1c1c1c, #141414);
  border: 1px solid #333;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.channel-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.channel-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Player */
#player-unico {
  display: none;
  border: none;
  border-radius: 12px;
  z-index: 9998;
}

/* Player modos */
.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.mini {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 90vw;
  max-width: 600px;
  height: 50vw;
  max-height: 340px;
  border: 2px solid #00bfff;
  box-shadow: 0 0 15px #00bfff88;
  background: #000;
}

/* Mini controles */
#mini-controls {
  position: fixed;
  bottom: 140px;
  right: 30px;
  z-index: 9999;
  display: none;
  gap: 10px;
  flex-direction: column;
}

#mini-controls button,
#close-button {
  background-color: rgba(30, 30, 30, 0.85);
  color: white;
  border: 1px solid #444;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

#close-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: none;
}

#close-button:hover {
  background-color: rgba(255, 0, 0, 0.75);
}

/* Menu toggle (☰) */
#menu-toggle {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 10001;
  font-size: 28px;
  color: #00bfff;
  cursor: pointer;
  background-color: #1e1e1e;
  padding: 6px 12px;
  border-radius: 6px;
  user-select: none;
  box-shadow: 0 0 5px #000;
  transition: background 0.3s;
}

#menu-toggle:hover {
  background-color: #2a2a2a;
}

/* Menu lateral */
#side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 220px;
  height: 100%;
  background-color: #181818;
  box-shadow: 2px 0 10px rgba(0,0,0,0.7);
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
  z-index: 10000;
  transition: left 0.3s ease;
}

#side-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 0;
  transition: color 0.2s;
}

#side-menu a:hover {
  color: #00bfff;
}

#side-menu.open {
  left: 0;
}

/* Overlay escurecido */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9999;
}

#menu-overlay.show {
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .channel-button {
    width: 45vw;
    height: 25vw;
  }

  .category-title {
    font-size: clamp(16px, 4vw, 20px);
  }

  .mini {
    width: 95vw;
    height: 55vw;
    bottom: 10px;
    right: 10px;
  }

  #mini-controls {
    bottom: 110px;
    right: 10px;
  }
}
