/* ============================================================================
   1. RESET E VARIÁVEIS GLOBAIS
   ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09090b;
  --sidebar-bg: rgba(8, 8, 10, 0.95);
  --card-bg: rgba(18, 18, 22, 0.7);
  --border-color: rgba(255, 255, 255, 0.05);
  --primary: #ff003c;
  --vip-color: #ffcc00;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: #000;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================================
   2. TRATAMENTO E OTIMIZAÇÃO DO VÍDEO DE FUNDO (4K)
   ============================================================================ */
.bg-video-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: #000;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.video-elemento {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) brightness(0.9); 
  will-change: transform;
}

.ambient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(10, 2, 4, 0.98));
  z-index: -1;
}

/* ============================================================================
   3. ESTRUTURA DO LAYOUT E SIDEBAR ESQUERDA + REGRAS DA LOGO
   ============================================================================ */
.site-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar-esquerda {
  width: 250px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

.logo-img-sidebar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #fff;
}

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

.menu-item {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: 0.2s;
  display: block;
  width: 100%;
}

.menu-item.active, .menu-item:hover {
  color: #fff;
  background: rgba(255, 0, 60, 0.08);
  border-left: 3px solid var(--primary);
}

/* INTERFACE MOBILE INICIALMENTE OCULTA (DESKTOP) */
.mobile-header {
  display: none;
}

.music-fab-mobile {
  display: none;
}

/* ============================================================================
   4. PLAYER DE MÚSICA COM ESPECTRO ANIMADO (DESKTOP)
   ============================================================================ */
.sidebar-player {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
  transition: border-color 0.2s;
}

.sidebar-player:hover {
  border-color: rgba(255, 0, 60, 0.3);
}

.player-espectro {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.barra-espectro {
  display: block;
  width: 4px;
  height: 25%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.player-espectro.playing .barra-espectro {
  animation: dancaEspectro 1.2s ease-in-out infinite alternate;
}

.player-espectro.playing .barra-espectro:nth-child(1) { animation-delay: 0.1s; }
.player-espectro.playing .barra-espectro:nth-child(2) { animation-delay: 0.4s; }
.player-espectro.playing .barra-espectro:nth-child(3) { animation-delay: 0.2s; }
.player-espectro.playing .barra-espectro:nth-child(4) { animation-delay: 0.6s; }

@keyframes dancaEspectro {
  0% { height: 30%; }
  50% { height: 100%; }
  100% { height: 45%; }
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-track {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.player-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

/* ============================================================================
   5. ÁREA DE CONTEÚDO PRINCIPAL (PAINEL DIREITO)
   ============================================================================ */
.page-wrap {
  flex: 1;
  min-width: 0; /* corrige bug clássico do flexbox: sem isso, o item flex não
                   encolhe para caber na tela quando o conteúdo (carrossel)
                   é largo, e empurra tudo (inclusive o rodapé) pro lado */
  margin-left: 250px;
  padding: 1.5rem 2.5rem;
}

.site-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.header-nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.status-online { 
  color: #00e676; 
  animation: pulse 2s infinite; 
}

@keyframes pulse {
  0% { opacity: 0.6; } 
  50% { opacity: 1; } 
  100% { opacity: 0.6; }
}

/* ============================================================================
   6. HERO SECTION & COMPARTILHAMENTO DROPDOWN
   ============================================================================ */
.hero { margin-bottom: 2.5rem; }
.hero-profile { display: flex; align-items: center; gap: 2rem; }

.hero-avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--primary);
  padding: 4px;
  box-shadow: 0 0 25px rgba(255, 0, 60, 0.2);
}

.hero-avatar {
  width: 100%; 
  height: 100%; 
  background: #000; 
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  overflow: hidden;
}

.logo-img-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  font-family: 'Orbitron'; 
  font-size: 0.6rem; 
  color: var(--primary);
  background: rgba(255, 0, 60, 0.1); 
  padding: 0.2rem 0.5rem; 
  border-radius: 4px;
  display: inline-block; 
  margin-bottom: 0.4rem; 
  letter-spacing: 1px;
}

.hero-name { 
  font-family: 'Orbitron', sans-serif; 
  font-size: 2.4rem; 
  font-weight: 900; 
}

.hero-desc { 
  font-size: 1rem; 
  color: var(--text-muted); 
}

.hero-social { 
  display: flex; 
  align-items: center;
  gap: 0.5rem; 
  margin-top: 0.75rem; 
}

.social-pill {
  text-decoration: none; 
  color: #fff; 
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color); 
  padding: 0.35rem 1rem; 
  border-radius: 6px;
  font-size: 0.8rem; 
  font-weight: 700; 
  transition: 0.2s;
  cursor: pointer;
}

.social-pill:hover { 
  border-color: var(--primary); 
  background: rgba(255,0,60,0.1); 
}

.share-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-share-main {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
  border-color: rgba(0, 230, 118, 0.3);
}

.btn-share-main:hover {
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.08);
}

.share-dropdown-menu {
  position: absolute;
  top: 125%;
  left: 0;
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  padding: 0.4rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 50;
}

.share-dropdown-menu.show {
  display: flex;
}

.share-menu-item {
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s;
}

.share-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

/* ============================================================================
   7. CONTADORES / PLACAS DE ESTATÍSTICA
   ============================================================================ */
.stats-bar { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1rem; 
  margin-bottom: 3rem; 
}

.stat-card { 
  background: var(--card-bg); 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  padding: 1rem; 
  display: flex; 
  flex-direction: column; 
}

.stat-value { 
  font-family: 'Orbitron'; 
  font-size: 1.6rem; 
  font-weight: 900; 
}

.text-red { color: var(--primary); }
.text-green { color: #00e676; }

.stat-label { 
  font-size: 0.65rem; 
  font-weight: 700; 
  color: var(--text-muted); 
  letter-spacing: 0.5px; 
}

/* ============================================================================
   8. CONTAINER DO CARROSSEL DESLIZANTE
   ============================================================================ */
.secao-grupos-wrapper { margin-bottom: 3rem; }

.section-header { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  margin-bottom: 1.5rem; 
}

.section-header-title { 
  font-family: 'Orbitron'; 
  font-size: 1rem; 
  letter-spacing: 1px; 
}

.section-header-line { 
  flex: 1; 
  height: 1px; 
  background: var(--border-color); 
}

.carrossel-container {
  width: 100%;
  overflow-x: auto;
  cursor: grab;
}

/* Barra de rolagem fina e discreta, no estilo do site (em vez de escondida) */
.carrossel-container::-webkit-scrollbar {
  height: 6px;
}
.carrossel-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.carrossel-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
.carrossel-container {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.03);
}

.carrossel-container.arrastando {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.groups-grid {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
}

/* ---------- Wrapper + setas de navegação do carrossel (injetadas via JS) ---------- */
.carrossel-wrapper {
  position: relative;
}

.seta-carrossel {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.85);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  backdrop-filter: blur(4px);
}

.seta-carrossel:hover {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.5);
}

.seta-esquerda { left: -8px; }
.seta-direita { right: -8px; }

/* Some as setas quando não há mais o que rolar naquele sentido */
.seta-carrossel.seta-desabilitada {
  opacity: 0.2;
  pointer-events: none;
}

/* Some as setas quando os cards já cabem inteiros na tela (nada pra rolar) */
.carrossel-wrapper.sem-overflow .seta-carrossel {
  display: none;
}

.group-card {
  flex: 0 0 220px;
  background: var(--card-bg); 
  border: 1px solid var(--border-color);
  border-radius: 12px; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  padding: 10px;
}

.group-card:hover { 
  transform: translateY(-3px); 
  border-color: var(--primary); 
}

.group-card.vip-card {
  border-color: rgba(255, 204, 0, 0.2);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.05);
}

.group-card.vip-card:hover {
  border-color: var(--vip-color);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.card-banner { 
  position: relative; 
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000; 
  border-radius: 8px;
  overflow: hidden;
}

.card-banner img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.8; 
  transition: opacity 0.2s;
}

.group-card:hover .card-banner img { opacity: 1; }

.card-badge-categoria {
  position: absolute; 
  bottom: 8px; 
  right: 8px; 
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border-color); 
  padding: 0.15rem 0.4rem;
  border-radius: 4px; 
  font-size: 0.6rem; 
  font-weight: 700; 
  color: var(--primary);
  text-transform: uppercase;
}

.card-badge-vip {
  position: absolute; 
  top: 8px; 
  left: 8px; 
  background: #000;
  border: 1px solid var(--vip-color); 
  padding: 0.15rem 0.4rem;
  border-radius: 4px; 
  font-size: 0.6rem; 
  font-weight: 900; 
  color: var(--vip-color);
  box-shadow: 0 0 8px var(--vip-color);
  font-family: 'Orbitron';
}

.card-corpo { 
  padding: 0.75rem 0 0 0; 
  display: flex; 
  flex-direction: column; 
  flex-grow: 1; 
  justify-content: space-between; 
  gap: 0.75rem; 
}

.card-titulo { 
  font-size: 0.9rem; 
  font-weight: 700; 
  color: #fff; 
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-botao-entrar {
  display: block; 
  text-align: center; 
  text-decoration: none;
  background: rgba(255, 0, 60, 0.05); 
  border: 1px solid rgba(255, 0, 60, 0.2);
  color: #fff; 
  font-size: 0.75rem; 
  font-weight: 700; 
  padding: 0.55rem; 
  border-radius: 6px; 
  transition: 0.2s;
}

.group-card:hover .card-botao-entrar { 
  background: var(--primary); 
  border-color: var(--primary); 
  box-shadow: 0 0 10px rgba(255,0,60,0.3); 
}

.group-card.vip-card:hover .card-botao-entrar { 
  background: var(--vip-color); 
  border-color: var(--vip-color); 
  color: #000; 
  box-shadow: 0 0 10px rgba(255,204,0,0.4); 
}

.btn-deletar-card-adm {
  background: transparent;
  border: 1px dashed var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: 0.2s;
  font-family: 'Orbitron', sans-serif;
}

.btn-deletar-card-adm:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================================
   9. SISTEMA DE PROPRIEDADE (CARD QUADRADO MINI)
   ============================================================================ */
.staff-layout-quadrado {
  display: flex;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.owner-card-square {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22, 18, 5, 0.95) 0%, rgba(12, 12, 14, 0.9) 100%);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 12px;
  padding: 1rem;
  width: 170px; 
  height: 170px; 
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: center;
}

.owner-card-square:hover {
  border-color: var(--vip-color);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.25);
  transform: translateY(-2px);
}

.owner-square-badge {
  position: absolute;
  top: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--vip-color);
  letter-spacing: 1px;
}

.owner-square-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}

.owner-square-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; 
  border: 1px solid var(--vip-color);
}

.owner-square-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #00e676;
  border-radius: 50%;
  border: 2px solid #0c0c0e;
  box-shadow: 0 0 6px #00e676;
}

.owner-square-info {
  width: 100%;
  margin-bottom: 0.5rem;
}

.owner-square-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-square-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.owner-square-btn {
  display: block;
  width: 85%;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.25);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 0.3rem 0;
  border-radius: 5px;
  letter-spacing: 0.5px;
  transition: 0.2s;
}

.owner-card-square:hover .owner-square-btn {
  background: var(--vip-color);
  border-color: var(--vip-color);
  color: #000;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

/* ============================================================================
   10. FOOTER DA PLATAFORMA
   ============================================================================ */
.site-footer { 
  border-top: 1px solid var(--border-color); 
  padding-top: 1.5rem; 
  margin-top: 4rem; 
  text-align: center; 
  font-size: 0.8rem; 
  color: var(--text-muted); 
}

.footer-credits { 
  margin-top: 0.25rem; 
  color: rgba(255,255,255,0.2); 
}

/* ============================================================================
   11. TELA DE INTRODUÇÃO GLOBAL (SPLASH SCREEN)
   ============================================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-overlay.ocultar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-box {
  text-align: center;
  padding: 2rem;
}

.intro-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.intro-subtitle {
  font-size: 1rem;
  color: #ff003c;
  font-weight: 700;
  margin-bottom: 2rem;
}

.intro-btn-entrar {
  font-family: 'Orbitron', sans-serif;
  background: transparent;
  border: 1px solid #ff003c;
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 900;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
  transition: 0.3s;
}

.intro-btn-entrar:hover {
  background: #ff003c;
  box-shadow: 0 0 25px rgba(255, 0, 60, 0.6);
  color: #000;
}

/* ============================================================================
   12. SINALIZAÇÃO E INTERFACE DO PAINEL ADMINISTRATIVO MODAL
   ============================================================================ */
.modal-admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  z-index: 10000; /* Força ficar acima de tudo */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-admin-box {
  background: #0c0c0e;
  border: 1px solid rgba(255, 0, 60, 0.2);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.15);
  animation: modalEntrada 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEntrada {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-admin-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--primary);
}

.modal-instruction {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.admin-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-label {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

select.admin-input option {
  background: #0c0c0e;
  color: #fff;
}

.admin-submit-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--primary);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.admin-submit-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

/* ============================================================================
   13. MEDIA QUERIES E RESPONSIVIDADE (OTIMIZADO PARA CELULAR)
   ============================================================================ */
@media (max-width: 768px) {
  /* TOPO MOBILE FIXO */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #050507;
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.25rem;
    z-index: 998;
  }

  .mobile-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
  }

  .btn-menu-mobile {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
  }

  /* GAVETA LATERAL DO MENU */
  .sidebar-esquerda {
    transform: translateX(-100%);
    width: 270px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }

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

  .page-wrap {
    margin-left: 0;
    padding: 75px 1rem 1.5rem 1rem;
  }

  .site-header { display: none; }

  .hero-profile {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .hero-name { font-size: 1.8rem; letter-spacing: 0px; }

  .hero-social { justify-content: center; flex-wrap: wrap; }

  .share-dropdown-menu { left: 50%; transform: translateX(-50%); }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 2rem; }

  /* No mobile o toque já rola o carrossel naturalmente: some com as setas */
  .seta-carrossel { display: none !important; }

  /* BOTÃO FLUTUANTE DE ÁUDIO ESTILO PERSONALIZADO */
  .music-fab-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #050507; /* Fundo escuro */
    border: 2px solid var(--primary); /* Borda na cor principal */
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    /* Sombra de destaque da logo */
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4), 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 997;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floating 3s ease-in-out infinite;
  }

  .music-fab-mobile:active {
    transform: scale(0.9);
    box-shadow: 0 0 5px rgba(255, 0, 60, 0.6);
  }

  @keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }

  .music-fab-mobile:active { transform: scale(0.9); }
  .sidebar-player { display: none !important; }
}

/* --- CSS DE TRAVAMENTO TOTAL DO CARROSSEL --- */

/* 1. Container de rolagem pai */
.carrossel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* Suaviza no mobile */
}

/* 2. O Grid vira um flex imutável */
.groups-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    width: max-content !important; /* Força o pai a ter a largura exata dos cards */
}

/* 3. O Card com largura e crescimento proibidos */
.group-card {
    min-width: 220px !important; /* Garante que nunca seja menor que 220px */
    width: 220px !important;
    flex: 0 0 220px !important; /* Proíbe encolher ou esticar */
    height: auto;
}

/* 4. Segurança extra para o container da página não estourar */
.page-wrap {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Corta qualquer coisa que tente vazar lateralmente */
}

.site-footer {
  background: rgba(10, 10, 10, 0.95);
  border-top: 2px solid #ff003c;
  padding: 40px 20px;
  color: #ccc;
  margin-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #ff003c;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Efeito de destaque para novo grupo publicado */
@keyframes aura-destaque {
  0% { box-shadow: 0 0 0px #00e676; }
  50% { box-shadow: 0 0 30px #00e676; }
  100% { box-shadow: 0 0 0px #00e676; }
}

.novo-grupo-destaque {
  animation: aura-destaque 2s ease-out;
  border: 2px solid #00e676 !important;
}

/* ---------- Espaçamento entre os cards de staff (dono + adms) ---------- */
.staff-layout-quadrado {
  gap: 1rem;
  flex-wrap: wrap; /* em telas pequenas, os cards quebram linha em vez de estourar */
}

/* ---------- Variante de cor para o card de ADM (azul, pra diferenciar do dourado do dono) ---------- */
.owner-card-square-adm {
  border-color: rgba(0, 153, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.05);
}

.owner-card-square-adm:hover {
  border-color: #0099ff;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.25);
}

.owner-card-square-adm .owner-square-badge {
  color: #0099ff;
}

.owner-card-square-adm .owner-square-avatar img {
  border-color: #0099ff;
}

.owner-card-square-adm .owner-square-btn {
  background: rgba(0, 153, 255, 0.08);
  border-color: rgba(0, 153, 255, 0.25);
}

.owner-card-square-adm:hover .owner-square-btn {
  background: #0099ff;
  border-color: #0099ff;
  color: #000;
  box-shadow: 0 0 8px rgba(0, 153, 255, 0.4);
}