body {
  background: #000;
  color: white;
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  overflow: hidden;
}

.player-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

video {
  width: 100%;
  height: 100%;
  background: #000;
}

/* Botones centrales flotantes */
.center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  z-index: 15;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.center-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.center-controls button {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 40px;
  padding: 18px 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.center-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Sidebar canales */
.channel-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transform: translateX(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

.channel-sidebar.hidden {
  transform: translateX(100%);
  opacity: 0;
}

#channelSearch {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 12px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.channel-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}

.channel-list li {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s;
}

.channel-list li:hover,
.channel-list li.active {
  background: rgba(255, 255, 255, 0.2);
}

/* OSD nombre canal centrado horizontalmente en parte superior */
.channel-osd {
  position: absolute;
  top: 30px;              /* Separado un poco del borde superior */
  left: 50%;              /* Centrado horizontal */
  transform: translateX(-50%); /* Solo centramos horizontalmente */
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 40px;
  border-radius: 20px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 30;
  text-align: center;
}

.channel-osd.show {
  opacity: 1;
}

/* Sello de agua lado izquierdo */
.watermark {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 120px;
  opacity: 0;
  z-index: 40;
  transition: opacity 1s ease;
}

.watermark.show {
  opacity: 1;
}