:root {
  --bg-main: #0b0f19;
  --bg-card: #151c2e;
  --bg-card-hover: #1c263d;
  --bg-sidebar: #0f1626;
  --border-color: #232f48;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #10b981;
  --accent-hover: #059669;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Navbar */
.navbar {
  background-color: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--accent);
  color: white;
}
.btn-success:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: white;
}

/* Conteúdo Principal */
.main-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Grid de Cursos */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.course-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  border-color: #3b4d75;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.2);
}

.btn-thumb-edit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.75rem;
  padding: 0.28rem 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 4;
}

.btn-thumb-edit:hover {
  background: #4f46e5;
  border-color: #6366f1;
  color: white;
  transform: scale(1.04);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.progress-bar-bg {
  height: 6px;
  background-color: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Modais e Formulários */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  background-color: #0b0f19;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

/* Layout do Player */
body.player-page {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

.player-layout {
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.player-main {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: #000;
}

.video-container {
  width: 100%;
  background-color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  flex-shrink: 0;
}

video {
  width: 100%;
  max-height: 70vh;
  outline: none;
}

.video-info {
  padding: 1.75rem;
  background-color: var(--bg-main);
  flex: 1;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.video-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.video-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Sidebar de Módulos */
.player-sidebar {
  width: 380px;
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modules-list {
  flex: 1 1 0%;
  min-height: 0;
  max-height: 100%;
  overflow-y: scroll !important; /* Sempre ativa e visível */
  overflow-x: hidden;
  scrollbar-width: thin !important;
  scrollbar-color: #6366f1 #111827 !important;
}

/* Barra de rolagem visível e estilizada */
.modules-list::-webkit-scrollbar {
  width: 14px !important;
  display: block !important;
}
.modules-list::-webkit-scrollbar-track {
  background: #111827 !important;
  border-left: 1px solid #374151 !important;
}
.modules-list::-webkit-scrollbar-thumb {
  background: #6366f1 !important;
  border-radius: 7px !important;
  border: 2px solid #111827 !important;
}
.modules-list::-webkit-scrollbar-thumb:hover {
  background: #818cf8 !important;
}

.module-item {
  border-bottom: 1px solid var(--border-color);
}

.module-title {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-title:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.lessons-list {
  background-color: #090e17;
}

.lesson-item {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.lesson-item:hover {
  background-color: #121927;
}

.lesson-item.active {
  background-color: #151f33;
  border-left-color: var(--primary);
  color: #a5b4fc;
  font-weight: 600;
}

.lesson-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.lesson-check.completed {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Responsividade e Mobile Nativo */
@media (max-width: 900px) {
  .player-layout {
    flex-direction: column;
    height: auto;
  }
  .player-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
    height: 400px;
  }
}

/* ==================== RESPONSIVIDADE MOBILE (SMARTPHONES E TABLETS) ==================== */

/* Barra de Navegação Inferior Nativa do App Mobile (PWA) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background-color: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

.mobile-nav-item:active,
.mobile-nav-item.active {
  color: #38bdf8;
}

/* Banner de Instalação PWA */
.pwa-install-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(2, 132, 199, 0.2));
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
/* Navegação de Abas na Tela Principal */
.main-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.main-tabs-nav::-webkit-scrollbar {
  display: none;
}

.main-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.main-tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: translateY(-1px);
}

.main-tab-btn.active {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.main-tab-btn.active.tab-bw {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.main-tab-btn.active.tab-tg {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* Catálogo Black Wolf Grid */
.bw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.bw-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.bw-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.bw-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #050811;
  overflow: hidden;
}

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

.bw-card:hover .bw-thumb img {
  transform: scale(1.04);
}

.bw-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.bw-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bw-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.bw-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.bw-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  /* Ajustes gerais de espaçamento */
  .main-container {
    padding: 1rem;
    padding-bottom: 85px; /* Espaço para a barra inferior */
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-brand span {
    font-size: 1.15rem;
  }

  .nav-actions {
    display: none; /* No celular usamos a barra de navegação inferior */
  }

  /* Exibe a barra de navegação inferior mobile */
  .mobile-bottom-nav {
    display: flex;
  }

  /* Grid de Cursos Mobile */
  .courses-grid,
  .bw-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .course-card,
  .bw-card {
    border-radius: 10px;
  }

  .card-thumb,
  .bw-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .card-body,
  .bw-body {
    padding: 1rem;
  }

  .card-title,
  .bw-title {
    font-size: 0.95rem;
    height: 2.7em;
  }

  .card-desc {
    font-size: 0.82rem;
  }

  .main-tabs-nav {
    margin-bottom: 1rem;
  }

  .main-tab-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Modais no Mobile */
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end; /* Abre estilo bottom-sheet suave */
  }

  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1rem !important;
  }

  .modal-header h3 {
    font-size: 1.05rem;
  }

  /* Player no Mobile */
  .player-main {
    padding-bottom: 1rem;
  }

  .video-container {
    border-radius: 0;
  }

  .video-info {
    padding: 1rem;
  }

  .video-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .video-header > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .player-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
    height: 380px;
  }

  /* Hero Billboard no Mobile */
  .hero-billboard {
    min-height: 240px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }
  .hero-content {
    padding: 1.25rem;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .hero-desc {
    display: none;
  }

  /* Carrosséis no Mobile */
  .carousel-item {
    flex: 0 0 190px;
    width: 190px;
  }
  .carousel-item-thumb {
    height: 110px;
  }
  .carousel-title {
    font-size: 1.1rem;
  }
}

/* ==================== ESTILOS CINEMATOGRÁFICOS MYTHOS ==================== */

/* Hero Billboard (Destaque Principal) */
.hero-billboard {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: flex-end;
  background-color: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 0.6s ease;
}

.hero-billboard:hover .hero-backdrop {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #070a13 0%, rgba(7, 10, 19, 0.75) 45%, rgba(7, 10, 19, 0.2) 100%),
              linear-gradient(90deg, #070a13 0%, rgba(7, 10, 19, 0.6) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.25rem 2.75rem;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.hero-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Carrosséis Horizontais de Trilhas */
.carousel-row {
  margin-bottom: 2.5rem;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.carousel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.carousel-see-all {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}
.carousel-see-all:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.carousel-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 3px;
}

.carousel-item {
  flex: 0 0 240px;
  width: 240px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.carousel-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.carousel-item-thumb {
  position: relative;
  width: 100%;
  height: 135px;
  background-color: #050811;
  overflow: hidden;
}

.carousel-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-item-thumb img {
  transform: scale(1.06);
}

.carousel-item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.carousel-item-body {
  padding: 0.85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.carousel-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modal Bottom Sheet de Detalhes do Curso */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.sheet-container {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background-color: #0e1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 30px;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-header-banner {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000;
  overflow: hidden;
}

.sheet-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0e1424 0%, transparent 60%);
}

.sheet-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 5;
  transition: transform 0.2s, background 0.2s;
}

.sheet-close-btn:hover {
  transform: scale(1.1);
  background: rgba(239, 68, 68, 0.8);
}

.sheet-body {
  padding: 1.5rem 1.75rem;
}

.sheet-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.sheet-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.sheet-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.sheet-badge.accent {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.sheet-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.sheet-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sheet-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Spotlight Search Modal */
.spotlight-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.15s ease;
}

.spotlight-box {
  width: 100%;
  max-width: 680px;
  background-color: #0e1424;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.25);
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #fff;
}

.spotlight-results {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.spotlight-item:hover {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ==================== CINEMA SIDEBAR (DRAWER / MENU RETRÁTIL) ==================== */
.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #818cf8;
}

.cinema-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 295px;
  background-color: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.65);
  overflow-y: auto;
}

.cinema-sidebar.open {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2400;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.sidebar-header {
  padding: 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
}

.sidebar-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.sidebar-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.sidebar-search-btn {
  margin: 1rem 1.25rem 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-search-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.sidebar-search-badge {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.sidebar-nav {
  padding: 0.75rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
  opacity: 0.8;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.08));
  border-left: 3px solid #6366f1;
  color: #fff;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 600;
}

.accordion-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.sidebar-accordion.open .accordion-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 1.5rem;
  margin-top: 0.2rem;
}

.sidebar-accordion.open .sidebar-submenu {
  display: flex;
}

.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-subitem:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
