:root {
  --bg: #0b1220;
  --panel: #0f1724;
  --accent: #25D366;
}

/* Floating Button */
.video-drawer-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform 0.2s ease;
}
.video-drawer-btn:hover {
  transform: scale(1.1);
}

/* Drawer Base */
.video-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  background: var(--bg);
  color: #fff;
  z-index: 99998;
  transition: right .35s ease;
  display: flex;
  flex-direction: column;
}
.video-drawer.active { right: 0; }

/* Drawer Header */
.drawer-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-title::before {
  content: "🎬";
  font-size: 22px;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Filter Buttons */
.drawer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}
.main-btn, .main-btn-inner {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}
.main-btn:hover, .main-btn-inner:hover {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  box-shadow: 0px 0px 12px rgba(255, 94, 77, 0.8);
  transform: translateY(-2px);
}
.main-btn.active {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  box-shadow: 0px 0px 12px rgba(56, 239, 125, 0.8);
}

/* Submenus (Audio / Naima Channel List) */
.audio-sub, .channels-list {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #1f2937;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  margin-top: 5px;
  z-index: 100;
}
.audio-parent.open .audio-sub,
.naima-parent.open .channels-list {
  display: flex;
}
.audio-sub button,
.channels-list button {
  background: #374151;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s ease;
}
.audio-sub button:hover,
.channels-list button:hover {
  background: #4b5563;
}

/* Search Bar */
.search-bar {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.search-bar input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 0;
  background: #071124;
  color: #fff;
  outline: none;
}

/* Drawer Content */
.drawer-content {
  display: flex;
  flex: 1;
  min-height: 0;
}
.video-player {
  flex: 2;
  background: #000;
  padding: 8px;
}
.video-player iframe {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}
.thumb-grid {
  flex: 1;
  background: #071124;
  padding: 8px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.thumb-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.thumb-item img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}
.thumb-item p {
  margin: 0;
  font-size: 13px;
}

/* Responsive */
@media(min-width:900px){
  .video-drawer{ width:90% }
}
@media(max-width:700px){
  .drawer-controls{ flex-wrap:wrap }
  .thumb-grid{ grid-template-columns:1fr }
  .main-btn, .main-btn-inner {
    font-size: 13px;
    padding: 6px 10px;
  }
  .audio-sub, .channels-list {
    position: relative;
    margin-top: 5px;
  }
}
/* Floating 🎬 Button */
.video-drawer-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
}

/* Hover Animation */
.video-drawer-btn:hover {
  transform: scale(1.15) rotate(6deg);
  background: linear-gradient(135deg, #ff512f, #dd2476);
  box-shadow: 0 0 20px rgba(255, 94, 77, 0.9);
}

/* Pulse Glow Effect */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255,126,95,0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255,126,95,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,126,95,0);
  }
}
/* Live TV Buttons */
.live-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2937;
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.live-btn:hover {
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37,99,235,0.6);
  transform: translateY(-2px);
}

/* Channel Logo */
.live-btn .live-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

