/* WatchWith App Styles - matches landing page design system */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --bg-deep: #0c0f1a;
  --bg-card: #141829;
  --bg-elevated: #1c2038;
  --bg-input: #1a1e35;
  --accent: #ff6b4a;
  --accent-glow: rgba(255, 107, 74, 0.15);
  --accent-soft: #ff8f75;
  --accent-dim: rgba(255, 107, 74, 0.6);
  --text-primary: #f0eff4;
  --text-secondary: #9a98ae;
  --text-muted: #6b6980;
  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(255, 107, 74, 0.3);
  --gradient-warm: linear-gradient(135deg, #ff6b4a 0%, #ff3d7f 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(255,107,74,0.08) 0%, transparent 60%);
  --success: #34d399;
  --danger: #ef4444;
  --warning: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.ambient {
  position: fixed; top: -30%; left: -10%; width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(255,107,74,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.ambient-2 {
  position: fixed; bottom: -20%; right: -15%; width: 50%; height: 50%;
  background: radial-gradient(ellipse, rgba(255,61,127,0.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Nav */
nav {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-user {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.nav-btn {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: color var(--transition);
}
.nav-btn:hover { color: var(--accent); }

/* Typography */
h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -1px;
  line-height: 1.1;
}
h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-warm);
  color: white;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-focus);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--border-focus);
}
.form-input::placeholder {
  color: var(--text-muted);
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6980' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(255,107,74,0.15);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.search-bar input {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
}
.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Voice Button */
.voice-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid transparent;
  color: var(--accent);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.voice-btn:hover {
  background: rgba(255, 107, 74, 0.25);
}
.voice-btn.listening {
  border-color: var(--accent);
  animation: pulse-ring 1.5s infinite;
  background: rgba(255, 107, 74, 0.3);
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}

/* Search Results */
.search-results {
  margin-bottom: 24px;
}
.search-result {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.search-result:hover {
  border-color: var(--border-focus);
  transform: translateX(4px);
}
.search-result img {
  width: 60px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.search-result-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.search-result-overview {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result .add-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  align-self: center;
}

/* Show Cards (in lists) */
.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.show-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  align-items: stretch;
}
.show-card:hover {
  border-color: rgba(255,107,74,0.2);
  transform: translateY(-2px);
}
.show-card-poster-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.show-card-poster {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
}
.show-card-providers-overlay {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 0;
}
.show-card-providers-overlay .provider-badge {
  background: rgba(0, 0, 0, 0.72);
  border-radius: 4px;
  padding: 2px;
  overflow: visible;
}
.show-card-providers-overlay .provider-badge img {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}
.show-card-providers-overlay .provider-text-badge {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 6px;
  white-space: nowrap;
  border-radius: 4px;
}
/* New: providers on right side of list card (not overlaid on poster) */
.show-card-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  flex-shrink: 0;
  min-width: 60px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
}
.show-card-providers .provider-badge {
  background: rgba(0, 0, 0, 0.72);
  border-radius: 4px;
  padding: 2px;
  overflow: visible;
}
.show-card-providers .provider-badge img {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}
.show-card-providers .provider-text-badge {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 5px;
  white-space: nowrap;
  border-radius: 4px;
}
.show-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.show-card-body > div:first-child {
  flex: 1;
  min-width: 0;
}
.show-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.show-card-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.show-card-meta .rating {
  color: var(--warning);
}
.show-card-overview {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Provider Badges */
.providers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
.provider-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.provider-badge img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  display: block;
}
.provider-text-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-want_to_watch { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.status-watching { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.status-watched { background: rgba(107, 105, 128, 0.15); color: var(--text-muted); }

/* Progress Tracker */
.progress-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.progress-tracker label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.progress-tracker input {
  width: 48px;
  padding: 4px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  outline: none;
}
.progress-tracker input:focus {
  border-color: var(--border-focus);
}
.watching-on-tag {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255,107,74,0.1);
  border: 1px solid rgba(255,107,74,0.2);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Show Actions */
.show-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.show-actions button {
  flex: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto 24px;
}

/* List Grid (Dashboard) */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.list-card:hover {
  border-color: rgba(255,107,74,0.2);
  transform: translateY(-2px);
}
.list-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.list-card-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
}
.list-card-privacy {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Continue Watching Section */
.continue-section {
  margin-bottom: 40px;
}
.continue-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 16px;
  -webkit-overflow-scrolling: touch;
}
.continue-card {
  flex-shrink: 0;
  width: 80px;
  cursor: pointer;
  transition: transform var(--transition);
}
.continue-card:hover {
  transform: translateY(-4px);
}
.continue-poster {
  width: 80px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-card);
  margin-bottom: 8px;
}
.continue-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-progress {
  font-size: 0.75rem;
  color: var(--accent);
}
.continue-card {
  position: relative;
}
.continue-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 107, 74, 0.5);
  border-radius: 50%;
  color: #ff6b4a;
  font-size: 10px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 5;
}
.continue-card:hover .continue-remove {
  opacity: 1;
  pointer-events: all;
}
.continue-remove:hover {
  background: rgba(255, 107, 74, 0.2);
}

/* Trending Titles Section */
.trending-section {
  margin-bottom: 40px;
}
.trending-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.trending-section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.trending-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
}
.trending-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.trending-row::-webkit-scrollbar { display: none; }
.tr-card {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tr-poster-wrap {
  position: relative;
  width: 90px;
  height: 135px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.tr-card:hover .tr-poster-wrap {
  border-color: rgba(255,107,74,0.5);
  transform: translateY(-3px);
}
.tr-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tr-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-muted);
}
.tr-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(12,15,26,0.95) 0%, rgba(12,15,26,0.5) 55%, transparent 100%);
  padding: 20px 4px 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.tr-card:hover .tr-overlay { opacity: 1; }
.tr-add-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 0;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: opacity 0.15s;
}
.tr-add-btn:hover { opacity: 0.85; }
.tr-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.tr-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Trending pick-list modal */
.trending-pick-show {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.trending-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trending-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
  gap: 8px;
}
.trending-pick-item:hover {
  border-color: rgba(255,107,74,0.4);
}
.trending-pick-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-pick-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12, 15, 26, 0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal h2 {
  margin-bottom: 20px;
}

/* Shared Page Header */
.shared-header {
  text-align: center;
  padding: 40px 0 32px;
}
.shared-header h1 {
  margin-bottom: 8px;
}
.shared-header .owner {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.shared-header .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Share Link Box */
.share-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin-top: 12px;
}
.share-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.share-box .btn {
  padding: 8px 16px;
}

/* Notifications / Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(52, 211, 153, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-card .logo {
  font-size: 6rem;
  margin-bottom: 8px;
}
.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.login-card .form-input {
  text-align: center;
  font-size: 1.1rem;
}
.login-card .btn {
  width: 100%;
  margin-top: 4px;
}
.code-input {
  font-size: 1.8rem !important;
  letter-spacing: 8px;
  font-weight: 700;
  font-family: 'Syne', sans-serif !important;
}

/* Responsive */
@media (max-width: 768px) {
  .show-grid { grid-template-columns: 1fr; }
  .show-card { flex-direction: column; }
  .show-card-poster-wrapper { width: 100%; height: 220px; }
  .show-card-providers { flex-direction: row; padding: 8px 12px; justify-content: center; min-width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .list-grid { grid-template-columns: 1fr; }
  .search-result { flex-direction: row; }
  nav { padding: 16px 0; margin-bottom: 24px; }
  h1 { font-size: 1.6rem; }
  .login-card { padding: 32px 24px; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,107,74,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Utility */
.hidden { display: none !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }

/* Sort Bar */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.sort-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sort-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.sort-btn:hover {
  border-color: var(--accent-dim);
  color: var(--text-primary);
}
.sort-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent-soft);
  font-weight: 500;
}
