/* ============================================
   MCU Watch Tracker — Cinematic Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-deep: #05050f;
  --bg-dark: #0a0a1a;
  --bg-card: rgba(15, 15, 35, 0.85);
  --bg-glass: rgba(20, 20, 50, 0.6);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Infinity Stones */
  --stone-space: #3b82f6;
  --stone-mind: #eab308;
  --stone-reality: #dc2626;
  --stone-power: #8b5cf6;
  --stone-time: #059669;
  --stone-soul: #f59e0b;

  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --disney-blue: #113ccf;
  --netflix-red: #e50914;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-tech: 'Orbitron', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 60px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated Background ---------- */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite alternate;
  opacity: 0;
}

@keyframes twinkle {
  0% { opacity: 0.1; transform: scale(0.8); }
  100% { opacity: var(--max-opacity, 0.8); transform: scale(1.2); }
}

.bg-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 2rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 15, 0.4) 60%, var(--bg-deep) 100%),
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-logo {
  margin-bottom: 1rem;
}

.logo-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  letter-spacing: 0.3em;
  color: var(--text-primary);
  text-shadow:
    0 0 40px rgba(139, 92, 246, 0.5),
    0 0 80px rgba(139, 92, 246, 0.2);
  line-height: 1;
}

.logo-sub {
  display: block;
  font-family: var(--font-tech);
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  letter-spacing: 0.5em;
  color: var(--stone-soul);
  margin-top: 0.25rem;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.hero-tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

/* Infinity Stones Progress */
.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.progress-stones {
  display: flex;
  gap: 12px;
}

.stone {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: default;
}

.stone::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.stone.lit {
  transform: scale(1.15);
}

.stone-space { background: radial-gradient(circle, #60a5fa, #1e40af); }
.stone-space.lit::after { box-shadow: 0 0 20px 6px rgba(59, 130, 246, 0.6); opacity: 1; }
.stone-mind { background: radial-gradient(circle, #fde047, #a16207); }
.stone-mind.lit::after { box-shadow: 0 0 20px 6px rgba(234, 179, 8, 0.6); opacity: 1; }
.stone-reality { background: radial-gradient(circle, #f87171, #991b1b); }
.stone-reality.lit::after { box-shadow: 0 0 20px 6px rgba(220, 38, 38, 0.6); opacity: 1; }
.stone-power { background: radial-gradient(circle, #a78bfa, #5b21b6); }
.stone-power.lit::after { box-shadow: 0 0 20px 6px rgba(139, 92, 246, 0.6); opacity: 1; }
.stone-time { background: radial-gradient(circle, #34d399, #065f46); }
.stone-time.lit::after { box-shadow: 0 0 20px 6px rgba(5, 150, 105, 0.6); opacity: 1; }
.stone-soul { background: radial-gradient(circle, #fbbf24, #b45309); }
.stone-soul.lit::after { box-shadow: 0 0 20px 6px rgba(245, 158, 11, 0.6); opacity: 1; }

.progress-bar-track {
  width: 280px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--stone-space), var(--stone-power), var(--stone-reality), var(--stone-soul));
  background-size: 300% 100%;
  animation: shimmer 3s ease infinite;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.progress-text {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bobUpDown 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bobUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Controls Bar (Sticky) ---------- */
.controls-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 0.75rem 1rem;
}

.controls-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.controls-filters {
  display: flex;
  gap: 0.5rem;
}

.control-select {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}

.control-select:hover,
.control-select:focus {
  border-color: var(--accent);
  color: var(--text-primary);
}

.control-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toggle-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.toggle-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.15));
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.toggle-icon {
  font-size: 1rem;
}

.stat-badge {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--stone-soul);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  letter-spacing: 0.05em;
}

/* ---------- Timeline ---------- */
.timeline-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Phase Section */
.phase-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.phase-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.phase-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--phase-color, var(--accent)), transparent);
}

.phase-label {
  text-align: center;
  white-space: nowrap;
}

.phase-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.phase-subtitle {
  font-size: 0.7rem;
  color: var(--phase-color, var(--accent));
  font-family: var(--font-tech);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Timeline Spine */
.phase-movies {
  position: relative;
  padding-left: 2.5rem;
}

.phase-movies::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--phase-color, var(--accent)) 0%, rgba(139, 92, 246, 0.1) 100%);
}

/* Movie Card */
.movie-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.movie-card::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--phase-color, var(--accent));
  z-index: 2;
  transition: all 0.3s ease;
}

.movie-card.watched::before {
  background: var(--phase-color, var(--accent));
  box-shadow: 0 0 12px var(--phase-color, var(--accent));
}

.movie-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.movie-card:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.movie-card:hover::after {
  opacity: 1;
}

.movie-card.watched {
  border-color: rgba(5, 150, 105, 0.3);
}

.movie-card.in-progress {
  border-color: rgba(245, 158, 11, 0.3);
}

.movie-card.in-progress::before {
  background: var(--stone-soul);
  box-shadow: 0 0 12px var(--stone-soul);
}

.card-poster {
  width: 70px;
  height: 105px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.movie-card:hover .card-poster {
  transform: scale(1.05);
}

.card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.card-order {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-year {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.card-platform.disney {
  background: rgba(17, 60, 207, 0.2);
  color: #6d9fff;
  border: 1px solid rgba(17, 60, 207, 0.3);
}

.card-platform.netflix {
  background: rgba(229, 9, 20, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.card-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.card-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: transparent;
  font-size: 1rem;
  position: relative;
  z-index: 5;
}

.card-check:hover {
  border-color: var(--stone-time);
  background: rgba(5, 150, 105, 0.1);
}

.card-check.checked {
  background: var(--stone-time);
  border-color: var(--stone-time);
  color: white;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.5);
}

.card-check.checked::after {
  content: '✓';
}

.card-check.in-progress {
  background: var(--stone-soul);
  border-color: var(--stone-soul);
  color: white;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.card-check.in-progress::after {
  content: '⏸';
  font-size: 0.7rem;
}

.card-date {
  font-size: 0.6rem;
  color: var(--stone-time);
  font-family: var(--font-tech);
  letter-spacing: 0.03em;
}

.card-date.in-progress {
  color: var(--stone-soul);
}

@keyframes checkPop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.card-check.just-checked {
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Trailer play overlay */
.card-trailer-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 38, 38, 0.8);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.card-trailer-btn:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: var(--bg-dark);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-backdrop-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.modal-backdrop-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(10, 10, 26, 0.6) 50%, transparent 100%);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-close:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

.modal-body {
  padding: 0 1.5rem 2rem;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
}

.modal-poster-wrap {
  flex-shrink: 0;
}

.modal-poster {
  width: 130px;
  height: 195px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-info {
  flex: 1;
  min-width: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.modal-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.modal-meta span {
  font-size: 0.7rem;
  font-family: var(--font-tech);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.2);
  letter-spacing: 0.05em;
}

.modal-synopsis {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-release,
.modal-streaming {
  margin-bottom: 1rem;
}

.modal-release .label,
.modal-streaming .label,
.modal-trailer .label {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.modal-release .value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.streaming-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.streaming-link.disney-link {
  background: linear-gradient(135deg, #0e1d69, #113ccf);
  color: white;
}

.streaming-link.netflix-link {
  background: linear-gradient(135deg, #8b0000, #e50914);
  color: white;
}

.streaming-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.streaming-icon {
  font-size: 1.1rem;
}

/* Trailer embed */
.modal-trailer {
  margin-bottom: 1.25rem;
}

.trailer-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.trailer-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.btn-in-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: transparent;
  color: var(--stone-soul);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-in-progress:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--stone-soul);
}

.btn-in-progress.is-active {
  background: var(--stone-soul);
  border-color: var(--stone-soul);
  color: white;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.btn-watched {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(5, 150, 105, 0.4);
  background: transparent;
  color: var(--stone-time);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-watched:hover {
  background: rgba(5, 150, 105, 0.15);
  border-color: var(--stone-time);
}

.btn-watched.is-watched {
  background: var(--stone-time);
  border-color: var(--stone-time);
  color: white;
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
}

.modal-dates {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-tech);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.check-icon::before {
  content: '○';
}

.btn-watched.is-watched .check-icon::before {
  content: '✓';
}

/* ---------- Config Modal ---------- */
.config-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.config-overlay.open {
  opacity: 1;
  visibility: visible;
}

.config-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-dark);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.config-modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.config-modal p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.config-field {
  margin-bottom: 1rem;
}

.config-field label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.config-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.config-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.config-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-config-save {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-xs);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--stone-space));
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-config-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-config-skip {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-config-skip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* ---------- Settings FAB ---------- */
.fab-settings {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.fab-settings:hover {
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.5rem;
}

/* ---------- Desktop Enhancements ---------- */
@media (min-width: 768px) {
  .modal {
    border-radius: var(--radius);
    max-height: 85vh;
    margin: auto;
    align-self: center;
  }

  .modal-overlay {
    align-items: center;
  }

  .modal-overlay.open .modal {
    transform: translateY(0) scale(1);
  }

  .modal-body {
    padding: 0 2rem 2.5rem;
  }

  .modal-poster {
    width: 180px;
    height: 270px;
  }

  .card-poster {
    width: 80px;
    height: 120px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .phase-movies {
    padding-left: 3rem;
  }

  .movie-card::before {
    left: -3rem;
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem 1.5rem;
  }

  .modal-poster {
    width: 120px;
    height: 180px;
  }

  .modal-meta {
    justify-content: center;
  }

  .controls-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .controls-row {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .view-toggle {
    width: 100%;
  }

  .controls-filters {
    width: 100%;
  }

  .control-select {
    flex: 1;
    font-size: 0.7rem;
  }

  .toggle-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.45rem 0.5rem;
  }

  .logo-text {
    font-size: 3rem;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ---------- Utilities ---------- */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
