* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds */
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1e1e1e;

  /* Text */
  --text: #e8e0d4;
  --text-dim: #8a8070;
  --text-bright: #f5f0e8;

  /* Accent — warm gold (cinema marquee) */
  --accent: #c49a3c;
  --accent-glow: rgba(196, 154, 60, 0.15);
  --accent-bright: #d4a843;

  /* Semantic vote colors — muted, sophisticated */
  --keep: #5a9e5f;
  --must-keep: #c75b7a;
  --want-watch: #c9873a;
  --remove: #c45c4f;
  --skip: #6b7a82;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Film grain overlay (inline SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* Film grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grain);
  pointer-events: none;
  z-index: 10000;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Disable grain for users who prefer reduced motion or on low-power hint */
@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }
}

.screen {
  display: none;
  height: 100%;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* Login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.login-container h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.subtitle {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Filter screen */
.filter-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-label .optional {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: normal;
}

.filter-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.selected {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-glow);
}

.decade-options .filter-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

#start-btn {
  margin-top: 0.5rem;
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}

#start-btn:hover {
  background: var(--accent-bright);
}

#start-btn:active {
  transform: scale(0.98);
}

.login-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

#login-btn {
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}

#login-btn:hover:not(:disabled) {
  background: var(--accent-bright);
}

#login-btn:active:not(:disabled) {
  transform: scale(0.98);
}

#login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: var(--remove);
  font-size: 0.875rem;
  text-align: center;
}

.hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  flex-shrink: 0;
  position: relative;
}

header .header-left {
  flex: 1;
}

header .header-right {
  flex: 1;
  display: none;
  justify-content: flex-end;
  gap: 0.5rem;
}

header .header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

#user-display {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.header-btn {
  background: none;
  border: 1px solid var(--surface2);
  color: var(--text-dim);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* Hamburger button (mobile only) */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 60;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Dropdown menu (mobile only) */
.header-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 0 0 12px 12px;
  padding: 0.25rem;
  z-index: 55;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.15s ease;
}

.header-menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.header-menu-item:hover {
  background: var(--surface2);
}

/* Progress */
#progress-bar-container {
  position: relative;
  height: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  flex-shrink: 0;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(196, 154, 60, 0.2), rgba(196, 154, 60, 0.35));
  transition: width 0.4s ease;
  width: 0%;
}

#progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Card Container */
#card-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 80px rgba(196, 154, 60, 0.04);
  transition: transform 0.1s ease, opacity 0.1s ease;
  touch-action: pan-y;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hidden {
  display: none !important;
}

.card.swiping {
  transition: none;
}

.card.animate-out {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.card-poster {
  position: relative;
  width: 100%;
  max-height: 45vh;
  overflow: hidden;
  background: var(--surface2);
}

/* Gradient fade at bottom of poster — gallery display effect */
.card-poster::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

.card-poster img {
  width: 100%;
  height: auto;
  display: block;
}

#card-type-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-bright);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(196, 154, 60, 0.2);
}

.swipe-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  transition: opacity 0.1s;
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(10, 10, 10, 0.4);
}

.card-info {
  padding: 1rem 1rem 0.875rem;
}

#card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#card-director {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  font-style: italic;
}

.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.genre-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--surface2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#card-overview {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.card-season-info {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-season-info:empty {
  display: none;
}

.card-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--surface2);
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.card-footer {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.card-folder {
  font-size: 0.7rem;
  color: var(--text-dim);
  word-break: break-all;
  text-align: center;
  opacity: 0.7;
}

.card-folder:empty {
  display: none;
}

.report-btn {
  background: none;
  border: 1px solid var(--surface2);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.report-btn:hover:not(:disabled) {
  color: var(--want-watch);
  border-color: var(--want-watch);
}

.report-btn:disabled {
  color: var(--want-watch);
  border-color: var(--want-watch);
  cursor: default;
  opacity: 0.8;
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--surface2);
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: none;
  border-radius: 12px;
  padding: 0.625rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
  flex: 1;
  max-width: 90px;
}

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

.action-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.action-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.action-btn.remove {
  background: rgba(196, 92, 79, 0.12);
  color: var(--remove);
}

.action-btn.skip {
  background: rgba(107, 122, 130, 0.12);
  color: var(--skip);
}

.action-btn.keep {
  background: rgba(90, 158, 95, 0.12);
  color: var(--keep);
}

.action-btn.must-keep {
  background: rgba(199, 91, 122, 0.12);
  color: var(--must-keep);
}

/* Loading spinner */
.loading-spinner {
  display: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.04em;
}

.loading-spinner.active {
  display: block;
}

/* Done Message */
.done-message {
  text-align: center;
  padding: 2rem;
}

.done-message h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.done-message p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Votes Screen */
.votes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.votes-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.votes-filters .filter-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
}

.votes-sort-btn {
  background: none;
  border: 1px solid var(--surface2);
  color: var(--text-dim);
  font-family: var(--font-body);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.votes-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
}

.votes-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.vote-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 0.4rem;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}

.vote-row-poster {
  width: 40px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}

.vote-row-info {
  flex: 1;
  min-width: 0;
}

.vote-row-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-row-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.vote-row-title a:hover {
  color: var(--accent-bright);
}

.vote-row-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.vote-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.vote-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.vote-badge.keep {
  background: rgba(90, 158, 95, 0.12);
  color: var(--keep);
}

.vote-badge.must_keep,
.vote-badge.must_keep_seen {
  background: rgba(199, 91, 122, 0.12);
  color: var(--must-keep);
}

.vote-badge.must_keep_unseen {
  background: rgba(201, 135, 58, 0.12);
  color: var(--want-watch);
}

.vote-badge.remove {
  background: rgba(196, 92, 79, 0.12);
  color: var(--remove);
}

.vote-badge.skip {
  background: rgba(107, 122, 130, 0.12);
  color: var(--skip);
}

.vote-row-badge-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.vote-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.65rem;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  opacity: 0.4;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.vote-row:hover .vote-delete-btn {
  opacity: 1;
}

.vote-delete-btn:hover,
.vote-delete-btn:active {
  color: var(--remove);
  opacity: 1;
}

/* Vote change dropdown menu */
.vote-change-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  min-width: 120px;
  animation: fadeIn 0.1s ease;
}

.vote-change-option {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.1s ease;
}

.vote-change-option:hover {
  background: var(--surface2);
}

.vote-change-option.must_keep_seen { color: var(--must-keep); }
.vote-change-option.must_keep_unseen { color: var(--want-watch); }
.vote-change-option.keep { color: var(--keep); }
.vote-change-option.remove { color: var(--remove); }
.vote-change-option.skip { color: var(--skip); }

.vote-row-time {
  font-size: 0.6rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* Reports Screen */
.reports-info {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  flex-shrink: 0;
}

.report-dismiss-btn {
  background: none;
  border: 1px solid var(--surface2);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.report-dismiss-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* Must Keep sub-choice overlay */
.must-keep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: max(6rem, calc(env(safe-area-inset-bottom) + 6rem));
  z-index: 100;
  animation: fadeIn 0.15s ease;
}

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

.must-keep-choices {
  display: flex;
  gap: 0.75rem;
  animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.must-keep-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 130px;
}

.must-keep-choice:active {
  transform: scale(0.95);
}

.must-keep-choice.seen {
  background: rgba(199, 91, 122, 0.15);
  color: var(--must-keep);
  border-color: rgba(199, 91, 122, 0.3);
}

.must-keep-choice.unseen {
  background: rgba(201, 135, 58, 0.15);
  color: var(--want-watch);
  border-color: rgba(201, 135, 58, 0.3);
}

.must-keep-choice-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.must-keep-choice-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Hover states (desktop) */
@media (hover: hover) {
  .action-btn:hover {
    opacity: 0.85;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }

  .filter-btn:not(.selected):hover {
    border-color: var(--text-dim);
    color: var(--text);
  }

  .header-btn:hover {
    border-color: var(--text-dim);
    color: var(--text);
  }

  .votes-sort-btn:hover {
    border-color: var(--text-dim);
    color: var(--text);
  }

  .vote-row:hover {
    background: var(--surface2);
    border-color: rgba(255, 255, 255, 0.03);
  }

  .card-link-btn:hover {
    background: var(--accent-glow);
    color: var(--accent-bright);
    border-color: var(--accent);
  }

  .must-keep-choice.seen:hover {
    border-color: var(--must-keep);
    box-shadow: 0 0 20px rgba(199, 91, 122, 0.15);
  }

  .must-keep-choice.unseen:hover {
    border-color: var(--want-watch);
    box-shadow: 0 0 20px rgba(201, 135, 58, 0.15);
  }
}

/* Focus-visible for keyboard navigation */
.action-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-btn:focus-visible,
.header-btn:focus-visible,
.votes-sort-btn:focus-visible,
.vote-badge:focus-visible,
.must-keep-choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#login-btn:focus-visible,
#start-btn:focus-visible {
  outline: 2px solid var(--text-bright);
  outline-offset: 2px;
}

/* Wide/landscape layout — MUST be last to override base styles */
@media (min-width: 700px) {
  header .header-right {
    display: flex;
  }

  .hamburger-btn,
  .header-menu {
    display: none !important;
  }

  #card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .card {
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    max-height: 100%;
    overflow: hidden;
    touch-action: none;
  }

  .card-poster {
    width: 380px;
    min-width: 380px;
    max-height: none;
    flex-shrink: 0;
    overflow: hidden;
  }

  /* Hide poster bottom gradient in side-by-side layout */
  .card-poster::after {
    display: none;
  }

  .card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .card-info {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
  }

  #card-title {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }

  .card-meta {
    font-size: 0.95rem;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .card-genres {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .genre-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .card-season-info {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  #card-overview {
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
  }

  .card-links {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface2);
    gap: 0.5rem;
  }

  .card-link-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  .card-footer {
    margin-top: 0.75rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .card-folder {
    font-size: 0.75rem;
    text-align: left;
  }

  .actions {
    gap: 1rem;
  }

  .action-btn {
    max-width: 140px;
    padding: 0.875rem 1.5rem;
  }

  .action-icon {
    font-size: 1.6rem;
  }

  .action-label {
    font-size: 0.7rem;
  }
}
