    * {
      font-family: 'Inter', sans-serif;
    }

    body {
      background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
      min-height: 100vh;
    }

    .backdrop-blur {
      backdrop-filter: blur(100px);
      -webkit-backdrop-filter: blur(100px);
    }

    .glass-card {
      background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .movie-card {
      background: linear-gradient(180deg, rgba(20,20,20,0.9) 0%, rgba(15,15,15,0.95) 100%);
      border: 1px solid rgba(255,255,255,0.05);
      transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      transform-style: preserve-3d;
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .movie-card:hover .delete-btn {
      opacity: 1;
    }

    .delete-btn {
      opacity: 0;
      transition: all 0.3s ease;
    }

    .delete-btn:hover {
      transform: scale(1.1);
    }

    .movie-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.1), transparent 70%);
      opacity: 0;
      transition: opacity 0.4s ease;
      border-radius: 0.75rem;
    }

    .movie-card:hover::before {
      opacity: 1;
    }

    .movie-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        0 10px 20px rgba(0,0,0,0.3),
        0 0 60px rgba(229, 9, 20, 0.1);
      border-color: rgba(229, 9, 20, 0.2);
    }

    .poster-container {
      position: relative;
      overflow: hidden;
      aspect-ratio: 2/3;
    }

    .poster-container::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 100px;
      background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .movie-card:hover .poster-container::after {
      opacity: 1;
    }

    .poster {
      transition: transform 0.4s ease;
    }

    .movie-card:hover .poster {
      transform: scale(1.05);
    }

    .skeleton {
      background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 75%);
      background-size: 200% 100%;
      animation: loading 1.5s infinite;
    }

    @keyframes loading {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .provider-icon {
      width: 40px;
      height: 40px;
      object-fit: cover;
      border-radius: 8px;
      transition: all 0.2s ease;
      border: 2px solid transparent;
    }

    .provider-icon:hover {
      transform: scale(1.1);
      border-color: rgba(229, 9, 20, 0.5);
      box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
    }

    .rating-star {
      filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.5));
    }

    .btn-primary {
      background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(229, 9, 20, 0.5);
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s ease;
    }

    .btn-primary:hover::before {
      left: 100%;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
      background: linear-gradient(135deg, #ff0a16 0%, #c11119 100%);
    }

    .btn-watched {
      background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
      border: 1px solid rgba(255,255,255,0.1);
      color: #e50914;
    }

    .btn-watched:hover {
      background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
      border-color: rgba(229, 9, 20, 0.3);
      box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
    }

    .btn-move-back {
      background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
      border: 1px solid rgba(229, 9, 20, 0.5);
      color: white;
    }

    .btn-move-back:hover {
      background: linear-gradient(135deg, #ff0a16 0%, #c11119 100%);
      border-color: rgba(229, 9, 20, 0.7);
      box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
      transform: translateY(-2px);
    }

    .section-title {
      position: relative;
      display: inline-block;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, #e50914, transparent);
      border-radius: 2px;
    }

    .input-glow:focus {
      box-shadow:
        0 0 0 3px rgba(229, 9, 20, 0.1),
        0 0 30px rgba(229, 9, 20, 0.2);
    }

    .toast {
      animation: slideIn 0.3s ease;
      z-index: 60;
      pointer-events: none;
    }

    @keyframes slideIn {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .empty-state {
      background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
      border: 1px dashed rgba(255,255,255,0.1);
    }

    @media (max-width: 640px) {
      .provider-icon {
        width: 32px;
        height: 32px;
      }
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
    }

    ::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.05);
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(229, 9, 20, 0.3);
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(229, 9, 20, 0.5);
    }


    .line-clamp-2 {
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    /* Modal Styles */
    #movieModal {
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .genre-badge {
      background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.05) 100%);
      border: 1px solid rgba(229, 9, 20, 0.3);
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.875rem;
      color: #ef4444;
    }


    .movie-card {
      cursor: pointer;
    }

    .drop-zone {
      transition: all 0.3s ease;
    }

    .drop-zone.drag-over {
      border-color: #e50914 !important;
      background: rgba(229, 9, 20, 0.1) !important;
      transform: scale(1.02);
    }

    .drop-zone.drag-over .drop-overlay {
      opacity: 1;
    }

    .drop-overlay {
      position: absolute;
      inset: 0;
      background: rgba(229, 9, 20, 0.2);
      border: 2px dashed #e50914;
      border-radius: 0.75rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .star-button {
      width: 2.75rem;
      height: 2.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: rgba(255,255,255,0.6);
      transition: all 0.2s ease;
    }

    .star-button:hover {
      transform: translateY(-1px);
      background: rgba(234, 179, 8, 0.15);
      color: #facc15;
      border-color: rgba(234, 179, 8, 0.4);
    }

    .star-button.active {
      background: rgba(234, 179, 8, 0.2);
      color: #facc15;
      border-color: rgba(234, 179, 8, 0.5);
      box-shadow: 0 8px 18px rgba(250, 204, 21, 0.2);
    }

    .star-button:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      transform: none;
    }

    .personal-panel {
      background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(12, 12, 12, 0.9) 100%);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
      position: relative;
      overflow: hidden;
    }

    .personal-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.16), transparent 50%);
      pointer-events: none;
    }

    .personal-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .personal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }

    .personal-header h3 {
      font-size: 1.1rem;
      font-weight: 600;
      color: white;
    }

    .personal-timestamp {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(148, 163, 184, 0.7);
    }

    .personal-rating-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .personal-rating-label {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: rgba(148, 163, 184, 0.9);
    }

    .personal-actions {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .personal-feedback {
      min-height: 1.25rem;
      font-size: 0.85rem;
      color: rgba(148, 163, 184, 0.85);
      transition: all 0.25s ease;
    }

    .personal-feedback.success {
      color: #22c55e;
    }

    .personal-feedback.error {
      color: #f87171;
    }

    .personal-feedback.progress {
      color: #38bdf8;
    }

    .personal-feedback.info {
      color: #eab308;
    }

    .btn-soft {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.85);
      transition: all 0.2s ease;
    }

    .btn-soft:hover {
      background: rgba(255,255,255,0.15);
      border-color: rgba(255,255,255,0.25);
      color: white;
      transform: translateY(-1px);
    }

    .btn-primary-glow {
      background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
      color: white;
      border: 1px solid rgba(229, 9, 20, 0.55);
      box-shadow: 0 12px 32px rgba(229, 9, 20, 0.25);
      transition: all 0.25s ease;
    }

    .btn-primary-glow:hover:not(:disabled) {
      background: linear-gradient(135deg, #ff2933 0%, #c5161e 100%);
      box-shadow: 0 16px 36px rgba(229, 9, 20, 0.35);
      transform: translateY(-1px);
    }

    .btn-primary-glow:disabled,
    .btn-soft:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .personal-summary {
      background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(15,23,42,0.08) 100%);
      border: 1px solid rgba(148, 163, 184, 0.12);
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
    }

    .personal-summary-rating {
      color: #fbbf24;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .personal-summary .personal-notes {
      color: rgba(226, 232, 240, 0.85);
    }

    .personal-locked {
      background: linear-gradient(135deg, rgba(15,23,42,0.35) 0%, rgba(15, 23, 42, 0.15) 100%);
      border: 1px dashed rgba(148, 163, 184, 0.35);
      padding: 1.25rem;
      border-radius: 0.75rem;
      text-align: center;
      color: rgba(226, 232, 240, 0.8);
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
      justify-content: center;
    }

    .personal-locked svg {
      width: 2.5rem;
      height: 2.5rem;
      color: rgba(226, 232, 240, 0.6);
    }

    .filters-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      padding: 0.75rem 1.25rem;
      border-radius: 0.75rem;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(15,15,15,0.65);
      color: rgba(248,250,252,0.85);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.75rem;
      transition: all 0.22s ease;
      box-shadow: 0 12px 20px rgba(15,15,15,0.25);
    }

    .filters-toggle:hover {
      border-color: rgba(229, 9, 20, 0.5);
      color: #f8fafc;
      box-shadow: 0 18px 28px rgba(229, 9, 20, 0.18);
      transform: translateY(-1px);
    }

    .filters-toggle.active {
      border-color: rgba(229, 9, 20, 0.45);
      color: rgba(248,113,113,0.92);
    }

    .filters-toggle svg {
      width: 1.1rem;
      height: 1.1rem;
    }

    .filters-grid {
      display: grid;
    }

    @media (max-width: 768px) {
      .personal-rating-row {
        flex-direction: column;
        align-items: flex-start;
      }

      .star-button {
        width: 2.5rem;
        height: 2.5rem;
      }

      .filters-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
      }

      .filters-grid > div {
        width: 100%;
      }

      .filters-toggle {
        width: 100%;
      }
    }

    @media (max-width: 640px) {
      .filters-grid {
        gap: 1rem;
      }

      .filters-grid label {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
      }
    }

/* ===================================================================
   Multi-user additions: top nav, landing, list switcher, modals
   =================================================================== */

.topnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
.brand .dot { color: #e50914; }
.nav-spacer { flex: 1; }

.avatar {
  width: 34px; height: 34px; border-radius: 9999px;
  object-fit: cover; border: 1px solid rgba(255,255,255,0.2);
}
.nav-user { display: flex; align-items: center; gap: 0.6rem; }
.nav-name { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

.btn-google {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #fff; color: #1f2937; font-weight: 600;
  padding: 0.7rem 1.2rem; border-radius: 0.7rem; text-decoration: none;
  border: 1px solid rgba(0,0,0,0.1); transition: all .2s ease;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); padding: 0.55rem 1rem; border-radius: 0.7rem;
  font-weight: 600; cursor: pointer; transition: all .2s ease; font-size: 0.85rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* List switcher */
.list-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.list-select {
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; padding: 0.6rem 1rem; border-radius: 0.7rem; font-weight: 600;
  font-size: 1rem; min-width: 220px;
}
.list-badge {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  border: 1px solid rgba(148,163,184,0.3); color: rgba(148,163,184,0.9);
}
.list-badge.shared { color: #38bdf8; border-color: rgba(56,189,248,0.4); }
.list-badge.private { color: #f59e0b; border-color: rgba(245,158,11,0.4); }

/* Landing */
.hero { text-align: center; padding: 3.5rem 0 2rem; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.05;
  background: linear-gradient(120deg,#fff 0%, #9ca3af 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.hero p.lede { color: rgba(255,255,255,0.7); font-size: 1.2rem; max-width: 640px; margin: 0 auto 2rem; }
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 3rem 0; }
.step {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 1.5rem;
}
.step .num {
  width: 2.2rem; height: 2.2rem; border-radius: 9999px; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  background: rgba(229,9,20,0.15); color: #ef4444; border: 1px solid rgba(229,9,20,0.3);
  margin-bottom: 0.85rem;
}
.step h3 { color: #fff; font-weight: 700; margin-bottom: 0.4rem; }
.step p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.free-pill {
  display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: #34d399; border: 1px solid rgba(52,211,153,0.4); border-radius: 9999px;
  padding: 0.3rem 0.9rem; margin-bottom: 1.25rem;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* Modal (generic) */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 70; padding: 1rem;
}
.overlay.hidden { display: none; }
.sheet {
  background: linear-gradient(135deg, #161616, #0d0d0d); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem; padding: 1.75rem; width: 100%; max-width: 480px; box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.sheet h2 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.sheet label { display:block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(148,163,184,0.9); margin-bottom: 0.4rem; }
.sheet input[type=text], .sheet input[type=email] {
  width: 100%; padding: 0.7rem 1rem; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 0.7rem; color: #fff; margin-bottom: 1rem;
}
.sheet .row { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }
.member-row {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.member-row .role { margin-left: auto; font-size: 0.7rem; text-transform: uppercase; color: rgba(148,163,184,0.8); }
.copy-link {
  display: flex; gap: 0.5rem; align-items: center; background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 0.6rem; padding: 0.5rem 0.75rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.7); word-break: break-all; margin-bottom: 1rem;
}
.muted { color: rgba(148,163,184,0.8); font-size: 0.85rem; }
.toggle-public { display:flex; align-items:center; gap:0.6rem; margin-bottom: 1rem; color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ===================================================================
   Mobile polish: compact nav button, tighter bars on small screens
   =================================================================== */

/* The Google button in the top nav should be compact (the hero CTA stays big) */
.topnav .btn-google {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.topnav .btn-google svg { width: 16px; height: 16px; }

.hide-sm { display: inline; }

@media (max-width: 640px) {
  .topnav { gap: 0.5rem; padding: 0.65rem 0; margin-bottom: 1.25rem; }
  .brand { font-size: 0.98rem; gap: 0.4rem; }
  .topnav .btn-google { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
  .hide-sm { display: none; }            /* "Sign in with Google" -> "Sign in" */
  .nav-name { display: none; }           /* avatar is enough on phones */
  .btn-ghost { padding: 0.45rem 0.7rem; font-size: 0.8rem; }

  /* List action bar: let buttons share rows neatly instead of one bulky column */
  .list-bar { gap: 0.5rem; }
  .list-select { min-width: 0; width: 100%; }
  .list-bar .btn-ghost { flex: 1 1 auto; text-align: center; }

  .hero { padding: 2.25rem 0 1.5rem; }
  .hero p.lede { font-size: 1.05rem; }
  .sheet { padding: 1.25rem; }
}

/* ===================================================================
   Mobile look & feel: input zoom, detail modal sizing, tap targets
   =================================================================== */
@media (max-width: 640px) {
  /* iOS Safari zooms in on focus when a field is <16px — keep them at 16px */
  input, select, textarea { font-size: 16px !important; }

  /* Movie detail modal is designed desktop-first; tighten it for phones */
  #movieModal .relative.z-10.p-8 { padding: 1.1rem !important; }
  #movieModal .max-w-7xl.mx-auto.px-8 { padding-left: 1.1rem !important; padding-right: 1.1rem !important; padding-top: 1.5rem !important; padding-bottom: 2rem !important; }
  #modalTitleHero { font-size: 1.85rem !important; line-height: 1.15; margin-bottom: 0.75rem !important; }
  #modalPosterHero { width: 8rem !important; }
  #movieModal .modal-close { top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
  #movieModal .relative.min-h-\[50vh\] { min-height: auto !important; }

  /* Comfortable tap targets */
  .btn-ghost { min-height: 40px; display: inline-flex; align-items: center; }
  .filters-toggle { min-height: 44px; }

  /* Toast: keep it inside the viewport instead of clipping off the right edge */
  #toast { top: 1rem; right: 1rem; left: 1rem; text-align: center; }

  /* A touch more breathing room between the big stacked sections */
  main.space-y-16 > section { margin-bottom: 0.5rem; }
}

/* Remove the grey tap-flash on touch for a more app-like feel */
a, button, .movie-card, .filters-toggle { -webkit-tap-highlight-color: transparent; }

/* ===================================================================
   View tabs (My Lists vs Discover)
   =================================================================== */
.viewtabs {
  display: inline-flex; gap: 0.25rem; padding: 0.3rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.85rem; margin: 0.25rem 0 1.25rem;
}
.viewtab {
  background: transparent; border: none; color: rgba(255,255,255,0.65);
  padding: 0.5rem 1.1rem; border-radius: 0.65rem; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all .2s ease;
}
.viewtab:hover { color: #fff; }
.viewtab.active { background: rgba(229,9,20,0.85); color: #fff; box-shadow: 0 4px 14px rgba(229,9,20,0.35); }

.surprise-btn { border-color: rgba(168,85,247,0.45); color: #d8b4fe; }
.surprise-btn:hover { background: rgba(168,85,247,0.18); color: #fff; }

/* Inline rename pencil next to the list title */
.title-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.edit-list-btn {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); cursor: pointer; transition: all .2s ease; padding: 0;
}
.edit-list-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.edit-list-btn svg { width: 1rem; height: 1rem; }

/* TV / media badge */
.media-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 0.4rem;
  background: rgba(56,189,248,0.9); color: #04263a; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  vertical-align: middle;
}

/* ===================================================================
   Discover
   =================================================================== */
.discover-controls { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.discover-addto { display: flex; align-items: center; gap: 0.5rem; }
.discover-addto .list-select { min-width: 160px; padding: 0.55rem 0.8rem; font-size: 0.9rem; }
.discover-filters { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip-group { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); padding: 0.4rem 0.85rem; border-radius: 9999px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.chip.active { background: #fff; color: #0d0d0d; border-color: #fff; }

.discover-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08); transition: transform .2s ease, box-shadow .2s ease;
}
.discover-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,0.45); }
.discover-card .poster-container { aspect-ratio: 2 / 3; }
.discover-card .disc-rating {
  background: rgba(0,0,0,0.75); padding: 0.15rem 0.5rem; border-radius: 0.5rem;
  font-size: 0.78rem; font-weight: 700; color: #fff; backdrop-filter: blur(4px);
}
.disc-add.added { background: rgba(34,197,94,0.2) !important; color: #4ade80 !important; cursor: default; }

/* ===================================================================
   Surprise picker
   =================================================================== */
.pick-sheet { max-width: 460px; }
.pick-runtime { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.pick-runtime .list-select { min-width: 0; flex: 1; padding: 0.5rem 0.8rem; font-size: 0.9rem; }
.pick-result { min-height: 180px; margin-bottom: 0.5rem; }
.pick-card { display: flex; gap: 1rem; align-items: flex-start; }
.pick-poster { width: 120px; border-radius: 0.6rem; box-shadow: 0 10px 24px rgba(0,0,0,0.5); flex-shrink: 0; }
.pick-info { flex: 1; min-width: 0; }
.pick-info h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.25; }
.pick-rating { color: #fff; font-weight: 600; margin-top: 0.4rem; }
.pick-providers { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.7rem; }
.pick-providers img { border-radius: 0.5rem; }
.pick-sheet .row { justify-content: space-between; align-items: center; }
.pick-schedule-line { color: rgba(148,163,184,0.85); font-size: 0.82rem; margin: 0.25rem 0 0.75rem; }
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #d8b4fe; font-weight: 600; font-size: 0.82rem; text-decoration: underline;
}
.linklike:hover { color: #fff; }

/* ===================================================================
   Stats page
   =================================================================== */
.stat-card { background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.stat-num { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(148,163,184,0.9); margin-top: 0.4rem; }
.stat-bar-row { display: flex; align-items: center; gap: 0.75rem; }
.stat-bar-label { width: 32%; font-size: 0.85rem; color: rgba(255,255,255,0.85); text-align: right; }
.stat-bar-track { flex: 1; height: 0.6rem; background: rgba(255,255,255,0.08); border-radius: 9999px; overflow: hidden; }
.stat-bar-fill { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #38bdf8, #a855f7); }
.stat-bar-count { width: 1.8rem; text-align: left; font-size: 0.82rem; color: rgba(148,163,184,0.9); font-weight: 600; }

@media (max-width: 640px) {
  .discover-controls { flex-direction: column; align-items: stretch; }
  .discover-addto { justify-content: space-between; }
  .discover-addto .list-select { flex: 1; }
  .pick-poster { width: 90px; }
  .viewtabs { width: 100%; }
  .viewtab { flex: 1; text-align: center; }
}
