/* =========================================================================
   🎨 SISTEMA DE CORES E BASES - ESTILO MULTIFLEX & LOOKMOVIE
   ========================================================================= */

:root {
  /* Cores Base */
  --lm-black: #0c0d12;
  --lm-dark: #12131a;
  --lm-orange: #ff5c00;
  --lm-orange-hover: #e04f00;
  --lm-gray-bg: #1a1b24;
  --lm-gray-border: rgba(255, 255, 255, 0.08);
  --lm-light-gray: #c5c6cc;
  
  /* Brilhos e Variáveis Customizáveis (Subscritas por JS) */
  --lm-glow: rgba(255, 92, 0, 0.35);
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Textos */
  --text-white: #ffffff;
  --text-gray: #7e808c;
  
  /* Statuses */
  --success: #10b981;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Transições e Sombras */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-lm: 0 10px 25px rgba(0, 0, 0, 0.65);
}

/* Reset Geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--lm-black);
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hidden {
  display: none !important;
}

/* =========================================================================
   🎬 CABEÇALHO (NAVBAR ESTILO MULTIFLEX)
   ========================================================================= */

#app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(12,13,18,0.95) 0%, rgba(12,13,18,0.5) 70%, rgba(12,13,18,0) 100%);
  padding: 1.1rem 2rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

#app-header.scrolled {
  background-color: rgba(12, 13, 18, 0.98);
  border-bottom: 1px solid var(--lm-gray-border);
  padding: 0.8rem 2rem;
}

.header-container {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-right: 4.5rem; /* Separação maior em relação aos itens do menu */
}

.logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-orange {
  color: var(--lm-orange) !important;
}

.logo img {
  max-height: 70px; /* Logotipo em tamanho de destaque proeminente */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, max-height 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.logo img:hover {
  transform: scale(1.05); /* Zoom suave ao passar o mouse */
}

#app-header.scrolled .logo img {
  max-height: 58px; /* Aumentado de 48px para 58px para maior visibilidade */
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--lm-light-gray);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.2rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-svg-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-btn:hover .nav-svg-icon {
  transform: scale(1.15);
}

.nav-btn:hover {
  color: var(--text-white);
}

.nav-btn.active {
  color: var(--text-white);
  font-weight: 800;
  border-bottom: 2px solid var(--lm-orange);
  padding-bottom: 0.4rem;
}

.admin-btn {
  border: 1px solid rgba(255, 92, 0, 0.25) !important;
  border-radius: 4px;
  padding: 0.3rem 0.8rem !important;
  color: var(--text-white) !important;
  background-color: rgba(255, 92, 0, 0.08) !important;
  border-bottom: 1px solid rgba(255, 92, 0, 0.25) !important;
}

.admin-btn:hover {
  background-color: var(--lm-orange) !important;
  border-color: var(--lm-orange) !important;
  box-shadow: var(--lm-glow);
}

.logout-btn {
  color: var(--lm-orange) !important;
  font-weight: 600;
}

.logout-btn:hover {
  text-shadow: 0 0 10px var(--lm-orange);
}

.nav-search-box {
  margin-left: auto;
  margin-right: 1.5rem;
}

@media (max-width: 768px) {
  #app-header {
    padding: 0.8rem 1.1rem !important; /* Reduzido de 2rem para 1.1rem para dar mais espaço horizontal no celular */
  }
  .nav-search-box {
    display: none;
  }
  .logo img {
    max-height: 52px !important; /* Ajustado levemente de 58px para 52px no celular */
  }
  .logo {
    margin-right: 0.8rem !important; /* Reduzido de 1.5rem para 0.8rem para evitar aperto */
  }
  .nav-btn-text {
    display: none !important; /* Esconder texto do menu no mobile */
  }
  .nav-links {
    gap: 0.6rem !important; /* Espaçamento reduzido de 0.9rem para 0.6rem para caber perfeitamente os 5 ícones */
  }
  .nav-svg-icon {
    width: 22px !important; /* Ícones do menu um pouco maiores no celular */
    height: 22px !important;
  }

  /* Formato do Hero Banner Vertical da Netflix no Celular */
  .home-hero:not(.hidden) {
    height: 540px !important; /* Altura aumentada para comportar perfeitamente os botões e números sem cortes no rodapé */
    margin-bottom: 2rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Wrapper do título e logo para amarrar os alinhamentos laterais */
  .hero-title-group {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    width: auto !important;
    margin-bottom: 30px !important; /* Cria o espaço necessário abaixo para a logo absoluta sentar */
  }
  .hero-title-group h1 {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
  }

  /* Ajuste de escala, aproximação de margens e elevação do carrossel no celular */
  .hero-container-top10 {
    padding: 1.2rem 1.2rem 1.2rem 1.2rem !important; /* Espaço do topo (1.2rem) e de baixo (1.2rem) perfeitamente iguais */
  }
  .hero-top10-carousel-wrapper {
    margin: 0rem 0 0rem 0 !important; /* Flui naturalmente abaixo da logo sem margens negativas que causem sobreposição */
  }
  .top10-carousel {
    gap: 1.2rem !important; /* Aproxima os cards no celular para um entrelaçamento visual perfeito */
  }
  .top10-number {
    bottom: -4px !important; /* Alinhado à base do banner para celular */
    left: -32px !important; /* Deslocamento suave para o novo tamanho menor */
  }
  .top10-number.double-digit {
    bottom: -2px !important;
    left: -46px !important;
  }
  
  /* Posicionamento absoluto do logotipo neon do Top 10 no celular (travado na direita do título) */
  .hero-top10-logo-container {
    position: absolute !important;
    right: -15px !important; /* Alinha a extremidade direita (raio) exatamente na margem do fone de ouvido */
    top: 2.1rem !important; /* Posiciona logo abaixo das letras do título, sem sobrepor */
    width: 155px !important;
    height: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    z-index: 10 !important;
  }
  .hero-top10-logo-container img {
    width: 155px !important; 
    height: auto !important;
  }

  .hero-bg-overlay {
    background: linear-gradient(to top, rgba(12, 13, 18, 0.98) 0%, rgba(12, 13, 18, 0.6) 45%, rgba(12, 13, 18, 0) 100%) !important;
    z-index: 1;
  }
  .hero-flex-container {
    padding: 1.5rem 1rem !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important; /* Começa a alinhar os filhos pelo topo */
    text-align: center !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  .hero-info-panel {
    justify-content: flex-start !important; /* Começa a alinhar os filhos pelo topo */
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .hero-poster {
    display: none !important; /* Esconder pôster duplicado no celular */
  }
  #hero-title {
    font-size: 1.9rem !important;
    margin-bottom: 0.2rem !important;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9) !important;
  }
  #hero-meta-genres {
    font-size: 0.78rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9) !important;
  }
  #hero-desc {
    display: none !important; /* Esconder descrição no celular para ficar idêntico ao card da Netflix */
  }
  .hero-buttons {
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: auto !important; /* Empurra especificamente os botões para o rodapé (base do card) */
    margin-bottom: 0.2rem !important;
  }
  
  /* Botão Assistir (Ouvir): Branco Sólido com Texto Preto */
  .hero-buttons .btn-hero-orange {
    flex: 1 !important; /* Botões dividem a largura igualmente */
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.55rem 0.6rem !important; /* Altura diminuída */
    font-size: 0.8rem !important; /* Tamanho ajustado */
    font-weight: 700 !important;
    justify-content: center !important;
    box-shadow: none !important;
    transform: none !important;
    white-space: nowrap !important; /* Evitar quebra de linha */
    gap: 0.4rem !important;
  }
  .hero-buttons .btn-hero-orange svg {
    fill: #000000 !important;
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Botão Minha Lista (Curadoria): Cinza Translúcido com Texto Branco */
  .hero-buttons .btn-hero-border {
    flex: 1 !important; /* Botões dividem a largura igualmente */
    background-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.55rem 0.6rem !important; /* Altura diminuída */
    font-size: 0.8rem !important; /* Tamanho ajustado */
    font-weight: 700 !important;
    justify-content: center !important;
    transform: none !important;
    backdrop-filter: blur(8px) !important;
    white-space: nowrap !important; /* Evitar quebra de linha */
    gap: 0.4rem !important;
  }
  .hero-buttons .btn-hero-border svg {
    fill: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
  }
}

.nav-search-wrapper {
  position: relative;
  width: 240px;
}

.nav-search-wrapper input {
  width: 100%;
  background-color: #171821;
  border: 1px solid var(--lm-gray-border);
  border-radius: 30px;
  padding: 0.55rem 2.4rem 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-white);
  transition: var(--transition);
}

.nav-search-wrapper input:focus {
  outline: none;
  border-color: var(--lm-orange);
  background-color: #1e1f2b;
}

.nav-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  pointer-events: none;
  font-size: 0.95rem;
}

/* =========================================================================
   📱 CONTENT WRAPPER
   ========================================================================= */

.main-content {
  max-width: 1250px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 2rem 1.5rem; /* Reduzido de 4rem para 2rem para diminuir o espaço sobrando no rodapé */
  min-height: 100vh;
}

.screen-section {
  width: 100%;
  position: relative;
  animation: lmFade 0.4s ease-out forwards;
}

/* =========================================================================
   🔒 TELA 1: LOGIN E CADASTRO (AUTH)
   ========================================================================= */

#screen-auth {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem; /* Sobe o card da autenticação aproximando do topo */
  min-height: calc(100vh - 40px);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background-color: rgba(18, 19, 26, 0.95);
  border-radius: 12px;
  padding: 2.5rem 2rem 3rem 2rem; /* Compacta o padding para melhor visualização em telas pequenas */
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--lm-gray-border);
}

/* Botão Primário Premium */
.btn-primary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: var(--lm-orange, #ff5c00);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 92, 0, 0.25);
  margin-top: 1.2rem;
  display: block;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: #e04f00;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 92, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Links de Alternância de Autenticação */
.auth-toggle-text {
  text-align: center;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
}

.auth-link {
  color: #ffffff !important; /* Contraste máximo */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--lm-orange, #ff5c00) !important;
  text-decoration: underline;
}

.auth-link.font-accent {
  color: var(--lm-orange, #ff5c00) !important;
  font-weight: 600;
}

.auth-link.font-accent:hover {
  color: #ffffff !important;
}

.auth-divider {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.15);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-icon {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.auth-header h1 {
  font-size: 2.3rem;
  color: var(--text-white);
}

.auth-header p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Form controls */
.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.error-message {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* =========================================================================
   🏠 TELA 2: HOME (ESTILO MULTIFLEX COM CAPA À ESQUERDA)
   ========================================================================= */

/* Hero Banner */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 440px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lm);
  border: 1px solid var(--lm-gray-border);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12,13,18,0) 0%, rgba(12,13,18,0.7) 60%, rgba(12,13,18,0.98) 100%),
              linear-gradient(90deg, rgba(12,13,18,0.98) 0%, rgba(12,13,18,0.8) 40%, rgba(12,13,18,0.2) 100%);
  z-index: 1;
}

.hero-flex-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-flex-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
  }
}

.hero-poster {
  width: 220px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.8);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: var(--lm-dark);
}

@media (max-width: 768px) {
  .hero-poster {
    width: 150px;
  }
}

.hero-info-panel {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.05;
  margin-bottom: 1rem;
}

#hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

#hero-meta-genres {
  font-size: 0.95rem;
  color: var(--lm-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

#hero-desc {
  color: var(--lm-light-gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 650px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-buttons {
    justify-content: center;
  }
}

.btn-hero-orange {
  background-color: var(--lm-orange);
  color: var(--text-white);
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
}

.btn-hero-orange:hover {
  background-color: var(--lm-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 92, 0, 0.45);
}

.btn-hero-border {
  background-color: rgba(255,255,255,0.06);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

/* Pílulas de Filtros */
.category-pills {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

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

.pill-btn {
  background-color: #171821;
  border: 1px solid var(--lm-gray-border);
  color: var(--lm-light-gray);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.pill-btn:hover {
  background-color: #1f202b;
  border-color: rgba(255,255,255,0.15);
}

.pill-btn.active {
  background-color: var(--lm-orange);
  border-color: var(--lm-orange);
  color: var(--text-white);
  box-shadow: var(--lm-glow);
}

/* =========================================================================
   📺 4 COLUNAS DE CAPAS (EXATAMENTE COMO NO MULTIFLEX)
   ========================================================================= */

.collections-grid-lm, .songs-grid-lm {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 1rem; /* Gap padrão mobile */
  padding: 0.5rem 0.2rem 1rem 0.2rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Esconde barra de rolagem no Firefox */
}

/* Ocultar barra de rolagem no Webkit (Chrome, Safari, iOS Safari, Android Chrome) */
.collections-grid-lm::-webkit-scrollbar, .songs-grid-lm::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.dynamic-home-row-wrapper {
  margin-bottom: 1.5rem !important; /* Espaçamento compacto padrão celular */
}

.lm-row-title {
  font-size: 1.1rem; /* Tamanho do título padrão celular */
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  text-transform: none; /* Respeita maiúsculas/minúsculas */
  letter-spacing: 0.03em;
}

.lm-poster-card, .lm-square-card {
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  scroll-snap-align: start;
}

.lm-poster-card {
  width: calc(42.5% - 0.5rem); /* Exibe aproximadamente 2.2 pastas por linha no celular (Tamanho Original) */
}

.lm-square-card {
  width: calc(29% - 0.5rem); /* Exibe exatamente 3.2 músicas por linha no celular (Tamanho Spotify) */
}

/* =========================================================================
   🖥️ LAYOUT PARA TELA GRANDE / DESKTOP (OVERRIED MIN-WIDTH: 769PX)
   ========================================================================= */
@media (min-width: 769px) {
  .collections-grid-lm, .songs-grid-lm {
    gap: 2rem;
    padding: 0.5rem 0.2rem 1.5rem 0.2rem;
  }
  .dynamic-home-row-wrapper {
    margin-bottom: 2.2rem !important;
  }
  .lm-row-title {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
  }
  .lm-poster-card, .lm-square-card {
    width: calc(25% - 1.5rem); /* 4 capas por linha no desktop */
  }
}

.lm-poster-card:hover {
  transform: translateY(-8px);
}

.lm-poster-img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.lm-poster-card:hover .lm-poster-img {
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.lm-poster-info {
  margin-top: 0.8rem;
  padding: 0 0.2rem;
}

.lm-poster-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.lm-poster-info p {
  color: var(--text-gray);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* =========================================================================
   🎴 LAYOUT DE CARDS QUADRADOS (ESTILO SPOTIFY - 1:1 ASPECT RATIO)
   ========================================================================= */
.lm-square-card {
  /* Estrutura de dimensões herdada do padrão Mobile-First */
}

.lm-square-card:hover {
  transform: translateY(-8px);
}

.lm-square-img {
  width: 100%;
  aspect-ratio: 1/1 !important; /* Capa quadrada padrão Spotify */
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.lm-square-card:hover .lm-square-img {
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.lm-square-info {
  margin-top: 0.8rem;
  padding: 0 0.2rem;
}

.lm-square-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none; /* Respeita maiúsculas/minúsculas */
}

.lm-square-info p {
  color: var(--text-gray);
  font-size: 0.8rem;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================================================
   📁 TELA 3: PÁGINA DA COLEÇÃO (PLAYLIST)
   ========================================================================= */

.collection-detail-header-lm {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
  border-bottom: 1px solid var(--lm-gray-border);
  padding-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .collection-detail-header-lm {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .collection-detail-poster {
    width: 100% !important;
    max-width: 340px !important;
    aspect-ratio: 16/9 !important; /* Formato horizontal no mobile */
  }
  .collection-detail-info h1 {
    font-size: 1.8rem !important; /* Tamanho reduzido para evitar quebra no mobile */
    white-space: nowrap !important; /* Sem quebra de linha */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }
}

.collection-detail-poster {
  width: 200px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lm);
  flex-shrink: 0;
  border: 1px solid var(--lm-gray-border);
  background-color: var(--lm-dark);
}

.collection-detail-info h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.collection-detail-info p {
  color: var(--lm-light-gray);
  font-size: 1.05rem;
  line-height: 1.6;
}

.songs-list-lm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.song-item-lm {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.song-item-lm:hover {
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 4px;
}

.song-item-poster {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: none;
  background-color: #222;
}

.song-item-info-lm {
  flex-grow: 1;
  min-width: 0; /* Essencial para que text-overflow: ellipsis funcione no flexbox */
}

.song-item-info-lm h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-item-info-lm p {
  font-size: 0.82rem;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   🎵 TELA 4: PLAYER E HISTÓRIA (IMERSIVO)
   ========================================================================= */

.content-banner {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
}

.content-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12,13,18,0) 0%, rgba(12,13,18,0.98) 100%);
  backdrop-filter: blur(5px);
}

.player-container-lm {
  width: 100%;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0; /* Removido -100px para alinhar corretamente sem o banner */
  margin-bottom: 2.5rem;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lm);
  z-index: 10;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Película invisível superior para bloquear cliques no link do título do YouTube */
.player-container-lm::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 12;
  background: transparent;
  cursor: default;
}

#music-player-wrapper,
#full-audio-player-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#music-player-wrapper iframe,
#full-audio-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.spotify-embed-fix {
  aspect-ratio: auto;
  height: 80px;
  margin-top: -20px;
}

.music-info-header-lm {
  margin-bottom: 2rem;
}

.tag-orange {
  background-color: rgba(255, 92, 0, 0.1) !important;
  color: var(--lm-orange) !important;
  border-color: rgba(255, 92, 0, 0.25) !important;
}

.music-info-header-lm h1 {
  font-size: 1.8rem; /* Diminuído para caber sem quebrar linha */
  margin-bottom: 0.4rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-info-header-lm h3 {
  font-size: 1.05rem; /* Diminuído para caber sem quebrar linha */
  color: var(--text-gray);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-buttons-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .action-buttons-wrapper {
    flex-direction: column;
  }
}

.btn-listen-action-lm {
  flex: 1;
  background-color: #171821;
  border: 1px solid var(--lm-gray-border);
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-listen-action-lm:hover {
  background-color: #1f202b;
  border-color: rgba(255,255,255,0.15);
}

.btn-listen-action-lm.active {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
  color: var(--success);
}

.btn-post-action-lm {
  flex: 1;
  background-color: rgba(255, 92, 0, 0.08);
  border: 1px solid rgba(255, 92, 0, 0.25);
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-post-action-lm:hover {
  background-color: var(--lm-orange);
  border-color: var(--lm-orange);
  box-shadow: var(--lm-glow);
  transform: translateY(-2px);
}

.story-article-lm {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 3rem;
}

.story-section-title-lm {
  font-size: 1.1rem;
  border: 1.5px solid var(--lm-orange);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  display: inline-block;
  margin-top: 0 !important; /* Ajustado para zero visto que agora é o topo do conteúdo */
  margin-bottom: 1.8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.story-text-lm {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #ffffff !important; /* Contraste máximo */
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.story-text-lm p {
  margin-top: 0.15rem;
  margin-bottom: 1.2rem;
  color: #ffffff !important; /* Contraste máximo */
  font-size: 1.12rem;
  line-height: 1.75;
}

.story-text-lm h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff !important;
}

.story-text-lm p:first-of-type {
  font-size: 1.12rem;
  color: #ffffff !important;
  font-weight: 500;
}

.story-text-lm h1,
.story-text-lm h2,
.story-text-lm h3,
.story-text-lm h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  color: #ffffff !important;
}

/* =========================================================================
   👤 TELA 5: PERFIL E HISTÓRICO
   ========================================================================= */

.profile-card-lm {
  background-color: var(--lm-dark);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lm);
  margin-bottom: 2.5rem;
  border: 1px solid var(--lm-gray-border);
}

.profile-avatar-lm {
  font-size: 3.5rem;
  width: 90px;
  height: 90px;
  background-color: #171821;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  border: 1px solid var(--lm-gray-border);
}

.profile-card-lm h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.profile-card-lm p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.status-badge-lm {
  background-color: rgba(255, 92, 0, 0.1);
  color: var(--lm-orange);
  border: 1px solid rgba(255, 92, 0, 0.25);
  padding: 0.45rem 1.4rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1rem;
}

.member-since {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.history-list-lm {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.history-item-lm {
  background-color: var(--lm-dark);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid rgba(255,255,255,0.01);
}

/* =========================================================================
   👑 TELA 6: PAINEL ADMINISTRATIVO (GERENCIADOR DO CURADOR)
   ========================================================================= */

.admin-header-box {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--lm-gray-border);
  padding-bottom: 1.5rem;
}

.admin-header-box h2 {
  font-size: 2.2rem;
  color: var(--lm-orange);
  margin-bottom: 0.4rem;
}

.admin-header-box p {
  color: var(--text-gray);
  font-size: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--lm-gray-border);
}

.admin-tabs .tab-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.admin-tabs .tab-btn:hover {
  color: var(--text-white);
}

.admin-tabs .tab-btn.active {
  color: var(--lm-orange);
  border-bottom-color: var(--lm-orange);
}

.admin-flex-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 950px) {
  .admin-flex-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-form-card {
  flex: 4.5;
  background-color: var(--lm-dark);
  border: 1px solid var(--lm-gray-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lm);
}

.admin-table-card {
  flex: 5.5;
  background-color: var(--lm-dark);
  border: 1px solid var(--lm-gray-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lm);
}

.admin-form-card h3,
.admin-table-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.8rem;
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .admin-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Tabelas Administrativas */
.table-scroll-wrapper {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-gray);
  border-bottom: 2px solid var(--lm-gray-border);
}

.admin-table td {
  padding: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.mini-poster {
  width: 36px;
  height: 54px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: #2b2b2b;
  border: 1px solid var(--lm-gray-border);
}

.td-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit {
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--info);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit:hover {
  background-color: var(--info);
  color: var(--text-white);
}

.btn-delete {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete:hover {
  background-color: var(--error);
  color: var(--text-white);
}

/* =========================================================================
   🎨 CUSTOMIZADOR VISUAL (ESTILO KIWIFY)
   ========================================================================= */

.kiwify-customizer-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .kiwify-customizer-layout {
    flex-direction: column;
    align-items: stretch;
  }
}

.customizer-sidebar {
  flex: 4.5;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.customizer-section-card {
  background-color: var(--lm-dark);
  border: 1px solid var(--lm-gray-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lm);
}

.customizer-section-card h4 {
  font-size: 1.2rem;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

.sub-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lm-orange);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Formulário de Sub-seção */
.form-sub-card {
  background-color: #171821;
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--lm-gray-border);
  margin-bottom: 1.5rem;
}

.customizer-sections-list-wrapper {
  margin-top: 1rem;
}

.customizer-sections-list-wrapper h5 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.sections-sort-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-item-drag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1b24;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--lm-gray-border);
  transition: var(--transition);
}

.section-item-drag:hover {
  border-color: var(--lm-orange);
}

.section-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-item-info strong {
  font-size: 0.9rem;
  color: var(--text-white);
}

.section-item-info span {
  font-size: 0.75rem;
  color: var(--lm-orange);
  background-color: rgba(255, 92, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  text-transform: uppercase;
  font-weight: 700;
}

.section-item-actions {
  display: flex;
  gap: 0.4rem;
}

/* Lado Direito: Preview */
.customizer-preview-pane {
  flex: 5.5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.preview-toolbar {
  background-color: #171821;
  border: 1px solid var(--lm-gray-border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lm-light-gray);
}

.device-toggles {
  display: flex;
  gap: 0.5rem;
}

.toggle-device-btn {
  background-color: #111;
  border: 1px solid var(--lm-gray-border);
  color: var(--lm-light-gray);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-device-btn:hover {
  background-color: #222;
  color: var(--text-white);
}

.toggle-device-btn.active {
  background-color: var(--lm-orange);
  border-color: var(--lm-orange);
  color: var(--text-white);
  box-shadow: var(--lm-glow);
}

/* Preview Canvas */
.preview-wrapper {
  background-color: #000;
  border-radius: 12px;
  border: 2px solid var(--lm-gray-border);
  padding: 8px;
  width: 100%;
  transition: var(--transition);
  display: flex;
  justify-content: center;
}

.preview-canvas {
  width: 100%;
  height: 520px;
  overflow-y: auto;
  background-color: var(--lm-black);
  border-radius: 6px;
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
}

/* SIMULAÇÃO MOLDURA SMARTPHONE NO MOBILE PREVIEW */
.preview-wrapper.mobile-view-active {
  max-width: 360px;
  height: 640px;
  border: 14px solid #2b2b2b;
  border-radius: 36px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.preview-wrapper.mobile-view-active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #111;
  border-radius: 2px;
  z-index: 100;
}

.preview-wrapper.mobile-view-active .preview-canvas {
  height: 100%;
  padding: 1rem;
}

/* Elementos do Mock Preview */
.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.mock-logo {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-nav-links {
  display: flex;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.mock-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  min-height: 160px;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 1.5rem;
}

.mock-hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.mock-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%),
              linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  border-radius: 6px;
}

.mock-hero-flex {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.mock-hero-poster {
  width: 50px;
  height: 75px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.mock-hero-info {
  flex-grow: 1;
}

.mock-hero-info h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.mock-hero-info p {
  font-size: 0.65rem;
  color: var(--lm-light-gray);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mock-hero-buttons {
  display: flex;
  gap: 0.4rem;
}

.mock-btn-play,
.mock-btn-border {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
}

.mock-btn-play {
  background-color: var(--lm-orange);
  color: white;
}

.mock-btn-border {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

/* Linhas de Seções de Preview */
.mock-preview-row {
  margin-bottom: 1.2rem;
}

.mock-preview-row h4 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--text-white);
  border-left: 2px solid var(--lm-orange);
  padding-left: 0.4rem;
}

.mock-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.preview-wrapper.mobile-view-active .mock-preview-grid {
  grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile preview */
}

.mock-item-card {
  display: flex;
  flex-direction: column;
}

.mock-item-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  border: 1px solid rgba(255,255,255,0.02);
}

.preview-wrapper.mobile-view-active .mock-item-card.horizontal-card .mock-item-thumb,
.mock-item-card.horizontal-card .mock-item-thumb {
  aspect-ratio: 16/9; /* Banner horizontal */
}

.mock-item-title {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   💫 ANIMAÇÕES
   ========================================================================= */

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

/* =========================================================================
   📁 UPLOAD DE ARQUIVOS (BOTÕES E INPUTS)
   ========================================================================= */

.file-upload-wrapper {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  align-items: center;
}

.file-upload-input {
  display: none !important; /* Oculta o input padrão feio do navegador */
}

.file-upload-btn {
  background-color: rgba(255, 92, 0, 0.05) !important;
  border: 1px dashed var(--lm-orange) !important;
  color: var(--text-white) !important;
  padding: 0.55rem 1rem !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 0 !important;
}

.file-upload-btn:hover {
  background-color: var(--lm-orange) !important;
  border-style: solid !important;
  box-shadow: var(--lm-glow);
}

.upload-status {
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
  animation: lmFade 0.3s ease-out;
}

/* =========================================================================
   📚 CONSTRUTOR CURRICULAR ESTILO KIWIFY / ACADÊMICO
   ========================================================================= */

.form-type-toggle {
  display: flex;
  background-color: #171821;
  border: 1px solid var(--lm-gray-border);
  padding: 0.3rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  gap: 0.3rem;
}

.form-type-toggle .toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lm-light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.form-type-toggle .toggle-btn.active {
  background-color: var(--lm-orange);
  color: var(--text-white);
  box-shadow: var(--lm-glow);
}

.curriculum-header-box {
  border-bottom: 1px solid var(--lm-gray-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.curriculum-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-shelf-group {
  margin-bottom: 1.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.admin-shelf-header {
  background: rgba(255, 92, 0, 0.08);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 92, 0, 0.15);
  color: var(--text-white);
  border-left: 4px solid var(--lm-orange);
}

.admin-shelf-body {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.curriculum-module-card {
  background-color: #171821;
  border: 1px solid var(--lm-gray-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.curriculum-module-card:hover {
  border-color: rgba(255, 92, 0, 0.2);
}

.curriculum-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition);
  user-select: none;
  gap: 1rem;
  min-width: 0;
}

.curriculum-module-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.curriculum-row-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 1;
}

.curriculum-row-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.drag-handle {
  color: rgba(255, 255, 255, 0.2);
  cursor: grab;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.expand-indicator {
  font-size: 0.75rem;
  color: var(--text-gray);
  transition: transform 0.2s ease;
  width: 12px;
  display: inline-block;
  text-align: center;
  flex-shrink: 0;
}

.curriculum-module-title {
  font-size: 0.95rem;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.contents-count-badge {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--lm-light-gray);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}

.curriculum-actions-group {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.curriculum-actions-group button {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.72rem;
}

.curriculum-actions-group button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.curriculum-actions-group button.btn-curriculum-add {
  background-color: rgba(255, 92, 0, 0.08);
  border-color: rgba(255, 92, 0, 0.25);
  color: var(--lm-orange);
}

.curriculum-actions-group button.btn-curriculum-add:hover {
  background-color: var(--lm-orange);
  color: var(--text-white);
  box-shadow: var(--lm-glow);
}

.curriculum-actions-group button.btn-curriculum-delete:hover {
  background-color: #dc3545;
  border-color: #dc3545;
}

.curriculum-module-body {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: lmFade 0.25s ease-out;
}

.curriculum-lesson-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e1f2b;
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  transition: var(--transition);
  gap: 1rem;
  min-width: 0;
}

.curriculum-lesson-row:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: #242535;
}

.curriculum-checkbox {
  accent-color: var(--lm-orange);
  width: 14px;
  height: 14px;
  cursor: not-allowed;
  flex-shrink: 0;
}

.curriculum-lesson-title {
  font-size: 0.88rem;
  color: var(--lm-light-gray);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.lesson-badge-published {
  color: #2ec4b6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.curriculum-empty-lesson {
  padding: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-gray);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* Estilos de Feedback Visual do Drag and Drop */
.curriculum-module-card.dragging-theme {
  opacity: 0.35;
  border: 1px dashed var(--lm-orange) !important;
  background-color: rgba(255, 92, 0, 0.02) !important;
}

.curriculum-lesson-row.dragging-song {
  opacity: 0.35;
  border: 1px dashed var(--lm-orange) !important;
  background-color: rgba(255, 92, 0, 0.02) !important;
}

.curriculum-module-header .drag-handle,
.curriculum-lesson-row .drag-handle {
  cursor: grab !important;
  user-select: none;
}

.curriculum-module-header .drag-handle:active,
.curriculum-lesson-row .drag-handle:active {
  cursor: grabbing !important;
}

/* Otimização Responsiva do Construtor Curricular (Evita quebra de linhas no celular) */
@media (max-width: 600px) {
  .curriculum-module-header {
    padding: 0.8rem 0.6rem !important;
    gap: 0.5rem !important;
  }
  .curriculum-module-body {
    padding: 0.6rem 0.6rem !important;
    gap: 0.4rem !important;
  }
  .curriculum-lesson-row {
    padding: 0.6rem 0.5rem !important;
    gap: 0.4rem !important;
  }
  .curriculum-row-left {
    gap: 0.4rem !important;
  }
  .curriculum-row-right {
    gap: 0.4rem !important;
  }
  .curriculum-actions-group button {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }
  .contents-count-badge {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  .curriculum-module-title {
    font-size: 0.85rem !important;
  }
  .curriculum-lesson-title {
    font-size: 0.8rem !important;
  }
  .lesson-badge-published {
    display: none !important; /* Esconder badge "Publicado" para liberar espaço crítico de tela */
  }
}

/* Navegação de Voltar Premium (Netflix Style) */
.back-navigation {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 99999; /* Garante que fique acima de películas bloqueadoras (9998) e overlays (9999) */
  display: flex;
  align-items: center;
  pointer-events: auto; /* Habilita cliques mesmo com overlays */
}

.btn-back {
  background: rgba(18, 19, 26, 0.85); /* Fundo escuro para destacar no vídeo */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 0;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.btn-back svg {
  display: block;
  stroke: #ffffff;
  transition: transform 0.25s ease;
}

.btn-back:hover svg {
  transform: translateX(-2px);
}

/* Responsividade do Botão de Voltar para Mobile */
@media (max-width: 768px) {
  .back-navigation {
    top: 10px;
    left: 10px;
  }
  .btn-back {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================================
   👑 ESTILOS DO COMMAND CENTER ADMINISTRATIVO (LARGURA TOTAL & SIDEBAR)
   ========================================================================= */

/* Ajuste do container principal para largura total */
.main-content.admin-mode-layout {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-content.admin-mode-layout #screen-admin {
  width: 100%;
  min-height: 100vh;
}

/* Wrapper principal do painel */
.admin-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0e12 0%, #06070a 100%);
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
}

/* Sidebar lateral */
.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: rgba(18, 19, 26, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.sidebar-logo .logo-icon {
  font-size: 1.5rem;
  color: var(--lm-orange);
  animation: pulse-orange 2s infinite ease-in-out;
}

.sidebar-logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.sidebar-nav-btn.active {
  background: rgba(255, 92, 0, 0.08);
  color: var(--lm-orange);
  font-weight: 600;
  border-left: 3px solid var(--lm-orange);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.sidebar-nav-btn .nav-icon {
  font-size: 1.15rem;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lm-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info-text {
  display: flex;
  flex-direction: column;
}

.admin-info-text .admin-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.admin-info-text .admin-role {
  font-size: 0.72rem;
  color: #64748b;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.sidebar-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Área Principal */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  box-sizing: border-box;
}

/* Cabeçalho */
.admin-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.admin-main-header .breadcrumbs {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.admin-main-header .header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.admin-main-header .logo-icon-main {
  color: var(--lm-orange);
}

.admin-main-header .header-date {
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.admin-main-header .header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Container de abas */
.admin-tab-views-container {
  flex: 1;
}

.admin-tab-content-panel {
  display: none;
  animation: lmFade 0.35s ease-out forwards;
}

.admin-tab-content-panel.active {
  display: block;
}

/* ABA 1: DASHBOARD (KPIS GRID) */
.dashboard-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .dashboard-kpis-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: rgba(30, 31, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(8px);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 92, 0, 0.06);
  border: 1px solid rgba(255, 92, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

/* Grids do Dashboard */
.dashboard-secondary-grid {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .dashboard-secondary-grid {
    flex-direction: column;
  }
}

.dashboard-section-card {
  background: rgba(30, 31, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-section-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-logs-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.log-dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.log-dashboard-row .log-title {
  font-weight: 600;
  color: var(--lm-orange);
  background: rgba(255, 92, 0, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  margin-right: 8px;
}

.log-dashboard-row .log-desc {
  color: #cbd5e1;
  flex: 1;
}

.log-dashboard-row .log-time {
  color: #64748b;
  font-size: 0.75rem;
  margin-left: 10px;
}

/* Identidade Rápida */
.identity-quick-view {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  height: calc(100% - 40px);
}

.quick-view-logo-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-logo-box img {
  max-height: 40px;
  max-width: 90%;
  object-fit: contain;
}

.quick-view-palette {
  display: flex;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.swatch-color {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* LIVE PREVIEWS NOS FORMULÁRIOS */
.media-live-preview {
  margin-top: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
  text-align: center;
}

.media-live-preview .preview-placeholder {
  font-size: 0.8rem;
  color: #64748b;
  display: block;
}

.media-live-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.media-live-preview video {
  max-width: 100%;
  max-height: 120px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

/* Miniaturas na Árvore de Catálogo */
.curriculum-module-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.curriculum-thumbnail {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  background: #1e1f2a;
}

.song-thumbnail {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  background: #1e1f2a;
}

/* Ajustes finos nas tabelas de logs */
.logs-table-wrapper {
  max-height: 500px;
  overflow-y: auto;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  font-size: 0.88rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem !important;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

@keyframes pulse-orange {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* =========================================================================
   📂 ABAS INTERNAS DE EDIÇÃO E CADASTRO (ORGANIZAÇÃO DE CAMPOS)
   ========================================================================= */

.form-internal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.3rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.form-tab-btn:hover {
  color: #fff;
}

.form-tab-btn.active {
  background: var(--lm-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.2);
}

.form-internal-panel {
  display: none;
  animation: lmFade 0.3s ease-out forwards;
}

.form-internal-panel.active {
  display: block;
}

.form-navigation-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.2rem;
}

/* Otimização de espaçamentos de labels e inputs no admin */
.input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.6rem !important; /* Espaço aumentado entre o título e o input */
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem 1rem !important; /* Aumentado padding interno para digitação mais confortável */
  font-size: 0.95rem;
  border-radius: 8px !important;
  margin-bottom: 0.5rem !important; /* Espaço de respiro abaixo do input */
}

.input-group input[type="color"] {
  padding: 0 !important;
  width: 55px !important;
  height: 38px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 6px !important;
  background: transparent !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.input-group {
  margin-bottom: 1.4rem !important; /* Mais respiro entre grupos de inputs */
}

/* Dicas de ajuda abaixo dos títulos dos campos */
.field-hint {
  display: block !important;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: -0.2rem;
  margin-bottom: 0.6rem !important;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none !important;
}

/* Grade de Paletas de Cores */
.color-palettes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

@media (max-width: 480px) {
  .color-palettes-grid {
    grid-template-columns: 1fr;
  }
}

.palette-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.palette-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.palette-card.active {
  background: rgba(255, 92, 0, 0.06);
  border-color: var(--lm-orange);
  box-shadow: 0 0 10px rgba(255, 92, 0, 0.15);
}

.palette-swatches {
  display: flex;
  gap: 4px;
}

.swatch-item {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.palette-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* =========================================================================
   ✒️ CUSTOMIZAÇÃO DO EDITOR DE TEXTO RICO (QUILL JS - DARK THEME PREMIUM)
   ========================================================================= */

.ql-toolbar.ql-snow {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 0.8rem !important;
}

.ql-container.ql-snow {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: none !important;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: #171821;
}

.ql-editor {
  color: #f1f5f9 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 220px;
}

.ql-editor.ql-blank::before {
  color: #64748b !important;
  font-style: normal !important;
}

/* Cores dos ícones do Quill no Dark Mode */
.ql-snow .ql-stroke {
  stroke: #94a3b8 !important;
  stroke-width: 2px !important;
}

.ql-snow .ql-fill {
  fill: #94a3b8 !important;
}

.ql-snow .ql-picker {
  color: #94a3b8 !important;
}

.ql-snow .ql-picker-options {
  background-color: #1e1f2a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ql-snow .ql-picker-item {
  color: #94a3b8 !important;
}

.ql-snow .ql-picker-item:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--lm-orange) !important;
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: var(--lm-orange) !important;
}

.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active {
  color: var(--lm-orange) !important;
}

.ql-snow.ql-toolbar .ql-picker-item.ql-selected {
  color: var(--lm-orange) !important;
}

/* Player Vertical de Shorts do YouTube (Aspect Ratio 9:16) */
.player-container-lm.vertical-short-player {
  max-width: 380px;
  aspect-ratio: 9/16;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0 !important; /* Ajustado para remover margem negativa do banner */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Desativar película apenas na área de botões do player vertical para permitir usar os botões nativos do YouTube (Mute, CC, Settings)
   enquanto ainda bloqueia o clique acidental no título do YouTube do lado esquerdo. */
.player-container-lm.vertical-short-player::after {
  right: 140px;
}

@media (max-width: 480px) {
  .player-container-lm.vertical-short-player {
    max-width: 100%;
    max-height: 70vh !important;
    margin-top: 0 !important; /* Ajustado para mobile */
    border-radius: 8px;
  }
  .music-info-header-lm h1 {
    font-size: 1.35rem !important; /* Fonte menor sem quebrar no celular */
  }
  .music-info-header-lm h3 {
    font-size: 0.92rem !important; /* Artista menor no celular */
  }
}
/* Classes de Alinhamento de Texto do Quill (Para renderização correta fora do editor) */
.ql-align-justify {
  text-align: justify !important;
}
.ql-align-center {
  text-align: center !important;
}
.ql-align-right {
  text-align: right !important;
}
.ql-align-left {
  text-align: left !important;
}

/* Spinner animado para o Gerador de IA */
.spinner-mini {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 92, 0, 0.2);
  border-top-color: var(--lm-orange);
  border-radius: 50%;
  animation: lmSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes lmSpin {
  to { transform: rotate(360deg); }
}

/* Hamburguer de toggle no admin */
.btn-sidebar-toggle {
  display: none;
}
.btn-sidebar-close {
  display: none;
}

@media (max-width: 768px) {
  .btn-sidebar-toggle {
    display: inline-block !important;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    margin-right: 12px;
    padding: 0.2rem;
    line-height: 1;
  }
  
  .btn-sidebar-close {
    display: inline-block !important;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: #94a3b8;
    cursor: pointer;
    margin-left: auto;
    padding: 0.2rem;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 25px rgba(0,0,0,0.5);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .admin-sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-main {
    padding: 1rem 1rem !important; /* Mais compacto no celular */
  }
  
  .admin-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .admin-main-header .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================================
   📺 CARROSSEL TOP 10 ESTILO NETFLIX (INTEGRADO NO HERO)
   ========================================================================= */

.home-hero {
  position: relative;
  width: 100%;
  min-height: auto !important;
  height: auto !important;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lm);
  border: 1px solid var(--lm-gray-border);
}

.hero-container-top10 {
  position: relative;
  z-index: 5;
  padding: 1.8rem 1.2rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important; /* Aproxima o carrossel dos textos */
  gap: 0.8rem; /* Controla o espaçamento interno de forma harmônica */
  min-height: auto !important;
  height: auto !important;
  background: linear-gradient(180deg, rgba(12,13,18,0.3) 0%, rgba(12,13,18,0.7) 45%, rgba(12,13,18,0.96) 100%);
}

.hero-header-top10 {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza horizontalmente */
  text-align: center; /* Centraliza o texto */
}

.hero-header-top10 .hero-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

.hero-header-top10 h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.85);
  font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.hero-header-top10 .hero-meta-genres {
  font-size: 1.05rem !important; /* Aumentado conforme solicitado */
  font-weight: 700 !important;
  text-transform: uppercase;
  margin: 0.1rem 0 0 0;
  letter-spacing: 0.08em !important; /* Alinha visualmente com os limites do título */
}

/* Grupo de Título e Logotipo para alinhar a extremidade direita */
.hero-title-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end; /* Alinha os filhos (título e logo) à direita do grupo */
  position: relative;
  width: auto;
}

/* Container do logotipo Top 10 neon no Destaque */
.hero-top10-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}
.hero-top10-logo-container img {
  width: 160px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.hero-top10-carousel-wrapper {
  margin: 0.2rem 0; /* Espaço reduzido para subir o carrossel */
  width: 100%;
}

.hero-buttons-top10 {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center; /* Centraliza os botões */
  margin-top: 0.5rem;
  padding-bottom: 0.2rem;
}

.hero-buttons-top10 .btn-hero-orange,
.hero-buttons-top10 .btn-hero-border {
  height: 46px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.btn-hero-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--lm-orange);
  color: #fff;
  border: 1px solid transparent; /* Alinha altura com o botão com borda */
  padding: 0.65rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-hero-orange:hover {
  background: var(--lm-orange-hover);
  transform: translateY(-2px);
}

.btn-hero-border {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-hero-border:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.top10-carousel {
  display: flex;
  gap: 2.5rem; /* Mais espaçado */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.2rem 0.5rem 1.8rem 0.5rem;
  scroll-behavior: smooth;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.top10-carousel::-webkit-scrollbar {
  display: none; /* Esconde a scrollbar no Webkit */
}

.top10-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  width: 195px; /* Tamanho proporcional maior para celular */
  height: 275px; /* Mais alto */
  cursor: pointer;
  scroll-snap-align: start;
  transform: translate3d(0, 0, 0); /* Corrige o bug do Safari (iOS) que ignora o z-index de elementos relativos */
  -webkit-transform: translate3d(0, 0, 0);
}

/* Criação de contextos de empilhamento ordenados decrescentes para o efeito leque (foco nos números) */
.top10-item:nth-child(1) { z-index: 20 !important; }
.top10-item:nth-child(2) { z-index: 19 !important; }
.top10-item:nth-child(3) { z-index: 18 !important; }
.top10-item:nth-child(4) { z-index: 17 !important; }
.top10-item:nth-child(5) { z-index: 16 !important; }
.top10-item:nth-child(6) { z-index: 15 !important; }
.top10-item:nth-child(7) { z-index: 14 !important; }
.top10-item:nth-child(8) { z-index: 13 !important; }
.top10-item:nth-child(9) { z-index: 12 !important; }
.top10-item:nth-child(10) { z-index: 11 !important; }

.top10-number {
  font-family: "Arial Black", Arial, Helvetica, sans-serif !important; /* Sem serifa garantida */
  font-size: 15rem !important; /* Tamanho ligeiramente menor como solicitado */
  font-weight: 900 !important;
  line-height: 0.72 !important;
  color: #0f1016 !important; /* Cor de fundo escura do app para mesclar sutilmente */
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.7) !important; /* Borda afinada para 3px */
  position: absolute;
  left: -28px;
  bottom: -4px; /* Alinhado à base do banner */
  z-index: 2 !important; /* Sempre acima da capa do seu próprio card */
  user-select: none;
  letter-spacing: -12px;
  opacity: 0.85; /* Visibilidade sutil como solicitado */
}

.top10-number.double-digit {
  font-size: 11rem !important; /* Proporcional para dois dígitos */
  left: -44px;
  bottom: -2px;
  letter-spacing: -14px;
}

.top10-cover {
  width: 155px; /* Capa maior */
  height: 245px;
  border-radius: 8px;
  object-fit: cover;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1 !important; /* Sempre abaixo do número do seu próprio card */
  /* Projetando sombra lateral à direita (6px) para criar o sombreamento suave na extremidade esquerda do número vizinho */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 6px 0 16px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.top10-item:hover .top10-cover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Responsividade Desktop */
@media (min-width: 769px) {
  .home-hero {
    min-height: auto !important;
  }
  .hero-container-top10 {
    min-height: auto !important;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
  }
  .hero-header-top10 h1 {
    font-size: 2.8rem;
  }
  .top10-number {
    font-size: 18rem !important; /* Ligeiramente menor no desktop */
    left: -42px !important; /* Deslocamento suave proporcional */
    bottom: -6px !important; /* Alinhado à base do banner no desktop */
    -webkit-text-stroke: 3.5px rgba(255, 255, 255, 0.7) !important; /* Borda afinada proporcional */
  }
  .top10-number.double-digit {
    font-size: 13rem !important;
    left: -58px !important;
    bottom: -4px !important;
    letter-spacing: -18px;
  }
  .top10-carousel {
    gap: 2.2rem !important; /* Aproxima no desktop */
    padding: 1.5rem 0.2rem 2.2rem 0.2rem;
  }
  .top10-item {
    width: 250px;
    height: 350px;
  }
  .top10-cover {
    width: 200px;
    height: 315px;
    border-radius: 10px;
  }
}

/* Customizações mobile para botões do Hero */
@media (max-width: 768px) {
  .hero-buttons-top10 {
    width: 100% !important;
    gap: 0.8rem !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }
  
  .hero-buttons-top10 .btn-hero-orange,
  .hero-buttons-top10 .btn-hero-border {
    flex: 1 !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 0.6rem !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* Correções do Painel do Catálogo */
#tab-admin-catalog .admin-table-card {
  height: 760px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 1.5rem !important;
}

#tab-admin-catalog #admin-curriculum-list {
  display: block !important;
  height: 560px !important;
  max-height: 560px !important;
  overflow-y: auto !important;
  padding-right: 8px !important;
}

/* Forçar os cabeçalhos das prateleiras a ficarem em linha única */
#tab-admin-catalog .admin-shelf-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.6rem 1rem !important;
}

#tab-admin-catalog .admin-shelf-header span {
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
  max-width: calc(100% - 160px) !important;
  font-size: 0.95rem !important;
}

#tab-admin-catalog .admin-shelf-header button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.82rem !important;
  height: 38px !important;
  width: auto !important;
  border-radius: 6px !important;
  align-self: center !important;
  margin: 0 !important;
}

/* =========================================================================
   💿 LOADER ANIMADO DO VINIL NEON - TELA HOME
   ========================================================================= */
.home-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  width: 100%;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
  gap: 1.2rem;
  padding: 4rem 0;
}

.home-loading-spinner p {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: pulse-text-loader 1.5s infinite ease-in-out;
}

/* Spinner estilo Disco Vinil com neon laranja */
.karludo-loader {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #0c0d12 18%, #1c1d24 20%, #1c1d24 28%, #0c0d12 30%, #0c0d12 40%, #15161c 42%, #15161c 55%, #0c0d12 57%);
  border: 3px solid rgba(255, 107, 0, 0.15);
  border-top-color: #ff6b00; /* Cor primária laranja Karludo */
  border-bottom-color: #ff6b00;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.45), inset 0 0 10px rgba(255, 107, 0, 0.2);
  animation: spin-vinyl-loader 1.2s infinite linear;
  position: relative;
}

/* Pino central do vinil */
.karludo-loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ff6b00;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #ff6b00;
}

@keyframes spin-vinyl-loader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-text-loader {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Setas de Navegação Estilo Netflix (Desktop Apenas) */
@media (min-width: 768px) {
  .netflix-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    background: rgba(12, 13, 18, 0.4);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    padding: 0;
  }
  
  .netflix-arrow-left {
    left: 0;
    background: linear-gradient(90deg, rgba(12,13,18,0.95) 0%, rgba(12,13,18,0) 100%);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
  }
  
  .netflix-arrow-right {
    right: 0;
    background: linear-gradient(-90deg, rgba(12,13,18,0.95) 0%, rgba(12,13,18,0) 100%);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .netflix-arrow:hover {
    color: var(--lm-orange, #ff5c00);
  }
  
  .netflix-arrow-left:hover {
    background: linear-gradient(90deg, rgba(12,13,18,0.99) 20%, rgba(12,13,18,0.3) 100%);
  }
  
  .netflix-arrow-right:hover {
    background: linear-gradient(-90deg, rgba(12,13,18,0.99) 20%, rgba(12,13,18,0.3) 100%);
  }
  
  /* Exibir setas apenas quando passar o mouse sobre a linha wrapper correspondente */
  .hero-top10-carousel-wrapper:hover .netflix-arrow.visible,
  .dynamic-home-row-wrapper:hover .netflix-arrow.visible {
    opacity: 1;
  }
  
  .netflix-arrow svg {
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .netflix-arrow:hover svg {
    transform: scale(1.25);
  }
  .netflix-arrow:active svg {
    transform: scale(0.9);
  }
}

@media (max-width: 767px) {
  .netflix-arrow {
    display: none !important;
  }
}

/* Capa Customizada de Música Completa (Efeito Premium) */
.youtube-custom-cover .play-btn-wrapper {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}
.youtube-custom-cover:hover .play-btn-wrapper {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.35) !important;
}
.youtube-custom-cover:active .play-btn-wrapper {
  transform: scale(0.95);
}

/* Container de Player Customizado com Corte de Bordas (Crop 15%) */
.youtube-player-container-custom {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
  z-index: 1;
}

/* Wrapper de escala (agora contêiner seguro e sem distorções de zoom) */
.youtube-iframe-scaler {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  -webkit-transform: none !important;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: opacity 0.3s ease;
  pointer-events: none !important; /* Desativa totalmente qualquer toque ou clique no player nativo do YouTube */
}

/* Força o iframe filho a preencher o scaler sem herdar offsets antigos */
.youtube-player-container-custom .youtube-iframe-scaler iframe,
.youtube-iframe-scaler iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  transform: none !important;
  -webkit-transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important; /* Desativa cliques também no elemento do iframe */
}

/* Controles customizados sobrepostos do YouTube */
.custom-player-controls {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-player-controls.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.custom-control-play-btn:hover {
  transform: scale(1.12);
}

.custom-control-timeline-wrapper:hover {
  height: 6px !important;
}

.custom-control-timeline-wrapper:hover .custom-control-timeline-handle {
  transform: translate(-50%, -3px) scale(1.3) !important;
}

/* 💡 SISTEMA DE SUGESTÕES E SELOS DA COMUNIDADE (FASE 13) */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes premiumBadgeEntrance {
  0% {
    opacity: 0;
    transform: translateY(180px) scale(0.75); /* Começa bem de baixo, menor e invisível */
    filter: blur(6px);
  }
  65% {
    opacity: 1;
    transform: translateY(-25px) scale(1.05); /* Sobe mais que a posição final (overshoot) */
    filter: blur(0);
  }
  85% {
    transform: translateY(8px) scale(0.97); /* Desce um pouquinho */
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1); /* Estabiliza na posição original */
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 0px rgba(255, 92, 0, 0.2);
    border-color: rgba(255, 92, 0, 0.35);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 92, 0, 0.55);
    border-color: rgba(255, 92, 0, 0.75);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 0px rgba(255, 92, 0, 0.2);
    border-color: rgba(255, 92, 0, 0.35);
  }
}


.sugerido-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 92, 0, 0.08);
  border: 1px solid rgba(255, 92, 0, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 92, 0, 0.05);
  transition: all 0.2s ease;
}

.sugerido-badge:hover {
  background: rgba(255, 92, 0, 0.12);
  border-color: rgba(255, 92, 0, 0.35);
  transform: translateY(-1px);
}

.sugerido-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--lm-orange);
  box-shadow: 0 0 4px rgba(255, 92, 0, 0.3);
}

/* 💡 SELO FLUTUANTE SOBREPOSTO NO PLAYER (FASE 13) */
.player-sugerido-container {
  position: absolute;
  bottom: 20px; /* Posicionado no canto inferior esquerdo */
  left: 36px; /* Deslocado para evitar cortes na lateral esquerda do player */
  z-index: 100;
  display: flex;
  align-items: center;
  pointer-events: none; /* Cliques passam direto para o player */
  width: auto;
  max-width: 90%;
}

.player-sugerido-pill {
  background: rgba(30, 20, 15, 0.85); /* Café/chocolate dark premium */
  border: 1.5px solid rgba(255, 92, 0, 0.35);
  padding: 10px 20px 10px 42px; /* Padding esquerdo maior para a foto sobreposta */
  border-radius: 12px; /* Menos arredondado conforme mockup */
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 92, 0, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: premiumBadgeEntrance 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both, glowPulse 2.4s ease-in-out infinite 1.7s;
  mix-blend-mode: hard-light; /* Efeito Alpha com brilho discreto conforme mockup */
}

.player-sugerido-avatar {
  width: 52px; /* Diâmetro maior destacado */
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lm-orange);
  position: absolute;
  left: -26px; /* Centralizado horizontalmente vazando para a esquerda */
  top: 50%;
  transform: translateY(-50%);
  background-color: #12131a;
  box-shadow: 0 0 8px rgba(255, 92, 0, 0.35);
}

.player-sugerido-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); /* Garante leitura perfeita no modo hard-light */
}

.sugerido-title, .sugerido-subtitle {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem; /* Aumentado conforme marcação verde para destacar */
}

.sugerido-handle {
  color: var(--lm-orange);
  font-weight: 700;
  font-size: 0.92rem; /* Aumentado proporcionalmente */
  margin-top: 2px;
}

/* Ajuste de alinhamento do screen-content para colar o player de Shorts abaixo do cabeçalho */
#screen-content {
  margin-top: -34px;
}

@media (max-width: 768px) {
  #screen-content {
    margin-top: -14px;
  }
}

/* =========================================================================
   🛒 TELA 1.1: CHECKOUT RESPONSIVO
   ========================================================================= */
#screen-checkout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 10px;
  min-height: calc(100vh - 40px);
}

#screen-checkout .auth-card {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

/* Ajustes para Celular (Expandir até o limite da tela) */
@media (max-width: 600px) {
  #screen-checkout {
    padding: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem) !important;
  }
  #screen-checkout .auth-card {
    border-radius: 0px;
    border-left: none;
    border-right: none;
    padding: 1.5rem 1rem;
    max-width: 100%;
    width: 100%;
  }
  #checkout-plans-grid {
    gap: 4px !important;
  }
  #checkout-plans-grid .checkout-plan-card {
    padding: 1rem 2px !important;
    min-height: 225px !important;
  }
  #checkout-plans-grid .checkout-plan-card > div:first-child > div:first-child {
    font-size: 0.8rem !important;
  }
  #checkout-plans-grid .checkout-plan-card > div:first-child > div:nth-child(2) {
    font-size: 0.62rem !important;
  }
  [id^="checkout-label-desc-semestral-l"],
  [id^="checkout-label-desc-anual-l"],
  [id^="checkout-label-desc-mensal-l"] {
    font-size: 0.65rem !important;
  }
  #checkout-label-price-semestral,
  #checkout-label-price-anual,
  #checkout-label-price-mensal {
    font-size: 1.8rem !important;
    white-space: nowrap;
  }
  #checkout-label-equiv-semestral,
  #checkout-label-equiv-anual {
    font-size: 0.58rem !important;
    white-space: nowrap;
  }
  }
}



