/* ===========================================================
   RUNBENCHMARKS Ã¢â‚¬â€ OPTIMIZED CSS (FINAL)
   - Zero duplikatÃƒÂ³w
   - Logiczna struktura
   - Wszystkie funkcjonalnoÃ…â€ºci zachowane
   =========================================================== */

/* === 1) RESET & VARIABLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --primary: #EA580C;
  --border: #E5E7EB;
  --good: #10B981;
  --warn: #F59E0B;
  --bad: #EF4444;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* === 2) BASE LAYOUT === */
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app-root {
  flex: 1 1 auto;
 /* height: 100vh; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === 3) SPA VIEW ANIMATIONS === */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(.99);
  filter: blur(6px);
  transition: opacity .42s cubic-bezier(.22,1,.36,1),
              transform .42s cubic-bezier(.22,1,.36,1),
              filter .42s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.view-section.active,
.view-section.is-entering,
.view-section.is-leaving {
  display: block;
}

.view-section.is-entering {
  opacity: 0;
  transform: translateY(14px) scale(.99);
  filter: blur(6px);
  position: relative;
  z-index: 5;
}

.view-section.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.view-section.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(.99);
  filter: blur(6px);
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

html.rb-preload #app-root {
  visibility: hidden;
}

html:not(.rb-preload) #app-root {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .view-section {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* === 4) HEADER === */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: .2s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === 5) BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  
  /* DODANO: OdstÃ„â„¢p miÃ„â„¢dzy ikonÃ„â€¦ a tekstem */
  gap: 10px; 
  
  /* ZMIANA: Bardziej "Ã…Â¼ywa" animacja (sprÃ„â„¢Ã…Â¼ysta) */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* NowoÃ…â€ºÃ„â€¡: PÃ…â€šynny ruch ikony w Ã…â€ºrodku */
.btn svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-big {
  padding: 12px 28px;
  font-size: 15px;
}

/* --- PRIMARY BUTTON (Setups) --- */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 2px 4px rgba(234,88,12,0.20);
}

.btn-primary:hover {
  background: #c2410c;
  /* ZMIANA: WyÃ…Â¼sze uniesienie i mocniejszy cieÃ…â€ž (Glow) */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(234,88,12,0.4); 
}

/* Animacja ikony dla Primary: PowiÃ„â„¢kszenie i lekki obrÃƒÂ³t */
.btn-primary:hover svg {
  transform: scale(1.2) rotate(-5deg);
}

/* --- TEXT BUTTON --- */
.btn-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px;
}

.btn-text:hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.03); /* Delikatne tÃ…â€šo */
  border-radius: 6px;
}

.btn-yt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FF0000;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.btn-yt:hover {
  background: #cc0000;
  opacity: 1;
}

/* --- GLASS BUTTON (Compare) --- */
.btn-glass {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-glass:hover {
  background: #fff;
  border-color: var(--text-main);
  /* ZMIANA: WyÃ…Â¼sze uniesienie i cieÃ…â€ž */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.1);
}

/* Animacja ikony dla Glass: PrzesuniÃ„â„¢cie w prawo (sugeruje ruch) */
.btn-glass:hover svg {
  transform: translateX(4px);
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  justify-content: center;
  margin-top: 10px;
}
/* === 6) HERO SECTION === */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #EFF6FF;
  color: #3B82F6;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pill-pulse 2s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-stats .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17,24,39,0.03);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.hero-stats strong {
  color: var(--text-main);
  font-weight: 800;
}

/* === 7) HERO SEARCH (rb-search) === */
.rb-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 30px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02),
              0 20px 40px -12px rgba(0,0,0,0.08),
              inset 0 1px 0 rgba(255,255,255,1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  z-index: 20;
}

.rb-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -1px rgba(0,0,0,0.05),
              0 24px 50px -12px rgba(0,0,0,0.12);
}

.rb-search:focus-within {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(234,88,12,0.30);
  box-shadow: 0 20px 60px -10px rgba(234,88,12,0.15),
              0 0 0 4px rgba(234,88,12,0.05);
}

.rb-search-icon {
  color: #9CA3AF;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rb-search:focus-within .rb-search-icon {
  color: var(--primary);
}

.rb-search .search-input--rb {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  padding: 4px 0;
  min-width: 0;
}

.rb-search .search-input--rb::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.rb-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #6B7280;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
}

.rb-search-clear:hover {
  background: #E5E7EB;
  color: var(--bad);
}

.rb-search-go {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(234,88,12,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.rb-search-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234,88,12,0.35);
}

/* === 8) CAROUSEL === */
.carousel-section {
  padding: 40px 0;
  position: relative;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding-bottom: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-nav {
  display: flex;
  gap: 10px;
}

.nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  cursor: pointer;
}

.nav-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === 9) POSTER CARD === */
.poster-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: calc((100% - 60px) / 4);
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer !important;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.poster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.20);
  border-color: var(--primary);
}

.pc-cover {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.pc-cover-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: filter 160ms ease, transform 160ms ease;
}

.pc-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0,0,0,0);
  transition: background 160ms ease;
  pointer-events: none;
}

.pc-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(to top,
    rgba(0,0,0,0.95) 10%,
    rgba(0,0,0,0.70) 60%,
    transparent 100%
  );
  padding: 30px 16px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pc-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.80);
  margin-bottom: 4px;
}

.pc-hw {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.90);
}

.pc-res-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.30);
}

.pc-tag.is-latest {
  background: rgba(234,88,12,0.20);
  border-color: rgba(234,88,12,0.85) !important;
  box-shadow: 0 0 0 2px rgba(234,88,12,0.22);
  color: #fff;
}

.pc-action {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .3s ease;
}

.poster-card:hover .pc-action {
  height: auto;
  opacity: 1;
  margin-top: 8px;
}

.pc-btn {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer !important;
}

.pc-btn:hover {
  background: var(--primary);
  color: #fff;
}

.rb-metrics {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.rb-metric {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* === 10) TOOLTIP "i" === */
.rb-info-pin {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 30;
}

.rb-info-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: help;
  backdrop-filter: blur(6px);
  transition: 160ms ease;
  outline: none;
}

.poster-card:hover .rb-info-btn svg {
  transform: rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rb-info-btn:hover,
.rb-info-btn:focus {
  transform: translateY(-1px);
  background: rgba(10,12,18,0.55);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35),
              0 0 0 3px rgba(234,88,12,0.18);
}

.rb-info-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rb-info-btn .rb-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  max-width: 360px;
  padding: 12px;
  border-radius: 14px;
  background: #0a0c12;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 160ms ease;
}

.rb-info-btn:hover .rb-tooltip,
.rb-info-btn:focus .rb-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rb-tip-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: .2px;
}

.rb-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
}

.rb-tip-row:last-child {
  border-bottom: none;
}

.rb-tip-k {
  opacity: .75;
}

.rb-tip-v {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Tooltip focus effects */
.poster-card:has(.rb-info-btn:hover) .pc-cover-bg,
.poster-card:has(.rb-info-btn:focus) .pc-cover-bg {
  filter: blur(3px) brightness(0.60) saturate(0.90);
  transform: scale(1.02);
}

.poster-card:has(.rb-info-btn:hover) .pc-cover::after,
.poster-card:has(.rb-info-btn:focus) .pc-cover::after {
  background: rgba(0,0,0,0.35);
}

.poster-card:has(.rb-info-btn:hover) .pc-overlay,
.poster-card:has(.rb-info-btn:focus) .pc-overlay {
  filter: blur(3.5px);
  opacity: 0.55;
}

/* === 11) FLOAT METRICS === */
.rb-float-metrics {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 35;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - 70px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 160ms ease;
}

.rb-float-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,12,18,0.92);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.96);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.rb-float-k {
  opacity: .75;
  font-weight: 700;
}

.rb-float-v {
  font-weight: 900;
  letter-spacing: .2px;
}

.poster-card:has(.rb-info-btn:hover) .rb-float-metrics,
.poster-card:has(.rb-info-btn:focus) .rb-float-metrics {
  opacity: 1;
  transform: translateY(0);
}

.poster-card:has(.rb-info-btn:hover) .rb-float-metrics .rb-float-chip,
.poster-card:has(.rb-info-btn:focus) .rb-float-metrics .rb-float-chip {
  border-color: rgba(234, 88, 12, 0.95) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35),
              0 0 0 3px rgba(234, 88, 12, 0.18) !important;
}

.poster-card:has(.rb-info-btn:hover) .pc-overlay .rb-metrics,
.poster-card:has(.rb-info-btn:focus) .pc-overlay .rb-metrics {
  opacity: 0;
}

/* === 12) GAMES GRID === */
.main-content {
  padding: 40px 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

#view-games .poster-card.poster-card--game {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.poster-card--game .pc-action {
  height: auto;
  opacity: 1;
  margin-top: 10px;
}

.poster-card--game .pc-overlay {
  padding: 26px 14px 14px;
}

.poster-card--game .pc-title {
  font-size: 16px;
}

.poster-card--game .pc-hw {
  font-size: 12px;
  opacity: .92;
}



/* === 13) FOOTER === */
.footer {
  text-align: center;
  padding: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}

/* === 14) MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15,23,42,0.60);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.30);
  transform: translateY(20px);
  transition: transform .3s;
  text-align: center;
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text-main);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* === 15) DRAWER === */
.rb-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.rb-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.rb-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
}

.rb-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(760px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 60px rgba(0,0,0,0.18);
  transform: translateX(16px);
  opacity: 0;
  transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  display: flex;
  flex-direction: column;
}

.rb-drawer.open .rb-drawer-panel {
  transform: translateX(0);
  opacity: 1;
}

.rb-drawer-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rb-drawer-title {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
}

.rb-drawer-sub {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.rb-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
}

.rb-drawer-close:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.rb-drawer-body {
  padding: 16px 18px 18px;
  overflow: auto;
}

/* === 16) ANALYSIS MODE (FINAL) === */

/* Global scroll for Home/Games */
body{
  overflow: hidden;           /* nie scrolluj body */
}

/* Analysis: block page scroll + full height */
#view-detail.active {
  height: calc(100vh - 70px);
  overflow: hidden !important;
  min-height: 0;
}

/* Layout: 2-column grid */
#view-detail.active .rb-analysis {
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  background: var(--bg);
  min-height: 0;
}

/* LEFT PANEL (Sidebar) */
#view-detail.active .rb-analysis-sidebar {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  min-height: 0;
}

/* Sticky header (back + search) */
#view-detail.active .rb-analysis-side-top {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,24,39,0.08);
}

/* Game list - SCROLL here */
#view-detail.active .rb-analysis-side-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 14px;
  scroll-behavior: smooth;
}

/* Custom scrollbar (Chrome/Edge) */
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar {
  width: 10px;
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb {
  background: rgba(17,24,39,0.14);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.7);
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb:hover {
  background: rgba(17,24,39,0.22);
}

/* RIGHT PANEL (Workspace) */
#view-detail.active .rb-analysis-work {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  padding: 0;
}

/* Content wrapper */
#view-detail.active .rb-work-content {
  padding: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sticky filters in table */
#view-detail.active .rb-datagrid-filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249,250,251,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,24,39,0.08);
}

/* Analysis sub-components */
.rb-work-head {
  margin-bottom: 30px;
}

.rb-work-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.rb-work-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.rb-analysis-backrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rb-analysis-backbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-main);
  transition: .18s;
}

.rb-analysis-backbtn:hover {
  color: var(--primary);
}

.rb-analysis-modechip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(234,88,12,0.25);
  background: rgba(234,88,12,0.08);
  color: #9a3412;
}

.rb-analysis-search {
  width: 100%;
  margin: 0;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  font-size: 14px;
  padding: 7px 7px 7px 14px;
}

.rb-analysis-search:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.rb-analysis-search .rb-search-go {
  display: none;
}

.rb-analysis-search .search-input--rb {
  font-size: 14px;
}

/* Game list items */
.rb-gamelist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rb-gameitem {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s;
  border: 1px solid transparent;
}

.rb-gameitem:hover {
  background: var(--bg);
}

.rb-gameitem.is-active {
  background: rgba(234,88,12,0.08);
  border-color: rgba(234,88,12,0.3);
}

.rb-gameitem-thumb {
  width: 40px;
  height: 54px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #333;
}

.rb-gameitem-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.2;
}

.rb-gameitem-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === 17) PRO DATA TABLE === */
.rb-datagrid-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.rb-datagrid-filters {
  display: grid;
  grid-template-columns: 35% 30% 1fr;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  align-items: center;
}

.rb-filter-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
  background: #F9FAFB;
  font-weight: 500;
}

.rb-filter-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.rb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rb-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: #F9FAFB;
  letter-spacing: 0.05em;
}

.rb-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-main);
  transition: .2s;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-table tr:hover td {
  background: rgba(234,88,12,0.04);
}

.rb-table tr:last-child td {
  border-bottom: none;
}

.cell-hw {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.hw-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.hw-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-main);
}

.res-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(17,24,39,0.05);
  border-radius: 6px;
  color: var(--text-muted);
  margin-right: 4px;
  border: 1px solid rgba(0,0,0,0.05);
}

.btn-run {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  transition: .2s;
  border: none;
  cursor: pointer;
}

.btn-run:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

/* === 18) RESPONSIVE === */
@media (max-width: 1024px) {
  .poster-card {
    width: calc((100% - 20px) / 2);
  }
  
  #view-detail.active .rb-analysis {
    grid-template-columns: 280px 1fr;
  }
  
  .rb-datagrid-filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .rb-datagrid-filters div:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .carousel-nav {
    display: none;
  }
  
  .poster-card {
    width: 100%;
    max-width: 320px;
    margin-right: 10px;
  }
  
  #view-detail.active .rb-analysis {
    grid-template-columns: 1fr;
  }
  
  #view-detail.active .rb-analysis-sidebar {
    display: none;
  }
  
  .rb-datagrid-filters {
    grid-template-columns: 1fr;
  }
  
  .rb-table th:nth-child(2),
  .rb-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 640px) {
  .rb-search {
    padding: 6px 6px 6px 16px;
  }
  
  .rb-search-go {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ========================================
   CRITICAL SCROLL FIX - Analysis Mode
   Dodaj to NA SAMYM KOÃ…Æ’CU style.css
   ======================================== */

/* 1. Fix dla #app-root - pozwÃƒÂ³l view-detail byÃ„â€¡ peÃ…â€šnej wysokoÃ…â€ºci */
body:has(#view-detail.active) #app-root {
  overflow: visible !important;
}

/* 2. KaÃ…Â¼dy view moÃ…Â¼e scrollowaÃ„â€¡ normalnie */
.view-section.active {
  overflow: auto;
}

/* 3. TYLKO Analysis: blokuj scroll + full height */
#view-detail.active {
  height: calc(100vh - 70px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
}

/* 4. Detail content jako flex container */
#view-detail.active #detail-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 5. Analysis grid zajmuje caÃ…â€šÃ„â€¦ dostÃ„â„¢pnÃ„â€¦ przestrzeÃ…â€ž */
#view-detail.active .rb-analysis {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--bg);
}

/* 6. LEWY PANEL - niezaleÃ…Â¼ny scroll */
#view-detail.active .rb-analysis-sidebar {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.90);
  border-right: 1px solid var(--border);
}

#view-detail.active .rb-analysis-side-top {
  flex: 0 0 auto;
  padding: 16px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(17,24,39,0.08);
}

#view-detail.active .rb-analysis-side-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 10px;
}

/* Custom scrollbar */
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar {
  width: 8px;
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb {
  background: rgba(234,88,12,0.3);
  border-radius: 10px;
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb:hover {
  background: rgba(234,88,12,0.5);
}

/* 7. PRAWY PANEL - niezaleÃ…Â¼ny scroll */
#view-detail.active .rb-analysis-work {
  height: 100%;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  background: var(--bg);
}

/* Custom scrollbar for workspace */
#view-detail.active .rb-analysis-work::-webkit-scrollbar {
  width: 8px;
}

#view-detail.active .rb-analysis-work::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

#view-detail.active .rb-analysis-work::-webkit-scrollbar-thumb {
  background: rgba(234,88,12,0.3);
  border-radius: 10px;
}

#view-detail.active .rb-analysis-work::-webkit-scrollbar-thumb:hover {
  background: rgba(234,88,12,0.5);
}

/* 8. Content wrapper */
#view-detail.active .rb-work-content {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* 9. DEBUG - odkomentuj Ã…Â¼eby zobaczyÃ„â€¡ granice */
/*
#view-detail.active {
  outline: 3px solid red !important;
}

#view-detail.active .rb-analysis {
  outline: 3px solid blue !important;
}

#view-detail.active .rb-analysis-sidebar {
  outline: 2px solid green !important;
}

#view-detail.active .rb-analysis-side-list {
  outline: 2px solid yellow !important;
}

#view-detail.active .rb-analysis-work {
  outline: 2px solid purple !important;
}
*/

/* 10. RESPONSIVE */
@media (max-width: 1024px) {
  #view-detail.active .rb-analysis {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  #view-detail.active .rb-analysis {
    grid-template-columns: 1fr;
  }
  
  #view-detail.active .rb-analysis-sidebar {
    display: none;
  }
}

/* ========================================
   FINAL FIX: usuÃ…â€ž "gÃ…â€šÃƒÂ³wny" scroll (header+footer)
   Wklej na sam koniec style.css
   ======================================== */

/* 1) Zablokuj scroll dokumentu (html/body) */
html, body {
  height: 100%;
}

body {
  overflow: hidden !important;
}

/* 2) #app-root NIE moÃ…Â¼e mieÃ„â€¡ 100vh (bo masz jeszcze header/footer) */
#app-root{
  flex: 1 1 auto;
  /* height: calc(100vh - 70px); odejmij header */
  overflow: auto;             /* scroll tylko tutaj */
  min-height: 0;
}

/* 3) Nie rÃƒÂ³b scrolla na samych view-section (bo bÃ„â„¢dÃ„â€¦ podwÃƒÂ³jne) */
.view-section.active {
  overflow: visible !important; /* zamiast overflow:auto */
}

/* 4) Analysis: wyÃ…â€šÃ„â€¦cz scroll #app-root, zostaw tylko dwa panele */
body:has(#view-detail.active) #app-root {
  overflow: hidden !important;
}

/* 5) JeÃ…â€ºli footer jest widoczny w Analysis i psuje wysokoÃ…â€ºÃ„â€¡ Ã¢â‚¬â€ ukryj go w Analysis */
body:has(#view-detail.active) .footer {
  display: none !important;
}

/* 6) Niech view-detail faktycznie zajmie caÃ…â€šÃ„â€¦ przestrzeÃ…â€ž w #app-root */
#view-detail.active {
  flex: 1 1 auto;
  min-height: 0;
}

/* =========================================
   WOW ANALYSIS HEADER + STICKY TITLE+FILTERS
   + NEUTRAL MODERN SCROLLBARS
   (wklej na sam koniec)
   ========================================= */

/* --- neutralne, nowoczesne scrollbary (bez pomaraÃ…â€žczu) --- */
:root{
  --sb-track: rgba(17,24,39,0.06);
  --sb-thumb: rgba(17,24,39,0.22);
  --sb-thumb-hover: rgba(17,24,39,0.32);
}

/* Firefox */
#view-detail.active .rb-analysis-side-list,
#view-detail.active .rb-analysis-work{
  scrollbar-color: var(--sb-thumb) var(--sb-track);
  scrollbar-width: thin;
}

/* Chrome/Edge */
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar,
#view-detail.active .rb-analysis-work::-webkit-scrollbar{
  width: 10px;
}
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-track,
#view-detail.active .rb-analysis-work::-webkit-scrollbar-track{
  background: var(--sb-track);
}
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb,
#view-detail.active .rb-analysis-work::-webkit-scrollbar-thumb{
  background: var(--sb-thumb) !important;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb:hover,
#view-detail.active .rb-analysis-work::-webkit-scrollbar-thumb:hover{
  background: var(--sb-thumb-hover) !important;
}

/* --- STICKY BAR: tytuÃ…â€š + filtry zawsze widoczne --- */
#view-detail.active .rb-work-stickybar{
  position: sticky;
  top: 0;                 /* sticky wewnÃ„â€¦trz .rb-analysis-work (scroll kontenera) */
  z-index: 30;
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17,24,39,0.08);
  padding: 18px 0 14px;
}

/* jeÃ…Â¼eli masz padding 40 w .rb-work-content Ã¢â‚¬â€œ to stickybar teÃ…Â¼ ma wyglÃ„â€¦daÃ„â€¡ Ã¢â‚¬Å“premiumÃ¢â‚¬Â */
#view-detail.active .rb-work-stickybar{
  margin: -40px -40px 18px;     /* wyrÃƒÂ³wnaj stickybar do krawÃ„â„¢dzi contentu */
  padding: 22px 40px 16px;
}

/* --- WOW HERO w Analysis --- */
#view-detail.active .rb-work-hero{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;

  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,0.10);

  background:
    radial-gradient(1200px 240px at 10% 0%,
      rgba(234,88,12,0.14) 0%,
      rgba(234,88,12,0.06) 40%,
      rgba(255,255,255,0.0) 70%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

#view-detail.active .rb-work-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.55);
  margin-bottom: 8px;
}

#view-detail.active .rb-work-title{
  font-size: 38px;       /* WOW */
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

#view-detail.active .rb-work-sub{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(17,24,39,0.65);
  font-weight: 600;
}

#view-detail.active .rb-work-sub strong{
  color: var(--primary);
  font-weight: 900;
}

/* meta chips po prawej (runs itd) */
#view-detail.active .rb-work-hero-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#view-detail.active .rb-chip{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  font-family: var(--font-mono);
}
#view-detail.active .rb-chip-k{
  opacity: .65;
  font-weight: 800;
  font-size: 11px;
}
#view-detail.active .rb-chip-v{
  font-weight: 950;
  font-size: 12px;
}

/* --- Filtry: Ã¢â‚¬Å“premium input barÃ¢â‚¬Â --- */
#view-detail.active .rb-datagrid-filters--pro{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 12px;

  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

#view-detail.active .rb-datagrid-filters--pro .rb-filter-input{
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,0.12);
  background: rgba(249,250,251,0.95);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-main);
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

#view-detail.active .rb-datagrid-filters--pro .rb-filter-input:focus{
  outline: none;
  background: #fff;
  border-color: rgba(234,88,12,0.35);
  box-shadow:
    0 10px 30px rgba(234,88,12,0.10),
    0 0 0 4px rgba(234,88,12,0.06);
}

/* tabela zostaje jak byÃ…â€ša, ale usuÃ…â€ž Ã¢â‚¬Å“podwÃƒÂ³jnyÃ¢â‚¬Â sticky filtrÃƒÂ³w z poprzednich reguÃ…â€š */
#view-detail.active .rb-datagrid-wrap .rb-datagrid-filters{
  position: static !important; /* bo filtry sÃ„â€¦ teraz w stickybarze */
}

/* maÃ…â€šy polish: Ã…Â¼eby content po stickybarze nie wchodziÃ…â€š pod niego */
#view-detail.active .rb-datagrid-wrap{
  margin-top: 0;
}
/* ===========================================================
   ANALYSIS WOW PACK (Hero + Sticky Title/Filters + Scrollbars)
   Wklej na sam koniec style.css
   =========================================================== */

/* ---------- Neutral / modern scrollbars (no orange) ---------- */
:root{
  --scroll-track: rgba(17,24,39,.06);
  --scroll-thumb: rgba(17,24,39,.22);
  --scroll-thumb-hover: rgba(17,24,39,.32);
}

/* Firefox */
#view-detail.active .rb-analysis-side-list,
#view-detail.active .rb-analysis-work{
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Chromium (Chrome/Edge) */
#view-detail.active .rb-analysis-side-list::-webkit-scrollbar,
#view-detail.active .rb-analysis-work::-webkit-scrollbar{
  width: 10px;
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-track,
#view-detail.active .rb-analysis-work::-webkit-scrollbar-track{
  background: var(--scroll-track);
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb,
#view-detail.active .rb-analysis-work::-webkit-scrollbar-thumb{
  background: var(--scroll-thumb) !important;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.65);
}

#view-detail.active .rb-analysis-side-list::-webkit-scrollbar-thumb:hover,
#view-detail.active .rb-analysis-work::-webkit-scrollbar-thumb:hover{
  background: var(--scroll-thumb-hover) !important;
}

/* ---------- Hero (cover + glass + stats) ---------- */
.rb-work-hero{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
  background: #0b0f18;
  margin-bottom: 16px;
}

.rb-work-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--rb-hero);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: brightness(.70) saturate(1.02);
}

.rb-work-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 520px at 18% 18%, rgba(234,88,12,.28), transparent 55%),
    linear-gradient(to top, rgba(10,12,18,.92) 0%, rgba(10,12,18,.55) 60%, rgba(10,12,18,.25) 100%);
}

.rb-work-hero-inner{
  position: relative;
  z-index: 2;
  padding: 26px 26px 20px;
  color: #fff;
}

.rb-hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

.rb-work-hero .rb-work-title{
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #fff;
}

.rb-work-hero .rb-work-sub{
  margin-top: 8px;
  color: rgba(255,255,255,.80);
  font-weight: 600;
  font-size: 14px;
  max-width: 820px;
}

.rb-hero-stats{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rb-hero-pill{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
}

.rb-hero-pill .k{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  opacity: .80;
}

.rb-hero-pill .v{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .2px;
}

/* ---------- Sticky title + filters while scrolling ---------- */
/* waÃ…Â¼ne: dziaÃ…â€ša w scroll containerze .rb-analysis-work */
.rb-table-sticky{
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -40px;            /* wyrÃƒÂ³wnaj do paddingu .rb-work-content */
  padding: 14px 40px 12px;
  background: rgba(249,250,251,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.rb-sticky-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.rb-sticky-title .t{
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.1;
}

.rb-sticky-title .s{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.rb-filter-clearbtn{
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.90);
  font-weight: 900;
  font-size: 12px;
  color: var(--text-main);
  transition: .15s;
}

.rb-filter-clearbtn:hover{
  border-color: rgba(17,24,39,.26);
  transform: translateY(-1px);
}

.rb-filters-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Ã¢â‚¬Å“Ã…â€šadniejszeÃ¢â‚¬Â pola filtrÃƒÂ³w */
.rb-filter-field{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(15,23,42,.06);
}

.rb-filter-ic{
  width: 18px;
  height: 18px;
  color: rgba(17,24,39,.55);
  flex-shrink: 0;
}

.rb-filter-field:focus-within{
  border-color: rgba(234,88,12,.28);
  box-shadow: 0 18px 45px rgba(234,88,12,.10);
}

.rb-filter-input{
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.rb-filter-input::placeholder{
  color: rgba(107,114,128,.85);
  font-weight: 700;
}

/* maÃ…â€šy tuning wrappera */
#view-detail.active .rb-work-content{
  padding-top: 26px; /* trochÃ„â„¢ mniej niÃ…Â¼ 40, bo sticky ma wÃ…â€šasne paddingi */
}

/* ===========================================================
   STYLE: ULTRA-CLEAN PREMIUM (Minimalist)
   =========================================================== */

/* Reset nagÃ…â€šÃƒÂ³wka - usuwamy zbÃ„â„¢dne tÃ…â€ša */
.rb-work-head {
  padding: 0 0 32px 0; /* OdstÃ„â„¢p tylko od doÃ…â€šu */
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  background: #fff; /* Czyste tÃ…â€šo */
  position: relative;
}

/* Subtelny "glow" na gÃƒÂ³rze, Ã…Â¼eby nie byÃ…â€šo pÃ…â€šasko */
/* Usuwamy stare tÃ…â€šo z nagÃ…â€šÃƒÂ³wka, ktÃƒÂ³re "uciekaÃ…â€šo" */
.rb-work-head::before {
  display: none;
}

/* Kontener Flex dla nagÃ…â€šÃƒÂ³wka */
.rb-premium-header {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 10px; /* Padding wewnÃ„â€¦trz */
}

/* MaÃ…â€ša, elegancka okÃ…â€šadka jako ikona */
.rb-header-icon {
  width: 80px;
  height: 106px; /* Proporcja okÃ…â€šadki */
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.06), 
    0 4px 8px rgba(0,0,0,0.08); /* MiÃ„â„¢kki cieÃ…â€ž */
  border: 1px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
  background-color: #f3f4f6;
}

/* TreÃ…â€ºÃ„â€¡ tekstowa */
.rb-header-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Badge nad tytułem */
.rb-header-breadcrumbs {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-header-breadcrumbs::before {
  content: "•";
  font-size: 5px;
  opacity: 0.5;
}

/* TytuÃ…â€š - Czysty, Ciemny, Bez cieni */
.rb-header-title {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* 3. Stylowanie nowych statystyk (Configs) */
.rb-header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 500;
}

.rb-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.rb-stat-item b {
  color: #111827;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Separator kropka */
.rb-dot { width: 4px; height: 4px; background: #D1D5DB; border-radius: 50%; }

/* Poprawka dla filtrÃƒÂ³w - Ã…Â¼eby przylegaÃ…â€šy do nagÃ…â€šÃƒÂ³wka */
.rb-datagrid-filters {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 40px; /* SpÃƒÂ³jny padding z nagÃ…â€šÃƒÂ³wkiem */
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Tabela - odsuniÃ„â„¢cie od filtrÃƒÂ³w */
.rb-datagrid-wrap {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* OdsuniÃ„â„¢cie treÃ…â€ºci od krawÃ„â„¢dzi */
.rb-work-content {
  padding: 0; /* Padding jest teraz wewnÃ„â€¦trz header i filters */
}

#rb-table-container {
  padding: 0 40px 60px; /* Padding dla tabeli */
  max-width: 1400px;
  margin: 0 auto;
}
/* 1. Naprawa TÃ…â€ša (Glow nie ucieka przy scrollu) */
.rb-analysis-work {
  /* TÃ…â€šo gradientowe na caÃ…â€šym kontenerze (nieruchome) */
  background: 
    radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.08), transparent 400px),
    var(--bg); 
  position: relative;
}

/* 2. Sticky Filtry (Musi mieÃ„â€¡ tÃ…â€šo, Ã…Â¼eby nie przeÃ…â€ºwitywaÃ…â€šo) */
.rb-datagrid-filters {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95); /* Prawie peÃ…â€šne krycie */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05); /* Lekki cieÃ…â€ž */
  margin-top: -1px; /* Ã…Âatka na Ã…â€šÃ„â€¦czenie */
}

.rb-stat-item:hover {
  background: rgba(0,0,0,0.03);
}

/* ===========================================================
   GAMES SEARCH: MEGA PREMIUM FLOATING BAR (FINAL)
   - dziaÃ…â€ša stabilnie ze scrollem w #app-root
   - lewituje pod headerem
   - nie blokuje klikÃƒÂ³w w grid (pointer-events)
   =========================================================== */

:root{
  --header-h: 70px;
  --gamesbar-gap: 5px;         /* oddech pod headerem */
  --gamesbar-h: 56px;
  --gamesbar-max: 680px;
  --gamesbar-max-focus: 720px;
}

/* Scroll container: jeden scroll dla Home/Games */
body{ overflow: hidden; }

#app-root{
  flex: 1 1 auto;
  height: calc(100vh - var(--header-h));
  overflow: auto;
  min-height: 0;
}

/* Sticky wrapper: Ã¢â‚¬Å“niewidzialnyÃ¢â‚¬Â, nie blokuje klikÃƒÂ³w */
#view-games .games-search-sticky{
  position: sticky;
  top: var(--gamesbar-gap);     /* bo #app-root juÃ…Â¼ startuje pod headerem */
  z-index: 90;

  padding: 0 20px;
  display: flex;
  justify-content: center;

  background: transparent;
  border: 0;
  backdrop-filter: none;

  pointer-events: none;         /* mega waÃ…Â¼ne Ã¢â‚¬â€ klik w gry dziaÃ…â€ša */
}

/* Sam pasek: glass premium */
#view-games .games-search-sticky .rb-search{
  pointer-events: auto;
  margin: 0;
  width: 100%;
  max-width: var(--gamesbar-max);
  height: var(--gamesbar-h);

  /* Ã¢â‚¬Å“toolbar lookÃ¢â‚¬Â zamiast hero */
  border-radius: 24px;
  padding: 8px 10px 8px 16px;
  gap: 12px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,0.02),
    0 12px 30px -4px rgba(0,0,0,0.08),
    0 0 0 1px rgba(17,24,39,0.04);

  transform: translateY(0);
  transition: background .28s cubic-bezier(0.16,1,0.3,1),
              box-shadow .28s cubic-bezier(0.16,1,0.3,1),
              transform .28s cubic-bezier(0.16,1,0.3,1),
              max-width .28s cubic-bezier(0.16,1,0.3,1),
              border-color .28s cubic-bezier(0.16,1,0.3,1);
}

/* Hover: tylko lekka lewitacja (bez Ã¢â‚¬Å“skakaniaÃ¢â‚¬Â) */
#view-games .games-search-sticky .rb-search:hover{
  background: rgba(255,255,255,0.86);
  box-shadow:
    0 8px 12px -1px rgba(0,0,0,0.04),
    0 20px 40px -4px rgba(0,0,0,0.12),
    0 0 0 1px rgba(17,24,39,0.04);
  transform: translateY(-1px);
}

/* Focus: WOW, ale kontrolowane */
#view-games .games-search-sticky .rb-search:focus-within{
  background: rgba(255,255,255,0.96);
  max-width: var(--gamesbar-max-focus);
  transform: translateY(-2px);

  border-color: rgba(234,88,12,0.26);
  box-shadow:
    0 24px 60px -10px rgba(234,88,12,0.12),
    0 0 0 4px rgba(234,88,12,0.05);
}

/* Ikona */
#view-games .games-search-sticky .rb-search-icon{
  color: #9CA3AF;
  transition: color .25s ease;
  margin-left: 2px;
}
#view-games .games-search-sticky .rb-search:focus-within .rb-search-icon{
  color: var(--primary);
}

/* Input */
#view-games .games-search-sticky .search-input--rb{
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
  padding: 0; /* Ã…Â¼eby nie puchÃ…â€šo */
}
#view-games .games-search-sticky .search-input--rb::placeholder{
  color: #9CA3AF;
  font-weight: 400;
}

/* Clear button: pokaÃ…Â¼ dopiero gdy jest tekst (masz to pewnie w JS, ale CSS niech bÃ„â„¢dzie gotowy) */
#view-games .games-search-sticky .rb-search-clear{
  display: flex;
}

/* Search button: toolbar-style (nie krzyczy) */
#view-games .games-search-sticky .rb-search-go{
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  box-shadow: none;
  font-size: 13px;
}

/* Oddech na start gridu (tylko minimalny) */
#view-games .grid{
  padding-top: 14px;
}


/* ===========================================================
   COMING UP: CAROUSEL CARDS (Vertical Layout + Info Panel)
   Taki sam wyglÃ„â€¦d jak karuzela, ale pionowo z prawym panelem
   =========================================================== */

#view-comingup {
  padding: 40px 0 80px;
}

/* Kontener listy (pionowy stack) */
.cu-prolist {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* GÃ…â€šÃƒÂ³wny wiersz: Poster Card (lewo) + Info Panel (prawo) */
.cu-row {
  display: grid;
  grid-template-columns: 320px 1fr; /* Taka sama szerokoÃ…â€ºÃ„â€¡ jak w karuzeli */
  gap: 24px;
  align-items: stretch;
  
  /* Slide-in animation */
  opacity: 0;
  transform: translateY(30px);
  animation: cuSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered animation delays */
.cu-row:nth-child(1) { animation-delay: 0.1s; }
.cu-row:nth-child(2) { animation-delay: 0.2s; }
.cu-row:nth-child(3) { animation-delay: 0.3s; }
.cu-row:nth-child(4) { animation-delay: 0.4s; }
.cu-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes cuSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effect: CaÃ…â€šy row podnosi siÃ„â„¢ */
.cu-row:hover .poster-card {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border-color: var(--primary);
}

.cu-row:hover .cu-panel {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  border-color: rgba(234,88,12,0.2);
}

/* ===========================================================
   LEFT: POSTER CARD (identyczny jak w karuzeli)
   =========================================================== */

.cu-row .poster-card {
  /* Reset width - niech zajmuje swojÃ„â€¦ kolumnÃ„â„¢ */
  width: 100%;
  aspect-ratio: 3/4; /* Takie same proporcje jak karuzela */
  flex-shrink: 0;
  
  /* Identyczne style jak karuzela */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Wszystkie inne style sÃ„â€¦ juÃ…Â¼ w gÃ…â€šÃƒÂ³wnym CSS dla .poster-card */
/* WiÃ„â„¢c nie musimy ich duplikowaÃ„â€¡! */

/* Badge "COMING UP" (dodatkowy) */
.cu-badge-coming {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  padding: 6px 12px;
  border-radius: 8px;
  
  background: rgba(234, 88, 12, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
  
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  
  animation: cuBadgePulse 2.5s infinite;
}

@keyframes cuBadgePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.6);
  }
}

.cu-badge-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  animation: cuBlink 1.8s infinite;
}

@keyframes cuBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===========================================================
   RIGHT: INFO PANEL (Premium Glass)
   =========================================================== */

.cu-panel {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay */
.cu-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(234,88,12,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Title */
.cu-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

/* Hardware Grid (2 columns) */
.cu-hw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.cu-hw-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cu-hw-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cu-hw-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.cu-hw-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

/* Divider */
.cu-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border) 20%,
    var(--border) 80%,
    transparent 100%
  );
  position: relative;
  z-index: 1;
}

/* Status Row */
.cu-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.cu-status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

/* Status Pill */
.cu-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065F46;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.cu-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 
    0 0 0 3px rgba(16, 185, 129, 0.2),
    0 0 10px rgba(16, 185, 129, 0.5);
  animation: cuDotPulse 2s infinite;
}

@keyframes cuDotPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Status variants */
.cu-status--recording {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991B1B;
}

.cu-status--recording .cu-status-dot {
  background: #EF4444;
  box-shadow: 
    0 0 0 3px rgba(239, 68, 68, 0.2),
    0 0 10px rgba(239, 68, 68, 0.5);
}

.cu-status--editing {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400E;
}

.cu-status--editing .cu-status-dot {
  background: #F59E0B;
  box-shadow: 
    0 0 0 3px rgba(245, 158, 11, 0.2),
    0 0 10px rgba(245, 158, 11, 0.5);
}

/* Action Button */
.cu-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #fff;
  
  font-size: 13px;
  font-weight: 800;
  
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  transition: all 0.25s ease;
  
  position: relative;
  z-index: 1;
}

.cu-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5);
}

.cu-action-btn:disabled {
  background: rgba(17,24,39,0.08);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cu-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Empty state */
.cu-empty {
  padding: 80px 40px;
  text-align: center;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cu-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.2;
}

.cu-empty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
}

.cu-empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}


/* ===========================================================
   COMING UP HOME - CLEAN (uses same styles as carousel)
   =========================================================== */

/* Section visibility */
#comingup-home-section { display: none; }
#comingup-home-section.has-items { display: block; }

/* Header */
#comingup-home-section .comingup-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

#comingup-home-section .comingup-home-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

#comingup-home-section .comingup-home-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 6px 12px;
  background: rgba(17,24,39,0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Grid */
#comingup-home-section .comingup-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* Card sizing (override carousel width calc) */
#comingup-home-section .poster-card--comingup {
  width: 100% !important;
  max-width: 260px;
  margin: 0 auto;
}

/* Disabled state */
#comingup-home-section .poster-card--comingup.is-disabled {
  cursor: default !important;
  opacity: 0.7;
}

#comingup-home-section .poster-card--comingup.is-disabled .pc-cover-bg {
  filter: grayscale(0.3) brightness(0.85);
}

/* TEASER badge - positioned top-left on cover */
#comingup-home-section .poster-card--comingup .cu-teaser-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 35;
  
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  
  background: rgba(10,12,18,0.65);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  
  color: rgba(255,255,255,0.95);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

#comingup-home-section .poster-card--comingup .cu-teaser-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Status dot inside tag */
#comingup-home-section .pc-tag .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 6px;
}

/* Status variants */
#comingup-home-section .pc-tag.status-recording {
  background: rgba(239,68,68,0.20);
  border: 1px solid rgba(239,68,68,0.50);
  color: #FCA5A5;
}

#comingup-home-section .pc-tag.status-editing {
  background: rgba(245,158,11,0.20);
  border: 1px solid rgba(245,158,11,0.50);
  color: #FCD34D;
}

#comingup-home-section .pc-tag.status-done {
  background: rgba(16,185,129,0.20);
  border: 1px solid rgba(16,185,129,0.50);
  color: #6EE7B7;
}

#comingup-home-section .pc-tag.status-planned {
  background: rgba(59,130,246,0.20);
  border: 1px solid rgba(59,130,246,0.50);
  color: #93C5FD;
}

/* NAV notification badge */
.rb-notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rb-notification-badge:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(234,88,12,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  #comingup-home-section .comingup-home-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  #comingup-home-section .comingup-home-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  #comingup-home-section .comingup-home-grid {
    grid-template-columns: 1fr 1fr;
  }
}
#comingup-home-section .poster-card--comingup .pc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* ===========================================================
   DATABASE VIEW (Unified Games + Setups)
   =========================================================== */

/* Database layout - same as Analysis */
#view-database.active {
  height: calc(100vh - 70px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
}

#view-database.active #database-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#view-database.active .rb-database {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--bg);
}

/* Sidebar */
#view-database.active .rb-database-sidebar {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
}

#view-database.active .rb-database-side-top {
  flex: 0 0 auto;
  padding: 16px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(17,24,39,0.08);
}

#view-database.active .rb-database-side-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 10px;
}

/* Workspace */
#view-database.active .rb-database-work {
  height: 100%;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  background: var(--bg);
}

/* Back row */
.rb-database-backrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rb-database-backbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-main);
  transition: .18s;
  cursor: pointer;
}

.rb-database-backbtn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.rb-database-modechip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.08);
  color: #1e40af;
}

/* MODE TOGGLE */
.rb-mode-toggle {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(17,24,39,0.04);
  border-radius: 14px;
  margin-bottom: 12px;
}

.rb-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rb-mode-btn:hover {
  background: rgba(255,255,255,0.6);
  color: #111827;
}

.rb-mode-btn.is-active {
  background: white;
  border-color: rgba(59,130,246,0.25);
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}

.rb-mode-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Database search */
.rb-database-search {
  width: 100%;
  margin: 0;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 8px 8px 14px;
}

.rb-database-search:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.rb-database-search .rb-search-go {
  display: none;
}

.rb-database-search .search-input--rb {
  font-size: 14px;
}

/* List items */
.rb-itemlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rb-listitem {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s;
  border: 1px solid transparent;
}

.rb-listitem:hover {
  background: var(--bg);
}

.rb-listitem.is-active {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
}

.rb-listitem-thumb {
  width: 40px;
  height: 54px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #333;
}

.rb-listitem-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3b82f6;
}

.rb-listitem-meta {
  flex: 1;
  min-width: 0;
}

.rb-listitem-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-listitem-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

.rb-list-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Welcome state */
.rb-db-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px 40px;
  text-align: center;
}

.rb-db-welcome-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.rb-db-welcome-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.rb-db-welcome-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.5;
}

/* Setup detail - games grid */
.rb-setup-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  padding: 0 40px 60px;
}

.poster-card--setup-game {
  width: 100%;
  aspect-ratio: 3/4;
}

.rb-setup-empty {
  grid-column: 1 / -1;
  padding: 60px 40px;
  text-align: center;
}

.rb-setup-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.rb-setup-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.rb-setup-empty-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Header icon for setups */
.rb-header-hw-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(59,130,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}

.rb-premium-header--setup {
  background: 
    radial-gradient(circle at 10% 50%, rgba(59,130,246,0.08), transparent 400px),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
}

/* Scrollbars */
#view-database.active .rb-database-side-list::-webkit-scrollbar,
#view-database.active .rb-database-work::-webkit-scrollbar {
  width: 10px;
}

#view-database.active .rb-database-side-list::-webkit-scrollbar-track,
#view-database.active .rb-database-work::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

#view-database.active .rb-database-side-list::-webkit-scrollbar-thumb,
#view-database.active .rb-database-work::-webkit-scrollbar-thumb {
  background: rgba(17,24,39,0.22);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.65);
}

#view-database.active .rb-database-side-list::-webkit-scrollbar-thumb:hover,
#view-database.active .rb-database-work::-webkit-scrollbar-thumb:hover {
  background: rgba(17,24,39,0.32);
}

/* Responsive */
@media (max-width: 1024px) {
  #view-database.active .rb-database {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  #view-database.active .rb-database {
    grid-template-columns: 1fr;
  }
  
  #view-database.active .rb-database-sidebar {
    display: none;
  }
}
/* ===========================================================
   DATABASE: STICKY HEADERS (Games + Setups)
   Wklej na koniec style.css
   =========================================================== */

/* Jeśli masz inną wysokość top headera, zmień 70px */
:root { --rb-header-h: 70px; }

/* 2-kolumnowy układ i stała wysokość widoku pod headerem */
#view-database .rb-database{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--rb-header-h));
}

/* Lewy panel: przyklejony pod głównym headerem */
#view-database .rb-database-sidebar{
  position: sticky;
  top: var(--rb-header-h);
  height: calc(100vh - var(--rb-header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden; /* ważne: scroll ma być w liście, nie w całym sidebarze */
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
}

/* Top (toggle + search) zawsze widoczny */
#view-database .rb-database-side-top{
  flex: 0 0 auto;
  position: sticky; /* dodatkowy “failsafe” */
  top: 0;
  z-index: 5;
  background: inherit;
}

/* Scroll tylko w liście */
#view-database .rb-database-side-list{
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prawa strona: osobny scroll (żeby header po prawej mógł być sticky) */
#view-database .rb-database-work{
  height: calc(100vh - var(--rb-header-h));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sticky header w workspace (Twoje: rb-premium-header itp.) */
#view-database .rb-work-head{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Bonus: jeśli tabela ma swój scroll-wrapper, możesz przykleić thead */
#view-database .rb-datagrid-wrap thead th{
  position: sticky;
  top: 0; /* działa jeśli rb-datagrid-wrap ma overflow */
  z-index: 2;
  background: #fff;
}
/* =========================
   SETUPS: compact sticky toolbar
   ========================= */

#view-database .rb-setup-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 8px 0;
  margin-top: 10px;

  background: var(--bg);
  border-top: 1px solid rgba(17,24,39,0.06);
  border-bottom: 1px solid rgba(17,24,39,0.06);
}

#view-database .rb-setup-toolbar-left{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}

#view-database .rb-setup-toolbar-title{
  font-weight: 800;
  font-size: 13px;
  color:#111827;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#view-database .rb-setup-toolbar-count{
  font-weight: 900;
  font-size: 12px;
  color: rgba(17,24,39,0.65);
  white-space:nowrap;
}

#view-database .rb-setup-toolbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

/* przyciski niższe */
#view-database .rb-setup-toolbar-actions .btn,
#view-database .rb-setup-toolbar-actions .btn-text{
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

/* ważne: daje oddech pod sticky head (żeby cover nie wyglądał na ucięty) */
#view-database .rb-setup-games-grid{
  padding-top: 12px;
}
/* ===========================================================
   DATABASE REDESIGN 2026
   =========================================================== */

/* Mode toggle z ikonami i licznikami */
.rb-mode-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.rb-mode-btn.is-active svg {
  opacity: 1;
  color: var(--primary);
}

.rb-mode-btn:hover svg {
  transform: scale(1.1);
}

.rb-mode-label {
  font-weight: 700;
}

.rb-mode-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(17,24,39,0.06);
  color: var(--text-muted);
  transition: all 0.2s;
}

.rb-mode-btn.is-active .rb-mode-count {
  background: rgba(234,88,12,0.12);
  color: var(--primary);
}

/* Results info */
.rb-results-info {
  padding: 10px 0 0;
  margin-top: 12px;
  border-top: 1px solid rgba(17,24,39,0.06);
}

.rb-results-text {
  font-size: 12px;
  color: var(--text-muted);
}

.rb-results-text strong {
  color: var(--text-main);
  font-weight: 800;
}

/* List item ulepszenia */
.rb-listitem {
  position: relative;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-listitem:hover {
  transform: translateX(3px);
}

.rb-listitem.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.rb-listitem.is-active {
  background: linear-gradient(135deg, rgba(234,88,12,0.08), rgba(234,88,12,0.03));
  border-color: rgba(234,88,12,0.15);
}
/* ===========================================================
   COLLAPSIBLE FILTERS 2026
   =========================================================== */

.rb-filters-section {
  margin-top: 12px;
  border-radius: 12px;
  background: rgba(17,24,39,0.03);
  border: 1px solid rgba(17,24,39,0.06);
  overflow: hidden;
}

.rb-filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.rb-filters-toggle:hover {
  background: rgba(17,24,39,0.04);
}

.rb-filters-icon {
  color: var(--text-muted);
}

.rb-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.rb-filters-chevron {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-filters-chevron.is-open {
  transform: rotate(180deg);
}

/* Panel - smooth collapse animation */
.rb-filters-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-filters-panel.is-open {
  grid-template-rows: 1fr;
}

/* KLUCZOWE - to ukrywa content gdy zwinięte */
.rb-filters-content {
  overflow: hidden;
  min-height: 0;
}

.rb-filters-panel.is-open .rb-filters-content {
  padding: 0 14px 14px;
}

.rb-filter-group {
  margin-bottom: 12px;
}

.rb-filter-group:last-of-type {
  margin-bottom: 0;
}

.rb-filter-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rb-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rb-filter-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.rb-filter-chip:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.rb-filter-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Vendor colors */
.rb-filter-chip.is-active[data-vendor="amd"] {
  background: #ED1C24;
  border-color: #ED1C24;
}

.rb-filter-chip.is-active[data-vendor="intel"] {
  background: #0071C5;
  border-color: #0071C5;
}

.rb-filter-chip.is-active[data-vendor="nvidia"] {
  background: #76B900;
  border-color: #76B900;
}

.rb-filter-chip.is-active[data-vendor="all"] {
  background: #6B7280;
  border-color: #6B7280;
}

.rb-filter-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rb-filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}

.rb-filter-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.rb-filter-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid rgba(17,24,39,0.06);
}

.rb-filter-clear {
  padding: 6px 12px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}

.rb-filter-clear:hover {
  background: rgba(239,68,68,0.08);
  color: #DC2626;
}


/* Input wrapper z ikoną i przyciskiem X */
.rb-filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rb-filter-input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.6;
}

.rb-filter-input {
  width: 100%;
  padding: 12px 40px 12px 38px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.rb-filter-input:hover {
  border-color: #D1D5DB;
  background: #fff;
}

.rb-filter-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(234,88,12,0.1), 0 2px 8px rgba(234,88,12,0.08);
}

.rb-filter-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Mini searchbar w filtrach - identyczny styl jak główny */
.rb-filter-search {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 10px;
  padding: 6px 8px 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  gap: 8px;
}

.rb-filter-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.08);
}

.rb-filter-search .search-input--rb {
  font-size: 13px;
}

.rb-filter-search .rb-search-icon svg {
  width: 16px;
  height: 16px;
}


/* ===========================================================
   SETUP HEADER REDESIGN 2026
   =========================================================== */

.rb-setup-header {
  padding: 28px 40px;
  background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
  border-bottom: 1px solid var(--border);
}

.rb-setup-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rb-setup-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

/* Hardware Info Badge with Tooltip */
.rb-hw-info-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: help;
  transition: all 0.15s;
}

.rb-hw-info-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(234,88,12,0.1);
}

.rb-hw-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 16px;
  background: #1f2937;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.rb-hw-info-badge:hover .rb-hw-tooltip,
.rb-hw-info-badge:focus .rb-hw-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rb-hw-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #1f2937;
  transform: rotate(45deg);
}

.rb-hw-tooltip-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rb-hw-tooltip-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rb-hw-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rb-hw-tooltip-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.rb-hw-tooltip-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

/* Hardware Cards */
.rb-hw-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rb-hw-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 180px;
  transition: all 0.15s;
}

.rb-hw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.rb-hw-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(17,24,39,0.04);
  flex-shrink: 0;
}

.rb-hw-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.rb-hw-card-icon svg {
  color: var(--text-muted);
}

.rb-hw-card-info {
  min-width: 0;
}

.rb-hw-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.rb-hw-card-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vendor-specific card colors */
.rb-hw-card--amd {
  border-color: rgba(237,28,36,0.2);
  background: linear-gradient(135deg, rgba(237,28,36,0.04) 0%, #fff 100%);
}

.rb-hw-card--amd .rb-hw-card-icon {
  background: rgba(237,28,36,0.1);
}

.rb-hw-card--amd .rb-hw-card-value {
  color: #ED1C24;
}

.rb-hw-card--intel {
  border-color: rgba(0,113,197,0.2);
  background: linear-gradient(135deg, rgba(0,113,197,0.04) 0%, #fff 100%);
}

.rb-hw-card--intel .rb-hw-card-icon {
  background: rgba(0,113,197,0.1);
}

.rb-hw-card--intel .rb-hw-card-value {
  color: #0071C5;
}

.rb-hw-card--nvidia {
  border-color: rgba(118,185,0,0.2);
  background: linear-gradient(135deg, rgba(118,185,0,0.04) 0%, #fff 100%);
}

.rb-hw-card--nvidia .rb-hw-card-icon {
  background: rgba(118,185,0,0.1);
}

.rb-hw-card--nvidia .rb-hw-card-value {
  color: #76B900;
}

.rb-hw-card--games {
  border-color: rgba(59,130,246,0.2);
  background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, #fff 100%);
}

.rb-hw-card--games .rb-hw-card-icon {
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
}

.rb-hw-card--games .rb-hw-card-value {
  color: #3B82F6;
}

/* Session Bar */
.rb-session-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.rb-session-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.rb-session-label {
  font-weight: 600;
  color: var(--text-muted);
}

.rb-session-count {
  color: var(--text-main);
}

.rb-session-count b {
  font-weight: 900;
  color: var(--primary);
}

.rb-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rb-session-actions .btn svg {
  margin-right: 4px;
}
/* Setup game filter suggest dropdown */
.rb-filter-search { position: relative; overflow: visible; }

.rb-suggest--setup{
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 9999;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  display: none;
  padding: 10px;
}

.rb-suggest--setup.is-open{ display:block; }
.rb-suggest--setup .rb-suggest-head{ font-weight: 900; font-size: 12px; opacity:.7; padding: 6px 8px 10px; }
.rb-suggest--setup .rb-suggest-item{ padding: 10px 10px; border-radius: 12px; cursor: pointer; display:flex; gap:10px; }
.rb-suggest--setup .rb-suggest-item:hover,
.rb-suggest--setup .rb-suggest-item.is-active{ background: rgba(17,24,39,0.06); }
.rb-suggest--setup .rb-suggest-title{ font-weight: 900; font-size: 13px; }
.rb-suggest--setup .rb-suggest-sub{
  display: none !important;
}



/* ===========================================================
   SETUPS: "Game filter" suggestions should be on top
   =========================================================== */

/* najczęściej to TEN element ucina dropdown */
#view-database .rb-filters-panel{
  overflow: visible !important;
}

/* kontener inputa w filtrach musi być "anchor" dla absolutnego dropdownu */
#view-database .rb-filter-search{
  position: relative;
  overflow: visible;
  z-index: 50;
}

/* sam dropdown (jeśli masz id setup-game-suggest) */
#view-database #setup-game-suggest{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 99999;
}

/* fallback: jeśli dropdown ma klasę rb-suggest i siedzi w rb-filter-search */
#view-database .rb-filter-search .rb-suggest{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 99999;
}

#view-database .rb-database-side-top{
  overflow: visible;
}

#view-database .rb-filters-section{
  position: relative;
  z-index: 60;
}
/* ===========================================================
   FIX: Setup -> "Game" suggestions dropdown MUST be on top
   (overflow hidden was clipping it)
   =========================================================== */

/* pozwól dropdownowi wychodzić poza "pudełko filtrów" */
#view-database .rb-filters-section{
  overflow: visible !important;   /* było hidden -> ucinało */
}

/* kiedy filtry są otwarte, NIE ucinaj contentu (bo tam siedzi dropdown) */
#view-database .rb-filters-panel.is-open .rb-filters-content{
  overflow: visible !important;
}

/* kiedy filtry są zamknięte, dalej chowaj content (żeby collapse działał) */
#view-database .rb-filters-panel:not(.is-open) .rb-filters-content{
  overflow: hidden !important;
}

/* upewnij się, że top sidebaru jest "nad" listą */
#view-database .rb-database-side-top{
  position: relative;
  z-index: 500;
}

/* anchor + dropdown mają być najwyżej */
#view-database .rb-filter-search{
  position: relative;
  overflow: visible !important;
  z-index: 600;
}

#view-database #setup-game-suggest,
#view-database .rb-suggest--setup{
  z-index: 999999 !important;
}
/* =========================
   Toasts (max selection info)
   ========================= */
.rb-toast-host{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.rb-toast{
  pointer-events: none;
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  max-width: 340px;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.rb-toast.is-show{
  opacity: 1;
  transform: translateY(0);
}

.rb-toast--warn{
  background: rgba(245,158,11,.95);
  color: #111827;
}

/* =========================
   Session bar: Max selected pill
   ========================= */
.rb-session-limit{
  margin-left: 10px;
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.28);
  color: rgba(180,83,9,1);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
/* ===========================================================
   DATABASE: resizable sidebar (premium)
   =========================================================== */

#view-database .rb-database{
  --db-side-w: 420px;               /* default */
  display: grid;
  grid-template-columns: var(--db-side-w) 10px 1fr; /* sidebar | resizer | work */
  gap: 0;
  min-height: calc(100vh - 70px);
}

#view-database .rb-database-sidebar{
  width: auto; /* grid controls it */
  border-right: 1px solid var(--border);
}

#view-database .rb-db-resizer{
  cursor: col-resize;
  background: transparent;
  position: relative;
}

/* “Grab handle” */
#view-database .rb-db-resizer::before{
  content:"";
  position:absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17,24,39,.10);
}

#view-database .rb-db-resizer:hover::before{
  background: rgba(59,130,246,.30);
}

#view-database .rb-db-resizer.is-dragging::before{
  background: rgba(59,130,246,.55);
}

/* Bonus: większe coverki w Games, zależnie od szerokości sidebara */
#view-database .rb-listitem-thumb{
  width: clamp(52px, calc(var(--db-side-w) * 0.14), 78px);
  height: clamp(74px, calc(var(--db-side-w) * 0.20), 110px);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}
/* ===========================================================
   SETUPS: highlight filtered game (robust, no pseudo-elements)
   =========================================================== */

.poster-card.poster-card--setup-game.is-match{
  /* ważne: wyciągamy kartę nad inne i robimy wyraźny ring */
  z-index: 5;
  outline: 4px solid rgba(245, 158, 11, 0.98);
  outline-offset: 4px;

  /* mocny glow + lekkie "podniesienie" */
  transform: translateY(-2px);
  box-shadow:
    0 28px 70px rgba(245, 158, 11, 0.22),
    0 0 0 10px rgba(245, 158, 11, 0.18);
}

/* dodatkowo podbij czytelność w overlay 
.poster-card.poster-card--setup-game.is-match .pc-overlay{
  background: linear-gradient(to top, rgba(245, 158, 11, 0.18), rgba(0,0,0,0));
}*/

.poster-card.poster-card--setup-game.is-match .pc-title{
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.55);
}
/* ===========================================================
   FIX: Setup header sticky
   =========================================================== */

#view-database .rb-setup-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(250,250,251,0.98) 0%, rgba(243,244,246,0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin: 0 -40px 20px;
  padding: 28px 40px;
}

.rb-setup-local-search {
  justify-self: center;
  max-width: clamp(280px, 35vw, 520px);
  width: 100%;
  margin: 0;
  padding: 6px 8px 6px 12px;
  border-radius: 10px;
  gap: 8px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
}
/* =========================
   Games configs table: responsive short + play button
   ========================= */

.rb-th-short,
.rb-hw-short,
.rb-run-play {
  display: none;
}

@media (max-width: 980px) {
  .rb-th-full,
  .rb-hw-full,
  .rb-run-text {
    display: none;
  }

  .rb-th-short,
  .rb-hw-short {
    display: inline;
  }

/* Run button -> ORANGE play only (brand-like) */
@media (max-width: 980px) {
  .rb-table--configs .btn-run{
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;

    background: #FF6A00;
    border: 1px solid #FF5A00;

    color: #111827; /* icon */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.28);
  }

  .rb-table--configs .btn-run:hover{
    background: #FF7A1A;
    border-color: #FF6A00;
  }

  .rb-run-play{ display:inline-flex; align-items:center; justify-content:center; }

  .rb-table--configs .rb-th-action{ width:72px !important; }
}

