/* ==========================================================================
   CultoFlow — Design System Responsivo (Mobile & Desktop)
   Desenvolvido por: Cristiano Fonseca / Fonseca Sistemas
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-surface: #0f172a;
  --bg-input: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #fbbf24;

  --accent-blue: #3b82f6;
  --accent-gold: #d97706;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
}

/* Proteção global de seleção e toque em imagens/layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Permite seleção apenas em campos de entrada de texto */
input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* --------------------------------------------------------------------------
   RESET UNIVERSAL DE BOTÕES E TOQUE (PARIDADE ANDROID & IOS)
   Elimina aparências nativas cinzas do Android, bordas 3D e flash de toque.
   -------------------------------------------------------------------------- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-clip: padding-box;
}

/* Links estilizados como botões */
a.btn-nav-icon,
a.btn-icon,
a.btn-voltar,
a.btn-action-edit,
a.btn-action-delete,
a.btn-action-view,
a.btn-primary-action {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

img, svg {
  pointer-events: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   SPLASH SCREEN
   -------------------------------------------------------------------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.splash-content {
  text-align: center;
  max-width: 380px;
  padding: 2rem;
}

.splash-logo-container {
  position: relative;
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1774 / 887;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.splash-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 2s infinite alternate;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1774 / 887;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
  position: relative;
  z-index: 2;
  display: block;
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 0.25rem;
}

.splash-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.splash-loader {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.splash-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.splash-status {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   TELA DE LOGIN
   -------------------------------------------------------------------------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}

.login-card-glass {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-wrapper {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1774 / 887;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 15px rgba(251, 191, 36, 0.25));
  transition: transform 0.25s ease;
}

.login-logo-wrapper:hover {
  transform: scale(1.03);
}

.login-church-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1774 / 887;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.login-brand h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.church-subtitle {
  color: var(--text-gold);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.25rem;
  letter-spacing: 0.2px;
}

.login-subtext {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

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

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

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  opacity: 0.7;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: #192339;
}

.btn-toggle-pass {
  position: absolute;
  right: 0.8rem;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.15s;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-toggle-pass:hover {
  opacity: 1;
}

.btn-toggle-pass:active {
  transform: scale(0.92);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #fca5a5;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  animation: shake 0.4s ease;
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-primary-action:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-primary-action:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-church-footer {
  font-size: 0.85rem;
  color: var(--text-gold) !important;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.25px;
}

.login-developer-credit {
  font-size: 0.78rem;
  margin-top: 0.15rem;
  color: var(--text-muted) !important;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.text-gold {
  color: var(--text-gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   LAYOUT DO PAINEL PRINCIPAL (PÓS-LOGIN)
   -------------------------------------------------------------------------- */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   TOPBAR FIXA RESPONSIVA — IDÊNTICA AO CONTROLESUITESRETIRO
   -------------------------------------------------------------------------- */
.topbar {
  background: rgba(10, 18, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 200, 66, 0.2);
  padding: 10px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}

.topbar-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brand-logo-container {
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.25));
  transition: transform 0.25s ease;
}

.brand-logo-container:hover {
  transform: scale(1.02);
}

.topbar-church-logo {
  width: auto;
  max-width: 112px;
  height: auto;
  max-height: 56px;
  aspect-ratio: 1774 / 887;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.topbar-title-wrap {
  flex: 1;
  min-width: 0;
}

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

.topbar-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.topbar-subtitle {
  font-size: .82rem;
  color: rgba(245, 200, 66, 0.85);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
}

.topbar-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  font-size: 0.78rem;
  color: var(--text-gold);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.25);
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 250px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
  transition: background .2s, border-color .2s;
}

.topbar-logout-btn {
  height: 34px !important;
  width: 34px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.topbar-logout-btn svg {
  width: 17px !important;
  height: 17px !important;
}

.topbar-user-badge:hover,
.topbar-user-badge:active {
  background: rgba(245, 200, 66, 0.16);
  border-color: rgba(245, 200, 66, 0.45);
}

.topbar-user-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-gold);
}

.topbar-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

@media (min-width: 480px) {
  .topbar-user-name {
    max-width: 220px;
  }
}

.topbar-buttons-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGAÇÃO FIXA NO RODAPÉ (FOOTER)
   -------------------------------------------------------------------------- */
.footer-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  background: rgba(10, 18, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.65);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: auto;
  margin: 0 auto;
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s, border-color .2s;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Botões do rodapé mais largos e confortáveis */
.footer-buttons-group .btn-icon {
  width: 52px;
  min-width: 52px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(245, 200, 66, 0.24);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Ícone destacado de acordo com a tela aberta */
.footer-buttons-group .btn-icon.active {
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.35), rgba(217, 119, 6, 0.45)) !important;
  border-color: #f5c842 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(245, 200, 66, 0.48) !important;
  transform: translateY(-2px) !important;
}

.footer-buttons-group .btn-icon.active svg {
  filter: drop-shadow(0 0 4px #f5c842);
  color: #ffffff !important;
}

.btn-icon:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: rgba(245, 200, 66, 0.45);
  transform: translateY(-1px);
}

.btn-icon:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(.94);
}

.btn-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.btn-icon.btn-logout {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.12);
}

.btn-icon.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
}

/* Expansão Desktop (Linha única idêntica ao ControleSuitesRetiro) */
@media (min-width: 769px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    gap: 20px;
  }

  .topbar-header-row {
    width: auto;
    flex: 0 1 auto;
    gap: 14px;
  }

  .topbar-title {
    font-size: 1.45rem;
  }

  .topbar-subtitle {
    font-size: 0.84rem;
    margin-top: 2px;
  }

  .topbar-actions {
    width: auto;
    flex: 1 1 auto;
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
  }
}

/* Área de Conteúdo Principal */
.main-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* Banner de Identidade da Igreja na Tela Inicial (Dashboard) */
.church-home-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.church-home-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.church-banner-logo {
  flex-shrink: 0;
  width: 140px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.25));
}

.home-church-logo {
  width: 100%;
  height: auto;
  max-height: 95px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.church-banner-text {
  flex: 1;
}

.church-banner-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--text-gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.church-banner-text h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.church-banner-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .church-home-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .church-banner-logo {
    width: 120px;
    margin: 0 auto;
  }
}

/* Abas de Grupos de Louvor */
.grupo-tabs-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Filtros de Topo (2 Níveis: Categorias e Ordinais) */
.filtros-topo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.filtro-categoria-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filtro-cat-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
  touch-action: manipulation;
  -webkit-appearance: none;
}

.filtro-cat-btn:hover {
  background: rgba(51, 65, 85, 0.85);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.filtro-cat-btn:active {
  transform: scale(0.97);
}

.filtro-cat-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(30, 58, 138, 0.7));
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.filtro-sub-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filtro-sub-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 9999px;
  padding: 0.38rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  user-select: none;
  touch-action: manipulation;
  -webkit-appearance: none;
}

.filtro-sub-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filtro-sub-btn:active {
  transform: scale(0.96);
}

.filtro-sub-btn.active {
  background: var(--accent-gold, #f5c842);
  color: #0f172a;
  border-color: var(--accent-gold, #f5c842);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 200, 66, 0.35);
}

.grupo-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.grupo-tab-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.grupo-tab-btn:active {
  transform: scale(0.96);
}

.grupo-tab-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Cards de KPIs */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-info h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-info p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

/* Seletor de Mês e Domingos Modernizado Unificado na Mesma Linha */
.mes-navegador {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.15rem;
  width: 100%;
}

.mes-navegador-controles {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 200, 66, 0.28);
  border-radius: 12px;
  padding: 0.3rem 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  box-sizing: border-box;
}

.mes-titulo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.65rem;
  white-space: nowrap;
}

.mes-calendar-icon {
  width: 17px;
  height: 17px;
  color: var(--text-gold);
  flex-shrink: 0;
}

.mes-navegador h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.btn-nav-mes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-radius: 8px;
  height: 34px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  touch-action: manipulation;
}

.btn-nav-mes:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: rgba(245, 200, 66, 0.5);
  color: var(--text-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.2);
}

.btn-nav-mes:active {
  transform: scale(0.96);
}

.nav-arrow-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
  color: var(--text-gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

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

.mes-nav-divisor {
  width: 1px;
  height: 20px;
  background: rgba(245, 200, 66, 0.25);
  margin: 0 0.2rem;
  display: inline-block;
  flex-shrink: 0;
}

.btn-mes-atual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.16), rgba(217, 119, 6, 0.22));
  border: 1px solid rgba(245, 200, 66, 0.45);
  color: var(--text-gold);
  border-radius: 8px;
  height: 34px;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}

.btn-mes-atual:hover {
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.3), rgba(217, 119, 6, 0.38));
  border-color: rgba(245, 200, 66, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(245, 200, 66, 0.3);
  color: #fff;
}

.btn-mes-atual:active {
  transform: scale(0.96);
}

.btn-mes-atual svg {
  width: 15px;
  height: 15px;
  color: var(--text-gold);
}

@media (max-width: 540px) {
  .btn-nav-mes {
    padding: 0 0.55rem;
  }
  .btn-nav-mes-label {
    display: none;
  }
  .mes-titulo-container {
    padding: 0 0.35rem;
  }
  .mes-navegador h3 {
    font-size: 0.96rem;
  }
  .btn-mes-atual {
    padding: 0 0.65rem;
    font-size: 0.76rem;
  }
}

/* --------------------------------------------------------------------------
   BOTÕES DE AÇÃO PADRONIZADOS (EDITAR, EXCLUIR, PERIGO)
   -------------------------------------------------------------------------- */
.btn-action-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-action-edit:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(96, 165, 250, 0.65);
  color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.btn-action-edit:active {
  transform: scale(0.95);
  background: rgba(37, 99, 235, 0.4);
}

.btn-action-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fca5a5;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.btn-action-delete:active {
  transform: scale(0.95);
  background: rgba(239, 68, 68, 0.35);
}

.btn-action-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.2), rgba(127, 29, 29, 0.4));
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-action-danger:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.35), rgba(153, 27, 27, 0.6));
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-action-danger:active {
  transform: scale(0.96);
  filter: brightness(0.9);
}

.btn-action-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   BOTÕES DE NAVEGAÇÃO / AÇÕES DE TOPO (btn-nav-icon)
   Garante paridade total de renderização no Android e iOS
   -------------------------------------------------------------------------- */
.btn-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  touch-action: manipulation;
}

.btn-nav-icon:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-nav-icon:active {
  transform: scale(0.96);
  filter: brightness(0.92);
}

/* Seletor de Grupo no Culto */
.grupo-selector-box {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
}

.grupo-selector-box label {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
}

.select-grupo-culto {
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(245, 200, 66, 0.35);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  height: 28px;
}

.select-grupo-culto:focus {
  border-color: var(--text-gold);
}

.domingos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.domingo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.domingo-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 200, 66, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.domingo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.domingo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
  color: #fff;
  letter-spacing: 0.2px;
}

.domingo-data {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.domingo-card-body {
  margin-bottom: 0.45rem;
}

.domingo-grupo-nome {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.2rem;
}

.domingo-liturgia-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.domingo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   TELA DO DIA DA ESCALA (DETALHES DO CULTO)
   -------------------------------------------------------------------------- */
.culto-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-voltar {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  touch-action: manipulation;
}

.btn-voltar:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-voltar:active {
  transform: scale(0.96);
  filter: brightness(0.92);
}

/* Bloco 1: Liturgia do Culto (Pregador e Tema) */
.card-liturgia {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.card-liturgia-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.liturgia-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.liturgia-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.liturgia-input-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.liturgia-input-group input, .liturgia-input-group textarea {
  width: 100%;
  background: #111c33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
}

.liturgia-input-group input:focus, .liturgia-input-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Bloco 1: Faixa do Grupo de Louvor Responsável (Compacta) */
.faixa-grupo {
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faixa-grupo-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.faixa-grupo-left h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.faixa-grupo-left p {
  font-size: 0.78rem;
  opacity: 0.92;
  line-height: 1.2;
}

.faixa-data-culto {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-gold);
  white-space: nowrap;
}

/* Bloco 3: Equipe de Músicos Escalados */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title-bar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.musicos-escala-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.musico-slot-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.musico-slot-card:hover {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(30, 41, 59, 0.85);
}

.musico-slot-card.substituto {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(217, 119, 6, 0.12);
}

.musico-slot-funcao-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.musico-slot-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.musico-slot-funcao {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.musico-slot-nome {
  font-size: 0.90rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.substituto-tag {
  background: rgba(217, 119, 6, 0.25);
  color: #fbbf24;
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: inline-block;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Bloco 4: Sequência do Repertório */
.repertorio-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

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

.repertorio-item-row {
  background: #131c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  transition: all 0.2s ease;
}

.repertorio-item-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #162238;
}

.repertorio-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ordem-badge {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.btn-fav-musica {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease;
  user-select: none;
}

.btn-fav-musica:hover {
  transform: scale(1.28);
}

.btn-fav-musica:active {
  transform: scale(0.9);
}

.btn-fav-musica.favorita {
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.45));
}

.musica-dados-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.musica-dados-main h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.musica-dados-main p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}

.badge-has-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.btn-remover-culto-inline {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
  border-radius: 4px;
  padding: 0.12rem 0.45rem !important;
  font-size: 0.76rem !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1;
  transition: all 0.18s ease;
}

.btn-remover-culto-inline:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  transform: scale(1.08);
}

.btn-editar-musica-link {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  border-radius: 4px;
  padding: 0.12rem 0.48rem;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1;
  transition: all 0.18s ease;
}

.btn-editar-musica-link:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  color: #fff;
  transform: scale(1.05);
}

.repertorio-item-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.repertorio-item-right > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.tom-badge {
  background: #1e3a8a;
  color: #93c5fd;
  font-weight: 700;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  box-sizing: border-box;
  white-space: nowrap;
}

.momento-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 30px;
  box-sizing: border-box;
  width: auto;
  max-width: fit-content;
}

.momento-pill.momento-convite,
.momento-pill.momento-abertura,
.momento-pill.momento-preludio {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.momento-pill.momento-engajamento {
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.35);
}

.momento-pill.momento-exaltacao,
.momento-pill.momento-exaltação,
.momento-pill.momento-louvor,
.momento-pill.momento-adoracao,
.momento-pill.momento-congregacional {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.momento-pill.momento-intimidade {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.35);
}

.momento-pill.momento-tematica1,
.momento-pill.momento-temática1,
.momento-pill.momento-ofertas,
.momento-pill.momento-dizimos {
  background: rgba(160, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

.momento-pill.momento-tematica2,
.momento-pill.momento-temática2 {
  background: rgba(5, 150, 105, 0.15);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.35);
}

.momento-pill.momento-ceia1,
.momento-pill.momento-ceia2,
.momento-pill.momento-ceia3,
.momento-pill.momento-comunhao,
.momento-pill.momento-ceia,
.momento-pill.momento-santaceia {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.4);
}

.momento-pill.momento-pospalavra,
.momento-pill.momento-apelo {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

select.momento-pill {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 125px;
  padding: 0 1.25rem 0 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' fill='%23cbd5e1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 0.35rem) center;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  outline: none;
  border-radius: var(--radius-sm);
  line-height: 1;
  height: 30px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

select.momento-pill:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

select.momento-pill:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

select.momento-pill option {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 6px;
}

.btn-musico-slot-trocar {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.btn-musico-slot-trocar:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #93c5fd;
}

.badge-versao-item {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-left: 0.35rem;
}

.btn-open-cifra {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 0.65rem;
  height: 30px;
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}

.btn-open-cifra:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.btn-open-cifra:active {
  transform: scale(0.97);
}

.btn-open-audio {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 0.65rem;
  height: 30px;
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}

.btn-open-audio:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.btn-open-audio:active {
  transform: scale(0.97);
}

/* Ocultar botão/menu de download nos players de áudio */
audio::-webkit-media-controls-download-button,
audio::-internal-media-controls-download-button {
  display: none !important;
}
audio::-webkit-media-controls-enclosure {
  overflow: hidden;
}

.media-list-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: background 0.2s ease;
}

.media-list-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.media-list-card.selected {
  border-color: var(--accent-gold, #eab308);
  background: rgba(234, 179, 8, 0.08);
}

.media-list-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.media-list-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   JANELAS MODAIS RESPONSIVAS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   TELAS PRINCIPAIS INTEGRADAS (NÃO SÃO MODAIS POPUP)
   As seções Músicas, Grupos, Usuários, Backup e Auditoria comportam-se como telas normais.
   ========================================================================== */
.app-screen-view {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 10 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 2rem !important;
  animation: fadeInScreen 0.2s ease-out;
}

.app-screen-view.hidden,
#modalMusicas.hidden,
#modalGrupos.hidden,
#modalUsuarios.hidden,
#modalBackup.hidden,
#modalAuditoria.hidden,
#viewPainelGeral.hidden,
#viewCultoDetalhes.hidden {
  display: none !important;
}

#modalMusicas,
#modalGrupos,
#modalUsuarios,
#modalBackup,
#modalAuditoria {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 10 !important;
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 2rem !important;
  animation: fadeInScreen 0.2s ease-out;
}

#modalMusicas.active,
#modalGrupos.active,
#modalUsuarios.active,
#modalBackup.active,
#modalAuditoria.active {
  display: block !important;
}

#modalMusicas .modal-container,
#modalGrupos .modal-container,
#modalUsuarios .modal-container,
#modalBackup .modal-container,
#modalAuditoria .modal-container,
#modalGerenciarFuncoes .modal-container {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(245, 200, 66, 0.25) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45) !important;
  overflow: visible !important;
  margin: 0 auto !important;
}

#modalMusicas .modal-header,
#modalGrupos .modal-header,
#modalBackup .modal-header,
#modalAuditoria .modal-header {
  border-bottom: 1px solid rgba(245, 200, 66, 0.18) !important;
  background: rgba(10, 18, 30, 0.6) !important;
  padding: 1.1rem 1.5rem !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
}

#modalUsuarios .modal-header {
  position: static !important;
  border-bottom: 1px solid rgba(245, 200, 66, 0.18) !important;
  background: rgba(10, 18, 30, 0.6) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  box-shadow: none !important;
}

#modalMusicas .modal-body,
#modalGrupos .modal-body,
#modalUsuarios .modal-body,
#modalBackup .modal-body,
#modalAuditoria .modal-body {
  max-height: none !important;
  overflow: visible !important;
  padding: 1.5rem !important;
}

#modalMusicas #listaMusicasAcervo,
#modalUsuarios #listaUsuariosContainer,
#modalGrupos #listaGruposAdminContainer,
#modalAuditoria #auditList {
  max-height: none !important;
  overflow-y: visible !important;
}

/* Ocultar o botão X de fechar modal nas telas principais */
#modalMusicas .modal-header > .btn-close-modal,
#modalGrupos .modal-header .btn-close-modal,
#modalUsuarios .modal-header > .btn-close-modal,
#modalBackup .modal-header > .btn-close-modal,
#modalAuditoria .modal-header > .btn-close-modal,
#modalAuditoria .modal-footer .btn-close-modal {
  display: none !important;
}

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

.modal-container {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container.large {
  max-width: 900px;
}

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

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-close-modal:hover {
  color: #fff;
  transform: scale(1.1);
}

.btn-close-modal:active {
  transform: scale(0.92);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   ANIMAÇÕES E UTILITÁRIOS
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

@keyframes pulse-glow {
  from { transform: scale(0.9); opacity: 0.4; }
  to { transform: scale(1.1); opacity: 0.8; }
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE (MOBILE & TABLET BREAKPOINTS)
   Adaptabilidade completa para smartphones e desktops
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Topbar Mobile: Layout compacto em linha única com usuário */
  .topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .topbar-header-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .brand-logo-container {
    max-height: 48px !important;
    max-width: 96px !important;
  }

  .topbar-church-logo {
    height: auto !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 96px !important;
    aspect-ratio: 1774 / 887 !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  .login-logo-wrapper,
  .splash-logo-container {
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    aspect-ratio: 1774 / 887 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .login-church-logo,
  .splash-logo-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 1774 / 887 !important;
    object-fit: contain !important;
    border-radius: 10px !important;
  }

  .topbar-title {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
  }

  .topbar-subtitle {
    font-size: 0.75rem !important;
    margin-top: 1px !important;
  }

  .topbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    padding-top: 0 !important;
    border-top: none !important;
    flex-shrink: 0 !important;
  }

  .topbar-user-badge {
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.74rem !important;
    max-width: 120px !important;
    box-sizing: border-box !important;
  }

  .topbar-logout-btn {
    height: 32px !important;
    width: 32px !important;
    border-radius: 6px !important;
  }

  .topbar-logout-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Barra de Navegação Fixa no Rodapé (Footer Mobile) */
  .footer-nav-bar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1100 !important;
  }

  .footer-nav-bar::-webkit-scrollbar {
    display: none !important;
  }

  .footer-buttons-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  .footer-buttons-group .btn-icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 40px !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
  }

  .btn-icon svg {
    width: 18px !important;
    height: 18px !important;
  }


  /* Abas dos Grupos na Tela Principal: adaptadas para não vazar tela */
  .grupo-tabs-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
    overflow: visible !important;
  }

  .filtro-categoria-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .filtro-cat-btn {
    flex: 1 1 33.333% !important;
    padding: 0.55rem 0.35rem !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .filtro-sub-bar {
    gap: 0.3rem !important;
    padding: 0.4rem 0.4rem !important;
    justify-content: flex-start !important;
  }

  .filtro-sub-btn {
    padding: 0.32rem 0.65rem !important;
    font-size: 0.76rem !important;
  }

  .grupo-tab-btn {
    flex: 1 1 calc(33.333% - 0.35rem) !important;
    min-width: 80px !important;
    max-width: 100% !important;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.78rem !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .grupo-fixos-badge {
    display: none !important;
  }

  /* Área Principal */
  .main-container {
    padding: 0.85rem 0.65rem 4rem;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .church-home-banner {
    display: none !important;
  }

  /* KPIs em Grid 2x2 no Celular */
  .kpis-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .kpi-card {
    padding: 0.85rem 0.75rem;
    gap: 0.6rem;
  }

  .kpi-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .kpi-info h4 {
    font-size: 0.72rem;
  }

  .kpi-info p {
    font-size: 1.35rem;
  }

  /* Seletor de Mês */
  .mes-navegador {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .mes-navegador h3 {
    font-size: 1.05rem;
    text-align: center;
    flex: 1;
  }

  .btn-nav-mes {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Grid de Domingos */
  .domingos-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
  }

  .domingo-card {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  /* Detalhes do Culto */
  .culto-view-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .culto-view-header > div {
    width: 100%;
  }

  .culto-view-header .btn-voltar,
  #btnExportarPdfCulto {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .section-title-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .section-title-bar h3 {
    font-size: 1rem;
    margin: 0;
  }

  #btnAbrirModalSubstituicao,
  #btnAdicionarMusicaCulto {
    width: auto !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.76rem !important;
    white-space: nowrap;
  }

  .faixa-grupo {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    text-align: left;
    margin-bottom: 0.65rem;
  }

  .faixa-data-culto {
    font-size: 0.88rem;
    text-align: left;
  }

  .card-liturgia {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .card-liturgia-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .card-liturgia-top button {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem !important;
    font-size: 0.88rem !important;
  }

  .liturgia-inputs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .musicos-escala-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-bottom: 1.2rem !important;
  }

  .musico-slot-card {
    padding: 0.45rem 0.6rem !important;
    border-radius: var(--radius-sm) !important;
    gap: 0.15rem !important;
  }

  .musico-slot-funcao {
    font-size: 0.66rem !important;
  }

  .musico-slot-nome {
    font-size: 0.84rem !important;
  }

  .substituto-tag {
    font-size: 0.62rem !important;
    padding: 0.1rem 0.3rem !important;
  }

  .repertorio-table-card {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-lg);
  }

  .repertorio-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .repertorio-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
  }

  .repertorio-item-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.15rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .repertorio-item-right .momento-pill,
  .repertorio-item-right select.momento-pill {
    font-size: 0.70rem !important;
    height: 28px !important;
    padding: 0 1.15rem 0 0.45rem !important;
    letter-spacing: 0.1px !important;
    border-radius: var(--radius-sm) !important;
    line-height: 1 !important;
    width: 115px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .repertorio-item-right span.momento-pill {
    height: 28px !important;
    padding: 0 0.45rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.70rem !important;
  }

  .repertorio-item-right .tom-badge {
    height: 28px !important;
    padding: 0 0.45rem !important;
    font-size: 0.74rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-sm) !important;
  }

  .repertorio-item-right::-webkit-scrollbar {
    display: none;
  }

  .repertorio-item-right .btn-open-cifra {
    height: 28px !important;
    padding: 0 0.55rem !important;
    font-size: 0.74rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-sm) !important;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .repertorio-item-right .btn-play-repertorio-row {
    height: 28px !important;
    padding: 0 0.55rem !important;
    font-size: 0.74rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-sm) !important;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .repertorio-item-right .btn-excluir-musica,
  .repertorio-item-right .btn-remover-musica-culto {
    padding: 0.32rem 0.55rem !important;
    font-size: 0.82rem !important;
    flex-shrink: 0;
  }

  /* Modais Adaptativos no Mobile */
  .modal-overlay {
    padding: 0.4rem;
  }

  .modal-container {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

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

  .modal-body {
    padding: 0.85rem 1rem;
    max-height: calc(92vh - 110px);
  }

  .modal-footer {
    padding: 0.75rem 1rem;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .modal-footer button {
    flex: 1;
    min-height: 42px;
    font-size: 0.88rem;
    justify-content: center;
  }

  /* Previne zoom automático indesejado no iOS ao focar inputs */
  input[type="text"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Otimizações Específicas para Smartphones Pequenos */
  .login-wrapper {
    padding: 0.75rem 0.5rem;
  }

  .login-card-glass {
    padding: 1.35rem 1.1rem;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .login-logo-wrapper,
  .splash-logo-container {
    max-width: 160px !important;
    aspect-ratio: 1774 / 887 !important;
    height: auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .login-church-logo,
  .splash-logo-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 1774 / 887 !important;
    object-fit: contain !important;
    border-radius: 10px !important;
  }

  .login-brand h2 {
    font-size: 1.45rem;
  }

  .church-subtitle {
    font-size: 0.82rem;
  }

  .btn-primary-action {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    min-height: 46px;
  }

  .login-church-footer {
    font-size: 0.8rem !important;
    line-height: 1.35;
    color: var(--text-gold) !important;
    font-weight: 600;
  }

  .login-developer-credit {
    font-size: 0.76rem !important;
    color: var(--text-muted) !important;
  }

  .kpis-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Relatório de Auditoria — Padrão ControleSuitesRetiro
   ========================================================================== */

.audit-filter-bar {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.audit-filter-input {
  flex: 1;
  min-width: 180px;
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-input);
  color: var(--text-main);
  transition: border-color 0.2s;
}

.audit-filter-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.audit-filter-select {
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-input);
  color: var(--text-main);
  cursor: pointer;
}

.audit-filter-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn-audit-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audit-clear:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
  color: #fff;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  overflow-y: auto;
  max-height: calc(85vh - 210px);
}

.audit-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color .2s;
}

.audit-card:hover {
  border-color: var(--accent-blue);
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.audit-user {
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audit-action-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.audit-target {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

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

.audit-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .audit-diff-grid {
    grid-template-columns: 1fr;
  }
}

.audit-diff-col {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.45;
}

.audit-diff-col.before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.audit-diff-col.after {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.audit-diff-title {
  font-weight: 700;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.audit-diff-col.before .audit-diff-title { color: #f87171; }
.audit-diff-col.after .audit-diff-title { color: #4ade80; }

.audit-diff-row {
  margin-bottom: 3px;
  word-break: break-word;
}

.audit-diff-key {
  font-weight: 600;
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   MODAL DE INSTALAÇÃO DE ATALHO PWA (MOBILE)
   -------------------------------------------------------------------------- */
.pwa-install-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 1.25rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pwa-install-overlay.pwa-show {
  opacity: 1;
  visibility: visible;
}

.pwa-install-overlay.pwa-fade-out {
  opacity: 0;
  visibility: hidden;
}

.pwa-install-card {
  width: 100%;
  max-width: 390px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  animation: pwaModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pwa-install-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #fbbf24, #3b82f6);
}

@keyframes pwaModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pwa-install-icon-wrapper {
  width: 140px;
  height: auto;
  aspect-ratio: 1774 / 887;
  margin: 0 auto 1.15rem;
  border-radius: 12px;
  background: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 191, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pwa-install-app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.pwa-install-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 0.15rem;
}

.pwa-install-church {
  font-size: 0.82rem;
  color: var(--text-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pwa-install-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 1.25rem 0 1.5rem;
}

.pwa-install-desc strong {
  color: #fff;
}

.pwa-install-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.btn-pwa-sim {
  flex: 1.25;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
  outline: none;
}

/* FOCO E DESTAQUE VISÍVEL NO BOTÃO SIM */
.btn-pwa-sim:focus,
.btn-pwa-sim:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.65), 0 8px 24px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
  animation: pwaFocusPulse 2s infinite alternate ease-in-out;
}

.btn-pwa-sim:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

@keyframes pwaFocusPulse {
  0% {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.6), 0 6px 18px rgba(37, 99, 235, 0.5);
  }
  100% {
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.7), 0 8px 26px rgba(59, 130, 246, 0.7);
  }
}

.btn-pwa-nao {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-pwa-nao:hover,
.btn-pwa-nao:focus {
  outline: none;
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.pwa-btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Guia de passos para iOS / Fallback */
.pwa-ios-guide {
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.pwa-guide-intro {
  font-size: 0.92rem;
  color: #f1f5f9;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.pwa-guide-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pwa-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
  background: rgba(30, 41, 59, 0.45);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pwa-guide-steps strong {
  color: #fff;
}

.pwa-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #090d16;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-guide-svg {
  display: inline-block;
  vertical-align: middle;
  stroke: var(--accent-gold);
  margin: 0 2px;
}

.pwa-safe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  margin-top: 0.8rem;
  text-align: center;
}

/* ==========================================================================
   PLAYER DE ÁUDIO DO REPERTÓRIO (PLAYLIST DO CULTO)
   ========================================================================== */
.repertorio-player-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.12);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.repertorio-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #fbbf24, #10b981);
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.player-icon-equalizer {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  flex-shrink: 0;
}

.player-icon-equalizer span {
  width: 4px;
  height: 6px;
  background: #60a5fa;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.player-icon-equalizer.playing span:nth-child(1) {
  animation: eqBounce 0.8s ease-in-out infinite alternate;
  background: #3b82f6;
}
.player-icon-equalizer.playing span:nth-child(2) {
  animation: eqBounce 1.1s ease-in-out infinite alternate 0.2s;
  background: #fbbf24;
}
.player-icon-equalizer.playing span:nth-child(3) {
  animation: eqBounce 0.9s ease-in-out infinite alternate 0.4s;
  background: #60a5fa;
}
.player-icon-equalizer.playing span:nth-child(4) {
  animation: eqBounce 1.2s ease-in-out infinite alternate 0.1s;
  background: #34d399;
}

@keyframes eqBounce {
  0% { height: 4px; }
  50% { height: 18px; }
  100% { height: 8px; }
}

.player-text-wrap {
  min-width: 0;
  flex: 1;
}

.player-track-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.player-track-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.player-track-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.player-status-badge.tocando {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.player-status-badge.pausado {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.player-timeline-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.65rem 0;
}

.player-time-current,
.player-time-duration {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  min-width: 38px;
  text-align: center;
}

.player-timeline-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.player-timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.player-timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #fbbf24;
}

.player-timeline-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: none;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  cursor: pointer;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.player-btns-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-player-control {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-player-control:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.btn-player-control.active {
  background: rgba(37, 99, 235, 0.28);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-player-control.active:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.8);
  transform: scale(1.08);
}

.btn-player-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-player-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(147, 197, 253, 0.4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
}

.btn-player-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  filter: brightness(1.1);
}

.btn-player-play:active {
  transform: scale(0.96);
}

.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-player-volume-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-player-volume-icon:hover {
  color: #ffffff;
}

.player-volume-slider {
  width: 75px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
}

/* Indicador de Música Ativa no Repertório */
.repertorio-item-row.item-tocando-agora {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.22);
}

.btn-play-repertorio-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0 0.65rem;
  height: 30px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-play-repertorio-row:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-play-repertorio-row.playing {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
}

.badge-has-audio {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   PLUGIN STREAMING & WEB PLAYER (SPOTIFY, DEEZER, YOUTUBE, WEB)
   ========================================================================== */
.streaming-player-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 27, 75, 0.90) 50%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.streaming-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #3b82f6, #fbbf24, #10b981);
}

.streaming-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.streaming-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.streaming-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.streaming-header-titles {
  min-width: 0;
  flex: 1;
}

.streaming-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.streaming-plugin-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.streaming-status-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: all 0.3s ease;
}

.streaming-status-badge.tocando {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

.streaming-status-badge.pausado {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.streaming-track-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streaming-track-meta {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.streaming-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-streaming-external {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-streaming-external:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.btn-streaming-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-streaming-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.streaming-media-wrapper {
  width: 100%;
  max-width: 640px;
  height: 240px;
  margin: 0.5rem auto 0.85rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.streaming-media-wrapper.minimized {
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
}

.streaming-media-wrapper iframe,
.streaming-media-wrapper #streamingPlayerIframeContainer {
  width: 100%;
  height: 100%;
  border: none;
}

.streaming-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.streaming-btns-playback {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-streaming-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-streaming-ctrl:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
  transform: scale(1.05);
}

.btn-streaming-ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-streaming-play {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  border: 1px solid #60a5fa;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-streaming-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.6);
}

.streaming-playlist-chips-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
  min-width: 200px;
}

.streaming-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streaming-chip-item:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.streaming-chip-item.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35) 0%, rgba(37, 99, 235, 0.35) 100%);
  border-color: #818cf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

.streaming-chip-item .streaming-chip-num {
  font-weight: 800;
  color: #fbbf24;
}

.badge-has-streaming {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Versões Agrupadas da Canção (Cifra & Áudio) */
.card-versao-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.card-versao-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
