/* ==========================================================
   n.eko Native Style Enhancements (WatchParty Pro - Clean)
   ========================================================== */

/* 1. Cinema Mode (Complete room container collapse + 100% video height) */
.cinema-mode .room-container {
  display: none !important;
}

/* Subtle Cinema Mode Return Button */
#wp-cinema-exit-btn {
  position: fixed;
  bottom: 16px;
  right: 20px;
  z-index: 99999;
  background: rgba(20, 24, 33, 0.85);
  border: 1px solid rgba(25, 189, 156, 0.6);
  color: #19bd9c;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  user-select: none;
}

#wp-cinema-exit-btn:hover {
  background: #19bd9c;
  color: #ffffff;
  border-color: #19bd9c;
  transform: translateY(-1px);
}

.cinema-mode #wp-cinema-exit-btn {
  display: flex !important;
}

/* Native Controls Cinema Button */
.controls .item.wp-control-cinema {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b9bb4;
  transition: color 0.15s ease;
  padding: 0 6px;
}

.controls .item.wp-control-cinema:hover {
  color: #19bd9c;
}

/* 2. Resizable Chat Menu */
aside.neko-menu {
  position: relative !important;
  overflow: visible !important;
}

.neko-menu-resizer {
  position: absolute;
  top: 0;
  left: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 10000;
  background: transparent;
  transition: background 0.15s ease;
}

.neko-menu-resizer:hover,
.neko-menu-resizer.resizing {
  background: #19bd9c !important;
}

/* 3. Bitrate Tab in Side Menu */
.tabs-container ul li.wp-bitrate-tab {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #8b9bb4;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.tabs-container ul li.wp-bitrate-tab:hover {
  color: #19bd9c;
}

.tabs-container ul li.wp-bitrate-tab.active {
  color: #19bd9c;
  border-bottom: 2px solid #19bd9c;
}

/* Bitrate Page Container inside Sidebar */
.wp-sidebar-bitrate-page {
  padding: 16px;
  color: #e2e8f0;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.wp-sb-title {
  font-size: 14px;
  font-weight: 700;
  color: #19bd9c;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wp-sb-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8b9bb4;
  letter-spacing: 0.5px;
  margin: 14px 0 8px 0;
}

.wp-sb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.wp-sb-btn {
  background: #242a38;
  border: 1px solid #333c4d;
  color: #cbd5e1;
  padding: 8px 4px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.wp-sb-btn:hover {
  background: #2d3546;
  border-color: #19bd9c;
  color: #19bd9c;
}

.wp-sb-btn.active {
  background: #19bd9c;
  border-color: #19bd9c;
  color: #ffffff;
  font-weight: 700;
}

.wp-sb-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.wp-sb-input {
  flex: 1;
  background: #14171f;
  border: 1px solid #333c4d;
  border-radius: 5px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.wp-sb-input:focus {
  border-color: #19bd9c;
}

.wp-sb-apply {
  background: #19bd9c;
  border: none;
  color: #ffffff;
  font-weight: 700;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wp-sb-apply:hover {
  background: #16a085;
}

/* 4. Live Stats HUD (Stats for Nerds) */
#wp-stats-hud {
  position: fixed;
  top: 10px;
  left: 140px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(25, 189, 156, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#wp-stats-hud:hover {
  border-color: #19bd9c;
  background: rgba(20, 28, 48, 0.95);
  box-shadow: 0 0 10px rgba(25, 189, 156, 0.3);
}

#wp-stats-hud.hidden {
  display: none !important;
}

.hud-live-tag {
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-val {
  color: #19bd9c;
  font-weight: 700;
}

.hud-divider {
  color: #475569;
}

/* 5. Sleek Toast Notification */
#wp-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1a1e27;
  border: 1px solid #19bd9c;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  z-index: 100000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: auto;
  max-width: 90vw;
}

#wp-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
