/* ─── READING LIST — Glass panel ─── */

.rl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.rl-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.rl-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: calc(100% - 32px);
  height: 100vh;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.5);
  z-index: 151;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-spring);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.rl-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

.rl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
}

.rl-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.rl-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.rl-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.rl-close:active {
  transform: scale(0.93);
}

.rl-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  position: relative;
  z-index: 1;
}

.rl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  gap: 16px;
  color: var(--text-muted);
}

.rl-empty svg {
  opacity: 0.3;
}

.rl-empty p {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  transition: background 200ms var(--ease-out);
  border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.list-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.list-item-link {
  display: block;
  flex-shrink: 0;
}

.list-item-cover {
  width: 40px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--glass-border);
}

.list-item-info {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.list-item-title:hover {
  color: var(--amber-light);
}

.list-item-author {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.list-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 160ms var(--ease-out), color 200ms var(--ease-out), background 200ms var(--ease-out);
  flex-shrink: 0;
  border: 1px solid transparent;
}

.list-item-remove:hover {
  color: #F87171;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.12);
}

.list-item-remove:active {
  transform: scale(0.9);
}

.rl-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
}

.rl-footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}

.rl-bulk-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .rl-panel { width: 100%; max-width: 100%; }
}