.cfg-root { font-family: system-ui, sans-serif; color: #fff; position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.cfg-root button { font-family: inherit; cursor: pointer; pointer-events: auto; }

.cfg-pill {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(20,15,30,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cfg-pill:hover { background: rgba(35,25,50,0.9); }

.cfg-fs-corner {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(20,15,30,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cfg-fs-corner:hover { background: rgba(35,25,50,0.9); transform: scale(1.06); }
@media (max-width: 600px) {
  .cfg-fs-corner { width: 42px; height: 42px; font-size: 18px; top: 10px; right: 10px; }
}

.cfg-drawer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(16,10,26,0.95);
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.cfg-drawer.open { transform: translateY(0); }

.cfg-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 12px;
  align-items: center;
}
.cfg-tab {
  padding: 10px 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.cfg-tab.active { color: #fff; border-bottom-color: #b89ad8; }
.cfg-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  padding: 8px 12px;
}
.cfg-close:hover { color: #fff; }

.cfg-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.cfg-series { margin-bottom: 14px; }
.cfg-series-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.cfg-series-header .count { color: #b89ad8; }

.cfg-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.cfg-thumb {
  width: 44px; height: 44px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0.4;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.cfg-thumb:hover { opacity: 0.7; }
.cfg-thumb.selected {
  opacity: 1;
  border-color: #b89ad8;
  box-shadow: 0 0 0 1px rgba(184,154,216,0.5);
}
.cfg-thumb.selected::after {
  content: "";
  position: absolute; top: 3px; right: 3px;
  width: 8px; height: 8px; border-radius: 4px;
  background: #b89ad8; box-shadow: 0 0 4px rgba(184,154,216,0.8);
}
.cfg-thumb.disabled { cursor: not-allowed; opacity: 1; }

.cfg-footer {
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cfg-icon-btn {
  width: 30px; height: 30px;
  border-radius: 15px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.cfg-icon-btn:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 600px) {
  .cfg-thumb { width: 38px; height: 38px; }
  .cfg-tab { padding: 10px 12px; }
}
