/* Programming Guide Sidebar */
.guide-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-container.collapsed {
  transform: translate(calc(-100% + 44px), -50%);
}

.guide-toggle {
  width: 32px;
  height: 110px;
  background: rgba(10,0,7,0.9);
  border: 1px solid rgba(255,45,85,0.2);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--neon-red);
  font-family: 'VT323', monospace;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: all 0.2s;
  box-shadow: 5px 0 15px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}

.guide-toggle:hover {
  background: rgba(255,45,85,0.1);
  color: #fff;
}

.guide-toggle::after {
  content: '◄ PROG';
}

.guide-container.collapsed .guide-toggle::after {
  content: 'PROG ►';
}

.guide-container.collapsed .guide-toggle {
  color: rgba(255,255,255,0.4);
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.guide-list::-webkit-scrollbar { display: none; }

.guide-item {
  background: rgba(10,0,7,0.9);
  border: 1px solid rgba(255,45,85,0.2);
  border-radius: 6px;
  padding: 12px 16px;
  width: 210px;
  display: block;
  opacity: 0.6;
}
.guide-item.active {
  border-color: var(--neon-red);
  background: rgba(255,45,85,0.1);
  box-shadow: 0 0 10px rgba(255,45,85,0.3);
  opacity: 1;
}

.guide-item-time {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--neon-red);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.guide-item-title {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Channel list sidebar */
.channel-list-container {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-list-container.collapsed {
  transform: translate(calc(100% - 44px), -50%);
}

.channel-toggle {
  width: 32px;
  height: 110px;
  background: rgba(10,0,7,0.9);
  border: 1px solid rgba(212,255,0,0.2);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--neon-yellow);
  font-family: 'VT323', monospace;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: all 0.2s;
  box-shadow: -5px 0 15px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}

.channel-toggle:hover {
  background: rgba(212,255,0,0.1);
  color: #fff;
}

.channel-toggle::after {
  content: 'CH ►';
}

.channel-list-container.collapsed .channel-toggle::after {
  content: 'CH ◄';
}

.channel-list-container.collapsed .channel-toggle {
  color: rgba(255,255,255,0.4);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 20px;
}

.ch-item {
  background: rgba(10,0,7,0.9);
  border: 1px solid rgba(212,255,0,0.2);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 160px;
  display: block;
}

.ch-item:hover, .ch-item.active {
  border-color: var(--neon-yellow);
  background: rgba(212,255,0,0.05);
  box-shadow: 0 0 10px rgba(212,255,0,0.2);
}

.ch-item-num {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--neon-yellow);
  line-height: 1;
}

.ch-item-name {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* Remote control */
.remote {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #1e1018, #100a0e);
  border: 1px solid #2d1f27;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 50;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.remote-title {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
}

.remote-btn {
  background: #0d0710;
  border: 1px solid #2d1f27;
  color: rgba(255,255,255,0.6);
  font-family: 'VT323', monospace;
  font-size: 16px;
  width: 44px;
  height: 36px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-btn:hover {
  border-color: var(--neon-red);
  color: var(--neon-red);
  box-shadow: 0 0 8px rgba(255,45,85,0.3);
}

.remote-btn:active { transform: scale(0.92); }

.remote-row {
  display: flex;
  gap: 6px;
}

.remote-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2px 0;
}

/* Volume display */
.volume-bar {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 20px;
}

.vol-segment {
  width: 4px;
  background: var(--phosphor);
  border-radius: 1px;
  opacity: 0.3;
  transition: opacity 0.2s, background 0.2s;
}

.vol-segment.active { opacity: 1; }
.vol-segment.active:nth-child(n+7) { background: var(--neon-red); }



/* Mobile responsive rules for extracted blocks */
@media (max-width: 768px) {
  .remote { display: none; }
  
  .channel-list-container {
    position: static;
    transform: none;
    width: 100%;
  }
  
  .channel-toggle {
    display: none;
  }
  
  .channel-list {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding: 8px;
    gap: 6px;
    background: rgba(22, 13, 19, 0.98);
    scrollbar-width: none;
  }
  .channel-list::-webkit-scrollbar { display: none; }
}