/* ==========================================================================
   BONZO ADDONS SUITE (Dark-Technical / High-Precision K.R.A.F.T. v3)
   Design Tokens:
   - Void / Canvas: #05070a / #0a0e14
   - Panels / Nested: #11141c / #181c26
   - Borders: #1a202c / #2d3748
   - Accents: #00E6A8 (Matrix), #00e5ff (Cyber), #d4a574 (Industrial Gold)
   - Border-Radius: 0px EVERYWHERE
   ========================================================================== */

/* Topbar Addon Trigger Button */
#btn-hub-addon {
  border: 1px solid #d4a574 !important;
  color: #d4a574 !important;
  background: rgba(212, 165, 116, 0.08) !important;
  font-family: 'JetBrains Mono', Consolas, monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
  border-radius: 0px !important;
}

#btn-hub-addon:hover {
  background: #d4a574 !important;
  color: #05070a !important;
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.4) !important;
}

#btn-hub-addon.active {
  border-color: #00E6A8 !important;
  color: #00E6A8 !important;
  background: rgba(0, 230, 168, 0.12) !important;
}

/* Floating Audio Player Bar */
#bonzo-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #080b12;
  border-top: 1px solid #2d3748;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9990;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
  border-radius: 0px !important;
}

#bonzo-mini-player.hidden {
  display: none !important;
}

.bmp-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 320px;
}

.bmp-pulse {
  width: 10px;
  height: 10px;
  background: #00E6A8;
  border: 1px solid #00E6A8;
  opacity: 0.8;
  animation: bmpPulse 1.8s infinite;
}

@keyframes bmpPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 6px #00E6A8; }
}

.bmp-title {
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmp-artist {
  color: #94a3b8;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bmp-btn {
  background: #11141c !important;
  border: 1px solid #2d3748 !important;
  color: #e2e8f0 !important;
  padding: 4px 10px !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0.05em !important;
  border-radius: 0px !important;
}

.bmp-btn:hover {
  border-color: #00e5ff !important;
  color: #00e5ff !important;
}

.bmp-btn-primary {
  border-color: #00E6A8 !important;
  color: #00E6A8 !important;
}

.bmp-btn-primary:hover {
  background: #00E6A8 !important;
  color: #05070a !important;
}

.bmp-progress-wrap {
  flex: 1;
  max-width: 480px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bmp-time {
  font-size: 10px;
  color: #64748b;
  min-width: 40px;
}

.bmp-progress-bar {
  flex: 1;
  height: 4px;
  background: #181c26;
  border: 1px solid #2d3748;
  position: relative;
  cursor: pointer;
}

.bmp-progress-fill {
  height: 100%;
  background: #00e5ff;
  width: 0%;
  pointer-events: none;
}

.bmp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 110px;
}

.bmp-volume-slider {
  width: 80px;
  height: 4px;
  background: #181c26;
  outline: none;
  cursor: pointer;
  accent-color: #00e5ff;
}

/* Addons Drawer Modal / Panel */
#bonzo-addons-drawer {
  position: fixed;
  top: 52px;
  right: 0;
  width: 540px;
  bottom: 0;
  background: #080b12;
  border-left: 1px solid #2d3748;
  z-index: 9980;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.8);
  font-family: 'JetBrains Mono', Consolas, monospace;
  color: #e2e8f0;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0px !important;
}

#bonzo-addons-drawer.open {
  transform: translateX(0);
}

.bad-header {
  height: 44px;
  background: #0d121c;
  border-bottom: 1px solid #1a202c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.bad-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d4a574;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bad-nav {
  display: flex;
  background: #05070a;
  border-bottom: 1px solid #1a202c;
}

.bad-tab-btn {
  flex: 1;
  background: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-right: 1px solid #1a202c !important;
  padding: 10px 6px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  border-radius: 0px !important;
}

.bad-tab-btn:hover {
  color: #ffffff !important;
  background: #0f1420 !important;
}

.bad-tab-btn.active {
  color: #00E6A8 !important;
  border-bottom-color: #00E6A8 !important;
  background: #0d121c !important;
}

.bad-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #080b12;
}

.bad-tab-pane {
  display: none;
}

.bad-tab-pane.active {
  display: block;
}

/* Music List in Drawer */
.bad-search-bar {
  width: 100%;
  padding: 8px 10px;
  background: #11141c;
  border: 1px solid #2d3748;
  color: #ffffff;
  font-size: 11px;
  margin-bottom: 12px;
  outline: none;
  border-radius: 0px !important;
}

.bad-search-bar:focus {
  border-color: #00e5ff;
}

.bad-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #1a202c;
  background: #0c1018;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0px !important;
}

.bad-track-item:hover {
  border-color: #00e5ff;
  background: #111722;
}

.bad-track-item.playing {
  border-color: #00E6A8;
  background: #0b1c18;
}

.bad-track-meta {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
}

.bad-track-title {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.bad-track-artist {
  color: #94a3b8;
  font-size: 10px;
}

/* Film Cards Grid in Drawer */
.bad-film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.bad-film-card {
  border: 1px solid #1a202c;
  background: #0b0f17;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0px !important;
}

.bad-film-card:hover {
  border-color: #d4a574;
}

.bad-film-poster-wrap {
  width: 100%;
  height: 140px;
  position: relative;
  background: #05070a;
  overflow: hidden;
}

.bad-film-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.bad-film-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(5, 7, 10, 0.85);
  border: 1px solid #2d3748;
  color: #d4a574;
  font-size: 10px;
  padding: 2px 6px;
  font-weight: 700;
}

.bad-film-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bad-film-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 4px;
}

.bad-film-meta {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 6px;
}

.bad-film-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

/* Radio Stations Grid */
.bad-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.bad-radio-card {
  border: 1px solid #1a202c;
  background: #0b0e16;
  padding: 12px;
  cursor: pointer;
  border-radius: 0px !important;
  transition: all 0.15s ease;
}

.bad-radio-card:hover {
  border-color: #00e5ff;
  background: #0f1522;
}

.bad-radio-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border: 1px solid #2d3748;
  background: #11141c;
  color: #00e5ff;
  margin-bottom: 6px;
}

.bad-radio-name {
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
  margin-bottom: 4px;
}

/* Weather & Fun Cards */
.bad-widget-card {
  border: 1px solid #2d3748;
  background: #0b0f17;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 0px !important;
}

.bad-widget-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #00E6A8;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bad-weather-temp {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.bad-weather-cond {
  color: #79c0ff;
  font-size: 12px;
  margin-top: 4px;
}

.bad-weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  color: #94a3b8;
  border-top: 1px solid #1a202c;
  padding-top: 8px;
}

/* Trailer Video Modal */
#bonzo-trailer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

#bonzo-trailer-modal.open {
  display: flex;
}

.btm-box {
  width: 100%;
  max-width: 800px;
  background: #080b12;
  border: 1px solid #2d3748;
  display: flex;
  flex-direction: column;
  border-radius: 0px !important;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.9);
}

.btm-header {
  height: 40px;
  background: #0d121c;
  border-bottom: 1px solid #1a202c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #ffffff;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.btm-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.btm-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Chat Interactive Media Cards */
.chat-audio-card {
  margin: 10px 0;
  border: 1px solid #00E6A8;
  background: #071310;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', Consolas, monospace;
  border-radius: 0px !important;
}

.chat-film-card {
  margin: 10px 0;
  border: 1px solid #d4a574;
  background: #0f0d0a;
  padding: 12px;
  display: flex;
  gap: 12px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  border-radius: 0px !important;
}

.chat-film-card img {
  width: 90px;
  height: 130px;
  object-fit: cover;
  border: 1px solid #2d3748;
}
