/* ==========================================================================
   ⚡ TV PLAY — MULTIVERSO MARVEL & MARATONAR (Gamified Temporal Experience)
   ========================================================================== */

/* Hub de Maratonas */
.marathon-hub {
  padding: 40px 0 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.marathon-header {
  text-align: center;
  margin-bottom: 40px;
}

.marathon-header small {
  color: #f39c12;
  font: 800 12px Manrope;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 156, 18, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(243, 156, 18, 0.3);
  margin-bottom: 12px;
}

.marathon-header h1 {
  font: 800 clamp(32px, 4.5vw, 56px) Manrope;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ffffff 40%, #ff4b6e 80%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marathon-header p {
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto;
}

.sagas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.saga-card {
  position: relative;
  background: linear-gradient(160deg, #121622 0%, #090c13 100%);
  border: 1px solid #232a3d;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.saga-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: #e62429;
  box-shadow: 0 24px 60px rgba(230, 36, 41, 0.25);
}

.saga-card.featured {
  border-color: rgba(230, 36, 41, 0.6);
  background: linear-gradient(160deg, #1c1522 0%, #0c0e18 100%);
}

.saga-card-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #171b26;
}

.saga-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.saga-card:hover .saga-card-banner img {
  transform: scale(1.08);
}

.saga-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c0e18 0%, transparent 60%);
}

.saga-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 12px;
  font: 700 11px Manrope;
  letter-spacing: 1px;
  z-index: 2;
  text-transform: uppercase;
}

.saga-card-badge.active-badge {
  background: #e62429;
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 36, 41, 0.5);
}

.saga-card-badge.soon-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #a0a6b8;
  backdrop-filter: blur(8px);
}

.saga-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.saga-card-title {
  font: 800 24px Manrope;
  color: #fff;
  margin: 0 0 8px;
}

.saga-card-desc {
  color: #8c93a8;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.saga-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.saga-metric-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cdd3e2;
}

.saga-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font: 700 14px Manrope;
  color: #e62429;
}

.saga-card-action i {
  font-style: normal;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.saga-card:hover .saga-card-action i {
  transform: translateX(6px);
}

/* ==========================================================================
   LANDING PAGE MARVEL (TVA & Multiverse Experience)
   ========================================================================== */

.marvel-universe-view {
  position: relative;
  padding: 20px 0 100px;
}

/* Marvel Hero & Gamification Command Center */
.marvel-hud-hero {
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 85% 15%, rgba(230, 36, 41, 0.25) 0%, rgba(112, 85, 232, 0.15) 45%, rgba(10, 13, 20, 0.95) 80%), #0c0f18;
  border: 1px solid rgba(230, 36, 41, 0.35);
  padding: 36px 40px;
  margin-bottom: 34px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.marvel-hud-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 36, 41, 0.18) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(60px);
}

.marvel-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.marvel-title-group {
  max-width: 640px;
}

.marvel-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e62429;
  color: #fff;
  font: 900 13px Manrope;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(230, 36, 41, 0.5);
}

.marvel-title-group h1 {
  font: 900 clamp(28px, 4vw, 48px) Manrope;
  letter-spacing: -1px;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.marvel-title-group p {
  color: #a7b0c8;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Gamification Hero Profile & XP */
.marvel-profile-hud {
  background: rgba(16, 20, 30, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px 24px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.marvel-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marvel-avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f39c12, #e62429);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
  position: relative;
  flex-shrink: 0;
}

.marvel-rank-info {
  flex: 1;
}

.marvel-rank-info small {
  color: #f39c12;
  font: 800 11px Manrope;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.marvel-rank-info strong {
  display: block;
  font: 800 17px Manrope;
  color: #fff;
  margin-top: 2px;
}

.marvel-xp-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.marvel-xp-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.marvel-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #e62429, #f39c12);
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(243, 156, 18, 0.6);
}

.marvel-xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #8c95ab;
}

/* Infinity Stones Gauntlet Tracker */
.marvel-gauntlet-hud {
  position: relative;
  z-index: 2;
  background: rgba(8, 11, 18, 0.85);
  border: 1px solid rgba(243, 156, 18, 0.25);
  border-radius: 20px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gauntlet-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gauntlet-title span {
  font-size: 26px;
}

.gauntlet-title strong {
  display: block;
  font: 800 15px Manrope;
  color: #fff;
}

.gauntlet-title small {
  color: #8c95ab;
  font-size: 12px;
}

.infinity-stones-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 700 12px Manrope;
  color: #6d7589;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.stone-pill i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.stone-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Unlocked Stone States */
.stone-pill.unlocked {
  color: #fff;
  border-color: currentColor;
}

.stone-pill.unlocked i {
  opacity: 1;
  box-shadow: 0 0 12px currentColor;
}

.stone-pill.stone-space.unlocked { color: #00d2ff; background: rgba(0, 210, 255, 0.12); border-color: rgba(0, 210, 255, 0.4); }
.stone-pill.stone-power.unlocked { color: #b700ff; background: rgba(183, 0, 255, 0.12); border-color: rgba(183, 0, 255, 0.4); }
.stone-pill.stone-reality.unlocked { color: #ff2a4d; background: rgba(255, 42, 77, 0.12); border-color: rgba(255, 42, 77, 0.4); }
.stone-pill.stone-mind.unlocked { color: #ffeb3b; background: rgba(255, 235, 59, 0.12); border-color: rgba(255, 235, 59, 0.4); }
.stone-pill.stone-time.unlocked { color: #00e676; background: rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.4); }
.stone-pill.stone-soul.unlocked { color: #ff9100; background: rgba(255, 145, 0, 0.12); border-color: rgba(255, 145, 0, 0.4); }

.hud-badges-btn {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 36, 41, 0.2));
  border: 1px solid rgba(243, 156, 18, 0.4);
  color: #fff;
  padding: 9px 18px;
  border-radius: 12px;
  font: 700 13px Manrope;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.hud-badges-btn:hover {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.35), rgba(230, 36, 41, 0.35));
  border-color: #f39c12;
  box-shadow: 0 0 16px rgba(243, 156, 18, 0.3);
}

/* ==========================================================================
   NAVIGATION & CONTROLS (Mode Switcher, Timeline Pills, Search)
   ========================================================================== */

.marvel-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.marvel-drive-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid #3389ff4a; border-radius: 10px; color: #dbeaff; background: #0d28447a; font-size: 11px; }
.marvel-drive-status > span { color: #71b6ff; font-size: 17px; }
.marvel-drive-status strong { font: 750 11px Manrope; }
.marvel-drive-status em { color: #ffb36b; font-style: normal; }
.marvel-playback-notice { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #ffb36b70; border-radius: 10px; color: #ffe0be; background: #4b250f99; font: 650 12px Manrope; }
.m-badge-drive { color: #d9ecff !important; background: #1261a8dd !important; }

/* Mode Switcher: Ordem Cronológica MCU vs Fases e Universos */
.marvel-mode-switcher {
  display: inline-flex;
  background: #11141d;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid #232734;
  align-self: flex-start;
  gap: 4px;
}

.marvel-mode-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #8c93a8;
  font: 700 14px Manrope;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.marvel-mode-btn.active {
  background: #e62429;
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 36, 41, 0.4);
}

.marvel-mode-btn:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Phase Quick Selector (Horizontal Ribbon) */
.marvel-phase-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.marvel-phase-ribbon::-webkit-scrollbar {
  display: none;
}

.phase-pill-btn {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 12px;
  background: #131722;
  border: 1px solid #252b3b;
  color: #c4c9d8;
  font: 700 13px Manrope;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.phase-pill-btn:hover {
  border-color: #e62429;
  color: #fff;
  transform: translateY(-2px);
}

.phase-pill-btn.active {
  background: linear-gradient(135deg, #e62429, #9e1419);
  border-color: #e62429;
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 36, 41, 0.35);
}

/* Filters & Search Row */
.marvel-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.marvel-search-box {
  flex: 1;
  min-width: 260px;
  max-width: 480px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #11141c;
  border: 1px solid #252a3a;
  border-radius: 12px;
  color: var(--muted);
}

.marvel-search-box:focus-within {
  border-color: #e62429;
  box-shadow: 0 0 12px rgba(230, 36, 41, 0.2);
}

.marvel-search-box input {
  width: 100%;
  background: 0;
  border: 0;
  outline: 0;
  color: #fff;
  font: 500 14px "DM Sans";
}

.marvel-type-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.marvel-filter-tag {
  padding: 8px 14px;
  border-radius: 10px;
  background: #141824;
  border: 1px solid #242938;
  color: #a7adbc;
  font: 600 13px "DM Sans";
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.marvel-filter-tag:hover {
  color: #fff;
  border-color: #555e75;
}

.marvel-filter-tag.active {
  background: #2b1319;
  border-color: #e62429;
  color: #fff;
}

/* ==========================================================================
   CONTENT LAYOUT: TIMELINE & PHASE SECTIONS
   ========================================================================== */

.marvel-phase-section {
  margin-bottom: 50px;
}

.phase-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phase-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phase-header-title .phase-icon {
  font-size: 28px;
}

.phase-header-title h2 {
  font: 800 24px Manrope;
  color: #fff;
  margin: 0 0 4px;
}

.phase-header-title p {
  color: #8c93a8;
  font-size: 14px;
  margin: 0;
}

.phase-progress-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 10px;
  font: 700 12px Manrope;
  color: #f39c12;
}

/* Chronological Timeline Mode (Linha do Tempo Sagrada) */
.chrono-timeline-container {
  position: relative;
  padding-left: 36px;
}

.chrono-timeline-container::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(180deg, #e62429 0%, #f39c12 40%, #00d2ff 75%, #b700ff 100%);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(230, 36, 41, 0.5);
}

.chrono-step-card {
  position: relative;
  margin-bottom: 24px;
}

.chrono-step-node {
  position: absolute;
  left: -36px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #080a12;
  border: 3px solid #e62429;
  box-shadow: 0 0 10px #e62429;
  z-index: 2;
}

.chrono-step-card.watched .chrono-step-node {
  background: #00e676;
  border-color: #00e676;
  box-shadow: 0 0 14px #00e676;
}

.chrono-step-card.watched .chrono-step-node::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #000;
}

/* Marvel Cards Grid */
.marvel-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (min-width: 1280px) {
  .marvel-cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Individual Marvel Card */
.m-card {
  background: #111520;
  border: 1px solid #202636;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.m-card:hover {
  transform: translateY(-6px);
  border-color: #e62429;
  box-shadow: 0 16px 36px rgba(230, 36, 41, 0.25);
}

.m-card.watched {
  border-color: rgba(0, 230, 118, 0.4);
}

.m-card-poster {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  background: #171b26;
}

.m-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.m-card-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: linear-gradient(145deg, #181d2a, #0d1017);
  color: #636b80;
}

.m-card-poster-fallback b {
  color: #e62429;
  font: 900 18px Manrope;
  margin-bottom: 6px;
}

/* Overlay play button */
.m-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.m-card-play-overlay button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e62429;
  border: 0;
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(230, 36, 41, 0.6);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.m-card:hover .m-card-play-overlay {
  opacity: 1;
}

.m-card:hover .m-card-play-overlay button {
  transform: scale(1);
}

/* Badges on Poster */
.m-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.m-badge {
  padding: 3px 7px;
  border-radius: 6px;
  font: 800 10px Manrope;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.m-badge-4k { background: linear-gradient(135deg, #f39c12, #d35400); color: #fff; box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4); }
.m-badge-leg { background: rgba(0, 0, 0, 0.75); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.4); backdrop-filter: blur(4px); }
.m-badge-dub { background: rgba(0, 0, 0, 0.75); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.m-badge-series { background: #7055e8; color: #fff; }
.m-badge-chrono { background: rgba(8, 10, 15, 0.85); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.4); }

/* Watched check button on poster */
.m-card-watch-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #7d8495;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.m-card-watch-toggle:hover {
  transform: scale(1.1);
  border-color: #00e676;
  color: #00e676;
}

.m-card-watch-toggle.done {
  background: #00e676;
  border-color: #00e676;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
}

/* Card Body */
.m-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-card-title {
  font: 700 14px Manrope;
  color: #fff;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.m-card-facts {
  font-size: 12px;
  color: #7e869c;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.m-card-rating {
  color: #f39c12;
  font-weight: 700;
}

/* Card Footer Action */
.m-card-btn-action {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #2b3245;
  background: #171c2a;
  color: #dfe3ee;
  font: 700 12px Manrope;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.m-card-btn-action:hover {
  background: #e62429;
  border-color: #e62429;
  color: #fff;
}

.m-card-btn-action.btn-series {
  background: #1b1933;
  border-color: #3b356d;
  color: #b7a9ff;
}

.m-card-btn-action.btn-series:hover {
  background: #7055e8;
  border-color: #7055e8;
  color: #fff;
}

/* ==========================================================================
   MODAL / DRAWER: SÉRIES EPISODES VIEWER
   ========================================================================== */

.marvel-series-modal {
  border: 0;
  border-radius: 24px;
  background: #0b0e17;
  color: #fff;
  width: min(920px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.marvel-series-modal::backdrop {
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
}

.modal-header-hero {
  position: relative;
  padding: 30px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b0e17 5%, rgba(11, 14, 23, 0.85) 60%, rgba(11, 14, 23, 0.6) 100%);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(230, 36, 41, 0.8);
}

.modal-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.modal-poster-thumb {
  width: 120px;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: #171b26;
}

.modal-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-summary {
  flex: 1;
}

.modal-summary small {
  color: #e62429;
  font: 800 12px Manrope;
  letter-spacing: 1.5px;
}

.modal-summary h2 {
  font: 800 28px Manrope;
  margin: 4px 0 8px;
}

.modal-summary p {
  color: #a0a6ba;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-seasons-nav {
  padding: 16px 30px;
  background: #0e121d;
  border-bottom: 1px solid #1c2233;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.modal-season-tab {
  padding: 8px 16px;
  border-radius: 10px;
  background: #151926;
  border: 1px solid #262c3e;
  color: #8c93a8;
  font: 700 13px Manrope;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.modal-season-tab.active {
  background: #e62429;
  border-color: #e62429;
  color: #fff;
}

.modal-episodes-list {
  padding: 20px 30px 30px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-episode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #121622;
  border: 1px solid #1f2536;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m-episode-row:hover {
  background: #181d2c;
  border-color: #353e56;
}

.m-episode-row.watched {
  border-color: rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.04);
}

.m-episode-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.m-episode-number {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1c2233;
  display: grid;
  place-items: center;
  font: 800 13px Manrope;
  color: #fff;
  flex-shrink: 0;
}

.m-episode-row.watched .m-episode-number {
  background: #00e676;
  color: #000;
}

.m-episode-copy strong {
  display: block;
  font: 700 14px "DM Sans";
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-episode-copy span {
  font-size: 12px;
  color: #7b8398;
}

.m-episode-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.m-episode-watch-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: #e62429;
  border: 0;
  color: #fff;
  font: 700 12px Manrope;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ACHIEVEMENTS MODAL (Conquistas do Multiverso)
   ========================================================================== */

.marvel-achievements-modal {
  border: 0;
  border-radius: 24px;
  background: #0c0f18;
  color: #fff;
  width: min(720px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(243, 156, 18, 0.25);
  overflow-y: auto;
}

.marvel-achievements-modal::backdrop {
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #131724;
  border: 1px solid #232a3d;
  transition: all 0.2s ease;
}

.achievement-card.unlocked {
  border-color: #f39c12;
  background: linear-gradient(145deg, #1b1c28, #131724);
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.15);
}

.achievement-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #1c2234;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.achievement-card.unlocked .achievement-icon {
  background: linear-gradient(135deg, #f39c12, #e62429);
  box-shadow: 0 0 16px rgba(243, 156, 18, 0.4);
}

.achievement-info strong {
  display: block;
  font: 700 15px Manrope;
  color: #fff;
  margin-bottom: 3px;
}

.achievement-info p {
  color: #7b8398;
  font-size: 12px;
  margin: 0 0 6px;
  line-height: 1.35;
}

.achievement-info span {
  font: 800 11px Manrope;
  color: #f39c12;
  letter-spacing: 1px;
}

/* Home Card Maratonar */
.marathon-choice::before {
  background: radial-gradient(circle at 90% 10%, #e6242944, #f39c1222, transparent 55%) !important;
}

.marathon-choice .home-icon {
  background: linear-gradient(135deg, #e62429, #f39c12) !important;
  box-shadow: 0 12px 30px rgba(230, 36, 41, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 780px) {
  .marvel-hud-hero {
    padding: 24px 20px;
  }
  .marvel-hud-top {
    flex-direction: column;
  }
  .marvel-profile-hud {
    width: 100%;
  }
  .infinity-stones-row {
    justify-content: center;
    width: 100%;
  }
  .modal-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-poster-thumb {
    width: 90px;
  }
  .chrono-timeline-container {
    padding-left: 28px;
  }
  .chrono-step-node {
    left: -28px;
    width: 20px;
    height: 20px;
  }
}
