/* ── Add-to-list slide-in panel ───────────────────────────
   Opened from the in-game ⋯ "More actions" menu. Mirrors the suggest/report
   panels' slide-in language. Theme tokens come from the app stylesheet;
   fallbacks keep it legible if a token is missing. */

.addlist-panel {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.addlist-panel.hidden { display: none !important; }

.addlist-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.addlist-panel.open { pointer-events: auto; }
.addlist-panel.open .addlist-panel-backdrop { opacity: 1; }

.addlist-panel-content {
  position: relative;
  pointer-events: auto;
  background: var(--surface, #15151f);
  color: var(--text, #e8e8f0);
  border-left: 1px solid var(--border, #2c2c3a);
  width: 100vw;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.addlist-panel.open .addlist-panel-content { transform: translateX(0); }

@media (min-width: 720px) {
  .addlist-panel-content { width: 420px; max-width: 420px; }
}

.addlist-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #2c2c3a);
  flex: 0 0 auto;
}

.addlist-panel-title { margin: 0; font-size: 16px; font-weight: 700; }

.addlist-panel-close {
  border: none;
  background: none;
  color: var(--text-dim, #9a9ab0);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
}

.addlist-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addlist-context {
  background: var(--surface2, #1d1d2a);
  border: 1px solid var(--border, #2c2c3a);
  border-radius: 10px;
  padding: 10px 12px;
}

.addlist-context-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #9a9ab0);
  margin-bottom: 4px;
}

.addlist-context-game {
  font-weight: 700;
  font-size: 14px;
  overflow-wrap: break-word;
}

.addlist-error {
  font-size: 12px;
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
}

.addlist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.addlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border, #2c2c3a);
  border-radius: 10px;
  background: var(--surface2, #1d1d2a);
}

.addlist-row:hover { border-color: var(--accent, #00e5a0); }
.addlist-row.in-list { border-color: var(--accent, #00e5a0); }

.addlist-check {
  flex: 0 0 auto;
  width: 16px;
  text-align: center;
  color: var(--accent, #00e5a0);
  font-weight: 700;
}

.addlist-row-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.addlist-row-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--text-dim, #9a9ab0);
}

.addlist-row-status {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--text-dim, #9a9ab0);
}

.addlist-empty {
  font-size: 12px;
  color: var(--text-dim, #9a9ab0);
  padding: 10px 2px;
}

.addlist-create {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border, #2c2c3a);
  padding-top: 12px;
}

.addlist-create-row { display: flex; gap: 8px; }

.addlist-create-input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  background: var(--surface2, #1d1d2a);
  border: 1px solid var(--border, #2c2c3a);
  border-radius: 8px;
  color: var(--text, #e8e8f0);
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
}

.addlist-create-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent, #00e5a0);
  color: #0b0b12;
}
.addlist-create-btn:disabled { opacity: 0.6; cursor: default; }

.addlist-create-msg {
  font-size: 12px;
  color: var(--text-dim, #9a9ab0);
}
