/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ========================================
     DARK THEME COLOR SYSTEM
     ======================================== */
  
  /* Backgrounds - deep dark */
  --bg-deep: #0A0A0A;
  --bg-surface: #121212;
  --bg-card: #1A1A1A;
  --bg-elevated: #242424;
  
  /* Text - white hierarchy */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Gold accent system */
  --gold: #FFD700;
  --gold-dark: #FFC107;
  --gold-light: #FFE54C;
  --gold-dim: rgba(255, 215, 0, 0.15);
  --gold-glow: rgba(255, 215, 0, 0.4);
  
  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.1);
  --divider: rgba(255, 255, 255, 0.05);
  
  /* Status colors */
  --status-success: #10B981;
  --status-error: #FF6347;
  
  /* Legacy neutral tokens (for backwards compatibility) */
  --neutral-50: #FFFFFF;
  --neutral-100: #F8F8F8;
  --neutral-200: #F0F0F0;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-600: #757575;
  --neutral-700: #424242;
  --neutral-900: #121212;
  
  /* ========================================
     SEMANTIC TOKENS (dark theme)
     ======================================== */
  
  --color-bg: var(--bg-deep);
  --color-surface: var(--bg-surface);
  --color-card: var(--bg-card);
  --color-elevated: var(--bg-elevated);
  
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  
  --color-border: var(--border);
  --color-divider: var(--divider);
  
  --color-accent: var(--gold);
  --color-accent-dark: var(--gold-dark);
  --color-focus: var(--gold);
  
  --gradient-accent: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --gradient-hero: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  
  /* Shadows & Effects (dark theme enhanced) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 24px var(--gold-glow);
  --glow-strong: 0 0 48px var(--gold-glow);
  
  /* ========================================
     LEGACY TOKENS (mapped to semantic)
     ======================================== */
  
  --app-bg: var(--color-bg);
  --app-surface: var(--color-surface);
  --app-card: var(--color-card);
  --app-elevated: var(--color-elevated);
  --app-text: var(--color-text);
  --app-text-secondary: var(--color-text-secondary);
  --app-text-muted: var(--color-text-muted);
  --app-border: var(--color-border);
  --app-divider: var(--color-divider);
  
  --app-primary: var(--color-accent);
  --app-accent: var(--color-accent);
  --app-success: var(--status-success);
  
  --app-gradient-primary: var(--gradient-accent);
  --app-gradient-button: var(--gradient-accent);
  
  --app-shadow-sm: var(--shadow-sm);
  --app-shadow-md: var(--shadow-md);
  --app-shadow-lg: var(--shadow-lg);
  --app-glow: var(--glow-accent);
  --app-glow-strong: var(--glow-strong);
  
  /* Legacy brand tokens (for backwards compatibility) */
  --brand-gold: var(--gold);
  --brand-gold-dark: var(--gold-dark);
  --brand-gold-light: var(--gold-light);
  --brand-gold-dim: var(--gold-dim);
  --brand-gold-glow: var(--gold-glow);
  
  /* ========================================
     SPACING & LAYOUT
     ======================================== */
  
  /* Spacing scale (4px base) - matches main landing page */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  
  /* Legacy spacing tokens (for backwards compatibility) */
  --sp-1: var(--space-1);
  --sp-2: var(--space-2);
  --sp-3: var(--space-3);
  --sp-4: var(--space-4);
  --sp-5: var(--space-5);
  --sp-6: var(--space-6);
  --sp-8: var(--space-8);
  --sp-12: var(--space-12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Typography - Satoshi font family */
  --font-sans: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "Courier New", monospace;

  /* Layout */
  --bottom-nav-height: 72px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { 
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px); 
  font-weight: 900; 
  letter-spacing: -0.04em; 
  line-height: 1.0; 
  color: var(--text-primary); 
}
h2 { 
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px); 
  font-weight: 800; 
  letter-spacing: -0.03em; 
  line-height: 1.1; 
  color: var(--text-primary); 
}
h3 { 
  font-size: clamp(18px, 2.5vw, 22px); 
  font-weight: 700; 
  letter-spacing: -0.02em; 
  line-height: 1.3;
  color: var(--text-primary); 
}
p { 
  font-size: clamp(14px, 2vw, 16px); 
  line-height: 1.7; 
  color: var(--text-secondary); 
}

/* App Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-deep);
  position: relative;
}

/* Screen Base */
.screen {
  display: none;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

/* When the app shell shows the fixed bottom nav, reserve space so it never covers content */
.app-container.has-bottom-nav .screen {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

/* Allow vertical scrolling on the swipe screen so the comment input is always reachable */
.screen#screen-swipe,
#screen-swipe.screen {
  overflow-y: auto;
}

/* Login Screen */
.screen-login {
  background: var(--gradient-gold);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6);
}

.login-content h1 {
  font-size: clamp(48px, 8vw, 64px);
  font-weight: 900;
  margin-bottom: var(--sp-3);
  color: var(--neutral-900);
}

.tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
  color: rgba(18, 18, 18, 0.8);
  margin-bottom: var(--sp-12);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: white;
  color: #1F1F1F;
  font-size: 16px;
  font-weight: 600;
  padding: var(--sp-4) var(--sp-8);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--app-shadow-lg);
  transition: all 0.2s ease;
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-google .icon {
  font-weight: 700;
  color: #4285F4;
}

/* Onboarding Screen */
.screen-onboarding {
  padding: 0;
}

.onboarding-header {
  padding: var(--sp-6) var(--sp-4);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.onboarding-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.onboarding-header h2 {
  margin-bottom: var(--sp-2);
}

.onboarding-header p {
  font-size: 14px;
  color: var(--app-text-muted);
}

.chat-container {
  flex: 1;
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* Messages start from the top naturally; scroll-to-bottom shows them as they appear */
}

.message {
  max-width: 80%;
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  box-shadow: var(--app-shadow-sm);
}

.message-assistant {
  background: var(--app-card);
  margin-right: auto;
  color: var(--app-text);
}

.message-user {
  background: var(--app-gradient-primary);
  margin-left: auto;
  color: var(--neutral-900);
  font-weight: 600;
}

.input-container {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
}

.chat-input {
  flex: 1;
  background: var(--app-bg);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-4);
  color: var(--app-text);
  font-size: 16px;
}

.chat-input:focus {
  border-color: var(--app-primary);
  outline: none;
}

.chat-input::placeholder {
  color: var(--app-text-muted);
}

/* Message animation */
.message-hidden {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.message-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing indicator */
.typing-indicator {
  max-width: 60px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  background: var(--app-card);
  margin-right: auto;
  margin-left: 0;
  box-shadow: var(--app-shadow-sm);
  display: none;
  align-self: flex-start;
}

.typing-indicator.active {
  display: block;
}

.typing-indicator .dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-text-muted);
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Skip button */
.skip-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--app-border);
  color: var(--app-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: var(--app-shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.skip-button:hover {
  background: var(--app-bg);
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-md);
}

.skip-button.highlight {
  background: #FFD700;
  border-color: #FFC700;
  color: #000;
  animation: pulseYellow 1.5s ease-in-out;
}

@keyframes pulseYellow {
  0% {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--app-border);
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    background: #FFD700;
    border-color: #FFC700;
    transform: scale(1);
  }
}

.btn-voice {
  background: var(--app-gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  width: 52px;
  height: 52px;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: var(--app-shadow-sm);
}

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

/* Swipe Discovery Screen */
.swipe-header {
  padding: var(--sp-3) var(--sp-4);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Make Discover header text black */
.swipe-header h2 {
  color: #000000;
}

.swipe-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--sp-3) var(--sp-4) var(--sp-6);
  gap: var(--sp-3);
}

.movie-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  /* Taller poster to fill more vertical space and optimize screen usage */
  height: clamp(480px, 62vh, 640px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  will-change: transform;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.movie-card:hover {
  box-shadow: var(--shadow-lg), var(--glow-accent);
}

.movie-card.is-dragging {
  box-shadow: var(--app-shadow-lg);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: grabbing;
}

.movie-card.swipe-off-left {
  transform: translateX(-140%) rotate(-10deg);
  opacity: 0;
}

.movie-card.swipe-off-right {
  transform: translateX(140%) rotate(10deg);
  opacity: 0;
}

.movie-poster {
  width: 100%;
  height: 100%;
  background: var(--app-card);
  position: relative;
  overflow: hidden;
}

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

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
  color: var(--app-text-muted);
  font-size: 18px;
}


.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6) var(--sp-4);
  background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 60%, transparent 100%);
}

.movie-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: var(--sp-1);
  text-shadow: 
    -1px -1px 0 rgba(255, 215, 0, 0.3),
    1px -1px 0 rgba(255, 215, 0, 0.3),
    -1px 1px 0 rgba(255, 215, 0, 0.3),
    1px 1px 0 rgba(255, 215, 0, 0.3),
    0 0 4px rgba(255, 215, 0, 0.2);
}

.movie-meta {
  font-size: 14px;
  color: var(--app-text-secondary);
}

/* Action buttons BELOW the poster */
.swipe-hint {
  font-size: 13px;
  color: var(--app-text-muted);
  text-align: center;
  margin-bottom: var(--sp-2);
}

.swipe-hint.swipe-hint-seen {
  opacity: 0.6;
}

.swipe-hint.hidden {
  display: none;
}

.swipe-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  max-width: 340px;
  margin-top: var(--sp-4); /* Fixed spacing right below movie card */
  position: relative;
  z-index: 60; /* Above comment section (z-index: 50) */
}

.swipe-primary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.action-btn {
  width: 100%;
  height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-md);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}

/* Primary actions: small rectangular buttons */
.swipe-primary-row .action-btn {
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-btn:hover::before {
  opacity: 1;
}

.action-label {
  display: block;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

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

/* Secondary actions: lighter, chip-style */
/* (no longer used; kept for potential future variants) */

.comment-section {
  position: fixed;
  /* Offset slightly more than bottom-nav to avoid overlap on mobile.
     bottom-nav total height (including padding) is ~80px when var(--bottom-nav-height) is 72px,
     so we add an extra spacing token. */
  bottom: calc(var(--bottom-nav-height) + var(--sp-2));
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--sp-4);
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  z-index: 50;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.comment-section.hidden {
  display: none;
}

.comment-with-rating {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.comment-input {
  flex: 1;
  background: var(--app-bg);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--app-text);
  font-size: 15px;
}

.comment-input:focus {
  border-color: var(--app-primary);
  outline: none;
}

/* Rating controls */
.rating-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rating-controls.hidden {
  display: none;
}
.rating-btn {
  background: none;
  border: none;
  color: var(--app-text-muted);
  font-size: 12px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.rating-btn:hover {
  color: var(--app-primary);
}
.rating-btn:active {
  transform: scale(0.9);
}
.rating-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--app-text-muted);
  min-width: 20px;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s;
  opacity: 0.5;
}
.rating-value.active {
  color: var(--app-text);
  opacity: 1;
}
.comment-with-rating {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

/* Send button next to comment input */
.comment-send-btn {
  background: var(--app-primary);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-send-btn:hover {
  filter: brightness(1.05);
}

.comment-send-btn:active {
  transform: translateY(1px);
}

/* --- old rating wheel styles removed ---
.rating-wheel-container {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.rating-wheel-container.hidden {
  display: none;
}

.rating-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--app-card);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-md);
  padding: var(--sp-1);
}

.wheel-btn {
  background: none;
  border: none;
  color: var(--app-text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
}

.wheel-btn:hover {
  color: var(--app-primary);
}

.rating-display {
  font-size: 20px;
  font-weight: 800;
  color: var(--app-primary);
  padding: var(--sp-1) var(--sp-2);
  min-width: 32px;
  text-align: center;
}

.rating-label {
  font-size: 14px;
  color: var(--app-text-muted);
  font-weight: 600;
}

/* List Screens */
.list-header {
  padding: var(--sp-6) var(--sp-4);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.list-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.btn-add-content {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-md);
  background: var(--app-gradient-primary);
  border: none;
  color: var(--neutral-900);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--app-shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-add-content:hover {
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-md);
}

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

.list-header p {
  font-size: 14px;
  color: var(--app-text-muted);
  margin-top: var(--sp-2);
}

.list-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--app-bg);
  border-bottom: 1px solid var(--app-divider);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.list-item:hover {
  background: var(--app-surface);
  transform: translateX(4px);
}

.drag-handle {
  font-size: 20px;
  color: var(--app-text-muted);
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 18px;
  margin-bottom: var(--sp-1);
}

.item-meta {
  font-size: 14px;
  color: var(--app-text-muted);
  margin-bottom: var(--sp-2);
}

.rating {
  font-size: 14px;
  color: var(--app-primary);
  font-weight: 700;
}

.item-action {
  background: none;
  border: none;
  color: var(--app-text-muted);
  font-size: 20px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.priority-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--app-gradient-primary);
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 800;
}

/* Movie Detail Screen */
.detail-header {
  padding: var(--sp-4);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-back {
  background: none;
  border: none;
  color: var(--app-text);
  font-size: 16px;
  cursor: pointer;
  padding: var(--sp-2);
}

.detail-content {
  overflow-y: auto;
  padding-bottom: 80px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--app-card);
  position: relative;
  overflow: hidden;
}

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

.detail-info {
  padding: var(--sp-6) var(--sp-4);
}

.detail-info .movie-title {
  margin-bottom: var(--sp-2);
  font-size: 28px;
}

.detail-info .movie-meta {
  color: var(--app-text-muted);
  margin-bottom: var(--sp-6);
}

.scores {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  align-items: center;
  flex-wrap: wrap;
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--app-card);
  border-radius: var(--radius-md);
}

.score-label {
  font-size: 12px;
  color: var(--app-text-muted);
  margin-bottom: var(--sp-1);
}

.score-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--app-primary);
}

.synopsis {
  margin-bottom: var(--sp-6);
}

.synopsis h3 {
  margin-bottom: var(--sp-3);
}

.rating-section {
  margin-bottom: var(--sp-6);
}

.rating-section h3 {
  margin-bottom: var(--sp-3);
}

.stars {
  font-size: 24px;
  color: var(--app-primary);
  letter-spacing: 4px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.btn-primary {
  background: var(--app-gradient-primary);
  color: var(--neutral-900);
  border: none;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--app-shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-md), var(--glow-accent);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--app-card);
  color: var(--app-text);
  border: 2px solid var(--app-border);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--app-primary);
  background: var(--app-surface);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--app-border);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.bottom-nav.hidden {
  display: none;
}

.nav-content {
  display: flex;
  justify-content: space-around;
  padding: var(--sp-2) var(--sp-2);
  min-height: var(--bottom-nav-height);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: none;
  color: var(--app-text-muted);
  cursor: pointer;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex: 1;
  font-weight: 600;
}

.nav-item.active {
  color: var(--app-primary);
}

.nav-item:hover {
  background: var(--brand-gold-dim);
}

.nav-icon {
  width: 28px;
  height: 28px;
  color: var(--app-text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-label {
  font-size: 12px;
  font-weight: 700;
}

/* Discover filters in header */
.swipe-filters {
  display: flex;
  gap: var(--sp-4);
}

.filter-chip {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--app-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 6px;
}

.filter-chip:hover {
  color: var(--app-text-secondary);
}

.filter-chip.active {
  color: var(--app-text);
  font-weight: 600;
}

.filter-chip.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--app-primary);
  border-radius: 1px;
}

/* Accessibility */
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus, input:focus {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rating/Comment Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--app-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--app-shadow-lg);
  z-index: 1001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--app-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--app-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--app-surface);
  color: var(--app-text);
}

.modal-body {
  padding: var(--sp-5);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--app-border);
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  flex: 1;
}

.rating-input-section {
  margin-bottom: var(--sp-6);
}

.rating-input-section label {
  display: block;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--sp-3);
  font-size: 15px;
}

.rating-selector {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.rating-selector input[type="range"] {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--app-card);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.rating-selector input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--app-gradient-primary);
  cursor: pointer;
  box-shadow: var(--app-shadow-sm);
}

.rating-selector input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--app-gradient-primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--app-shadow-sm);
}

.rating-display {
  font-size: 24px;
  font-weight: 800;
  color: var(--app-primary);
  min-width: 60px;
  text-align: center;
}

.comment-input-section label {
  display: block;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--sp-3);
  font-size: 15px;
}

.modal-comment-textarea,
.detail-comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--app-text);
  background: var(--app-bg);
  resize: vertical;
  margin-bottom: var(--sp-3);
}

.modal-comment-textarea:focus,
.detail-comment-textarea:focus {
  border-color: var(--app-primary);
  outline: none;
}

.comment-actions,
.comment-actions-detail {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.btn-audio-record {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--app-card);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-md);
  color: var(--app-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audio-record:hover {
  border-color: var(--app-primary);
  background: var(--app-surface);
}

.btn-audio-record.recording {
  background: var(--status-error);
  border-color: var(--status-error);
  color: white;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.audio-status {
  font-size: 13px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
}

.audio-status.recording-status {
  color: var(--status-error);
  background: rgba(255, 99, 71, 0.1);
}

.audio-status.transcribing-status {
  color: var(--app-primary);
  background: var(--brand-gold-dim);
}

.audio-status.success-status {
  color: var(--status-success);
  background: rgba(16, 185, 129, 0.1);
}

/* Discrete rating button in list */
.item-actions-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.btn-rate-small {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-rate-small:hover {
  background: var(--app-surface);
  border-color: var(--app-primary);
  transform: scale(1.1);
}

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

/* Comment section in detail screen */
.comment-section-detail {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--app-border);
}

.comment-section-detail h3 {
  margin-bottom: var(--sp-3);
}

/* IMDB Links */
.btn-imdb-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-imdb-link:hover {
  color: var(--app-primary);
  background: var(--brand-gold-dim);
}

.imdb-link-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: var(--sp-3);
  border: 1px solid var(--app-border);
}

.imdb-link-detail:hover {
  color: var(--app-primary);
  background: var(--brand-gold-dim);
  border-color: var(--app-primary);
}

/* IMDb Badge with Logo */
.imdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: #F5C518;
  color: #000000;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.imdb-badge:hover {
  background: #F5D026;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.imdb-logo {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: -0.5px;
}

/* Movie info with ratings inline */
.item-content-with-ratings {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.item-ratings-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.user-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-gold-dark);
}

.user-rating-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--brand-gold-dark);
}


/* ====================
   PIKAICONS LIGHTER STYLE + COLORS
   ==================== */

/* Navigation Icons - Lighter */
.nav-icon {
  opacity: 0.7;
}

.nav-item.active .nav-icon {
  color: var(--brand-gold);
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--brand-gold-glow));
}

/* Discovery Action Buttons - Design System Colors */
/* LEFT SIDE: Negative/Skip Actions */
.action-skip {
  background: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-300) 100%);
  color: var(--neutral-700);
}

.action-dislike {
  background: linear-gradient(135deg, var(--neutral-300) 0%, var(--neutral-400) 100%);
  color: var(--neutral-700);
}

/* RIGHT SIDE: Positive Actions */
.action-like {
  background: var(--app-gradient-primary);
  color: var(--neutral-900);
}

.action-wishlist {
  background: linear-gradient(135deg, var(--brand-gold-light) 0%, var(--brand-gold) 100%);
  color: var(--neutral-900);
}

/* Hover States - Design System Aligned */
.action-skip:hover {
  background: linear-gradient(135deg, var(--neutral-300) 0%, var(--neutral-400) 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-dislike:hover {
  background: linear-gradient(135deg, var(--neutral-400) 0%, var(--neutral-600) 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.action-like:hover {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px var(--brand-gold-glow);
}

.action-wishlist:hover {
  background: linear-gradient(135deg, #FFE54C 0%, var(--brand-gold-light) 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px var(--brand-gold-glow);
  color: var(--neutral-900);
}

/* Voice Button Icon */
.voice-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
}

.btn-voice {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Arrow Icons */
.btn-back svg,
.item-action svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

/* Rating Star Icons */
.rating svg,
.rating-display svg {
  width: 16px;
  height: 16px;
  color: var(--brand-gold);
}

/* Icon Hover States */
svg {
  transition: all 0.2s ease;
}

/* Duo Solid Color Management */
svg [opacity="0.2"],
svg [opacity="0.15"] {
  /* Secondary tint layer - inherits currentColor with reduced opacity */
  fill: currentColor;
}

/* Add Content Chat Screen */
.screen-add-content {
  padding: 0;
  background: var(--app-bg);
}

.add-content-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.add-content-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--app-text);
  margin: 0;
}

.add-chat-container {
  flex: 1;
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Message Bubbles */
.add-message {
  max-width: 85%;
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--app-shadow-sm);
  animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.add-message-ai {
  background: var(--app-card);
  align-self: flex-start;
  color: var(--app-text);
}

.add-message-user {
  background: var(--app-gradient-primary);
  align-self: flex-end;
  color: var(--neutral-900);
  font-weight: 600;
}

/* Audio Message Bubble */
.audio-message-bubble {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--app-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-2);
}

.audio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--app-gradient-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-waveform {
  flex: 1;
  height: 24px;
  background: linear-gradient(
    90deg,
    var(--app-border) 0%,
    var(--app-border) 40%,
    var(--brand-gold) 40%,
    var(--brand-gold) 45%,
    var(--app-border) 45%
  );
  border-radius: var(--radius-sm);
  position: relative;
}

.audio-duration {
  font-size: 12px;
  color: var(--app-text-muted);
  font-weight: 600;
}

.audio-transcription {
  font-size: 13px;
  color: var(--app-text-secondary);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--app-divider);
  margin-top: var(--sp-2);
  font-style: italic;
}

.audio-transcription.hidden {
  display: none;
}

.audio-transcription-toggle {
  font-size: 12px;
  color: var(--app-primary);
  cursor: pointer;
  font-weight: 600;
  margin-top: var(--sp-2);
}

/* Content Confirmation Grid */
.content-confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.content-card-mini {
  background: var(--app-bg);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  border: 1px solid var(--app-border);
}

.content-card-mini img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-2);
}

.content-card-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
}

.content-card-mini-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold-dark);
}

.content-card-mini-rating svg {
  width: 14px;
  height: 14px;
  fill: var(--brand-gold-dark);
}

/* Autocomplete Dropdown (for typing animation) */
.add-autocomplete-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 60px; /* Leave space for voice button */
  background: var(--app-elevated);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-md);
  box-shadow: var(--app-shadow-lg);
  z-index: 100;
  animation: autocompleteSlideUp 0.3s ease;
}

.add-autocomplete-dropdown.hidden {
  display: none;
}

@keyframes autocompleteSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.add-autocomplete-item {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--app-divider);
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.add-autocomplete-item:hover,
.add-autocomplete-item.highlighted {
  background: var(--brand-gold-dim);
}

.add-autocomplete-item-title {
  font-weight: 600;
  color: var(--app-text);
  font-size: 14px;
}

.add-autocomplete-item-meta {
  font-size: 12px;
  color: var(--app-text-muted);
  margin-top: 2px;
}

/* Input Container */
.add-input-container {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  position: relative;
}

.add-chat-input {
  flex: 1;
  background: var(--app-bg);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-4);
  color: var(--app-text);
  font-size: 16px;
}

.add-chat-input:focus {
  border-color: var(--app-primary);
  outline: none;
}

/* Typing animation in input */
.typing-in-input {
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%,
  49% {
    border-right: 2px solid var(--app-text);
  }
  50%,
  100% {
    border-right: 2px solid transparent;
  }
}

/* Typing animation for onboarding */
.message-typing {
  opacity: 1;
}

.cursor-blink {
  animation: blink 1s infinite;
  display: inline-block;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ========================================
   RECOMMENDATOR DASH TUTORIAL OVERLAY (REMOVABLE)
   ======================================== */
   /* To remove tutorial: Delete this entire section (from this comment to line ~2305) */

/* Tutorial Overlay Container */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tutorial-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-overlay.hidden {
  display: none;
}

/* Dimming Backdrop */
.tutorial-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  /* Mask will be updated dynamically via JavaScript to create cutout */
  mask-image: radial-gradient(circle, transparent 0%, transparent 0%, black 0%, black 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 0%, transparent 0%, black 0%, black 100%);
}

/* Spotlight Effect - Border Ring Only */
.tutorial-spotlight {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--gold);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2001;
  animation: spotlightPulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  /* Will be positioned dynamically via JavaScript */
}

@keyframes spotlightPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Callout Bubble */
.tutorial-callout {
  position: absolute;
  z-index: 2002;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tutorial-callout.visible {
  opacity: 1;
  transform: translateY(0);
}

.tutorial-callout-content {
  background: var(--bg-elevated);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg), var(--glow-accent);
  max-width: 280px;
  position: relative;
}

.tutorial-callout-text {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.tutorial-callout-text strong {
  color: var(--gold);
  font-weight: 800;
}

/* Callout Arrow */
.tutorial-callout-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Arrow pointing down (default) */
.tutorial-callout-arrow.arrow-down {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 12px 0 12px;
  border-color: var(--gold) transparent transparent transparent;
}

.tutorial-callout-arrow.arrow-down::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-color: var(--bg-elevated) transparent transparent transparent;
}

/* Arrow pointing up */
.tutorial-callout-arrow.arrow-up {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 12px 12px 12px;
  border-color: transparent transparent var(--gold) transparent;
}

.tutorial-callout-arrow.arrow-up::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent var(--bg-elevated) transparent;
}

/* Arrow pointing left */
.tutorial-callout-arrow.arrow-left {
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 12px 12px 12px 0;
  border-color: transparent var(--gold) transparent transparent;
}

.tutorial-callout-arrow.arrow-left::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bg-elevated) transparent transparent;
}

/* Arrow pointing right */
.tutorial-callout-arrow.arrow-right {
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 12px 0 12px 12px;
  border-color: transparent transparent transparent var(--gold);
}

.tutorial-callout-arrow.arrow-right::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bg-elevated);
}

/* Navigation Controls */
.tutorial-navigation {
  position: absolute;
  top: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-3);
  z-index: 2003;
  pointer-events: auto;
}

.tutorial-btn {
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.tutorial-btn-skip {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.tutorial-btn-skip:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tutorial-btn-next {
  background: var(--gradient-gold);
  color: var(--neutral-900);
}

.tutorial-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-strong);
}

.tutorial-btn:active {
  transform: scale(0.98);
}

/* Step Indicator */
.tutorial-step-indicator {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-4);
  background: var(--bg-elevated);
  border: 2px solid var(--gold);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  z-index: 2003;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.tutorial-step-indicator #tutorial-step-current {
  color: var(--gold);
}

/* Last updated: 2025-12-16 */

