/* ==========================================================================
   DIDICOFLIX - CINEMATIC EDITION (Netflix + Apple TV+ + Linear Design System)
   Palette: Obsidian Velvet (#07080d), Glass Surface, Electric Indigo & Cyan (#6366f1 / #06b6d4)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root, [data-theme="dark"] {
  --bg-deep: #07080d;
  --bg-surface: rgba(14, 18, 27, 0.75);
  --bg-surface-elev: rgba(22, 28, 42, 0.85);
  --bg-card: #0c0f17;
  --bg-card-hover: #121723;
  
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-glow: rgba(99, 102, 241, 0.35);
  
  --txt: #ffffff;
  --txt-secondary: #94a3b8;
  --txt-muted: #64748b;
  
  --brand: #6366f1;
  --brand-bright: #818cf8;
  --brand-glow: rgba(99, 102, 241, 0.4);
  --brand-soft: rgba(99, 102, 241, 0.15);
  --on-brand: #ffffff;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
  
  --max-width: 100%;
  --header-height: 68px;
  --transition-spring: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background-color: var(--bg-deep);
  color: var(--txt);
  font-family: var(--font-main);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient Back Glows */
.ambient-bloom {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.25;
}

.bloom-1 {
  top: -150px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: var(--brand);
}

.bloom-2 {
  top: 30%;
  right: -100px;
  width: 450px;
  height: 450px;
  background: var(--cyan);
  opacity: 0.15;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.container-cinema {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(20px, 3.5vw, 56px);
  padding-right: clamp(20px, 3.5vw, 56px);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container-cinema {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Full Width Fluid Containers (No Boxed Limits) */
.cinema-full-width {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.cinema-content-full {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(20px, 3.5vw, 56px);
  padding-right: clamp(20px, 3.5vw, 56px);
  box-sizing: border-box;
}

.cinema-classroom-full {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(16px, 2.5vw, 40px);
  padding-right: clamp(16px, 2.5vw, 40px);
  box-sizing: border-box;
}

/* ==========================================================================
   1. FLOATING CINEMA HEADER
   ========================================================================== */
.cinema-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-spring);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Brand - didicoHUB Identity */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
  transition: var(--transition-spring);
}

.brand-mark:hover .brand-icon-wrapper {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.brand-icon {
  width: 20px;
  height: 20px;
  stroke: #000000;
  stroke-width: 2.3;
}

.brand-text {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-title {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-accent {
  color: #818cf8;
  margin-left: 1px;
  text-shadow: 0 0 16px rgba(129, 140, 248, 0.4);
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-bright);
  border: 1px solid var(--line-glow);
  text-transform: uppercase;
}

/* Center Big Search Bar */
.header-search-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 620px;
  margin: 0 auto;
}

/* Command Search (⌘K / Ctrl+K) */
.command-search-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 10px 20px;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-spring);
}

.command-search-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.command-search-pill span {
  font-size: 13.5px;
  color: var(--txt-secondary);
  flex: 1;
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--txt-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Nav Links - Posicionado na Direita após o Metrônomo */
.cinema-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 8px;
  margin-right: 8px;
}

@media (max-width: 1024px) {
  .cinema-nav {
    display: none;
  }
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--txt-secondary);
  transition: color 0.15s;
  cursor: pointer;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--txt);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: var(--r-full);
  box-shadow: 0 0 8px var(--brand-glow);
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt-secondary);
  cursor: pointer;
  transition: var(--transition-spring);
}

.action-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--txt);
  border-color: var(--line-strong);
}

/* Header Round Icon Buttons (Metrônomo, Inbox) */
.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-secondary);
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
  outline: none;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt);
  border-color: var(--line-strong);
  transform: scale(1.06);
}

.header-icon-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand);
  color: var(--brand-bright);
}

.header-icon-btn#btn-header-favoritos.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.5);
  color: #f43f5e;
}

.header-icon-btn#btn-header-favoritos.active i {
  color: #f43f5e;
  fill: #f43f5e;
}

.header-badge-float {
  position: absolute;
  top: -4px;
  right: -5px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  color: #ffffff;
  border: 2px solid #07080d;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  line-height: 1.2;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-avatar-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   2. ÁREA DO ALUNO & CATÁLOGO POR CATEGORIAS (Foco no Aprendizado)
   ========================================================================== */
.view-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.view-section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.view-section-subtitle {
  font-size: 14px;
  color: var(--txt-secondary);
}

.catalog-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 24px;
  margin-top: 16px;
}

.catalog-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 10px 18px;
}

.catalog-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--txt-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--line-strong);
}

.category-pill.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--brand);
  color: var(--brand-bright);
  box-shadow: 0 0 16px var(--brand-glow);
}

.category-pill-count {
  font-size: 11px;
  opacity: 0.7;
}

/* Empty States */
.empty-state-card {
  text-align: center;
  padding: 56px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-top: 32px;
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-bright);
}

/* ==========================================================================
   2. HERO BANNER SPOTLIGHT (Full-Bleed 21:9 Cinema Display)
   ========================================================================== */
.hero-spotlight {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 72vh, 800px);
  border-radius: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 44px;
  display: flex;
  align-items: flex-end;
  background: #000;
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: contrast(1.1) brightness(0.9);
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.hero-spotlight:hover .hero-backdrop-img {
  transform: scale(1.05);
}

/* Gradient Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.1) 0%, rgba(7, 8, 13, 0.6) 60%, #07080d 100%),
              linear-gradient(90deg, #07080d 0%, rgba(7, 8, 13, 0.85) 45%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 3.5vw, 56px);
  max-width: 800px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid var(--line-glow);
  color: var(--brand-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-status-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 8px var(--brand-bright);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta-desc {
  font-size: 14px;
  color: var(--txt-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.btn-cinema-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-cinema-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.55);
}

.btn-cinema-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--transition-spring);
}

.btn-cinema-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Hero Bottom Progress Track */
.hero-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.hero-progress-fill {
  height: 100%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  transition: width 0.3s ease;
}

/* ==========================================================================
   3. CINEMA CAROUSEL ROWS (Netflix Rows)
   ========================================================================== */
.cinema-row {
  margin-bottom: 44px;
  position: relative;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.row-subtitle {
  font-size: 12.5px;
  color: var(--txt-muted);
}

.row-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  transition: color 0.15s;
}

.row-view-all:hover {
  color: var(--brand-bright);
  text-decoration: underline;
}

/* Cards Grid / Carousel Track */
.cinema-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cinema-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-spring);
}

.cinema-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-glow);
  z-index: 10;
}

.card-thumb-container {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
}

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

.cinema-card:hover .card-thumb-img {
  transform: scale(1.08);
}

.card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge-tag-cinema {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-tag-cinema.green {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--brand-bright);
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: var(--transition-spring);
  outline: none;
}

.card-fav-btn:hover {
  background: rgba(7, 8, 13, 0.95);
  border-color: rgba(244, 63, 94, 0.6);
  transform: scale(1.12);
}

.card-fav-btn.active {
  border-color: rgba(244, 63, 94, 0.8);
  background: rgba(244, 63, 94, 0.2);
}

.card-play-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.btn-play-circle-glow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--brand-glow);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.cinema-card:hover .btn-play-circle-glow {
  transform: scale(1);
}

.card-info-pane {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-title-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author-line {
  font-size: 12px;
  color: var(--txt-muted);
  margin-bottom: 12px;
}

.card-progress-footer {
  margin-top: auto;
}

.card-progress-track-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.card-progress-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #06b6d4 100%);
  border-radius: var(--r-full);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
}

.card-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--txt-muted);
}

/* ==========================================================================
   3.5 PÁGINA DO CURSO (Full Width 2-Column Cinema Layout)
   ========================================================================== */
.curso-hero-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.16) 45%, rgba(7, 8, 13, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--r-xl);
  padding: 36px 44px;
  margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.curso-hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.curso-hero-subtitle {
  font-size: 15px;
  color: var(--txt-secondary);
  margin-bottom: 16px;
}

.curso-hero-meta-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--txt-muted);
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.curso-callout-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--brand-bright);
}

.curso-two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
  width: 100%;
}

@media (max-width: 960px) {
  .curso-two-col-layout {
    grid-template-columns: 1fr;
  }
}

.curso-left-col {
  min-width: 0;
}

.curso-section-box {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 32px;
}

.curso-sticky-sidebar {
  position: sticky;
  top: 90px;
}

.curso-enroll-card {
  background: var(--bg-surface-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-glow);
}

.curso-thumb-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
  background: #000;
}

.curso-thumb-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.preview-play-icon i {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.curso-enroll-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--line-glow);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-bright);
  margin-bottom: 16px;
}

.curso-enroll-status-banner.not-enrolled {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--txt-muted);
}

.btn-enroll-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--transition-spring);
  outline: none;
}

.btn-enroll-toggle.to-enroll {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--brand);
  color: var(--brand-bright);
}

.btn-enroll-toggle.to-enroll:hover {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 0 20px var(--brand-glow);
}

.btn-enroll-toggle.enrolled {
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid var(--brand);
  color: #ffffff;
}

.btn-enroll-toggle.enrolled:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.card-bottom-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}

.btn-enroll-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--transition-spring);
  outline: none;
}

.btn-enroll-action.to-enroll {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--brand-bright);
}

.btn-enroll-action.to-enroll:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.btn-enroll-action.enrolled {
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid var(--brand);
  color: #ffffff;
}

.btn-enroll-action.enrolled:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-access-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #ffffff;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--transition-spring);
}

.btn-access-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 8px var(--brand-bright);
}

.status-indicator-dot.gray {
  background: var(--txt-muted);
  box-shadow: none;
}

.curso-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--txt-secondary);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. SALA DE AULA FOCUS THEATER (Modo Cinema)
   ========================================================================== */
.theater-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 60px;
  transition: var(--transition-spring);
}

.theater-container.focus-full {
  grid-template-columns: 1fr;
}

.theater-container.focus-full .theater-sidebar {
  display: none;
}

/* Theater Topbar above video */
.theater-video-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 36px;
}

.btn-theater-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--txt-secondary);
  border-radius: var(--r-md);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-spring);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-theater-back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--line-strong);
}

.theater-video-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Theater Player Screen */
.theater-screen-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.theater-screen-wrap iframe, .theater-screen-wrap video {
  width: 100%;
  height: 100%;
  border: none;
}

/* Docked Player Console Bar directly underneath video */
.theater-player-bar {
  background: var(--bg-surface-elev);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.theater-player-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theater-player-bar-right {
  display: flex;
  align-items: center;
}

.btn-theater-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-secondary);
  cursor: pointer;
  transition: var(--transition-spring);
}

.btn-theater-control:hover {
  background: var(--bg-surface-elev);
  color: var(--txt);
  border-color: var(--line-strong);
}

.btn-theater-control.active {
  background: var(--brand-soft);
  color: var(--brand-bright);
  border-color: var(--brand);
}

/* Theater Drawer Sidebar */
.theater-sidebar {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  height: calc(100vh - 120px);
  position: sticky;
  top: 90px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-header-pane {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-course-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.sidebar-progress-summary {
  font-size: 12px;
  color: var(--brand-bright);
}

.sidebar-modules-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.cinema-module-box {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  overflow: hidden;
}

.cinema-module-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.cinema-module-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cinema-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--txt-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cinema-lesson-row:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt);
}

.cinema-lesson-row.active {
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-weight: 700;
  border-left: 3px solid var(--brand);
}

.check-pill-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--txt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
}

.cinema-lesson-row.completed .check-pill-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

/* ==========================================================================
   4.8 MATERIAIS DE APOIO DO MÓDULO (Download de Anexos & PDFs)
   ========================================================================== */
.materials-cinema-pane {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.materials-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.materials-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  transition: var(--transition-spring);
}

.material-file-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

/* ==========================================================================
   5. NOTAS & ANOTAÇÕES CINEMATOGRÁFICAS
   ========================================================================= */
.notes-cinema-pane {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-top: 24px;
}

.notes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.notes-textarea-input {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  color: var(--txt);
  font-size: 13.5px;
  outline: none;
  resize: vertical;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.notes-textarea-input:focus {
  border-color: var(--brand);
}

.notes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-timestamp-capture {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-bright);
  cursor: pointer;
}

.saved-notes-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.note-item-bubble {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
}

.time-stamp-tag {
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
}

/* ==========================================================================
   6. GLOBAL MODALS (⌘K Search & Metrônomo)
   ========================================================================== */
.cinema-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.cinema-modal-card {
  background: #0f131d;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-glow);
  overflow: hidden;
}

.modal-search-input-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-search-input-header input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.search-results-viewport {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-item-cinema {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-item-cinema:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   7. PWA & MOBILE RESPONSIVE ENGINE (iOS & Android Mobile Experience)
   ========================================================================== */

/* Mobile Bottom Navigation Bar (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
}

.mobile-only-btn {
  display: none;
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile screens */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Reserve bottom space for mobile app bottom bar */
  body:not(.auth-active) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 12px)) !important;
  }

  /* Header adjustments on mobile */
  :root {
    --header-height: 60px;
  }

  .cinema-header {
    height: var(--header-height);
  }

  .header-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 8px !important;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand-icon {
    width: 16px;
    height: 16px;
  }

  /* Hide huge search bar in header on mobile */
  .header-search-wrap {
    display: none !important;
  }

  /* Show mobile search icon in header */
  .mobile-only-btn {
    display: inline-flex !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .header-icon-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .user-avatar-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  /* Mobile Bottom App Bar (Sticky Native Experience) */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(7, 8, 13, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--line);
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--txt-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 14px;
    transition: var(--transition-spring);
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--brand-bright);
  }

  .bottom-nav-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--brand-glow));
  }

  /* Fluid Content & Cards */
  .cinema-content-full {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 16px !important;
  }

  .view-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .view-header-row h1 {
    font-size: 22px !important;
  }

  .cinema-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .cinema-card {
    border-radius: var(--r-lg);
  }

  .card-thumb-container {
    height: 190px !important;
  }

  .card-info-pane {
    padding: 14px !important;
  }

  .card-title-text {
    font-size: 15px !important;
  }

  .card-bottom-actions {
    flex-direction: row;
    gap: 8px;
  }

  /* Course Details Mobile */
  .curso-hero-banner {
    padding: 20px 16px !important;
    border-radius: var(--r-lg) !important;
    margin-bottom: 20px !important;
  }

  .curso-hero-title {
    font-size: 22px !important;
  }

  .curso-two-col-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .curso-section-box {
    padding: 18px 16px !important;
    border-radius: var(--r-lg) !important;
  }

  /* Classroom Mobile */
  .theater-container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-top: 8px !important;
  }

  .theater-screen-wrap {
    border-radius: var(--r-md) var(--r-md) 0 0 !important;
  }

  .theater-player-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    border-radius: 0 0 var(--r-md) var(--r-md) !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }

  .theater-player-bar-left {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .theater-player-bar-right {
    width: 100% !important;
  }

  #btn-theater-next {
    width: 100% !important;
    justify-content: center !important;
  }

  .theater-sidebar {
    height: auto !important;
    position: static !important;
    max-height: 480px !important;
    border-radius: var(--r-lg) !important;
  }

  /* Modals on Mobile */
  .cinema-modal-card {
    max-width: 100% !important;
    margin: 10px;
    border-radius: var(--r-lg) !important;
  }
}


/* ==========================================================================
   17. FORMAÇÕES & TRILHAS INTELIGENTES & TRANSCRIPTS
   ========================================================================== */

/* Formation Card */
.formation-cinema-card {
  background: var(--bg-surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-spring);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.formation-cinema-card:hover {
  border-color: var(--line-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--brand-glow);
}

.formation-card-header {
  height: 140px;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%), #0c0f17;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.formation-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.formation-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.formation-card-desc {
  font-size: 13px;
  color: var(--txt-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.formation-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--txt-muted);
}

/* Linear Tracks Flow */
.tracks-linear-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-sequence-card {
  background: var(--bg-surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-spring);
  cursor: pointer;
}

.track-sequence-card:hover {
  border-color: var(--line-glow);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.track-sequence-order {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--brand-glow);
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-sequence-info {
  flex: 1;
  min-width: 0;
}

.track-sequence-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.track-sequence-desc {
  font-size: 13px;
  color: var(--txt-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Roadmap Header & Progress */
.trilha-roadmap-header {
  background: var(--bg-surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
}

.trilha-progress-box {
  min-width: 240px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: var(--r-full);
  transition: width 0.4s ease;
}

/* Roadmap Timeline & DAG Steps */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 28px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 24px;
  left: 11px;
  width: 2px;
  background: var(--line-strong);
}

.roadmap-step-card {
  position: relative;
  background: var(--bg-surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: var(--transition-spring);
}

.roadmap-step-card.completed {
  border-color: rgba(99, 102, 241, 0.3);
}

.step-marker {
  position: absolute;
  left: -28px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--brand);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-bright);
}

.step-marker.done {
  background: var(--brand);
  border-color: var(--brand-bright);
  color: #fff;
}

.step-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-step-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-spring);
}

.btn-step-complete:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-step-complete.completed {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--brand);
  color: var(--brand-bright);
}

/* Approach Switcher (Abordagens Equivalentes) */
.approach-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 16px;
}

.approach-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.approach-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.approach-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--txt-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-spring);
}

.approach-tab-pill:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.approach-tab-pill.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: #fff;
}

.approach-score-badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.3);
  color: var(--brand-bright);
  font-family: var(--font-mono);
}

.approach-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.approach-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-spring);
}

.approach-item-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-glow);
}

/* Transcript Pane in Classroom */
.transcript-cinema-pane {
  background: var(--bg-surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  margin-top: 24px;
}

.transcript-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.transcript-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.transcript-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  flex: 1;
}

.transcript-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.transcript-segment-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--transition-spring);
}

.transcript-segment-card:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--brand-glow);
}

.timestamp-chip {
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--brand);
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.transcript-full-details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.transcript-full-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-secondary);
  user-select: none;
}

.transcript-full-summary:hover {
  color: #fff;
}

.transcript-full-content {
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--r-md);
}
