/* ============================================
   WATCHLIST — Netflix-inspired PWA Styles
   ============================================ */

:root {
  /* Nachtblau Cinematic — Surface hierarchy (dark → light) */
  --surface-0: #060e20;   /* Input fields, deepest level */
  --surface-1: #0b1326;   /* Body background */
  --surface-2: #131b2e;   /* Section backgrounds */
  --surface-3: #171f33;   /* Cards */
  --surface-4: #222a3d;   /* Hover states */
  --surface-5: #2d3449;   /* Modals, overlays */
  --surface-6: #31394d;   /* Floating headers */

  /* Primary (Blue) */
  --primary: #4d8eff;
  --primary-light: #adc6ff;
  --primary-dark: #002e6a;

  /* Tertiary (Orange — accents) */
  --tertiary: #ffb786;
  --tertiary-strong: #df7412;

  /* Text */
  --text: #dae2fd;
  --text-muted: #c2c6d6;
  --text-dim: #7a7f8e;

  /* Ghost borders */
  --ghost: rgba(66, 71, 84, 0.2);

  /* Legacy mappings for JS-driven styles */
  --bg: var(--surface-1);
  --bg-card: var(--surface-3);
  --bg-modal: var(--surface-5);
  --bg-input: var(--surface-0);
  --bg-hover: var(--surface-4);
  --accent: #e50914;
  --green: #46d369;
  --border: var(--ghost);

  /* Radii — Nachtblau Cinematic */
  --radius-card: 1.5rem;
  --radius-poster: 1rem;
  --radius-pill: 9999px;
  --radius-input: 1.5rem;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;

  /* Spacing */
  --gap-scroll: 1rem;
  --gap-card: 1.5rem;
  --margin-outer: 1.25rem;
  --gap-section: 3rem;

  /* Streaming service colors */
  --netflix: #e50914;
  --prime: #00a8e1;
  --disney: #113ccf;
  --apple: #555;
  --sky: #002f5f;
  --hbo: #b91ad1;
  --paramount: #0064ff;
  --magenta: #e20074;
  --joyn: #169b62;
  --ard: #004e8a;
  --zdf: #fa7d19;
  --rtl: #e3001b;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface-1);
  color: var(--text);
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header (Glass-Effekt) ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 14px) var(--margin-outer) 10px;
  background: rgba(23, 31, 51, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0px;
  display: flex;
  align-items: baseline;
}

.logo-w {
  color: var(--primary);
}

.logo-dot {
  color: var(--text-dim);
  font-weight: 400;
  margin: 0 1px;
}

.logo-l {
  color: var(--text);
}

.logo-play {
  color: var(--primary);
  margin-left: 7px;
  font-size: 0.85em;
  position: relative;
  top: 1px;
}

.sync-indicator {
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.sync-indicator.idle { opacity: 0; }
.sync-indicator.syncing { color: var(--text-muted); animation: spin 1s linear infinite; opacity: 1; }
.sync-indicator.synced { color: var(--green); opacity: 1; }
.sync-indicator.error { color: var(--accent); opacity: 1; font-weight: bold; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-add {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(77, 142, 255, 0.3);
}

.btn-add:hover {
  box-shadow: 0 6px 24px rgba(77, 142, 255, 0.45);
  transform: scale(1.05);
}

.btn-add:active {
  transform: scale(0.92);
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 8px var(--margin-outer) 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ghost);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-chip:hover {
  background: var(--surface-4);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(77, 142, 255, 0.2);
}

.filter-chip.service-chip {
  background: var(--surface-2);
  border-color: var(--ghost);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-chip.service-chip:hover {
  background: var(--surface-3);
  border-color: rgba(66, 71, 84, 0.4);
  color: var(--text);
}

.filter-chip.service-chip.active {
  background: var(--chip-color, var(--primary));
  border-color: var(--chip-color, var(--primary));
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--chip-color, var(--primary)) 40%, transparent);
}

.filter-divider {
  flex-shrink: 0;
  width: 1px;
  background: var(--ghost);
  margin: 2px 2px;
}

.sort-chip {
  border-color: var(--ghost);
  font-size: 0.75rem;
}

.sort-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ---- Shortlist Section ---- */
.shortlist-section {
  padding: 4px 0 12px;
}

.shortlist-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-left: var(--margin-outer);
}

.shortlist-track {
  display: flex;
  gap: var(--gap-scroll);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  padding-left: var(--margin-outer);
  /* Bleed: kein rechtes Padding — Poster bluten über den Rand */
}

.shortlist-track::-webkit-scrollbar { display: none; }

.shortlist-card {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-poster);
  overflow: hidden;
  background: var(--surface-3);
  cursor: grab;
  transition: transform 0.15s, opacity 0.15s;
  border: 2px solid transparent;
}

.shortlist-card:active {
  cursor: grabbing;
}

.shortlist-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.shortlist-no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-4));
  color: var(--text-dim);
}

.shortlist-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 6px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  pointer-events: none;
}

.shortlist-card-title {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shortlist-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.shortlist-card:hover .shortlist-remove,
.shortlist-card:active .shortlist-remove {
  opacity: 1;
}

/* Touch: always show remove button on touch devices */
@media (hover: none) {
  .shortlist-remove {
    opacity: 1;
  }
}

/* Drag states */
.shortlist-card.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.shortlist-card.drag-over {
  border-color: var(--primary);
  transform: scale(1.05);
}

.shortlist-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.85;
  border-radius: var(--radius-poster);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
}

/* Shortlist button in detail modal */
.btn-shortlist {
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 183, 134, 0.4);
  background: transparent;
  color: var(--tertiary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-shortlist:hover {
  background: rgba(255, 183, 134, 0.1);
}

.btn-shortlist.on-shortlist {
  background: rgba(255, 183, 134, 0.15);
  border-color: rgba(255, 183, 134, 0.6);
}

.btn-shortlist:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---- Watchlist Grid (Poster-Grid) ---- */
.watchlist {
  padding: 0 8px calc(var(--safe-bottom) + 16px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (min-width: 500px) {
  .watchlist {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px 20px;
  }
}

@media (min-width: 768px) {
  .watchlist {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 16px 20px;
  }
}

@media (min-width: 1024px) {
  .watchlist {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 0 24px 24px;
  }
}

/* ---- Card (Poster-Grid mit Nachtblau Cinematic) ---- */
.card {
  position: relative;
  border-radius: var(--radius-poster);
  overflow: hidden;
  background: var(--surface-3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s 0.2s;
  aspect-ratio: 2/3;
}

@media (hover: hover) {
  .card:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s 0s;
  }
}

.card:active {
  transform: scale(0.97);
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-4));
  color: var(--text-dim);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 8px 8px;
  background: linear-gradient(to top, rgba(6,14,32,0.95) 0%, rgba(6,14,32,0.4) 60%, transparent 100%);
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 3px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-year {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.card-type {
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: var(--radius-pill);
  background: rgba(77, 142, 255, 0.15);
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Service Badge — Pill auf Poster */
.service-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.58rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ---- Empty State ---- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1rem;
}

.empty-sub {
  margin-top: 8px;
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 14, 32, 0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  background: var(--surface-5);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
  .modal {
    border-radius: var(--radius-card);
    max-height: 85dvh;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-4);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--surface-6);
}

/* ---- Search ---- */
.search-wrapper {
  position: relative;
  margin: 0 18px 14px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  border-radius: var(--radius-input);
  border: 1px solid var(--ghost);
  background: var(--surface-0);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.hidden { display: none !important; }

/* ---- Search Results ---- */
.search-results {
  padding: 0 10px 10px;
  max-height: 55dvh;
  overflow-y: auto;
}

.search-result {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.search-result:hover {
  background: var(--surface-4);
}

.search-result:active {
  background: var(--surface-6);
}

.result-poster {
  width: 48px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.result-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.result-overview {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  line-height: 1.4;
}

.search-loading, .search-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---- Service Selection ---- */
.service-select {
  padding: 0 18px 22px;
}

.selected-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-3);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.selected-title img {
  width: 42px;
  height: 63px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.selected-title-text {
  font-weight: 600;
  font-size: 0.92rem;
}

.selected-title-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.service-prompt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Availability Info */
.availability-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(70, 211, 105, 0.08);
  border: 1px solid rgba(70, 211, 105, 0.15);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--green);
}

.availability-info.not-found {
  background: rgba(223, 116, 18, 0.08);
  border-color: rgba(223, 116, 18, 0.15);
  color: var(--tertiary);
}

.availability-loading {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.availability-loading .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.service-btn {
  padding: 10px 4px;
  border-radius: var(--radius);
  border: 2px solid var(--ghost);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.2;
  position: relative;
}

.service-btn.available {
  border-color: color-mix(in srgb, var(--svc-color) 60%, transparent);
  color: var(--text);
}

.service-btn.available::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.service-btn.selected {
  border-color: var(--svc-color);
  background: color-mix(in srgb, var(--svc-color) 18%, transparent);
  color: white;
}

.service-btn.unavailable {
  opacity: 0.35;
}

.service-btn:active {
  transform: scale(0.95);
}

.btn-save {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(77, 142, 255, 0.3);
}

.btn-save:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-save:active:not(:disabled) {
  opacity: 0.85;
}

/* ---- Detail Modal ---- */
.detail-modal {
  position: relative;
}

.detail-backdrop {
  height: 220px;
  background-size: cover;
  background-position: center top;
}

.detail-backdrop::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--surface-5) 5%, rgba(45, 52, 73, 0.6) 50%, transparent 100%);
  pointer-events: none;
}

.detail-content {
  position: relative;
  padding: 0 18px 28px;
  margin-top: -50px;
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.detail-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.detail-service-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.detail-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.detail-match {
  color: var(--green);
  font-weight: 700;
}

.detail-overview {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Detail Availability */
.detail-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-provider-badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-provider-type {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  margin-top: 12px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-watched {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--ghost);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-watched:hover {
  background: var(--surface-4);
}

.btn-remove {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 9, 20, 0.3);
  background: transparent;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-remove:hover {
  background: rgba(229, 9, 20, 0.08);
}

.btn-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 12px 0;
  border-radius: var(--radius);
  border: 1px solid rgba(70, 211, 105, 0.4);
  background: transparent;
  color: var(--green);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-stream:hover {
  background: rgba(70, 211, 105, 0.1);
}

/* ---- Watched State ---- */
.card.watched {
  opacity: 0.4;
}

.card.watched::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--surface-1);
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Count Badge (Stats-Zeile) ---- */
.count-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 12px;
  grid-column: 1 / -1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeInUp 0.25s ease-out both;
}

.card:nth-child(2) { animation-delay: 0.02s; }
.card:nth-child(3) { animation-delay: 0.04s; }
.card:nth-child(4) { animation-delay: 0.06s; }
.card:nth-child(5) { animation-delay: 0.08s; }
.card:nth-child(6) { animation-delay: 0.10s; }
.card:nth-child(7) { animation-delay: 0.12s; }
.card:nth-child(8) { animation-delay: 0.14s; }
.card:nth-child(9) { animation-delay: 0.16s; }
