:root {
  --bg-main: #090d16;
  --bg-card: #121824;
  --bg-card-hover: #1b2436;
  --bg-sidebar: #0d121c;
  --bg-header: rgba(13, 18, 28, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --color-live: #ef4444;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-main: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
}

/* Container Principal */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.app-header {
  height: 64px;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 50;
  gap: 16px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.badge-wsl {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 5px;
}

/* Busca */
.search-container {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-icon svg {
  width: 17px;
  height: 17px;
}

.search-container input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 0 40px 0 38px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-container input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-container input::placeholder {
  color: var(--text-dim);
}

.clear-search-btn {
  position: absolute;
  right: 36px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

.search-shortcut {
  position: absolute;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

/* Ações Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Alternador de Layout */
.layout-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.toggle-btn {
  padding: 4px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.toggle-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-primary);
  font-weight: 700;
}

.action-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.action-btn.primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

.counter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.view-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.view-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 5px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.view-btn svg {
  width: 15px;
  height: 15px;
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-primary);
}

/* Layout Principal */
.main-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: clamp(210px, 16vw, 250px);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-section-title {
  padding: 16px 18px 8px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-refresh-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.mini-refresh-btn:hover {
  color: var(--accent-primary);
}

.mini-refresh-btn svg {
  width: 13px;
  height: 13px;
}

.playlist-nav {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.playlist-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  user-select: none;
}

.playlist-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.playlist-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 700;
}

.playlist-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-icon {
  font-size: 1rem;
}

.playlist-badge {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-color);
}

.wsl-hint {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wsl-hint-icon {
  font-size: 1.1rem;
}

.wsl-hint strong {
  color: var(--accent-primary);
}

/* ========================================================= */
/* ESTRUTURA DO CONTEÚDO: MODO SPLIT (LADO A LADO) */
/* ========================================================= */
.content-wrapper {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  height: 100%;
  overflow: hidden;
  padding: 14px 18px;
  gap: 16px;
}

/* Modo Split: Canais à Esquerda, Player Fixo à Direita */
body.layout-split .content-wrapper {
  flex-direction: row;
}

body.layout-split .channels-section {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.layout-split .player-sidebar-container {
  width: clamp(320px, 32vw, 460px);
  flex: 0 0 clamp(320px, 32vw, 460px);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ========================================================= */
/* ESTRUTURA DO CONTEÚDO: MODO TOPO FIXO */
/* ========================================================= */
body.layout-top .content-wrapper {
  flex-direction: column;
}

body.layout-top .player-sidebar-container {
  width: 100%;
  flex-shrink: 0;
  max-height: 440px;
}

body.layout-top .player-container {
  max-height: 440px;
}

body.layout-top .video-wrapper {
  max-height: 300px;
}

body.layout-top .channels-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ========================================================= */
/* SEÇÃO DE CANAIS, FILTROS AVANÇADOS E SCROLL INDEPENDENTE */
/* ========================================================= */
.channels-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.count-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

.quick-stats-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-stats-summary strong {
  color: var(--accent-primary);
}

/* Toolbar de Filtros */
.channels-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Controles de Saúde (Health Check) */
.health-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.switch-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.switch-toggle input {
  display: none;
}

.switch-toggle .slider {
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.switch-toggle .slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: all 0.2s ease;
}

.switch-toggle input:checked + .slider {
  background: var(--accent-primary);
}

.switch-toggle input:checked + .slider::before {
  transform: translateX(14px);
  background: #090d16;
}

.health-badge-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.divider {
  color: var(--text-dim);
}

.btn-scan {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-scan:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: scale(1.02);
}

.btn-scan.scanning {
  opacity: 0.6;
  pointer-events: none;
}

/* Ferramentas de Ordenação e Categoria */
.sort-and-cat-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-select-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
}

.toolbar-dropdown {
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.76rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0 8px;
  outline: none;
  cursor: pointer;
}

.toolbar-dropdown option {
  background: #0f172a;
  color: #fff;
}

/* Barra de Progresso de Varredura */
.scan-progress-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
}

.scan-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulsing-spinner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.scan-stats-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 0.72rem;
}

.scan-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.scan-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Filtros de Qualidade */
.quality-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-label-inline {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 2px;
}

.chip-btn {
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.chip-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-primary);
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

/* Badge de Latência nos Cards */
.badge-card-ping {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-card-ping.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-card-ping.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-card-ping.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.channel-card.card-offline {
  opacity: 0.55;
  filter: grayscale(0.4);
}

/* Container de Scroll Independente */
.channels-scroll-container {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.15);
}

/* Carregamento Mais */
.loading-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Pills de Categorias */
.category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.pill-btn {
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--accent-primary);
  color: #090d16;
  border-color: var(--accent-primary);
  font-weight: 700;
}

/* Grade de Canais Flexível e Fluida */
.channels-grid {
  display: grid;
  gap: 10px;
  padding-bottom: 30px;
}

.channels-grid.grid-mode {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.channels-grid.list-mode {
  grid-template-columns: 1fr;
}

/* Card do Canal */
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.channel-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.4);
}

.channel-card.active {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-card-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.channel-card-logo-box img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.channel-card-fav-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.15s ease;
  padding: 3px;
}

.channel-card-fav-btn:hover,
.channel-card-fav-btn.is-fav {
  opacity: 1;
  transform: scale(1.15);
}

.channel-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.channel-card-cat {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 5px;
  border-radius: 4px;
}

.channel-card-res {
  font-size: 0.68rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.channel-card-quick-mpv {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: flex-end;
}

.btn-card-mpv {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-card-mpv:hover {
  color: var(--accent-primary);
}

/* Modo Lista Compacta */
.channels-grid.list-mode .channel-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}

.channels-grid.list-mode .channel-card-logo-box {
  width: 36px;
  height: 36px;
}

.channels-grid.list-mode .channel-card-top {
  gap: 12px;
}

.channels-grid.list-mode .channel-card-quick-mpv {
  border-top: none;
  padding-top: 0;
}

/* ========================================================= */
/* SEÇÃO DO PLAYER (PERSISTENTE E FIXO) */
/* ========================================================= */
.player-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06090f;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

#videoPlayer.ratio-16-9 {
  object-fit: contain;
}

#videoPlayer.ratio-cover {
  object-fit: cover;
}

#videoPlayer.ratio-contain {
  object-fit: contain;
}

#videoPlayer.ratio-4-3 {
  object-fit: contain;
  aspect-ratio: 4 / 3;
}

/* Botão Flutuante de Tela Cheia Nativo (Imune a Anúncios e Popups) */
.floating-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-fullscreen-btn:hover {
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  border-color: #c084fc;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.floating-fullscreen-btn svg {
  width: 14px;
  height: 14px;
}

/* Modo Fullscreen Real e Limpo para o Container do Vídeo e Iframe */
#videoWrapper:fullscreen,
#videoWrapper:-webkit-full-screen,
#videoWrapper:-moz-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoWrapper:fullscreen #embedPlayer,
#videoWrapper:fullscreen #videoPlayer,
#videoWrapper:-webkit-full-screen #embedPlayer,
#videoWrapper:-webkit-full-screen #videoPlayer {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border: none !important;
  background: #000 !important;
}

/* Placeholder Vazio Inicial */
.empty-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #090d16;
  color: var(--text-dim);
  z-index: 5;
  pointer-events: none;
}

.empty-player-placeholder .empty-icon {
  font-size: 2.8rem;
  opacity: 0.7;
}

.empty-player-placeholder p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Visualizador de Áudio (Canais de Rádio / Música) */
.audio-visualizer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95), rgba(9, 13, 22, 0.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 6;
}

.audio-waves {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 50px;
}

.audio-waves .bar {
  width: 6px;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  animation: soundBars 1s ease-in-out infinite alternate;
}

.audio-waves .bar:nth-child(1) { animation-delay: 0.1s; height: 35%; }
.audio-waves .bar:nth-child(2) { animation-delay: 0.3s; height: 80%; }
.audio-waves .bar:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.audio-waves .bar:nth-child(4) { animation-delay: 0.4s; height: 60%; }
.audio-waves .bar:nth-child(5) { animation-delay: 0.15s; height: 40%; }

@keyframes soundBars {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.audio-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.player-status-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
  padding: 16px;
  text-align: center;
}

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

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

.fallback-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-fallback {
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fallback:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-fallback.primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
}

/* Informações do Canal */
.channel-info-bar {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.channel-logo-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.logo-placeholder {
  font-size: 1.4rem;
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

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

.title-row h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-live);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulsing-dot {
  width: 5px;
  height: 5px;
  background: var(--color-live);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.badge-quality {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-engine {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.18);
  color: var(--accent-secondary);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-buffer {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.badge-buffer.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-buffer.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-buffer.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-cat {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.stream-url-text {
  font-size: 0.7rem;
  color: var(--text-dim);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botões de Ação do Player */
.player-action-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.engine-select-container,
.buffer-select-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 0 8px;
  height: 34px;
}

.engine-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.engine-dropdown {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.engine-dropdown option {
  background: #0f172a;
  color: var(--text-main);
  padding: 6px;
}

.btn-ctrl {
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ctrl.primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.btn-ctrl.mini-mpv {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.btn-ctrl.mini-mpv:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-main);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input {
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e293b;
  color: var(--text-main);
  border: 1px solid var(--accent-primary);
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 200;
  animation: toastIn 0.2s ease-out;
}

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

/* Estilos Nossa TV & Scheduler */
.sidebar-hero-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 12px 12px 16px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-hero-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(56, 189, 248, 0.22) 100%);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.sidebar-hero-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(56, 189, 248, 0.25) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.hero-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-icon {
  font-size: 1.5rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.hero-text small {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.badge-active-green {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Scheduler Banner */
.scheduler-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.scheduler-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot-glow {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

.scheduler-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scheduler-main-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.badge-online-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.scheduler-sub-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.acervo-stats-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.acervo-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.acervo-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.acervo-pill.yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.acervo-pill.red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Tier Chips / Filtro de Confiabilidade */
.tier-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-tier-btn {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.chip-tier-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.chip-tier-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

/* Badge de Confiabilidade nos Cards */
.badge-tier-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-tier-pill.stable {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-tier-pill.intermittent {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-tier-pill.dormant {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.btn-sync-now {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sync-now:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.btn-sync-now.syncing .icon {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* Controles e Cards Cinema VOD (TMDB & VidSrc) */
.vod-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.vod-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vod-ctrl-group label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #c084fc;
}

.vod-server-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vod-server-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
}

.vod-server-btn.active {
  background: #9333ea;
  color: #fff;
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
}

.vod-server-btn .ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.vod-server-btn.offline {
  opacity: 0.45;
  border-color: rgba(239, 68, 68, 0.3);
}

.vod-server-btn.offline .ping-dot {
  background: #ef4444;
}

.vod-hero-item.active {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

.badge-rating {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.card-vod .channel-card-logo-box {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
}

.card-vod .channel-card-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-vod .channel-card-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.overview-snippet {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  line-height: 1.35;
}

/* =========================================================================
   SISTEMA DE LOGIN E PERFIL (AUTENTICAÇÃO SEGURA)
   ========================================================================= */

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 20px;
  font-size: 0.76rem;
}

.user-name-text {
  font-weight: 700;
  color: #38bdf8;
}

.logout-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #131b2e;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(147, 51, 234, 0.15);
  padding: 32px 28px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand .brand-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.login-brand .brand-icon svg {
  width: 26px;
  height: 26px;
}

.login-brand h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-brand p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.login-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-form .input-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}

.login-form .input-group input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.login-form .input-group input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
  background: rgba(15, 23, 42, 1);
}

.btn-login {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.35);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.5);
}

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


