body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
a { text-decoration: none; }
.forum-row:hover .forum-name { color: #CC0000; }
.thread-title:hover { color: #CC0000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Plyr theme */
:root {
  --plyr-color-main: #CC0000;
  --plyr-video-background: #000;
  --plyr-menu-background: #1a1a1a;
  --plyr-menu-color: #e5e5e5;
  --plyr-menu-border-color: #333;
  --plyr-tooltip-background: #1a1a1a;
  --plyr-tooltip-color: #e5e5e5;
  --plyr-range-thumb-height: 14px;
  --plyr-range-thumb-width: 14px;
}

/* Pointer cursor fix (Tailwind resets it) */
.plyr button, .plyr input[type=range], .plyr__progress input[type=range],
.plyr__volume input[type=range], .bjk-inline-speed-range { cursor: pointer; }

/* Desktop: limit video height to 87vh, let width adapt */
@media (min-width: 640px) {
  .plyr--video .plyr__video-wrapper {
    padding-bottom: 0 !important;
    height: auto !important;
    max-height: calc(87vh - 50px);
    overflow: hidden;
  }
  .plyr--video video {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(87vh - 50px) !important;
    display: block;
  }
}

/* Mobile Plyr fixes */
@media (max-width: 639px) {
  /* Smaller control buttons so rewind fits */
  .plyr__controls .plyr__control { padding: 3px 5px; }
  .plyr__controls svg { width: 15px !important; height: 15px !important; }
  /* Hide pip + volume knob on mobile (system volume handles it) */
  .plyr__controls [data-plyr="pip"],
  .plyr__controls [data-plyr="volume"] { display: none !important; }
  /* Speed menu: scrollable so slider isn't cut off */
  .plyr__menu__container { max-height: 55vw; overflow-y: auto; }
  /* Tighter speed slider padding */
  .bjk-inline-speed { padding: 6px 10px 4px; }
}

/* Inline speed slider inside Plyr speed panel */
.bjk-inline-speed {
  padding: 10px 14px 6px;
  border-bottom: 1px solid #333;
}
.bjk-inline-speed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bjk-inline-speed-ends {
  font-size: 10px;
  color: #666;
}
.bjk-inline-speed-val {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}
.bjk-inline-speed-range {
  width: 100%;
  accent-color: #CC0000;
  height: 4px;
  display: block;
}

/* Download button in settings panel */
.bjk-dl-item {
  border-top: 1px solid #333;
  padding: 4px 0;
}
.bjk-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #e5e5e5;
  font-size: 13px;
  text-decoration: none;
  width: 100%;
  transition: background 0.15s;
}
.bjk-dl-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.bjk-dl-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Thread/forum status badges */
.badge-label { font-size: 10px; }

/* Announcement marquee */
.animate-marquee { animation: marquee 30s linear infinite; }
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
