* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  background: #000;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}
#sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

#channelSearch {
  padding: 12px;
  font-size: 14px;
  border: none;
  outline: none;
  background: #111;
  color: #fff;
  border-bottom: 1px solid #222;
  z-index: 21;
}

#channelSearch::placeholder {
  color: #6b7280;
}

#channelList {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 50px;
  position: absolute;
  top: 30px;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #0b0b0b;
  z-index: 20;
}

.group {
  padding: 10px;
}

.group-title {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  margin: 10px 0 5px;
  text-transform: uppercase;
}

.channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.channel:hover {
  background: #1f2933;
}

.channel img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
}

.channel span {
  font-size: 14px;
  color: #f9fafb;
}

/* shift video to the right */
.shaka-video-container {
  left: 300px;
  width: calc(100vw - 300px);
  position: absolute;
  inset: 0;
  height: calc(100vh - 45px);
}
video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.shaka-spinner-container,
.shaka-spinner,
.shaka-spinner-svg {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
/* Chrome Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}
.modal.hidden {
  display: none !important;
}
.modal-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #f3f4f6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transform: scale(0.95);
  animation: scaleIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
#chromeModal .modal-content {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
}
#chromeModal h2 {
  color: #f87171;
}
