/* ================================================================
   OnGrid TV — Design System & Complete Stylesheet
   Plataforma esportiva premium de transmissão IPTV
   ================================================================ */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS — Dark Mode (default)
   --------------------------------------------------------------- */
:root {
  /* Background */
  --bg-primary: #0B0B0F;
  --bg-secondary: #111218;
  --bg-tertiary: #181A23;
  --bg-elevated: #1C1E28;
  --bg-glass: rgba(17, 18, 24, 0.85);

  /* Borders */
  --border-subtle: #1E2030;
  --border-default: #232533;
  --border-strong: #2E3040;

  /* Text */
  --text-primary: #E5E7EB;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --text-inverse: #0B0B0F;

  /* Brand */
  --brand: #9254F8;
  --brand-hover: #A970FF;
  --brand-dim: rgba(146, 84, 248, 0.12);
  --brand-glow: rgba(146, 84, 248, 0.25);

  /* Status */
  --live: #22C55E;
  --live-dim: rgba(34, 197, 94, 0.12);
  --live-glow: rgba(34, 197, 94, 0.2);
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --danger: #EF4444;
  --danger-dim: rgba(239, 68, 68, 0.12);
  --info: #3B82F6;
  --info-dim: rgba(59, 130, 246, 0.12);

  /* Sport colors */
  --sport-football: #22C55E;
  --sport-football-dim: rgba(34, 197, 94, 0.1);
  --sport-nba: #3B82F6;
  --sport-nba-dim: rgba(59, 130, 246, 0.1);
  --sport-ufc: #EF4444;
  --sport-ufc-dim: rgba(239, 68, 68, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --header-height: 56px;
  --max-width: 1400px;
}

/* ---------------------------------------------------------------
   2. LIGHT MODE TOKENS
   --------------------------------------------------------------- */
[data-theme="light"] {
  --bg-primary: #F5F7FB;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0F2F7;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --border-subtle: #E5E7EB;
  --border-default: #D1D5DB;
  --border-strong: #9CA3AF;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);

  --brand-dim: rgba(146, 84, 248, 0.08);
  --live-dim: rgba(34, 197, 94, 0.08);
  --accent-dim: rgba(245, 158, 11, 0.08);
  --danger-dim: rgba(239, 68, 68, 0.08);
}

/* ---------------------------------------------------------------
   3. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 100vh;
  transition: background var(--transition-base), color var(--transition-base);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------------------------------------------------------------
   4. UTILITY CLASSES
   --------------------------------------------------------------- */
.hidden { display: none !important; }
.admin-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-dim { color: var(--text-secondary); }
.text-brand { color: var(--brand); }
.text-live { color: var(--live); }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------
   5. APP LAYOUT
   --------------------------------------------------------------- */
.ongrid-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ongrid-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* ---------------------------------------------------------------
   6. HEADER — Premium Glass
   --------------------------------------------------------------- */
.ongrid-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: var(--header-height);
  padding: 0 20px;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .ongrid-header {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
}

.ongrid-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.ongrid-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.ongrid-logo-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.ongrid-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.ongrid-search {
  position: relative;
  width: 100%;
}

.ongrid-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 0.9rem;
}

.ongrid-search-input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .ongrid-search-input {
  background: var(--bg-tertiary);
  border-color: var(--border-default);
}

.ongrid-search-input::placeholder { color: rgba(255,255,255,.3); }

[data-theme="light"] .ongrid-search-input::placeholder { color: var(--text-tertiary); }

.ongrid-search-input:focus {
  border-color: rgba(146,84,248,.5);
  box-shadow: 0 0 0 3px rgba(146,84,248,.15), 0 0 12px rgba(146,84,248,.1);
  background: rgba(255,255,255,.08);
}

.ongrid-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  position: relative;
}

.ongrid-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.ongrid-header-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.ongrid-header-btn.active {
  background: var(--brand-dim);
  color: var(--brand);
}

.ongrid-auth-btn {
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.provider-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
}

.provider-mark.google {
  color: #fff;
  background: #4285f4;
}

.provider-mark.facebook {
  color: #fff;
  background: #1877f2;
}

.ongrid-auth-btn.login-main {
  background: var(--live);
  color: var(--text-inverse);
  border-color: transparent;
  font-weight: 800;
}

.ongrid-auth-btn.login-main:hover {
  background: #16a34a;
}

.ongrid-login-menu {
  position: relative;
}

.ongrid-login-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 120;
}

.ongrid-login-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ongrid-login-item:hover {
  background: var(--bg-tertiary);
}

.ongrid-auth-btn.logout {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}

.ongrid-auth-btn.logout:hover {
  background: var(--danger-dim);
  border-color: var(--danger);
}

.ongrid-profile-btn {
  width: auto;
  height: 38px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  gap: 8px;
  position: relative;
  z-index: 140;
  cursor: pointer;
}
.ongrid-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 48px;
  min-width: 250px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 260;
}

.ongrid-login-item.logout-item {
  color: var(--danger);
}

.ongrid-login-item.logout-item:hover {
  background: var(--danger-dim);
}

.ongrid-profile-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ongrid-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.ongrid-profile-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 2px;
  max-width: 170px;
}

.ongrid-profile-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.ongrid-profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.user-heart-team-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.ongrid-profile-role {
  font-size: 0.66rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.ongrid-profile-role.is-premium {
  color: #f5c518;
  text-shadow: 0 0 8px rgba(245, 197, 24, 0.6);
  letter-spacing: 0.08em;
}
.ongrid-profile-role.is-admin {
  background: linear-gradient(90deg, #00e676, #00b8d9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 0 6px rgba(0,230,118,0.5));
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover { background: var(--bg-tertiary); }

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { transition: all var(--transition-base); }

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 900px) {
  .ongrid-auth-btn span:not(.provider-mark) {
    display: none;
  }

  .ongrid-auth-btn {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .ongrid-profile-meta {
    display: none;
  }

  .ongrid-profile-btn {
    width: 38px;
    padding: 4px;
  }

  .ongrid-user-dropdown {
    right: 0;
    min-width: 220px;
  }
}

/* ---------------------------------------------------------------
   Profile Modal
   --------------------------------------------------------------- */
.profile-modal-body {
  padding-top: 14px;
}

.profile-card-shell {
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-hero-mark {
  background: linear-gradient(135deg, #7c3aed, #22dd72);
  box-shadow: 0 10px 22px rgba(124,58,237,.18);
}

.profile-birthday-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 107, .18), transparent 30%),
    linear-gradient(135deg, rgba(22, 163, 74, .18), rgba(124, 58, 237, .16));
  border: 1px solid rgba(168,85,247,.32);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.profile-birthday-out.hidden {
  display: none !important;
}

.profile-birthday-out-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-birthday-out-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  flex-shrink: 0;
}

.profile-birthday-out-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-birthday-out-copy strong {
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--text-primary);
}

.profile-birthday-out-copy span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.profile-birthday-out-sparkles {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .95;
  font-size: 1rem;
  animation: sparkleFloat 2.2s ease-in-out infinite;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0); opacity: .88; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.profile-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.profile-hero-info h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-primary);
}

.profile-hero-info p {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-birthday-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(146,84,248,.18), rgba(34,221,114,.12));
  border: 1px solid rgba(146,84,248,.28);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.profile-birthday-banner.hidden {
  display: none !important;
}

.profile-birthday-balloons {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.profile-balloon {
  position: absolute;
  width: 18px;
  height: 22px;
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset -2px -4px 0 rgba(0,0,0,.08), 0 8px 18px rgba(0,0,0,.18);
  animation: balloonFloat 2.8s ease-in-out infinite;
}

.profile-balloon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.36);
}

.profile-balloon.balloon-pink { left: 0; top: 3px; background: linear-gradient(180deg, #ff7ab6, #ff4d8d); animation-delay: 0s; }
.profile-balloon.balloon-blue { left: 12px; top: 0; background: linear-gradient(180deg, #6cc7ff, #3a7cff); animation-delay: .4s; }
.profile-balloon.balloon-gold { left: 24px; top: 4px; background: linear-gradient(180deg, #ffd76c, #ffaf2d); animation-delay: .8s; }

.profile-birthday-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-birthday-copy strong {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-birthday-copy span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.35;
}

.profile-hero-avatar.is-birthday {
  animation: birthdayPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(146,84,248,.22), 0 0 26px rgba(146,84,248,.16);
}

@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes birthdayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.profile-team-input-wrap {
  position: relative;
}

.profile-team-input-wrap input {
  padding-left: 42px;
}

.profile-team-preview {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.profile-field textarea {
  resize: vertical;
  min-height: 96px;
}

.profile-field input::placeholder,
.profile-field textarea::placeholder {
  color: var(--text-tertiary);
}

.profile-field input:focus,
.profile-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
  background: var(--bg-elevated);
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-actions-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------
   Comunidade OnGrid — salas, chat e perfis premium
   --------------------------------------------------------------- */
.community-shell {
  display: grid;
  grid-template-columns: minmax(240px, 270px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.community-sidebar,
.community-center {
  min-width: 0;
}

.community-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-side-card {
  border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--border-default));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 94%, transparent), color-mix(in srgb, var(--bg-tertiary) 98%, transparent)),
    var(--bg-secondary);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.community-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--border-subtle);
}

.community-side-head strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.community-side-head span {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.community-action-btn {
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border-default));
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-tertiary));
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
}

.community-room-list,
.community-member-list,
.community-highlights,
.community-room-summary,
.community-room-game {
  padding: 9px;
}

.community-chat-search-wrap {
  padding: 11px 12px 0;
}

.community-chat-search {
  width: 100%;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-tertiary) 98%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.community-chat-search::placeholder {
  color: var(--text-tertiary);
}

.community-chat-search:focus {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border-default));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.community-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px 12px;
}

.community-chat-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-tertiary) 88%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.community-chat-item:hover,
.community-chat-item.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border-default));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent), 0 12px 26px rgba(0,0,0,.16);
}

.community-chat-item.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg-tertiary)), color-mix(in srgb, var(--brand) 10%, var(--bg-elevated))),
    var(--bg-tertiary);
}

.community-chat-item.is-live {
  border-color: color-mix(in srgb, var(--success) 42%, var(--border-default));
}

.community-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--bg-elevated)), color-mix(in srgb, var(--brand) 8%, var(--bg-tertiary)));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border-default));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.community-chat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-chat-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.community-chat-topline strong {
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-chat-time {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.community-chat-preview {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-chat-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 44px;
}

.community-chat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.community-chat-pill.is-live {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border-subtle));
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, var(--bg-tertiary));
}

.community-chat-empty {
  padding: 20px 16px 18px;
}

.community-room-list,
.community-member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-room-list.compact {
  gap: 7px;
}

.community-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.community-category {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-tertiary) 92%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  border-radius: 20px;
  overflow: hidden;
}

.community-category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.community-category-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.community-category-toggle-copy strong {
  font-size: 0.84rem;
  color: var(--text-primary);
}

.community-category-toggle-copy small {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.community-category-counter {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border-subtle));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.community-category-body {
  padding: 0 12px 12px;
}

.community-category.is-collapsed .community-category-body {
  display: none;
}

.community-room-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-tertiary) 92%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  text-align: left;
}

.community-room-item:hover,
.community-room-item.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border-default));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.community-room-item.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--bg-tertiary)), color-mix(in srgb, var(--brand) 8%, var(--bg-elevated))),
    var(--bg-tertiary);
}

.community-room-item.is-live {
  border-color: color-mix(in srgb, var(--success) 45%, var(--border-subtle));
}

.community-room-item.is-archived {
  opacity: 0.72;
}

.community-room-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--bg-elevated)), color-mix(in srgb, var(--brand) 8%, var(--bg-tertiary)));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border-default));
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.community-room-icon.has-image,
.community-summary-title .icon.has-image {
  background: transparent;
}

.community-room-thumb,
.community-summary-title .icon img,
.community-admin-room-row .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-room-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.community-room-mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.community-room-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border-default));
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-elevated));
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.community-room-copy {
  min-width: 0;
}

.community-room-copy strong,
.community-room-copy span {
  display: block;
}

.community-room-copy strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-room-copy span {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-room-stats {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  min-width: 40px;
}

.community-room-stats strong {
  font-size: 0.78rem;
  color: var(--text-primary);
}

.community-room-stats strong {
  color: var(--text-primary);
  font-size: 0.8rem;
}

.community-sidebar-right {
  display: none;
}

.community-details-body {
  padding-top: 6px;
}

.community-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.community-details-card {
  min-height: 100%;
}

.community-details-card-wide {
  grid-column: 1 / -1;
}

.community-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.community-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.community-chip:hover,
.community-chip.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border-default));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 15%, transparent);
}

.community-chip strong {
  font-size: 0.74rem;
  white-space: nowrap;
}

.community-chip em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.community-room-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  margin-bottom: 0;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--border-default));
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 22%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg-secondary) 96%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.community-room-hero-main {
  min-width: 0;
}

.community-room-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, var(--bg-tertiary));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.community-room-hero h3 {
  margin: 8px 0 4px;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.community-room-hero p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.community-room-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-room-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.community-room-hero-side {
  width: min(210px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-room-mini-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-tertiary) 96%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
}

.community-room-mini-card .label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.community-room-mini-card strong {
  display: block;
  font-size: 0.88rem;
}

.community-typing {
  margin: 8px 0 10px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.community-messages.livechat-messages {
  height: auto;
  min-height: 610px;
  max-height: calc(100vh - 290px);
  padding: 10px 4px 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 94%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  border-radius: 18px;
}

.community-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-tertiary) 94%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  width: min(92%, 820px);
}

.community-message.is-admin {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border-subtle));
}

.community-message.mine {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--bg-tertiary)), color-mix(in srgb, var(--brand) 6%, var(--bg-elevated)));
  margin-left: auto;
  border-top-right-radius: 6px;
  box-shadow: 0 10px 22px rgba(146,84,248,.14);
}

.community-message.other {
  margin-right: auto;
  border-top-left-radius: 6px;
}

.community-message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg-elevated)), color-mix(in srgb, var(--brand) 8%, var(--bg-tertiary)));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border-default));
}

.community-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-message-avatar span {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
}

.community-message-body {
  min-width: 0;
}

.community-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.community-message-name-row strong {
  font-size: 0.86rem;
}

.community-message-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.community-message-time {
  color: var(--text-tertiary);
  font-size: 0.68rem;
}

.community-message-reply-btn,
.community-message-delete-btn,
.community-message-react-btn,
.community-reply-clear,
.community-reaction-pill,
.community-reaction-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 999px;
  cursor: pointer;
}

.community-message-reply-btn {
  padding: 6px 10px;
  font-size: 0.68rem;
}

.community-message-delete-btn {
  padding: 6px 10px;
  font-size: 0.68rem;
  color: #fca5a5;
  border-color: color-mix(in srgb, #ef4444 35%, var(--border-subtle));
  background: color-mix(in srgb, #ef4444 10%, var(--bg-tertiary));
}

.community-message-react-btn {
  padding: 6px 11px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  border-color: color-mix(in srgb, var(--brand) 52%, var(--border-subtle));
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 42%, var(--bg-tertiary)),
    color-mix(in srgb, var(--brand) 18%, var(--bg-tertiary))
  );
  box-shadow: 0 8px 18px rgba(146, 84, 248, .16);
}

.community-message-delete-btn:hover {
  background: color-mix(in srgb, #ef4444 18%, var(--bg-tertiary));
}

.community-message-reply {
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-tertiary));
  border-radius: 12px;
}

.community-message-reply .label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
}

.community-message-reply strong {
  display: block;
  font-size: 0.78rem;
}

.community-message-reply p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.community-message-text {
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.community-message-reactions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

.community-reaction-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.community-reaction-pill.is-mine {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand) 48%, var(--border-subtle));
  background: color-mix(in srgb, var(--brand) 22%, var(--bg-tertiary));
}

.community-reaction-pill:hover,
.community-message-reply-btn:hover,
.community-message-react-btn:hover,
.community-message-delete-btn:hover,
.community-reaction-btn:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border-subtle));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
}

.community-message-react-btn:hover {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 56%, var(--bg-tertiary)),
    color-mix(in srgb, var(--brand) 28%, var(--bg-tertiary))
  );
}

.community-message.is-reaction-pending {
  outline: 1px solid color-mix(in srgb, var(--brand) 36%, transparent);
}

.community-reaction-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.community-reaction-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border-subtle));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-secondary));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}

.community-reaction-picker.hidden {
  display: none;
}

.community-reaction-option {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.community-reaction-option img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.community-reaction-emoji {
  font-size: 1rem;
  line-height: 1;
}

.community-team-reaction-fallback {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.community-reaction-option:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.community-reaction-option.is-selected {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  background: color-mix(in srgb, var(--brand) 22%, rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 20%, transparent);
}

.community-reaction-option.is-team {
  background: color-mix(in srgb, var(--brand) 10%, rgba(255,255,255,.04));
}

.community-reaction-option.is-team.is-selected {
  background: color-mix(in srgb, var(--brand) 28%, rgba(255,255,255,.04));
}

.community-composer {
  margin-top: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-secondary) 92%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
  position: sticky;
  bottom: 10px;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.community-reply-preview {
  margin-bottom: 10px;
}

.community-reply-preview-card {
  border-radius: 14px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-tertiary));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border-subtle));
}

.community-reply-preview-card span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
}

.community-reply-preview-card strong {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
}

.community-reply-preview-card p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.community-reply-clear {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.community-input-row {
  border-top: 0;
  padding: 0;
  background: transparent;
}

.community-member-group + .community-member-group {
  margin-top: 10px;
}

.community-member-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.community-member-group-title span {
  color: var(--brand);
}

.community-member-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  text-align: left;
  cursor: pointer;
}

.community-member-row.compact {
  padding: 8px 10px;
}

.community-member-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-member-copy strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.community-member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.community-member-badges em {
  font-style: normal;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.community-member-badges em.status.online {
  color: var(--success);
}

.community-member-badges em.status.offline {
  color: var(--text-tertiary);
}

.community-member-copy small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.community-member-copy small img {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.community-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.community-summary-title .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--bg-elevated)), color-mix(in srgb, var(--brand) 6%, var(--bg-tertiary)));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border-default));
  overflow: hidden;
}

.community-summary-title strong {
  display: block;
  font-size: 0.9rem;
}

.community-summary-title small {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.community-room-summary p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.community-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.community-summary-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.community-game-card {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--bg-tertiary)), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
}

.community-icon-uploader {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.community-icon-preview {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--bg-elevated)), color-mix(in srgb, var(--brand) 6%, var(--bg-tertiary)));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border-default));
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.community-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-icon-preview span {
  font-size: 1.35rem;
  font-weight: 900;
}

.community-icon-uploader-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-icon-uploader-copy input[type="file"] {
  max-width: 100%;
}

.community-icon-uploader-copy small {
  color: var(--text-secondary);
  line-height: 1.35;
}

.community-game-card.is-live {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border-subtle));
}

.community-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.community-game-top span,
.community-game-top strong {
  font-size: 0.72rem;
}

.community-game-top strong {
  color: var(--brand);
}

.community-game-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.community-game-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.community-game-team.right {
  justify-content: flex-end;
}

.community-game-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.community-game-team strong {
  font-size: 0.82rem;
}

.community-game-center {
  text-align: center;
}

.community-game-center .time {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.community-game-center small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.community-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-highlight-card {
  padding: 12px 13px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

.community-highlight-card strong {
  display: block;
  font-size: 0.78rem;
}

.community-highlight-card p {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.profile-modal-panel {
  overflow: hidden;
}

.profile-modal-hero {
  position: relative;
  margin-right: 12px;
}

.profile-modal-banner {
  position: absolute;
  inset: -18px -18px auto -18px;
  height: 148px;
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.5), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(34,197,94,.28), transparent 28%),
    linear-gradient(135deg, rgba(17,24,39,.95), rgba(31,41,55,.78));
  border-bottom: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.profile-modal-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 102px;
}

.profile-modal-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  overflow: hidden;
}

.profile-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-modal-title-row,
.profile-modal-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-modal-title-row h2 {
  margin: 0;
}

.profile-modal-title-row span,
.profile-modal-subrow span {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  font-size: 0.72rem;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.profile-metric-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-tertiary) 95%, transparent), color-mix(in srgb, var(--bg-elevated) 100%, transparent));
}

.profile-metric-card .label {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.profile-metric-card strong {
  font-size: 1rem;
}

.profile-form-grid .profile-field span {
  font-size: 0.74rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.community-admin-body {
  overflow: hidden;
}

.community-admin-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}

.community-admin-list-wrap,
.community-admin-form-wrap {
  min-width: 0;
}

.community-admin-section-title {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.community-admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.community-admin-room-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
}

.community-admin-room-row.is-selected {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border-default));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.community-admin-room-row .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
}

.community-admin-room-row .copy {
  min-width: 0;
}

.community-admin-room-row .copy strong,
.community-admin-room-row .copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-admin-room-row .copy strong {
  color: var(--text-primary);
  font-size: 0.82rem;
}

.community-admin-room-row .copy small,
.community-admin-room-row .flags {
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.community-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.role-admin { color: #f97316; }
.role-moderator { color: #38bdf8; }
.role-premium { color: #a855f7; }
.role-partner { color: #14b8a6; }
.role-og { color: #fbbf24; }
.role-member { color: #94a3b8; }

.community-launcher {
  position: fixed;
  right: 74px;
  bottom: 34px;
  z-index: 1200;
  width: 66px;
  height: 66px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--border-default));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--bg-secondary)), color-mix(in srgb, var(--bg-secondary) 96%, transparent));
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, visibility .18s ease;
}

.community-launcher:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 50px rgba(0,0,0,.36), 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.community-launcher.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.community-launcher.is-active {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border-default));
  box-shadow: 0 24px 52px rgba(0,0,0,.34), 0 0 30px color-mix(in srgb, var(--brand) 20%, transparent);
}

.community-launcher-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, var(--bg-elevated)), color-mix(in srgb, var(--brand) 10%, var(--bg-tertiary)));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border-default));
  font-size: 1.1rem;
  flex-shrink: 0;
}

.community-launcher-copy {
  display: none;
}

.community-launcher-copy strong {
  font-size: 0.78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.community-launcher-copy small {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.community-launcher-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 18%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.chat-bubble {
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 8px 10px;
  max-width: 82%;
}

.chat-bubble.other {
  align-self: flex-start;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-tertiary));
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border-default));
}

.chat-bubble.mine .chat-head {
  justify-content: flex-end;
}

.chat-bubble.mine .chat-time {
  margin-left: 0;
  margin-right: 0;
}

.chat-bubble.mine .chat-text {
  text-align: right;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-user {
  font-size: 0.74rem;
  font-weight: 700;
}

.chat-time {
  margin-left: auto;
  font-size: 0.66rem;
  color: var(--text-tertiary);
}

.chat-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.livechat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border-subtle);
}

.livechat-input-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0 12px;
  outline: none;
}

.livechat-input-row input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

@media (max-width: 1180px) {
  .community-shell {
    grid-template-columns: 1fr;
  }

  .community-room-hero {
    flex-direction: column;
  }

  .community-room-hero-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .community-room-mini-card {
    flex: 1 1 180px;
  }

  .profile-metrics-grid,
  .community-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.community-sidebar-right {
  display: none;
}

.community-details-body {
  padding-top: 6px;
}

.community-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.community-details-card {
  min-height: 100%;
}

.community-details-card-wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .community-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .community-room-hero {
    display: none;
  }

  .community-sidebar-left {
    order: 1;
  }

  .community-center {
    order: 0;
  }

  .community-sidebar-right {
    display: none;
  }

  .community-side-card {
    border-radius: 14px;
  }

  .community-details-grid {
    grid-template-columns: 1fr;
  }

  .community-details-card-wide {
    grid-column: auto;
  }

  .community-side-head {
    padding: 12px 12px 10px;
  }

  .community-nav-rail {
    padding: 10px 12px 12px;
  }

  .community-category-list {
    gap: 8px;
    padding: 10px;
  }

  .community-category {
    border-radius: 14px;
  }

  .community-category-toggle {
    padding: 11px 12px;
  }

  .community-category-body {
    padding: 0 0 10px;
  }

  .community-room-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .community-room-item {
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
    scroll-snap-align: start;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .community-room-copy strong {
    font-size: 0.84rem;
  }

  .community-room-copy span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .community-room-stats {
    min-width: 42px;
  }

  .community-room-hero {
    flex-direction: column;
  }

  .community-messages.livechat-messages {
    min-height: 52vh;
    max-height: none;
  }

.community-composer {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  margin-top: 8px;
  backdrop-filter: blur(14px);
}

.community-input-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.community-input-row::before {
  content: "+";
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border-default));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--bg-elevated)), color-mix(in srgb, var(--bg-secondary) 94%, transparent));
  color: var(--text-primary);
  font-size: 1.05rem;
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand) 12%, transparent);
}

.community-input-row input {
  min-width: 0;
}

.community-input-row .btn {
  min-width: 90px;
  border-radius: 14px;
}

  .community-admin-room-row,
  .community-message {
    grid-template-columns: 1fr;
  }

  .community-room-stats,
  .community-admin-room-row .flags {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .community-message-head {
    flex-direction: column;
  }

  .community-message-actions {
    justify-content: flex-start;
  }

  .profile-metrics-grid,
  .community-admin-grid {
    grid-template-columns: 1fr;
  }

  .community-messages.livechat-messages {
    min-height: 52vh;
    max-height: none;
  }

  .community-launcher {
    right: auto;
    left: 14px;
    bottom: 84px;
    width: 58px;
    height: 58px;
  }

  .community-launcher-copy small { display: none; }
}

@media (max-width: 760px) {
  body.community-mode .fab-back-to-top {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SPORT BAR — Navigation premium estilo FotMob
   ═══════════════════════════════════════════════════════════════ */
/* ── SPORT BAR: horizontal no mobile, sidebar no desktop ── */
.sport-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

[data-theme="light"] .sport-bar {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
}

/* Desktop: nav horizontal no topo (sem sidebar lateral) */
@media (min-width: 900px) {
  .sport-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    margin: 0 auto 24px;
    max-width: max-content;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
  }

  [data-theme="light"] .sport-bar {
    background: var(--bg-secondary);
    border-color: var(--border-subtle);
  }

  /* Conteúdo ocupa toda a largura — sem padding-left de sidebar */
  .ongrid-main {
    padding-left: var(--space-lg);
  }
}

.sport-tab {
  flex: unset;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 13px;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.38);
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
}

/* Top nav horizontal — centraliza e mantém compacto */
@media (min-width: 900px) {
  .sport-tab {
    justify-content: center;
    padding: 10px 18px;
    width: auto;
  }
}

[data-theme="light"] .sport-tab {
  color: var(--text-tertiary);
}

.sport-tab:hover {
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
}

[data-theme="light"] .sport-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.sport-tab.active {
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 8px rgba(0,0,0,.2);
}

[data-theme="light"] .sport-tab.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

/* Sport-specific active glow */
.sport-tab[data-sport="football"].active {
  background: rgba(34,197,94,.12);
  color: #4ade80;
  box-shadow:
    0 0 0 1px rgba(34,197,94,.22),
    0 4px 20px rgba(34,197,94,.08),
    inset 0 1px 0 rgba(34,197,94,.1);
}

.sport-tab[data-sport="nba"].active {
  background: rgba(59,130,246,.12);
  color: #60a5fa;
  box-shadow:
    0 0 0 1px rgba(59,130,246,.22),
    0 4px 20px rgba(59,130,246,.08),
    inset 0 1px 0 rgba(59,130,246,.1);
}

.sport-tab[data-sport="ufc"].active {
  background: rgba(239,68,68,.12);
  color: #f87171;
  box-shadow:
    0 0 0 1px rgba(239,68,68,.22),
    0 4px 20px rgba(239,68,68,.08),
    inset 0 1px 0 rgba(239,68,68,.1);
}
.sport-tab[data-sport="wc2026"].active {
  background: rgba(250,204,21,.12);
  color: #facc15;
  box-shadow:
    0 0 0 1px rgba(250,204,21,.24),
    0 4px 20px rgba(250,204,21,.08),
    inset 0 1px 0 rgba(250,204,21,.1);
}
.sport-tab[data-sport="ongrid-live"].active {
  background: rgba(0,230,118,.12);
  color: #00e676;
  box-shadow:
    0 0 0 1px rgba(0,230,118,.24),
    0 4px 20px rgba(0,230,118,.08),
    inset 0 1px 0 rgba(0,230,118,.1);
}
[data-theme="light"] .sport-tab[data-sport="ongrid-live"].active {
  background: rgba(0,200,83,.1);
  color: #00a152;
  box-shadow: 0 0 0 1px rgba(0,200,83,.2), var(--shadow-sm);
}

.sport-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.sport-tab-icon-img-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.sport-tab-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.sport-tab-icon-img.icon-light { display: none; }
[data-theme="light"] .sport-tab-icon-img.icon-dark { display: none; }
[data-theme="light"] .sport-tab-icon-img.icon-light { display: block; }

.sport-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 900;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.4);
  transition: all 0.2s;
}

.sport-tab.active .sport-tab-badge {
  background: rgba(255,255,255,.12);
  color: currentColor;
  opacity: .85;
}

/* ═══════════════════════════════════════════════════════════════
   SUB-NAVIGATION — Editorial, limpa, esportiva
   ═══════════════════════════════════════════════════════════════ */
.sub-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar { display: none; }

[data-theme="light"] .sub-nav {
  border-bottom-color: var(--border-subtle);
}

.sub-nav-tab {
  position: relative;
  padding: 12px 18px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  transition: color 0.18s ease;
  letter-spacing: .01em;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="light"] .sub-nav-tab {
  color: var(--text-tertiary);
}

.sub-nav-tab:hover {
  color: rgba(255,255,255,.7);
}

[data-theme="light"] .sub-nav-tab:hover {
  color: var(--text-secondary);
}

.sub-nav-tab.active {
  color: #fff;
  font-weight: 700;
}

[data-theme="light"] .sub-nav-tab.active {
  color: var(--text-primary);
}

.sub-nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
}

.sub-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------------------------------------------------------------
   9. FILTER BAR — Unified compact container
   --------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

/* Filtros no topo (lado direito da sub-nav) */
.filter-bar.filter-bar-top {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  flex-wrap: nowrap;
  gap: 8px;
}
.filter-bar.filter-bar-top .filter-select {
  min-width: 150px;
  height: 34px;
}

.filter-bar .filter-select {
  height: 32px;
  padding: 0 28px 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 130px;
}

.filter-bar .filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-dim);
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 32px 0 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M3 4.5l3 3 3-3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

.filter-select:hover { border-color: var(--border-strong); }
.filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

/* ---------------------------------------------------------------
   10. CONTROL BAR — Premium toolbar
   --------------------------------------------------------------- */
.control-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: space-between;
}

.control-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.control-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.date-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.date-nav-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.date-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.date-strip {
  display: inline-flex;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.date-month-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
}

.date-chip {
  position: relative;
  min-width: 46px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px 6px;
  line-height: 1;
  transition: all var(--transition-fast);
  overflow: hidden;
}
.date-chip:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.date-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #0b0f1a;
}
.date-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.date-chip-day {
  font-size: 0.9rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}
.date-chip-week {
  margin-top: 2px;
  font-size: 0.62rem;
  text-transform: lowercase;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* ── Estado "pendente" (clicado mas ainda não carregou) ── */
.date-chip--pending {
  /* Pulso suave pra indicar que algo vai acontecer */
  animation: dateChipPulse 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 0 2px rgba(146, 84, 248, 0.35);
}
@keyframes dateChipPulse {
  from { box-shadow: 0 0 0 2px rgba(146, 84, 248, 0.30); }
  to   { box-shadow: 0 0 0 4px rgba(146, 84, 248, 0.55); }
}

/* Barra de progresso na base do chip pendente — preenche em 500ms */
.date-chip-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c4a3ff, #9254F8);
  border-radius: 0 0 9px 9px;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(146, 84, 248, 0.6);
  display: none;
}
.date-chip--pending .date-chip-progress {
  display: block;
}
@keyframes dateChipFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Overlay de loading quando data tá carregando ── */
body.is-date-loading .date-strip-wrap,
body.is-date-loading .mobile-date-strip {
  pointer-events: none;
  opacity: 0.8;
}
body.is-date-loading .games-section,
body.is-date-loading #footballHeader,
body.is-date-loading [data-section="football"] {
  position: relative;
}
body.is-date-loading .games-section::before,
body.is-date-loading [data-section="football"]::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--brand) 25%,
    var(--brand-hover) 50%,
    var(--brand) 75%,
    transparent 100%);
  background-size: 200% 100%;
  animation: dateLoadingBar 1.2s linear infinite;
  z-index: 9998;
  pointer-events: none;
}
@keyframes dateLoadingBar {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

.control-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;  /* empurra pra direita, alinhado com hero */
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
}

/* Admin: calendário em linha própria para não colidir com contador/botões */
@media (min-width: 901px) {
  body.admin-date-layout .control-bar.football-control {
    align-items: flex-start;
  }
  body.admin-date-layout .control-bar.football-control .control-bar-left {
    order: 1;
  }
  body.admin-date-layout .control-bar.football-control .control-bar-right {
    order: 2;
    margin-left: auto;
  }
  body.admin-date-layout .control-bar.football-control .control-bar-center {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 8px 0 0 0;
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .date-month-label {
    min-width: 96px;
    font-size: 0.7rem;
  }
}

/* Modo compacto para membros (toolbar superior organizada) */
body.member-compact-controls .control-bar {
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
body.member-compact-controls .control-bar-left {
  gap: 8px;
}
body.member-compact-controls .control-bar-center {
  margin: 0 auto;
  justify-content: center;
}
body.member-compact-controls .control-bar-right {
  margin-left: 0;
  gap: 8px;
}
body.member-compact-controls .filter-bar.filter-bar-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.member-compact-controls .filter-bar.filter-bar-inline .filter-select {
  min-width: 158px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.76rem;
}

/* Oculta título duplicado de data na aba Jogos (data já no calendário) */
#tab-jogos .day-section-header {
  display: none;
}

/* No mobile: jogos sem atalhos de exportar/data */
@media (max-width: 768px) {
  .control-bar-mobile-actions .bottom-sheet-trigger[data-sheet="exportar"],
  .control-bar-mobile-actions .bottom-sheet-trigger[data-sheet="calendario"] {
    display: none !important;
  }
  .control-bar-mobile-actions .bottom-sheet-trigger[data-sheet="filtros"] {
    flex: 1 1 100%;
  }
}

/* Para membros, remove o título duplicado de data na seção */
body.member-compact-controls .day-section-header {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   SEGMENTED CONTROL — Premium navigation
   ═══════════════════════════════════════════════════════════════ */
.segmented-control {
  display: inline-flex;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .segmented-control {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
}

.segment-btn {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  transition: all 0.18s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
  letter-spacing: .01em;
}

[data-theme="light"] .segment-btn {
  color: var(--text-tertiary);
}

.segment-btn:hover {
  color: rgba(255,255,255,.75);
}

[data-theme="light"] .segment-btn:hover {
  color: var(--text-secondary);
}

.segment-btn.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.07);
}

[data-theme="light"] .segment-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Botão AO VIVO ─────────────────────────────────────────── */
.segment-btn-live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-tertiary);
}
.segment-btn-live.active,
.segment-btn-live:has(.live-count-badge:not([style*="none"])) {
  color: var(--live);
}
.live-dot-btn {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity .3s;
}
.segment-btn-live.active .live-dot-btn,
.segment-btn-live:has(.live-count-badge:not([style*="none"])) .live-dot-btn {
  opacity: 1;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.live-count-badge {
  background: var(--live);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}
/* Aba AO VIVO ativa: fundo esverdeado sutil */
.segment-btn-live.active {
  background: rgba(34,197,94,.12);
  color: var(--live);
  box-shadow: 0 0 0 1px rgba(34,197,94,.25);
}

/* Game count badge */
.game-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--brand-dim);
  color: var(--brand);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  border: 1px solid var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 0 16px var(--brand-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-sm { height: 30px; padding: 0 10px; font-size: 0.75rem; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 0.88rem; }

.btn-icon {
  width: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.date-input {
  height: 36px;
  padding: 0 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.date-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.success {
  background: var(--live-dim);
  color: var(--live);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.loading {
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid rgba(146, 84, 248, 0.2);
}

.status-badge.error {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---------------------------------------------------------------
   11. DAY SECTION HEADER
   --------------------------------------------------------------- */
.day-section {
  margin-bottom: var(--space-xl);
}

.day-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.day-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.day-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--brand-dim);
  color: var(--brand);
}

/* ---------------------------------------------------------------
   PREMIUM HOME — Visual overhaul v33
   Plataforma esportiva cinematográfica
   --------------------------------------------------------------- */

/* ── Ambient background — atmosfera de estádio ───────────────── */
.ongrid-app {
  background:
    /* Holofote roxo esquerdo */
    radial-gradient(ellipse 70vw 60vh at 0% 0%, rgba(99,51,220,.09) 0%, transparent 55%),
    /* Holofote azul direito */
    radial-gradient(ellipse 65vw 55vh at 100% 20%, rgba(37,99,235,.07) 0%, transparent 55%),
    /* Grama no fundo inferior */
    radial-gradient(ellipse 80vw 40vh at 50% 110%, rgba(34,197,94,.04) 0%, transparent 50%),
    /* Base */
    var(--bg-primary);
  background-attachment: fixed;
}

[data-theme="light"] .ongrid-app {
  background:
    radial-gradient(ellipse 70vw 50vh at 0% 0%, rgba(124,58,237,.04) 0%, transparent 55%),
    radial-gradient(ellipse 60vw 45vh at 100% 15%, rgba(59,130,246,.03) 0%, transparent 50%),
    var(--bg-primary);
  background-attachment: fixed;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM HOME — PLATAFORMA ESPORTIVA CINEMATOGRÁFICA
   ═══════════════════════════════════════════════════════════════ */
.premium-home {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════
   CINEMATIC HERO — Estádio, luzes, evento em destaque
   ══════════════════════════════════════════════════════ */
.cinematic-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 36px;

  /* Fundo: noite de jogo */
  background:
    /* Grão cinematográfico */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    /* Grama do campo — linha verde tênue no centro */
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(34,197,94,.07) 0%, transparent 70%),
    /* Luz lateral esquerda — azul/violeta */
    radial-gradient(ellipse 90% 160% at -8% 60%, rgba(99,51,220,.45) 0%, transparent 55%),
    /* Luz lateral direita — azul elétrico */
    radial-gradient(ellipse 90% 160% at 108% 60%, rgba(37,99,235,.38) 0%, transparent 55%),
    /* Holofote central — branco frio */
    radial-gradient(ellipse 60% 80% at 50% -20%, rgba(255,255,255,.04) 0%, transparent 55%),
    /* Base escura noturna */
    linear-gradient(180deg, #0a0915 0%, #0d0b18 50%, #0c0b15 100%);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 24px 80px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(34,197,94,.04);

  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 440px;
  justify-content: space-between;
}

/* Borda superior colorida */
.cinematic-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(99,51,220,.8) 0%,
    rgba(146,84,248,1) 30%,
    rgba(59,130,246,.9) 70%,
    rgba(37,99,235,.6) 100%);
  z-index: 2;
}

/* Linha de campo no rodapé */
.cinematic-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.15), transparent);
  z-index: 1;
}

/* ── Luzes de estádio (spotlight beams) ───────────────────── */
.ch-stadium-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ch-light {
  position: absolute;
  border-radius: 0 0 50% 50%;
  filter: blur(60px);
  opacity: 0;
  animation: lightFade 12s ease-in-out infinite;
}

.ch-light-1 {
  width: 280px; height: 400px;
  top: -150px; left: -60px;
  background: radial-gradient(ellipse, rgba(99,51,220,.22) 0%, transparent 70%);
  animation-delay: 0s;
}

.ch-light-2 {
  width: 360px; height: 500px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,255,255,.05) 0%, transparent 65%);
  animation-delay: 3s;
}

.ch-light-3 {
  width: 280px; height: 400px;
  top: -150px; right: -60px;
  background: radial-gradient(ellipse, rgba(37,99,235,.22) 0%, transparent 70%);
  animation-delay: 6s;
}

@keyframes lightFade {
  0%, 100% { opacity: .5; transform: scaleX(1); }
  50%       { opacity: 1; transform: scaleX(1.08); }
}

/* ── Topbar do hero ───────────────────────────────────────── */
.ch-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ch-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.ch-platform-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: livePulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Counters no hero ─────────────────────────────────────── */
.ch-counters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.premium-counter {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .67rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.premium-counter:first-child {
  background: rgba(146,84,248,.18);
  border-color: rgba(146,84,248,.35);
  color: #c4b5fd;
}

.premium-counter:nth-child(2) {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.3);
  color: #86efac;
}

.premium-counter:nth-child(3) {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.25);
  color: #fcd34d;
}

/* ── Stage (container do evento) ─────────────────────────── */
.ch-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Loading state */
.ch-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  font-weight: 500;
  padding: 40px 0;
  justify-content: center;
}

.ch-loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Subtitle do hero ─────────────────────────────────────── */
.ch-subtitle {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.3);
  font-size: .72rem;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
  letter-spacing: .02em;
}

/* ══════════════════════════════════════════════════════
   FEATURED EVENT — Poster de partida cinematográfico
   ══════════════════════════════════════════════════════ */
.fe-match {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.fe-match:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Topo: liga + badge */
.fe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fe-league-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.fe-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.35);
  border-radius: 999px;
  padding: 4px 12px 4px 8px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #86efac;
}

.fe-live-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 1.3s ease-in-out infinite;
  flex-shrink: 0;
}

.fe-upcoming-tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Confronto principal */
.fe-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.fe-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fe-side--home { align-items: flex-start; text-align: left; }
.fe-side--away { align-items: flex-end;   text-align: right; }

/* Escudo / iniciais */
.fe-crest {
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 4px 24px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* Nome do time — ENORME */
.fe-team-name {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

[data-theme="light"] .fe-team-name {
  color: var(--text-primary);
}

/* Centro: tempo/horário */
.fe-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.fe-time-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 40px rgba(146,84,248,.4);
}

[data-theme="light"] .fe-time-num {
  color: var(--text-primary);
}

.fe-live-time {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #22c55e;
  animation: livePulse 1.8s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(34,197,94,.5);
  line-height: 1;
}

.fe-minute {
  font-size: 2.2rem;
  font-weight: 900;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  text-shadow: 0 0 30px rgba(34,197,94,.4);
  line-height: 1;
  animation: livePulse 2s ease-in-out infinite;
}

.fe-vs {
  font-size: .65rem;
  font-weight: 800;
  color: rgba(255,255,255,.2);
  letter-spacing: .05em;
}

.fe-tz {
  font-size: .58rem;
  color: rgba(255,255,255,.25);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Estado LIVE no fe-match */
.fe-match--live .fe-crest {
  border-color: rgba(34,197,94,.35);
  box-shadow:
    0 0 0 1px rgba(34,197,94,.12),
    0 4px 24px rgba(0,0,0,.3),
    0 0 32px rgba(34,197,94,.08),
    inset 0 1px 0 rgba(255,255,255,.1);
}

/* Rodapé: canais + CTA */
.fe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.fe-channels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fe-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fe-cta-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16,1,.3,1);
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(146,84,248,.35);
}

.fe-cta-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(146,84,248,.5);
}

.fe-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.25);
  font-size: .85rem;
  padding: 40px 0;
}

.fe-empty-icon { font-size: 2rem; opacity: .4; }

/* Legacy compat */
.featured-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: livePulse 1.4s ease-in-out infinite;
  margin-right: 5px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   EDITORIAL HERO — Carousel premium com curadoria admin
   ══════════════════════════════════════════════════════ */

.editorial-hero {
  position: relative;
  /* Sem border-radius lateral — ocupa toda a largura do content */
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  margin-bottom: 0;
  /* Aspect ratio: 16:6 — wide cinematográfico */
  aspect-ratio: 16 / 6;
  min-height: 300px;
  max-height: 500px;
  background: #0a0912;
  isolation: isolate;
  /* Sangra além do padding direito do .ongrid-main */
  margin-right: calc(-1 * var(--space-lg));
  /* Esquerda: sem sangria (respeita o sidebar no desktop) */
  margin-left: calc(-1 * var(--space-lg));
}

/* ── Track (slides wrapper) ── */
.eh-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Slide individual ── */
.eh-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1), visibility 0s linear 0.5s;
  pointer-events: none;
}

.eh-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
}

/* Slide clicável (quando tem jogo vinculado) */
.eh-slide--clickable {
  cursor: pointer;
}
.eh-slide--clickable:hover .eh-duel .eh-team-logo img,
.eh-slide--clickable:hover .eh-duel .eh-team-logo-fallback {
  transform: scale(1.04);
  transition: transform 0.2s ease;
}
.eh-slide--clickable .eh-cta {
  pointer-events: none; /* o click já está no slide inteiro */
}

/* ── Banner background ── */
.eh-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.eh-slide.active .eh-slide-bg {
  transform: scale(1);
}

/* Fallback atmosférico (sem banner) */
.eh-slide-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 160% at -5% 60%, rgba(99,51,220,.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 160% at 105% 60%, rgba(37,99,235,.45) 0%, transparent 55%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(34,197,94,.1) 0%, transparent 60%),
    linear-gradient(180deg, #07060f 0%, #0d0b1a 100%);
}

/* Luzes de estádio para slides sem banner */
.eh-slide-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.eh-light {
  position: absolute;
  top: -10%;
  width: 30%;
  height: 70%;
  border-radius: 0 0 50% 50%;
  filter: blur(70px);
  opacity: .6;
  animation: ehLightFade 10s ease-in-out infinite;
}
.eh-light-1 { left: 10%; background: rgba(146,84,248,.3); animation-delay: 0s; }
.eh-light-2 { left: 38%; background: rgba(255,255,255,.06); animation-delay: 3s; }
.eh-light-3 { right: 10%; background: rgba(59,130,246,.25); animation-delay: 6s; }

@keyframes ehLightFade {
  0%, 100% { opacity: .5; }
  50% { opacity: .85; }
}

/* ── Gradient overlay (sempre) ── */
.eh-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(5,4,15,.92) 0%,
      rgba(5,4,15,.75) 35%,
      rgba(5,4,15,.2) 65%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(5,4,15,.7) 0%,
      transparent 40%
    );
}

/* Overlay mais fechado quando tem banner real */
.eh-slide--has-banner .eh-slide-overlay {
  background:
    linear-gradient(
      to right,
      rgba(5,4,15,.88) 0%,
      rgba(5,4,15,.65) 40%,
      rgba(5,4,15,.15) 70%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(5,4,15,.65) 0%,
      transparent 45%
    );
}

/* ── Conteúdo do slide ── */
.eh-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 36px 44px;
  gap: 14px;
  z-index: 2;
}

/* Meta: badge live/campeonato/horário */
.eh-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eh-badge--live {
  background: rgba(34,197,94,.18);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
}
.eh-badge--live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.8);
  animation: liveGlow 1.5s ease-in-out infinite;
}

.eh-badge--league {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
}

.eh-badge--time {
  background: rgba(146,84,248,.15);
  color: rgba(200,170,255,.9);
  border: 1px solid rgba(146,84,248,.2);
}

.eh-badge--date {
  background: rgba(245,158,11,.12);
  color: rgba(253,221,160,.95);
  border: 1px solid rgba(245,158,11,.22);
  font-weight: 700;
}

.eh-badge--score {
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.22);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Duel: times */
.eh-duel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eh-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eh-team-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.eh-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.eh-team-logo-fallback {
  font-size: 0.72rem;
  font-weight: 900;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}

.eh-team-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  max-width: 220px;
  transition: font-size 0.2s ease;
}

/* Adaptive font-size — applied via JS based on longest team name length */
.eh-team-name--lg { font-size: 1.5rem; }   /* ≤14 chars  */
.eh-team-name--md { font-size: 1.15rem; }  /* 15–20 chars */
.eh-team-name--sm { font-size: 0.88rem; letter-spacing: -0.02em; } /* >20 chars */

@media (max-width: 640px) {
  .eh-team-name--lg { font-size: 1.1rem; }
  .eh-team-name--md { font-size: 0.9rem; }
  .eh-team-name--sm { font-size: 0.75rem; }
}

.eh-vs {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* Custom slide (banner sem jogo) */
.eh-custom-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
  max-width: 520px;
}

.eh-custom-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  max-width: 420px;
}

/* Channels row */
.eh-channels {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eh-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(4px);
}

.eh-channel-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

/* CTA Button */
.eh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(146,84,248,.4);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 4px;
}

.eh-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(146,84,248,.5);
}

/* ── Navigation ── */
.eh-nav {
  position: absolute;
  bottom: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.eh-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eh-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  padding: 0;
}

.eh-dot.active {
  width: 22px;
  background: #fff;
}

.eh-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  padding: 0;
}

.eh-arrow:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

/* ── Progress bar ── */
.eh-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,.08);
  z-index: 10;
}

.eh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), rgba(255,255,255,.6));
  width: 0%;
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* ── Shimmer loading ── */
.eh-loading {
  position: absolute;
  inset: 0;
}

.eh-loading-shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d0b1a 0%, #13102a 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px 36px 44px;
  animation: ehShimmerPulse 2s ease-in-out infinite;
}

@keyframes ehShimmerPulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

.eh-shimmer-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.eh-shimmer-badge,
.eh-shimmer-title,
.eh-shimmer-sub,
.eh-shimmer-row {
  border-radius: 8px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.04) 100%);
  background-size: 400% 100%;
  animation: ehShimmerSlide 1.8s ease-in-out infinite;
}

@keyframes ehShimmerSlide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.eh-shimmer-badge { width: 80px; height: 22px; border-radius: 99px; }
.eh-shimmer-title { width: 80%; height: 44px; margin-top: 4px; }
.eh-shimmer-sub   { width: 55%; height: 20px; }
.eh-shimmer-row   { width: 40%; height: 32px; margin-top: 8px; }

/* ── Admin trigger button ── */
.hero-admin-trigger {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 16px;
}

.hero-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(146,84,248,.1);
  border: 1px solid rgba(146,84,248,.2);
  color: rgba(200,170,255,.8);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-admin-btn:hover {
  background: rgba(146,84,248,.2);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   ADMIN HERO MODAL
   ══════════════════════════════════════════════════════ */

.hero-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

/* World Cup 2026 countdown (replaces hero in wc tab) */
.wc26-countdown {
  margin: 8px 0 10px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  background:
    radial-gradient(1200px 220px at -10% -20%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(900px 200px at 110% -20%, rgba(34,197,94,.16), transparent 58%),
    linear-gradient(180deg, rgba(9,13,26,.97), rgba(7,10,20,.99));
  box-shadow: 0 16px 42px rgba(2,6,23,.42);
  padding: 16px 20px 18px;
}
[data-theme="light"] .wc26-countdown {
  border-color: rgba(30,41,59,.16);
  background:
    radial-gradient(1100px 220px at -10% -40%, rgba(139,92,246,.12), transparent 58%),
    radial-gradient(900px 220px at 110% -40%, rgba(16,185,129,.1), transparent 58%),
    linear-gradient(180deg, #ffffff, #f5f7ff);
  box-shadow: 0 10px 32px rgba(15,23,42,.08);
}
.wc26-countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.wc26-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  border: 1px solid rgba(250,204,21,.35);
  background: rgba(250,204,21,.12);
  color: #facc15;
}
.wc26-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wc26-timer i {
  font-style: normal;
  color: rgba(250,204,21,.75);
  font-weight: 900;
  font-size: 1.05rem;
}
.wc26-time-box {
  width: 94px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1326, #0a1020);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 16px rgba(0,0,0,.28);
  padding: 12px 8px 9px;
  text-align: center;
}
[data-theme="light"] .wc26-time-box {
  background: linear-gradient(180deg, #1e293b, #111827);
  border-color: rgba(30,41,59,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px rgba(30,41,59,.15);
}
.wc26-time-box span {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
  color: #ecfe4c;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.wc26-time-box small {
  display: block;
  margin-top: 7px;
  font-size: .64rem;
  letter-spacing: .08em;
  font-weight: 800;
  color: rgba(226,232,240,.82);
}
@media (max-width: 900px) {
  .wc26-time-box { width: 72px; padding: 9px 6px; }
  .wc26-time-box span { font-size: 1.52rem; }
  .wc26-timer { gap: 7px; }
}

/* World Cup 2026 quick filters panel */
.wc26-filters-panel {
  margin: 8px 0 14px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,13,28,.92), rgba(6,10,22,.96));
  padding: 14px;
}
[data-theme="light"] .wc26-filters-panel {
  border-color: rgba(30,41,59,.14);
  background: linear-gradient(180deg, #ffffff, #f7f8fd);
}
.wc26-filters-head h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--text-primary);
}
.wc26-filters-head p {
  margin: 4px 0 10px;
  color: var(--text-secondary);
  font-size: .93rem;
}
.wc26-filter-group { margin-top: 10px; }
.wc26-filter-label {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .64rem;
  font-weight: 800;
  color: var(--text-muted);
}
.wc26-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wc26-chip-btn {
  border: 1px solid rgba(148,163,184,.3);
  background: rgba(15,23,42,.72);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: .16s ease;
}
.wc26-chip-btn:hover {
  border-color: rgba(139,92,246,.45);
  color: var(--text-primary);
}
.wc26-chip-btn.active {
  background: linear-gradient(180deg, #f4ff4b, #d6e62a);
  border-color: rgba(245, 238, 70, .9);
  color: #111827;
}
[data-theme="light"] .wc26-chip-btn {
  background: #ffffff;
  border-color: rgba(148,163,184,.45);
  color: #334155;
}
[data-theme="light"] .wc26-chip-btn.active {
  background: linear-gradient(180deg, #eaff61, #dce93a);
  color: #0f172a;
}

/* Copa 2026 mode: remove controles herdados da aba Futebol */
body.wc26-mode .sub-nav-tab[data-tab="times"],
body.wc26-mode .sub-nav-tab[data-tab="ligas"],
body.wc26-mode .sub-nav-tab[data-tab="canais"],
body.wc26-mode .sub-nav-tab[data-tab="membros"] {
  display: none;
}
body.wc26-mode .control-bar-left .segmented-control,
body.wc26-mode .control-bar-left .game-count,
body.wc26-mode #btnUpdateDual,
body.wc26-mode #btnReprocessMidnight,
body.wc26-mode #btnUpdateSingle,
body.wc26-mode #btnVerifyWeb,
body.wc26-mode #btnExportCSV,
body.wc26-mode #btnExportJSON {
  display: none !important;
}
body.wc26-mode .control-bar-left {
  min-height: 34px;
}
body.wc26-mode .control-bar-right {
  margin-left: auto;
}

/* Confirm modal (Hero remove slide) */
.ham-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ham-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px);
}
.ham-confirm-panel {
  position: relative;
  width: min(460px, calc(100vw - 24px));
  background: linear-gradient(180deg, rgba(16, 22, 44, 0.98), rgba(10, 14, 30, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  padding: 16px 16px 14px;
}
.ham-confirm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ham-confirm-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.ham-confirm-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.ham-confirm-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.ham-confirm-text {
  margin: 0 0 12px;
  line-height: 1.45;
}
.ham-confirm-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
.ham-confirm-check input {
  accent-color: #8b5cf6;
}
.ham-confirm-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ham-confirm-btn {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.ham-confirm-btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-secondary);
}
.ham-confirm-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
}
.ham-confirm-btn-danger {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  color: #fecaca;
}
.ham-confirm-btn-danger:hover {
  background: rgba(220, 38, 38, 0.28);
  color: #fee2e2;
}

.ham-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
}

.ham-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 96vw);
  height: 100vh;
  background: #0e0d19;
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hamSlideIn .28s cubic-bezier(.16,1,.3,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}

.ham-ufc-adjust-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
}
.ham-ufc-adjust-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.72);
}
.ham-ufc-adjust-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0e0d19;
  display: grid;
  grid-template-columns: 1fr 300px;
}
.ham-ufc-adjust-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ham-ufc-adjust-head h3 { margin: 0; font-size: .95rem; }
.ham-ufc-adjust-close {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}
.ham-ufc-adjust-stage-wrap { padding: 12px; }
.ham-ufc-adjust-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: visible;
  background: #05070f;
  border: 1px solid rgba(255,255,255,.1);
}
.ham-ufc-adjust-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ham-ufc-adjust-fighter {
  position: absolute;
  bottom: 0;
  width: 40%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.7));
}
.ham-ufc-adjust-fighter.left {
  left: 5%;
  object-position: bottom left;
  transform-origin: bottom left;
}
.ham-ufc-adjust-fighter.right {
  right: 5%;
  object-position: bottom right;
  transform-origin: bottom right;
}
.ham-ufc-adjust-fighter.selected { outline: 2px solid #9254f8; }
.ham-ufc-adjust-fighter:active { cursor: grabbing; }
.ham-ufc-adjust-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.85);
  background: rgba(2,6,23,.6);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 10px;
}
.ham-ufc-adjust-controls {
  border-left: 1px solid rgba(255,255,255,.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ham-ufc-adjust-row { display: flex; flex-direction: column; gap: 6px; }
.ham-ufc-adjust-row label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.ham-ufc-adjust-row input,
.ham-ufc-adjust-row select { width: 100%; accent-color: var(--brand); }
.ham-ufc-adjust-actions { margin-top: auto; display: flex; gap: 8px; justify-content: flex-end; }
.ham-ufc-adjust-actions button {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
}
.ham-ufc-adjust-actions button.primary {
  background: var(--brand);
  border-color: transparent;
}

@keyframes hamSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Panel header */
.ham-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.ham-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ham-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(146,84,248,.15);
  border: 1px solid rgba(146,84,248,.25);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}

.ham-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.ham-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,.38);
  margin: 0;
  margin-top: 1px;
}

.ham-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.ham-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Actions row */
.ham-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-wrap: wrap;
}

/* Seletor de aba do hero admin — compacto, na mesma linha dos botões */
.ham-sport-select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 10px;
  height: 40px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  min-width: 130px;
  transition: border-color 0.15s;
}
.ham-sport-select:focus { border-color: var(--brand); }

/* Badge de aba no item da lista */
.ham-sport-badge {
  color: var(--brand);
  font-weight: 600;
}

/* Painel de edição expandível — ocupa linha inteira abaixo do item */
.ham-edit-panel {
  width: 100%;                           /* quebra para nova linha no flex-wrap */
  padding: 14px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Grid 2 colunas: label | campo */
.ham-edit-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
}
.ham-edit-row--toggle {
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.ham-edit-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ham-edit-input,
.ham-edit-sport {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 7px 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ham-edit-input:focus,
.ham-edit-sport:focus { border-color: var(--brand); background: rgba(255,255,255,.08); }
.ham-edit-range {
  width: 100%;
  accent-color: var(--brand);
}
.ham-zoom-left-val,
.ham-zoom-right-val,
.ham-pos-left-x-val,
.ham-pos-left-y-val,
.ham-pos-right-x-val,
.ham-pos-right-y-val {
  margin-left: 6px;
  color: var(--text-primary);
  font-size: .72rem;
  font-weight: 800;
  text-transform: none;
}
.ham-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 4px;
}
.ham-save-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ham-save-btn:hover { opacity: .85; }
.ham-cancel-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.15s;
}
.ham-cancel-btn:hover { color: var(--text-primary); }

.ham-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ham-action-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(146,84,248,.3);
}

.ham-action-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.ham-action-secondary {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.1);
}

.ham-action-secondary:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Slides list */
.ham-slides-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ham-slides-list::-webkit-scrollbar { width: 4px; }
.ham-slides-list::-webkit-scrollbar-track { background: transparent; }
.ham-slides-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }

/* Empty state */
.ham-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 24px;
  text-align: center;
  color: rgba(255,255,255,.35);
  flex: 1;
}

.ham-empty-icon { font-size: 2.5rem; margin-bottom: 4px; }
.ham-empty p { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,.5); margin: 0; }
.ham-empty small { font-size: 0.75rem; line-height: 1.5; }

/* Slide item row */
.ham-slide-item {
  display: flex;
  flex-wrap: wrap;          /* edit panel quebra pra linha abaixo */
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.ham-slide-item:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}

.ham-slide-thumb {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}

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

.ham-slide-info {
  flex: 1;
  min-width: 0;
}

.ham-slide-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ham-slide-meta {
  font-size: 0.68rem;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}

.ham-slide-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Toggle active */
.ham-toggle {
  width: 34px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.ham-toggle.on {
  background: var(--brand);
  border-color: var(--brand);
}

.ham-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all 0.2s;
}

.ham-toggle.on::after {
  left: calc(100% - 14px);
  background: #fff;
}

.ham-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  padding: 0;
}

.ham-icon-btn:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.ham-icon-btn.danger:hover { background: rgba(239,68,68,.15); color: #f87171; border-color: rgba(239,68,68,.2); }

/* Game Picker */
.ham-game-picker {
  position: absolute;
  inset: 0;
  background: #0f0e1a;
  z-index: 10;
  display: flex;
  flex-direction: column;
  animation: hamSlideIn .25s cubic-bezier(.16,1,.3,1);
}

.ham-gp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.ham-gp-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ham-gp-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.ham-gp-close:hover { background: rgba(255,255,255,.1); color: #fff; }

.ham-gp-search {
  margin: 12px 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.ham-gp-search:focus { border-color: rgba(146,84,248,.4); }
.ham-gp-search::placeholder { color: rgba(255,255,255,.25); }

.ham-gp-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ham-gp-loading {
  padding: 40px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 0.82rem;
}

/* Game row in picker */
.ham-gp-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: all 0.18s;
}

.ham-gp-game:hover {
  background: rgba(146,84,248,.1);
  border-color: rgba(146,84,248,.25);
}

.ham-gp-game-teams {
  flex: 1;
  min-width: 0;
}

.ham-gp-game-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ham-gp-game-meta {
  font-size: 0.67rem;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}

.ham-gp-game-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ham-gp-game-live {
  font-size: 0.6rem;
  font-weight: 800;
  color: #4ade80;
  background: rgba(34,197,94,.12);
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(34,197,94,.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Upload progress */
.ham-upload-progress {
  margin: 8px 16px 0;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.ham-upload-progress.visible { display: flex; }

.ham-upload-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.ham-upload-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.3s ease;
  width: 0%;
}

.ham-upload-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,.4);
}

/* ══════════════════════════════════════════════════════
   STREAM SECTIONS — Editorial esportivo, zero dashboard
   ══════════════════════════════════════════════════════ */
.stream-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Seção: bloco de conteúdo, sem bordas, sem caixas */
.hs-section {
  padding: 28px 0 12px;
  animation: fadeSlideUp .5s cubic-bezier(.16,1,.3,1) both;
}

.hs-section-collapsible .hs-header {
  gap: 10px;
}

.hs-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.hs-toggle-arrow {
  display: inline-block;
  transition: transform .18s ease;
}

.hs-section-collapsible.is-collapsed .hs-toggle-arrow {
  transform: rotate(-90deg);
}

.hs-section-collapsible .hs-collapsible-body {
  overflow: hidden;
  transition: max-height .22s ease, opacity .18s ease, margin-top .18s ease;
  max-height: 2000px;
  opacity: 1;
  margin-top: 10px;
}

.hs-section-collapsible.is-collapsed .hs-collapsible-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

[data-theme="light"] .hs-section {
  /* sem estilos extras — herda o fundo da página */
}

/* Cor por categoria via CSS custom property */
.hs-section[data-section="aovivo"]      { --hs-accent: #22c55e; }
.hs-section[data-section="favoritos"]   { --hs-accent: #9254f8; }
.hs-section[data-section="emalta"]      { --hs-accent: #f59e0b; }
.hs-section[data-section="futebolhoje"] { --hs-accent: rgba(255,255,255,.9); }
.hs-section[data-section="principais"]  { --hs-accent: #fbbf24; }
.hs-section[data-section="nba"]         { --hs-accent: #f97316; }
.hs-section[data-section="ufc"]         { --hs-accent: #ef4444; }
.hs-section[data-section="f1"]          { --hs-accent: #e11d48; }
.hs-section[data-section="tv"]          { --hs-accent: #38bdf8; }

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

/* ── HS header — editorial esportivo ──────────────────────────── */
.hs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.hs-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.hs-header h3 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.035em;
  color: #fff;
  line-height: 1;
}

[data-theme="light"] .hs-header h3 {
  color: var(--text-primary);
}

/* Barra colorida à esquerda por categoria */
.hs-header h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: .9em;
  background: var(--hs-accent, rgba(255,255,255,.4));
  border-radius: 99px;
  margin-right: 10px;
  vertical-align: middle;
  opacity: .85;
}

/* Live badge — badge ao vivo */
.hs-live-label {
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 999px;
  padding: 3px 10px;
  animation: livePulse 2s ease-in-out infinite;
}

.hs-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  animation: livePulse 1.4s ease-in-out infinite;
}

/* ── HS track — scroll horizontal ─────────────────────────────── */
.hs-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Scrollbar fina e elegante */
.hs-track::-webkit-scrollbar { height: 3px; }
.hs-track::-webkit-scrollbar-track { background: transparent; }
.hs-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}
.hs-track::-webkit-scrollbar-thumb:hover {
  background: var(--hs-accent, rgba(255,255,255,.2));
  opacity: .5;
}

/* ══════════════════════════════════════════════════════
   STREAM CARD — Cards de entretenimento esportivo
   ══════════════════════════════════════════════════════ */
.stream-card {
  scroll-snap-align: start;
  min-width: 220px;
  max-width: 220px;
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg,
      rgba(255,255,255,.06) 0%,
      rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* Faixa esportiva no topo */
.stream-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(146,84,248,.7) 0%,
    rgba(59,130,246,.5) 100%);
  border-radius: 18px 18px 0 0;
  z-index: 1;
}

/* Glow bottom */
.stream-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.stream-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(146,84,248,.3),
    0 0 30px rgba(146,84,248,.08);
  border-color: rgba(146,84,248,.4);
}

[data-theme="light"] .stream-card {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

[data-theme="light"] .stream-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 0 0 2px var(--brand-dim);
}

/* ── Card inner padding ─────────────────────────────── */
.stream-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 14px 0;
}

.stream-card-league {
  font-size: .58rem;
  color: rgba(255,255,255,.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

[data-theme="light"] .stream-card-league {
  color: var(--text-tertiary);
}

.stream-card-time {
  font-size: .75rem;
  font-weight: 800;
}

.stream-card-time-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px 4px;
}

.stream-card-hour {
  font-size: 1.55rem;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
}

[data-theme="light"] .stream-card-hour {
  color: var(--text-primary);
}

.stream-card-minute {
  font-size: 1.2rem;
  font-weight: 900;
  color: #22c55e;
  animation: livePulse 1.8s ease-in-out infinite;
  letter-spacing: -.02em;
  line-height: 1;
}

/* Teams */
.stream-card-teams {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  flex: 1;
}

.stream-card-teams .name {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .stream-card-teams .name {
  color: var(--text-primary);
}

.stream-card-vs {
  color: rgba(255,255,255,.2);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 1px 0;
}

[data-theme="light"] .stream-card-vs {
  color: var(--text-tertiary);
}

.stream-card-status {
  display: inline-flex;
  align-items: center;
}

/* Live card — glow verde */
.stream-card--live {
  border-color: rgba(34,197,94,.35);
  background:
    linear-gradient(160deg,
      rgba(34,197,94,.06) 0%,
      rgba(255,255,255,.02) 100%);
}

.stream-card--live::before {
  background: linear-gradient(90deg, #22c55e 0%, rgba(34,197,94,.4) 100%);
}

.stream-card--live:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(34,197,94,.4),
    0 0 40px rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.5);
}

.stream-card-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 1.4s ease-in-out infinite;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Footer */
.stream-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 14px 14px;
  margin-top: auto;
}

.stream-card-channels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}

[data-theme="light"] .stream-card-teams .name {
  color: var(--text-primary);
}

.stream-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}

.stream-card-channels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.fav-btn:hover { border-color: rgba(245, 158, 11, 0.4); color: #f59e0b; }
.fav-btn.is-fav {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}

.stream-empty {
  min-height: 74px;
  border: 1px dashed var(--border-default);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: .8rem;
  padding: 10px;
  text-align: center;
}

/* Featured event improvements */
.featured-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: livePulse 1.4s ease-in-out infinite;
  margin-right: 5px;
}

.featured-time-main {
  font-size: 1.35rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.featured-time-sub {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 3px;
  text-align: center;
}

.featured-event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.featured-cta {
  flex: 1;
  height: 36px;
  font-size: .8rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 700;
}
.featured-cta:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.mobile-quick-filters {
  display: none;
}

@media (max-width: 900px) {
  .premium-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .premium-title { font-size: 1.35rem; }
  .stream-card { min-width: 230px; max-width: 230px; }
  .mobile-quick-filters {
    position: sticky;
    top: 58px;
    z-index: 10;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 2px 2px;
    margin-top: -4px;
    backdrop-filter: blur(6px);
  }
  .mqf-btn {
    flex: 0 0 auto;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    height: 32px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: .74rem;
    font-weight: 700;
  }
  .mqf-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #0b0f1a;
  }
}

/* ---------------------------------------------------------------
   12. GAME CARDS — Premium Design
   --------------------------------------------------------------- */
/* Mobile-only elements: ocultos no desktop */
.mobile-date-bar { display: none; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  overflow-anchor: none; /* evita scroll-jump ao substituir innerHTML */
}

@media (min-width: 1600px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* League group header */
.league-group-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  border-radius: 0;
  margin-top: 20px;
  margin-bottom: 4px;
}

.league-group-header:first-child { margin-top: 0; }

.league-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Accent dash before league name */
.league-group-title::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 99px;
  flex-shrink: 0;
}

.league-group-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(146,84,248,.1);
  color: rgba(146,84,248,.7);
  border: 1px solid rgba(146,84,248,.12);
}

.league-group {
  display: contents;
}

.league-group-body {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  gap: var(--space-md);
  overflow-anchor: none; /* evita scroll-jump ao trocar conteúdo */
}

/* ═══════════════════════════════════════════════════════════════
   GAME CARDS — Cards de partida premium
   ═══════════════════════════════════════════════════════════════ */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;

  /* Fundo: dark glass com brilho sutil no topo */
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.035) 0%,
      rgba(255,255,255,.008) 40%,
      transparent 100%),
    rgba(15, 15, 22, 0.96);

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Barra colorida TOPO — accent esportivo */
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(146,84,248,.6) 0%,
    rgba(59,130,246,.4) 100%);
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* Glow hover interno */
.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 50% -5%, rgba(146,84,248,.07) 0%, transparent 55%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.game-card.clickable { cursor: pointer; }

.game-card:hover {
  border-color: rgba(146,84,248,.35);
  box-shadow:
    0 0 0 1px rgba(146,84,248,.1),
    0 12px 40px rgba(0,0,0,.45),
    0 0 0 rgba(146,84,248,.0);
  transform: translateY(-3px);
}

.game-card:hover::before { opacity: 1; }
.game-card:hover::after  { opacity: 1; }

[data-theme="light"] .game-card {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

[data-theme="light"] .game-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-dim), 0 8px 28px rgba(0,0,0,.1);
}

[data-theme="light"] .game-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim), var(--shadow-card-hover);
}

.game-card:hover::before { opacity: 1; }

.game-card.clickable { cursor: pointer; }

/* Card status modifiers */
.game-card--live {
  background:
    linear-gradient(180deg,
      rgba(34,197,94,.07) 0%,
      rgba(34,197,94,.02) 30%,
      rgba(255,255,255,.008) 100%),
    rgba(15,15,22,.96);
  border-color: rgba(34,197,94,.28);
  box-shadow:
    0 0 0 1px rgba(34,197,94,.12),
    0 4px 24px rgba(0,0,0,.35),
    inset 0 0 40px rgba(34,197,94,.04);
}

.game-card--live::before {
  background: linear-gradient(90deg,
    rgba(34,197,94,.8) 0%,
    rgba(74,222,128,.5) 100%);
  opacity: 1;
}

.game-card--live:hover {
  border-color: rgba(34,197,94,.5);
  box-shadow:
    0 0 0 1px rgba(34,197,94,.2),
    0 14px 44px rgba(0,0,0,.45),
    inset 0 0 50px rgba(34,197,94,.06);
}

[data-theme="light"] .game-card--live {
  background: rgba(34,197,94,.04);
  border-color: rgba(34,197,94,.3);
}

.game-card--finished {
  opacity: .7;
}

.game-card--finished .game-card-team-name {
  color: var(--text-secondary);
}

.game-card--live .confidence-dot,
.game-card--finished .confidence-dot {
  display: none;
}

/* Card top: league + live status */
.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

/* League: subtle pill badge */
.game-card-league {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 7px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.game-card-league::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* LIVE badge — pulsing green */
.game-card-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(34,197,94,.14);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.25);
  flex-shrink: 0;
}

.game-card-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.8);
  animation: liveGlow 1.5s ease-in-out infinite;
}

@keyframes liveGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74,222,128,.8); }
  50% { opacity: .5; box-shadow: 0 0 2px rgba(74,222,128,.3); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Finished badge */
.game-card-finished {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

/* Scheduled badge */
.game-card-scheduled {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(59,130,246,.1);
  color: rgba(96,165,250,.8);
  border: 1px solid rgba(59,130,246,.18);
  flex-shrink: 0;
}

/* Card body: teams + time */
.game-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 80px;
}

.game-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

/* Team logo circle */
.game-card-team .team-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(.16,1,.3,1), box-shadow 0.22s ease, border-color .2s ease;
}

.game-card:hover .game-card-team .team-logo {
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

.game-card-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* Fallback initials circle */
.game-card-team-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(146,84,248,.1);
  border: 1px solid rgba(146,84,248,.2);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(255,255,255,.7);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Team name */
.game-card-team-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 130px;
  min-height: 2.35em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  letter-spacing: -0.01em;
}

/* Card time area */
.game-card-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 76px;
  align-self: center;
}

/* Scheduled time: large + glow */
.game-card-hour {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,255,255,.08);
}

.game-card:hover .game-card-hour {
  text-shadow: 0 0 22px rgba(255,255,255,.16);
}

.game-card--live .game-card-team .team-logo {
  border-color: rgba(74,222,128,.35);
}

.game-card-date-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Score display for live games */
.game-card-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.55rem;
  font-weight: 900;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(74,222,128,.35);
  line-height: 1;
}

.game-card-score-divider {
  color: rgba(74,222,128,.4);
  font-size: 1rem;
  font-weight: 400;
}

/* Live elapsed minute under score */
.game-card-elapsed {
  font-size: 0.65rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.07em;
  text-align: center;
  margin-top: 2px;
  text-transform: uppercase;
  animation: liveGlow 1.5s ease-in-out infinite;
}
.game-card-elapsed.ht {
  color: var(--accent);
  animation: none;
  opacity: 0.9;
  text-shadow: none;
}

/* Card footer: channel badges — no border, clean */
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  padding-top: 10px;
  /* Subtle gradient separator instead of hard border */
  background-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,.06) 20%,
    rgba(255,255,255,.06) 80%,
    transparent 100%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top center;
}

/* Confidence dot — só visível em jogos futuros (inline no footer) */
.confidence-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

.confidence-confirmado { background: var(--live); }
.confidence-provavel { background: var(--accent); }
.confidence-revisar { background: var(--danger); }

/* ── Admin: three-dot menu button on game cards ──────────────── */
.game-card-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.game-card-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  padding: 0;
}

.game-card-menu-btn:hover,
.game-card-menu-btn:focus-visible {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  outline: none;
}

/* ── Admin: floating dropdown menu ───────────────────────────── */
.game-card-dropdown {
  position: fixed;
  z-index: 9999;
  min-width: 160px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 4px;
  animation: fadeIn 0.12s ease-out;
}

.game-card-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: left;
  white-space: nowrap;
}

.game-card-dropdown-item:hover {
  background: var(--bg-tertiary);
}

.game-card-dropdown-item.danger {
  color: var(--danger);
}

.game-card-dropdown-item.danger:hover {
  background: var(--danger-dim, rgba(239, 68, 68, 0.08));
}

/* ── Admin: edit channels modal ──────────────────────────────── */
.edit-channels-panel {
  width: min(420px, 94vw);
}

.edit-channels-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.edit-channels-hint code {
  font-family: inherit;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

.edit-channels-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.edit-channels-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.edit-channels-original-note,
.edit-channels-override-note {
  font-size: 0.72rem;
  margin: 8px 0 0 0;
}

.edit-channels-original-note {
  color: var(--text-tertiary);
}

.edit-channels-override-note {
  color: var(--accent);
}

.edit-channels-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Admin: confirm remove modal ─────────────────────────────── */
.confirm-remove-panel {
  width: min(380px, 90vw);
}

.confirm-remove-hint {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
}

.confirm-remove-game-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 4px 0;
  color: var(--text-primary);
}

/* Recovery modal */
.recover-games-panel {
  width: min(520px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.recover-games-body {
  overflow-y: auto;
  max-height: 50vh;
  padding: 4px 0;
}

.recover-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: var(--space-xl);
  font-size: 0.9rem;
}

.recover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.recover-row:last-child { border-bottom: none; }

.recover-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.recover-row-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.recover-row-meta {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.recover-row-date {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.btn-recover-restore {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-recover-restore:hover {
  filter: brightness(1.1);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  text-align: center;
}

.empty-state-icon { font-size: 2.5rem; opacity: 0.5; }
.empty-state-text { font-size: 0.9rem; font-weight: 600; }

.empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-tertiary);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   13. CHANNEL BADGES — Clean & Premium
   --------------------------------------------------------------- */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.channel-badge:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.channel-badge-more {
  background: rgba(107, 114, 128, 0.16);
  border-color: rgba(107, 114, 128, 0.3);
  color: var(--text-secondary);
  font-weight: 800;
}

/* Verification status on badges */
.channel-badge.verify-confirmado {
  background: var(--live-dim);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--live);
}

.channel-badge.verify-provavel {
  background: var(--accent-dim);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--accent);
}

.channel-badge.verify-revisar {
  background: var(--danger-dim);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger);
}

/* Channel-specific colors */
.channel-badge.espn,
.channel-badge.espn-2,
.channel-badge.espn-3,
.channel-badge.espn-4 {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.channel-badge.sportv,
.channel-badge.sportv-2,
.channel-badge.sportv-3,
.channel-badge.sportvplus,
.channel-badge.premiere {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.channel-badge.globo,
.channel-badge.ge-tv {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}

.channel-badge.cazetv,
.channel-badge.caze-tv,
.channel-badge.caz-tv {
  background: rgba(146, 84, 248, 0.08);
  border-color: rgba(146, 84, 248, 0.2);
  color: #A78BFA;
}

.channel-badge.goat {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}

.channel-badge.tnt,
.channel-badge.hbo-max {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  color: #A78BFA;
}

.channel-badge.disneyplus,
.channel-badge.disney {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.channel-badge.paramountplus,
.channel-badge.paramount {
  background: rgba(0, 100, 210, 0.12);
  border-color: rgba(0, 100, 210, 0.3);
  color: #4B9BFF;
}

.channel-badge.bandsports,
.channel-badge.esporte-na-band {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.channel-badge.sbt {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.channel-badge.record {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

/* ---------------------------------------------------------------
   14. LEAGUE & CHANNEL GRIDS (secondary tabs)
   --------------------------------------------------------------- */
.aux-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-lg);
}

.aux-section-header h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
}

.info-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.info-card-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--text-primary);
}

.info-card-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.info-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-card-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card-mini-item {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------
   15. TEAMS TAB
   --------------------------------------------------------------- */
.teams-toolbar-ongrid {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrap-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 0.85rem;
}

.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.search-wrap-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  cursor: pointer;
}

.search-wrap-clear.show { display: flex; }
.search-wrap-clear:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* Team tiles */
.team-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
}

.team-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(146, 84, 248, 0.15);
}

.team-tile-logo { width: 56px; height: 56px; }
.team-tile-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-tile-games-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--brand);
  color: #FFFFFF;
}

/* League sections in teams tab */
.league-section-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-left: 3px solid var(--brand);
}

.league-section-block.league-cat-br { border-left-color: var(--sport-football); }
.league-section-block.league-cat-eu-top { border-left-color: var(--info); }
.league-section-block.league-cat-eu { border-left-color: #6366F1; }
.league-section-block.league-cat-americas { border-left-color: var(--accent); }
.league-section-block.league-cat-continental { border-left-color: var(--brand); }
.league-section-block.league-cat-asia { border-left-color: #EC4899; }

.league-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.league-section-header h3 {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.league-section-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.league-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}

/* ── Campeão — tema claro ─────────────────────────────────────────── */
[data-theme="light"] .team-tile.team-tile-champion {
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 45%, #ffffff 100%) !important;
  border-color: #d97706 !important;
  box-shadow:
    0 0 0 2px #fbbf2438,
    0 6px 24px -6px #d9770650 !important;
}
[data-theme="light"] .team-tile.team-tile-champion:hover {
  background: linear-gradient(160deg, #fef3c7 0%, #fde68a 45%, #fffbeb 100%) !important;
  border-color: #b45309 !important;
  box-shadow:
    0 0 0 2px #fbbf2458,
    0 10px 30px -6px #d9770665 !important;
  transform: translateY(-4px);
}
[data-theme="light"] .team-tile.team-tile-champion .team-tile-name {
  color: #92400e !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}
[data-theme="light"] .champ-label {
  background: linear-gradient(90deg, #78350f, #d97706, #fbbf24, #d97706, #78350f) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
[data-theme="light"] .champ-season {
  color: #92400e !important;
  opacity: 1 !important;
}
/* Botão "Definir campeão" com campeão definido — tema claro */
[data-theme="light"] .btn-set-champion.has-champion {
  border-color: #d9770680 !important;
  color: #92400e !important;
  background: #fef3c780 !important;
}
[data-theme="light"] .btn-set-champion:hover {
  border-color: #d97706 !important;
  color: #78350f !important;
  background: #fde68a50 !important;
}

/* ---------------------------------------------------------------
   16. NBA & UFC SECTIONS
   --------------------------------------------------------------- */
.sport-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.sport-section-header-info h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
}

.sport-section-header-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.sport-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
  min-height: 40px;
}

/* NBA cards — estilo similar ao futebol */
.nba-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-top: 3px solid var(--sport-nba);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nba-card:hover {
  border-color: rgba(249,115,22,.4);
  box-shadow: 0 4px 24px rgba(249,115,22,.08);
}

/* NBA card usa as mesmas classes .game-card do futebol —
   só sobrescrevemos a cor do top border */
.nba-vs { display: none; }
.nba-channels-row { display: none; } /* substituído por game-card-footer */

/* NBA JS-generated classes */
.nba-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  margin: var(--space-md) 0;
}

.nba-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.nba-team .team-logo {
  width: 72px;
  height: 72px;
}

.nba-team strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.nba-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

/* ── NBA Live Tracker ─────────────────────────────────────── */
.nba-live-tracker-wrap {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nba-tracker-toggle {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-live, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition-base), border-color var(--transition-base);
  width: 100%;
  text-transform: uppercase;
}
.nba-tracker-toggle:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}
.nba-tracker-toggle .tracker-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.nba-tracker-toggle.open .tracker-arrow {
  transform: rotate(180deg);
}

.nba-tracker-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  animation: fadeInDown 0.15s ease;
}
.nba-tracker-panel.open {
  display: flex;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nba-tracker-possession {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nba-tracker-possession .poss-ball {
  font-size: 1rem;
}
.nba-tracker-possession .poss-team {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--text-primary);
}

.nba-plays-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nba-play-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-subtle);
  transition: border-color 0.15s;
}
.nba-play-item:first-child {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.nba-play-desc {
  font-size: 0.77rem;
  color: var(--text-primary);
  line-height: 1.35;
}
.nba-play-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.67rem;
  color: var(--text-tertiary);
  font-weight: 600;
}
.nba-play-meta .play-score {
  font-weight: 800;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 4px;
}

.nba-tracker-empty {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 10px 0;
}

/* ── NBA Live Game Modal ────────────────────────────────── */
.nba-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.nba-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nba-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}
.nba-modal-overlay.open .nba-modal {
  transform: translateY(0) scale(1);
}

/* Modal header */
.nba-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.nba-modal-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nba-modal-badge .live-dot {
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.nba-modal-periodo {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.nba-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.nba-modal-close:hover { color: var(--text-primary); background: var(--bg-tertiary); }

/* Scoreboard */
.nba-modal-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
}
.nba-modal-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.nba-modal-team-logo {
  width: 56px; height: 56px;
  object-fit: contain;
}
.nba-modal-team-logo-fallback {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-secondary);
}
.nba-modal-team-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
}
.nba-modal-team-abbr {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.nba-modal-scores {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nba-modal-score {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  min-width: 52px;
  text-align: center;
}
.nba-modal-score-sep {
  font-size: 1.6rem;
  color: var(--text-tertiary);
  font-weight: 300;
}

/* Court */
.nba-modal-court-wrap {
  padding: 4px 16px 8px;
  flex-shrink: 0;
}
.nba-court-svg-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.nba-court-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Ball pulse on court */
.court-ball-pulse {
  animation: courtBallPulse 1.8s ease-in-out infinite;
}
@keyframes courtBallPulse {
  0%, 100% { r: 8; opacity: 0.85; }
  50%       { r: 12; opacity: 0.4; }
}

/* Last play bar */
.nba-modal-lastplay {
  margin: 0 16px 10px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  border-left: 3px solid #ef4444;
}
.nba-modal-lastplay-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

/* Play-by-play */
.nba-modal-plays-section {
  padding: 0 16px 16px;
  flex: 1;
  min-height: 0;
}
.nba-modal-plays-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.nba-modal-play-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nba-modal-play {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border-left: 3px solid transparent;
  transition: border-color 0.15s;
}
.nba-modal-play:first-child { border-left-color: #ef4444; }
.nba-modal-play-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 36px;
}
.nba-modal-play-clock {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nba-modal-play-period {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  padding: 1px 5px;
  border-radius: 3px;
}
.nba-modal-play-body {
  flex: 1;
  min-width: 0;
}
.nba-modal-play-desc {
  font-size: 0.77rem;
  color: var(--text-primary);
  line-height: 1.35;
}
.nba-modal-play-score {
  font-size: 0.67rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-top: 3px;
}
.nba-modal-play-team-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Loading state inside modal */
.nba-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  gap: 10px;
}
.nba-modal-spinner {
  width: 20px; height: 20px;
  border: 3px solid var(--border-subtle);
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Win probability */
.nba-modal-winprob {
  padding: 6px 16px 4px;
}
.winprob-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.winprob-team {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-width: 28px;
  text-align: center;
}
.winprob-bar-wrap { flex: 1; }
.winprob-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}
.winprob-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-live, #ef4444), #f97316);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.winprob-pct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
}
.winprob-pct {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-secondary);
}
.winprob-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Possession bar */
.nba-modal-poss-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nba-modal-poss-team {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 480px) {
  .nba-modal-score { font-size: 2.2rem; min-width: 42px; }
  .nba-modal-team-logo { width: 44px; height: 44px; }
}

/* UFC */
.ufc-event-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--sport-ufc);
  overflow: hidden;
}

.ufc-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.ufc-event-info {
  min-width: 0;
}

.side-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.ufc-event-header h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; }
.ufc-event-header p { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }

.ufc-times {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.ufc-time-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-weight: 700;
}

.ufc-time-badge span {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ufc-time-badge time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Main — destaque */
.ufc-time-main {
  background: var(--sport-ufc-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 7px 14px;
}
.ufc-time-main span { font-size: 0.7rem; color: var(--sport-ufc); }
.ufc-time-main time { font-size: 0.9rem; color: var(--sport-ufc); }

/* Prelims — discreto */
.ufc-time-prelims {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
}
.ufc-time-prelims span { font-size: 0.6rem; color: var(--text-tertiary); }
.ufc-time-prelims time { font-size: 0.72rem; color: var(--text-secondary); }

.ufc-main-fight {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  text-align: center;
}
.ufc-main-fight-card {
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.02) 100%);
}
.ufc-main-fight-clickable {
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
}
.ufc-main-fight-clickable:hover {
  filter: brightness(1.04);
}
.ufc-main-fight .ufc-fighter {
  min-height: 220px;
  justify-content: center;
}
.ufc-main-fight .ufc-fight-time {
  font-size: 0.95rem;
  color: var(--sport-ufc);
}
.ufc-main-fight-channels {
  padding-top: 0;
  padding-bottom: var(--space-lg);
}
.ufc-fight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-sm);
  padding: 0 var(--space-lg) var(--space-lg);
}
.ufc-mini-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  width: 100%;
  color: inherit;
  text-align: left;
  padding: var(--space-md);
  cursor: pointer;
}
.ufc-mini-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.ufc-mini-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md);
}

/* ── UFC Fight Modal — redesign mobile-first ─────────────── */
.ufc-fight-modal-panel {
  max-width: 520px;
  width: min(96vw, 520px);
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 16px;
}
.ufc-fight-modal-body {
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Category badge */
.ufc-detail-category {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sport-ufc);
  background: rgba(239,68,68,0.08);
  border-bottom: 1px solid rgba(239,68,68,0.15);
  padding: 8px 16px;
}

/* Fighters row — fotos + nomes lado a lado */
.ufc-df-row {
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.ufc-df-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 10px;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}
.ufc-df-fighter--right { border-left: 1px solid var(--border-subtle); }

.ufc-df-photo-box {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 160px;
  overflow: hidden;
}
.ufc-df-photo {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}
.ufc-df-photo-fallback {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-secondary);
}

.ufc-df-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}
.ufc-df-record {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.ufc-df-country {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ufc-df-country img { width: 14px; height: 10px; border-radius: 1px; }

/* VS badge central */
.ufc-df-vs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}
.ufc-df-vs {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--sport-ufc);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  padding: 4px 6px;
  line-height: 1;
}

/* Stats comparison */
.ufc-ds-wrap {
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px 4px;
}
.ufc-ds-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  text-align: center;
}
.ufc-ds-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.ufc-ds-row:last-child { border-bottom: none; }
.ufc-ds-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ufc-ds-val:first-child { text-align: right; }
.ufc-ds-val:last-child  { text-align: left; }
.ufc-ds-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Highlight when values differ */
.ufc-ds-val.better { color: var(--sport-ufc); }

/* Legacy compat (mantém .ufc-detail-* para não quebrar nada) */
.ufc-detail-headline { display: none; }
.ufc-detail-fighters { display: none; }
.ufc-detail-countries { display: none; }
.ufc-detail-stats { display: none; }

/* ---------------------------------------------------------------
   17. TOAST NOTIFICATIONS
   --------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 650;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn var(--transition-slow);
  max-width: 380px;
  backdrop-filter: blur(12px);
}

.toast.success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #4ADE80; }
.toast.error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #F87171; }
.toast.info { background: rgba(146, 84, 248, 0.15); border: 1px solid rgba(146, 84, 248, 0.3); color: #A78BFA; }

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

/* ---------------------------------------------------------------
   18. MODALS
   --------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.modal-body {
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
  overscroll-behavior: contain;
  min-height: 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

/* Modal tabs */
.modal-tabs {
  display: flex;
  gap: 2px;
  padding: 0 var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-tab {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.modal-tab:hover { color: var(--text-secondary); }
.modal-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Config grid inside modal */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.config-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.config-card-wide { grid-column: span 2; }

.config-card h3 {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.config-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Tag editor */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  margin-bottom: var(--space-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 650;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.tag-remove {
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  line-height: 1;
}

.tag-remove:hover { color: var(--danger); }

.tag-source {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 29, 43, 0.92), rgba(18, 22, 33, 0.96));
  border: 1px solid rgba(126, 144, 185, 0.26);
}

.tag-source .source-details {
  display: block;
  width: 100%;
  padding: 8px 10px;
}

.tag-source .source-details > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 0.82rem;
  color: #eaf1ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-source .source-details > summary::-webkit-details-marker {
  display: none;
}

.tag-source .source-details > summary::after {
  content: "▾";
  color: #9fb3d9;
  font-size: 0.82rem;
  margin-left: 10px;
}

.tag-source .source-details[open] > summary::after {
  content: "▴";
}

.tag-source .source-details-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(126, 144, 185, 0.2);
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-source .source-details-body a {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(122, 226, 255, 0.4);
  background: rgba(19, 34, 54, 0.85);
  color: #cdefff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
}

.tag-source .source-details-body a:hover {
  border-color: rgba(143, 255, 88, 0.65);
  color: #deffbe;
  background: rgba(35, 58, 35, 0.88);
}

.tag-source .tag-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.92rem;
  color: rgba(208, 220, 245, 0.65);
}

[data-theme="light"] .tag-source {
  background: linear-gradient(180deg, #f8f9ff, #eef2ff);
  border-color: #d4dbef;
}

[data-theme="light"] .tag-source .source-details > summary {
  color: #1f2a40;
}

[data-theme="light"] .tag-source .source-details > summary::after {
  color: #5a6b8f;
}

[data-theme="light"] .tag-source .source-details-body {
  border-top-color: #d6deef;
}

[data-theme="light"] .tag-source .source-details-body a {
  border-color: #c8d5f0;
  background: #ffffff;
  color: #2b446f;
}

[data-theme="light"] .tag-source .source-details-body a:hover {
  border-color: #8bb34a;
  color: #36571e;
  background: #f8ffe8;
}

[data-theme="light"] .tag-source .tag-remove {
  color: rgba(49, 63, 92, 0.58);
}

.tag-input-row {
  display: flex;
  gap: var(--space-sm);
}

.tag-input-row input,
.tag-input-row select {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
}

.tag-input-row input:focus,
.tag-input-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.tag-add-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid rgba(146, 84, 248, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tag-add-btn:hover { background: var(--brand); color: #FFFFFF; }

/* Toggle switches */
.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.toggle-label { font-size: 0.82rem; font-weight: 650; }

/* Form group */
.form-group { margin-bottom: var(--space-md); }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group textarea { min-height: 80px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

/* ── Config Panel (overhaul) ─────────────────────────────────── */

/* Wider config panel on desktop */
.modal-panel.config-panel {
  width: min(1100px, 100%);
}

/* Config header with action buttons */
.config-header {
  padding: var(--space-md) var(--space-xl);
}

.config-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.config-header-actions .btn-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}

/* Tab content visibility */
.config-tab-content { display: none; }
.config-tab-content.active { display: block; animation: fadeIn 200ms ease; }

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

/* Config body – tighter padding for tabs layout */
.config-body {
  padding: var(--space-lg) var(--space-xl);
}

.config-body .config-grid {
  margin-top: 0;
}

/* Sticky footer with always-visible save button */
.config-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 3;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

.config-footer .btn-actions-group {
  display: flex;
  gap: var(--space-sm);
}

/* ── Aliases editor ─────────────────────────────────────────── */

.alias-editor {
  width: 100%;
  min-height: 280px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  letter-spacing: 0.01em;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  tab-size: 4;
  white-space: pre;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.alias-editor::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  line-height: 2;
  opacity: 0.6;
}

.alias-editor:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

/* Validation message */
.alias-validation {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alias-validation.success {
  background: var(--live-dim);
  color: var(--live);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alias-validation.warning {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(250, 176, 5, 0.2);
}

.alias-validation.error {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Counter badge */
#aliasCounter {
  transition: color var(--transition-fast);
}

#aliasCounter.has-aliases {
  color: var(--brand);
}

/* ── Button loading state ───────────────────────────────────── */

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  right: 12px;
}

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

/* ── Import/Export ghost buttons ────────────────────────────── */

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* ── Responsive: Mobile ─────────────────────────────────────── */

@media (max-width: 768px) {
  .config-panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .config-header {
    padding: var(--space-sm) var(--space-lg);
  }

  .config-body {
    padding: var(--space-md) var(--space-lg);
  }

  .config-footer {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
  }

  .config-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .config-footer .btn-actions-group {
    width: 100%;
    flex-direction: row;
  }

  .config-footer .btn-actions-group .btn {
    flex: 1;
  }

  .modal-tabs {
    overflow-x: auto;
    padding: 0 var(--space-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .modal-tabs::-webkit-scrollbar { display: none; }

  .modal-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

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

  .config-card-wide {
    grid-column: span 1;
  }

  .alias-editor {
    min-height: 220px;
    font-size: 0.76rem;
    line-height: 1.8;
    padding: 12px;
  }

  .tag-input-row {
    flex-wrap: wrap;
  }

  .tag-input-row input,
  .tag-input-row select {
    min-width: 100%;
  }
}

/* Status bar */
.status-bar-ongrid {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: var(--space-md);
}

.status-bar-ongrid.success { background: var(--live-dim); color: var(--live); border: 1px solid rgba(34, 197, 94, 0.2); }
.status-bar-ongrid.error { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.status-bar-ongrid.loading { background: var(--brand-dim); color: var(--brand); border: 1px solid rgba(146, 84, 248, 0.2); }

/* ---------------------------------------------------------------
   19. ROSTER MODAL (Team details)
   --------------------------------------------------------------- */
.roster-hero {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.roster-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.roster-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.roster-info h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.roster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.roster-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

.roster-badge.league { background: var(--live-dim); color: var(--live); }
.roster-badge.country { background: var(--bg-tertiary); color: var(--text-secondary); }

.roster-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: var(--space-lg) var(--space-xl) 0;
}

.roster-stat {
  text-align: center;
  padding: var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  margin-right: -1px;
}

.roster-stat:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.roster-stat:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-right: 0; }

.roster-stat-value { font-size: 1rem; font-weight: 800; color: var(--text-primary); display: block; }
.roster-stat-label { font-size: 0.62rem; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------
   20. STANDINGS TABLE
   --------------------------------------------------------------- */
.standings-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  white-space: nowrap;
}

.standings-table th {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
}

.standings-table td {
  padding: 8px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.standings-table tbody tr:hover { background: var(--bg-tertiary); }

.standings-highlight td {
  color: var(--text-primary);
  font-weight: 700;
  background: var(--brand-dim);
}

/* ---------------------------------------------------------------
   21. PLAYER CARDS
   --------------------------------------------------------------- */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.player-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.player-card:hover { border-color: var(--border-default); }

.player-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.player-photo img { width: 100%; height: 100%; object-fit: cover; }

.player-info strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-info span {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

/* ---------------------------------------------------------------
   22. AD BANNERS
   --------------------------------------------------------------- */
.ad-banner {
  position: relative;
  height: 70px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--space-lg) 0;
  overflow: hidden;
}

.ad-banner.has-custom-banner {
  background-color: var(--bg-secondary);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-color: var(--border-default);
}

.ad-banner.has-custom-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

[data-theme="light"] .ad-banner.has-custom-banner::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
}

.ad-banner.has-custom-banner .ad-banner-label {
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

[data-theme="light"] .ad-banner.has-custom-banner .ad-banner-label {
  color: #1f2937;
  text-shadow: none;
}

.banner-edit-btn {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(17, 24, 39, 0.72);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .banner-edit-btn {
  border-color: rgba(17, 24, 39, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
}

.ad-banner-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.6rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   23. ANIMATIONS & MICRO-INTERACTIONS
   --------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

.fade-in { animation: fadeIn var(--transition-base); }
.fade-in-up { animation: fadeInUp var(--transition-base); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  min-height: 16px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-default);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------------------------------------------------------------
   24. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ongrid-header-center {
    max-width: 320px;
  }

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

  .config-card-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 48px;
    --space-lg: 12px;
  }

  /* Mobile hide utility */
  .mobile-hidden { display: none !important; }
  .mobile-date-bar { display: none !important; }
  .fab-back-to-top { display: none !important; }
  .community-app-dock { display: none !important; }
  .mobile-quick-filters { display: none !important; }

  /* ── Mobile date bar ─────────────────────────────── */
  .mobile-date-bar {
    display: none !important;
  }

  /* ── Mobile filter bar (inline, substituindo o botão feio) ── */
  .filter-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-bar .filter-select {
    flex-shrink: 0;
    min-width: 0;
    max-width: 140px;
    height: 32px;
    font-size: 0.72rem;
    padding: 0 8px;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
  }

  /* Header — compact */
  .ongrid-header {
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    gap: 0;
  }

  .ongrid-logo { height: 22px; }

  .ongrid-header-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .ongrid-main { padding: 0 var(--space-sm); }

  .ongrid-header-center { display: none; }

  /* Sport bar — hidden on mobile (replaced by bottom nav) */
  .sport-bar { display: none; }

  /* Bottom nav — floating glass bar */
  .ongrid-main { padding-bottom: 80px; }

  .bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    gap: 4px;
    padding: 5px;
    background: rgba(17, 18, 24, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid #232533;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding-bottom: max(5px, env(safe-area-inset-bottom));
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 18px;
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 650;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    min-width: 72px;
    white-space: nowrap;
  }

  .bottom-nav-item.active {
    color: var(--text-primary);
    background: rgba(146, 84, 248, 0.15);
    box-shadow: 0 0 12px rgba(146, 84, 248, 0.12);
  }

  .bottom-nav-item[data-sport="football"].active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--sport-football);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
  }

  .bottom-nav-item[data-sport="nba"].active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--sport-nba);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
  }

  .bottom-nav-item[data-sport="ufc"].active {
    background: rgba(239, 68, 68, 0.12);
    color: var(--sport-ufc);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.1);
  }
  .bottom-nav-item[data-sport="wc2026"].active {
    background: rgba(250, 204, 21, 0.12);
    color: #eab308;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.1);
  }
  .bottom-nav-item[data-sport="ongrid-live"].active {
    background: rgba(0, 230, 118, 0.12);
    color: #00e676;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.1);
  }

  .bottom-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .bottom-nav-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body.community-mobile-view-chat .community-sidebar-left {
    display: none;
  }

  body.community-mobile-view-chat .community-sidebar-right {
    display: none;
  }

  body.community-mobile-view-chat .community-center {
    order: 0;
    width: 100%;
  }

  body.community-mobile-view-chat .community-room-hero {
    display: none;
  }

  body.community-mobile-view-chat .community-messages.livechat-messages {
    min-height: calc(100vh - 250px);
    padding-top: 4px;
  }

  body.community-mobile-view-chat .community-composer {
    bottom: 76px;
    margin-top: 10px;
  }

  body.community-mobile-view-chat .community-input-row {
    grid-template-columns: 34px minmax(0, 1fr) 74px;
    gap: 8px;
  }

  body.community-mobile-view-chat .community-input-row::before {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  body.community-mobile-view-rooms .community-center {
    display: none;
  }

  body.community-mobile-view-rooms .community-sidebar-right {
    display: none;
  }

  body.community-mobile-view-rooms .community-sidebar-left {
    display: flex;
    width: 100%;
    order: 0;
  }

  body.community-mobile-view-rooms .community-mobile-appbar {
    display: flex;
    position: sticky;
    top: 8px;
    z-index: 18;
    margin-bottom: 8px;
  }

  body.community-mobile-view-rooms .community-category-list {
    padding-bottom: 14px;
  }

  body.community-mobile-view-rooms .community-side-card:nth-of-type(2) {
    display: none;
  }

  body.community-mobile-view-rooms .community-side-card {
    border-radius: 20px;
  }

  body.community-mobile-view-rooms .community-chat-list {
    padding: 10px 10px 12px;
  }

  body.community-mobile-view-rooms .community-chat-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px 10px;
    border-radius: 16px;
  }

  body.community-mobile-view-rooms .community-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body.community-mobile-view-rooms .community-chat-topline strong {
    font-size: 0.86rem;
  }

  body.community-mobile-view-rooms .community-chat-preview {
    font-size: 0.68rem;
  }

  body.community-mobile-view-rooms .community-category {
    border-radius: 18px;
  }

  body.community-mobile-view-rooms .community-room-item {
    padding: 11px 11px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  body.community-mobile-view-rooms .community-room-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body.community-mobile-view-rooms .community-room-copy strong {
    font-size: 0.86rem;
  }

  body.community-mobile-view-rooms .community-room-copy span {
    font-size: 0.68rem;
  }

  body.community-mobile-view-rooms .community-room-stats {
    min-width: 34px;
  }

  /* Sub-nav — compact */
  .sub-nav {
    gap: 16px;
    padding: 4px 0;
  }

  .sub-nav-tab {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  /* Filter bar — hidden on mobile (moved to bottom sheet) */
  .filter-bar { display: none; }

  /* Control bar — mobile layout */
  .control-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .control-bar-left {
    flex: none;
    display: grid;
    gap: 10px;
  }

  .control-bar-left > #btnUpdateDual {
    display: none !important;
  }

  .control-bar-center { display: none; }
  .control-bar-right { display: none; }

  .segmented-control {
    flex: none;
    width: 100%;
    padding: 4px;
    border-radius: 18px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .segmented-control::-webkit-scrollbar { display: none; }

  .segment-btn {
    flex: 0 0 auto;
    min-width: 84px;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.74rem;
    border-radius: 14px;
  }

  .game-count {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    font-size: 0.68rem;
    justify-self: start;
    background: color-mix(in srgb, var(--brand) 12%, var(--bg-tertiary));
    border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border-default));
    border-radius: 999px;
  }

  /* Mobile action bar */
  .control-bar-mobile-actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .control-bar-mobile-actions .bottom-sheet-trigger {
    flex: 1;
    height: 36px;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
  }

  /* Games grid */
  .games-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .league-group-body { gap: var(--space-sm); }
  .card-grid { grid-template-columns: 1fr; }

  /* Game cards — compact */
  .game-card {
    padding: 10px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .game-card-body {
    gap: 8px;
    grid-template-columns: 1fr auto 1fr;
    min-height: 60px;
  }

  .game-card-team .team-logo {
    width: 40px;
    height: 40px;
  }

  .game-card-hour { font-size: 1.1rem; }

  .game-card-team-name {
    font-size: 0.72rem;
    max-width: 90px;
  }

  .game-card-top { min-height: 20px; }
  .game-card-league { font-size: 0.68rem; }
  .game-card-footer { min-height: 24px; padding-top: 4px; }
  .game-card { padding: 10px; gap: 6px; }
  .game-card-body { gap: 6px; min-height: 60px; }

  /* League group headers */
  .league-group-header {
    padding: 6px 10px;
  }

  .league-group-title { font-size: 0.75rem; }

  /* Day sections — compact */
  .day-section { margin-bottom: var(--space-md); }

  .day-section-header {
    margin-bottom: var(--space-md);
    padding-bottom: 8px;
    gap: 8px;
  }

  .day-section-title { font-size: 1rem; }

  .day-section-badge {
    padding: 2px 8px;
    font-size: 0.68rem;
  }

  /* Empty state */
  .empty-state {
    padding: var(--space-xl) var(--space-lg);
  }

  .empty-state-icon { font-size: 2rem; }

  /* Modals */
  .modal-panel {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .modal-tabs {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    overflow-x: auto;
  }

  /* Match Center mobile */
  #matchModal .modal-panel { width: 100%; max-height: 96vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .mc-hero-badge { width: 52px; height: 52px; }
  .mc-hero-name { font-size: 0.78rem; max-width: 100px; }
  .mc-score { font-size: 2rem; }
  .mc-score.dim { font-size: 1.3rem; }
  .mc-meta { font-size: 0.68rem; gap: var(--space-md); }
  .mc-meta span { max-width: 120px; }
  .mc-lineups { grid-template-columns: 1fr; gap: var(--space-lg); }
  .mc-stat-bar { grid-template-columns: 36px 1fr 36px; }

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

  .league-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .roster-stats-row {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  /* NBA cards — compact */
  .nba-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  .nba-card-top { margin-bottom: var(--space-sm); }

  .nba-card-top time { font-size: 0.85rem; }

  .nba-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
  }

  .nba-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .nba-team .team-logo {
    width: 56px;
    height: 56px;
  }

  .nba-team strong {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 90px;
  }

  .nba-vs {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-tertiary);
    text-transform: uppercase;
  }

  .nba-channels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
  }

  .nba-source { font-size: 0.65rem; }

  /* UFC cards — compact */
  .ufc-event-card {
    border-radius: var(--radius-md);
  }

  .ufc-event-header {
    padding: var(--space-md);
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .ufc-event-header h3 { font-size: 0.88rem; }
  .ufc-event-header p { font-size: 0.7rem; }

  .ufc-times {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .ufc-time-badge {
    gap: 5px;
    justify-content: flex-start;
  }

  .ufc-time-main {
    padding: 5px 10px;
    width: fit-content;
  }
  .ufc-time-main span { font-size: 0.62rem; }
  .ufc-time-main time { font-size: 0.78rem; }

  .ufc-time-prelims {
    padding: 3px 8px;
    width: fit-content;
  }
  .ufc-time-prelims span { font-size: 0.55rem; }
  .ufc-time-prelims time { font-size: 0.66rem; }

  .ufc-main-fight {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .ufc-fighter-photo {
    width: 72px;
    height: 72px;
  }

  .ufc-fighter-photo-fallback {
    font-size: 1.5rem;
  }

  .ufc-fighter {
    gap: 8px;
  }

  .ufc-fighter strong {
    font-size: 0.8rem;
    max-width: 100px;
    line-height: 1.2;
  }

  .ufc-fighter-record {
    font-size: 0.65rem;
  }

  .ufc-fighter-country {
    font-size: 0.65rem;
    gap: 4px;
  }

  .ufc-flag {
    width: 14px;
    height: 14px;
  }

  .ufc-category {
    font-size: 0.65rem;
  }

  .ufc-vs {
    font-size: 1rem !important;
  }

  .ufc-channels {
    padding: 0 var(--space-sm) var(--space-sm);
    gap: 4px;
  }

  .ufc-fight-list-title {
    font-size: 0.68rem;
  }

  .ufc-mini-photo {
    width: 32px;
    height: 32px;
  }

  .ufc-fight-row {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .ufc-fight-class { font-size: 0.65rem; }
  .ufc-fight-row em { font-size: 0.65rem; }
  .ufc-mini-fighter strong { font-size: 0.72rem; }
  .ufc-mini-fighter span { font-size: 0.62rem; }
  .ufc-fight-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--space-sm) var(--space-sm);
  }
  .ufc-mini-card {
    padding: var(--space-sm);
  }
  .ufc-mini-card-row {
    grid-template-columns: 1fr 30px 1fr;
    gap: 8px;
  }
  .ufc-fight-modal-panel {
    width: min(98vw, 520px);
    border-radius: 14px 14px 0 0;
    max-height: 95dvh;
  }
  .ufc-df-photo-box { height: 130px; }
  .ufc-df-photo { max-height: 130px; }
  .ufc-df-name { font-size: 0.8rem; }

  /* Global image constraint */
  .team-logo {
    max-width: 100%;
    overflow: hidden;
  }

  .team-logo img {
    max-width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .game-card {
    padding: var(--space-md);
  }

  .game-card-body {
    gap: var(--space-xs);
  }

  .game-card-team .team-logo {
    width: 32px;
    height: 32px;
  }

  .game-card-hour { font-size: 1.05rem; }

  .game-card-team-name {
    font-size: 0.7rem;
    max-width: 80px;
  }

  .btn-lg {
    height: 36px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .segment-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* ---------------------------------------------------------------
   24.5  BOTTOM SHEET — Mobile overlay component
   --------------------------------------------------------------- */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  transition: visibility 0.3s;
}

.bottom-sheet-overlay.active {
  visibility: visible;
}

.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.bottom-sheet-overlay.active .bottom-sheet-backdrop {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bottom-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 75vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bottom-sheet-overlay.active .bottom-sheet-panel {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 8px auto 0;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.bottom-sheet-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bottom-sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bottom-sheet-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.bottom-sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Sheet action buttons */
.sheet-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sheet-action-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
}

.sheet-action-btn-icon {
  font-size: 1.3rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Sheet selects */
.bottom-sheet-body .filter-select {
  width: 100%;
  height: 42px;
  min-width: 0;
  font-size: 0.85rem;
  padding: 0 36px 0 14px;
}

/* Sheet date input */
.bottom-sheet-body .date-input {
  width: 100%;
  height: 42px;
  font-size: 0.85rem;
  padding: 0 14px;
}

/* Sheet labels and fields */
.sheet-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.sheet-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Sheet apply button */
.sheet-apply-btn {
  width: 100%;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 4px;
}

.sheet-apply-btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
  .control-bar-mobile-actions { display: none !important; }
  .bottom-sheet-overlay { display: none !important; }
  .bottom-nav { display: none !important; }
  .ongrid-main { padding-bottom: 0; }
}

/* ---------------------------------------------------------------
   25. JS COMPATIBILITY — Classes referenced by script.js
   --------------------------------------------------------------- */

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn var(--transition-base); }

/* Roster tab panels */
.roster-tab-panel { display: none; }
.roster-tab-panel.active { display: block; animation: fadeIn var(--transition-base); }

/* Roster tabs (use same styling as modal-tab) */
.roster-tab {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  white-space: nowrap;
}
.roster-tab:hover { color: var(--text-secondary); }
.roster-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Subst items (config modal) */
.subst-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.subst-de { color: var(--text-secondary); }
.subst-seta { color: var(--brand); font-weight: 700; }
.subst-para { color: var(--text-primary); font-weight: 650; }

/* Teams by league container */
.teams-by-league {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Conference / section titles in roster */
.modal-section { margin-bottom: var(--space-xl); }
.modal-section:last-child { margin-bottom: 0; }
.modal-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Upcoming match cards (roster modal) */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.upcoming-match-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.upcoming-match-card:hover { border-color: var(--border-default); }
.upcoming-match-card.is-soon {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1);
}
.upcoming-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.upcoming-date-block { display: flex; align-items: baseline; gap: 6px; min-width: 90px; }
.upcoming-date-block strong { font-size: 1.4rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.upcoming-month { color: var(--text-secondary); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.upcoming-weekday { color: var(--text-tertiary); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-tertiary); }
.upcoming-weekday.highlight { color: var(--text-inverse); background: var(--live); font-weight: 800; }
.upcoming-league-block { display: flex; align-items: center; justify-content: center; min-width: 0; }
.upcoming-league-block strong { color: var(--text-primary); font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-time-block { background: var(--bg-secondary); color: var(--live); padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.upcoming-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
}
.upcoming-team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}
.upcoming-team-side .team-logo { width: 52px; height: 52px; }
.upcoming-team-side strong { font-size: 0.85rem; font-weight: 750; color: var(--text-primary); max-width: 150px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upcoming-vs-divider { color: var(--text-tertiary); font-size: 1.1rem; font-weight: 900; }
.upcoming-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.upcoming-canais-row { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }

/* ── Match Center Modal (mc-) ──────────────────────────────── */

/* Match modal wider */
#matchModal .modal-panel {
  width: min(780px, 96vw);
  border: 1px solid rgba(139, 92, 246, 0.22);
  background:
    radial-gradient(1200px 280px at 10% -20%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(900px 260px at 90% -30%, rgba(59, 130, 246, 0.10), transparent 58%),
    var(--bg-card);
}
#matchModal .match-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 10px;
}
#matchModal .mc-hero-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
#matchModal .modal-tabs {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.12));
}
#matchModal .modal-tab {
  font-weight: 700;
  letter-spacing: .01em;
}

/* Hero header */
.match-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  padding: 14px 0 8px;
}
.mc-hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mc-hero-badge { width: 74px; height: 74px; border-radius: 50%; background: var(--bg-tertiary); border: 2px solid var(--border-default); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.mc-hero-badge img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.mc-badge-fb { display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.4rem; font-weight: 800; color: var(--tc, var(--text-secondary)); background: color-mix(in srgb, var(--tc, var(--text-secondary)) 12%, transparent); border-radius: 50%; }
.mc-hero-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); max-width: 140px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-hero-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 90px; }
.mc-score { font-size: 2.55rem; font-weight: 900; color: var(--text-primary); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.mc-score.live { color: var(--live); }
.mc-score.dim { font-size: 1.6rem; color: var(--text-tertiary); font-weight: 800; }
.mc-score-sep { color: var(--text-tertiary); font-size: 0.9rem; margin: 0 2px; }
.mc-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.mc-status.mc-live { background: var(--live-dim); color: var(--live); border: 1px solid rgba(34,197,94,0.2); }
.mc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: livePulse 1s ease-in-out infinite; }
.mc-status.mc-ft { background: var(--bg-tertiary); color: var(--text-tertiary); }
.mc-status.mc-ns { background: var(--brand-dim); color: var(--brand); }
.mc-meta { display: flex; justify-content: center; gap: var(--space-lg); font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.mc-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* Empty state */
.mc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); padding: var(--space-xl) var(--space-lg); min-height: 160px; text-align: center; }
.mc-empty-icon { font-size: 2rem; opacity: 0.7; }
.mc-empty-text { font-size: 0.82rem; color: var(--text-secondary); max-width: 300px; line-height: 1.5; }

/* Loading spinner */
.mc-spinner { width: 28px; height: 28px; border: 3px solid var(--border-default); border-top-color: var(--brand); border-radius: 50%; animation: mcSpin 0.7s linear infinite; }
@keyframes mcSpin { to { transform: rotate(360deg); } }

/* Events */
.mc-events { display: flex; flex-direction: column; gap: 2px; }
.mc-event { display: flex; align-items: flex-start; gap: var(--space-sm); padding: 8px 10px; border-radius: var(--radius-sm); font-size: 0.82rem; transition: background 0.15s; }
.mc-event.home { background: linear-gradient(90deg, rgba(74,144,217,0.08) 0%, transparent 60%); }
.mc-event.away { background: linear-gradient(270deg, rgba(224,85,85,0.08) 0%, transparent 60%); }
.mc-event.ev-goal { border-left: 3px solid var(--live); }
.mc-event.ev-card { border-left: 3px solid #f59e0b; }
.mc-ev-min { font-weight: 700; color: var(--brand); min-width: 36px; text-align: center; font-size: 0.78rem; flex-shrink: 0; padding-top: 1px; font-variant-numeric: tabular-nums; }
.mc-ev-icon { font-size: 0.85rem; min-width: 20px; text-align: center; flex-shrink: 0; }
.mc-ev-info { flex: 1; color: var(--text-primary); line-height: 1.4; display: flex; flex-direction: column; gap: 1px; }
.mc-ev-info strong { font-weight: 650; }
.mc-ev-info small { color: var(--text-tertiary); font-size: 0.75rem; font-weight: 600; }
.mc-ev-sub { display: block; font-size: 0.72rem; color: var(--text-tertiary); font-weight: 500; }

/* ESPN badge */
.mc-espn-badge { font-size: 0.68rem; color: var(--text-tertiary); text-align: center; padding: 2px 0 8px; letter-spacing: 0.03em; }
.mc-espn-badge strong { color: #e8452c; }

/* Period dividers in ESPN events */
.mc-ev-period-divider { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 0 4px; border-top: 1px solid var(--border-subtle); margin: 4px 0; }

/* ESPN lineup */
.mc-lineups-espn { padding: 0 2px; }
.mc-lineups-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-lineup-team { background: var(--bg-card); border-radius: var(--radius-md); padding: 10px; }
.mc-lineup-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-subtle); }
.mc-lineup-teamname { font-size: 0.78rem; font-weight: 750; color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-lineup-formation { font-size: 0.65rem; font-weight: 700; color: var(--brand); background: var(--brand-dim); padding: 1px 6px; border-radius: var(--radius-full); flex-shrink: 0; }
.mc-lineup-section-title { font-size: 0.62rem; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin: 6px 0 3px; }
.mc-lineup-player { display: flex; align-items: center; gap: 5px; padding: 3px 0; font-size: 0.75rem; }
.mc-lineup-player.subbed-out { opacity: 0.55; }
.mc-lineup-player.subbed-in .mc-lineup-name::after { content: " ↑"; color: var(--brand); font-size: 0.68rem; }
.mc-lineup-jersey { font-size: 0.68rem; font-weight: 700; color: var(--text-tertiary); min-width: 18px; text-align: center; }
.mc-lineup-name { flex: 1; color: var(--text-primary); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-lineup-pos { font-size: 0.62rem; color: var(--text-tertiary); font-weight: 700; flex-shrink: 0; }
@media (max-width: 480px) {
  .mc-lineups-cols { grid-template-columns: 1fr; }
}

/* Stats */
.mc-stats { display: flex; flex-direction: column; gap: var(--space-md); }
.mc-stat { display: flex; flex-direction: column; gap: 4px; }
.mc-stat-label { text-align: center; font-size: 0.7rem; color: var(--text-tertiary); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.mc-stat-bar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: var(--space-sm); }
.mc-stat-val { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mc-stat-val:first-child { text-align: right; }
.mc-stat-val:last-child { text-align: left; }
.mc-stat-track { height: 6px; border-radius: 3px; background: var(--bg-tertiary); display: flex; overflow: hidden; }
.mc-stat-fill { height: 100%; transition: width 0.5s ease; }
.mc-stat-fill.home { background: var(--brand); border-radius: 3px 0 0 3px; }
.mc-stat-fill.away { background: var(--danger); border-radius: 0 3px 3px 0; }

/* Lineups */
.mc-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.mc-lu-side { min-width: 0; }
.mc-lu-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.mc-lu-header h4 { font-size: 0.85rem; font-weight: 750; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-lu-form { padding: 2px 8px; border-radius: var(--radius-full); background: var(--brand-dim); color: var(--brand); font-size: 0.68rem; font-weight: 700; flex-shrink: 0; }
.mc-lu-title { display: block; font-size: 0.68rem; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.mc-lu-section { margin-bottom: var(--space-md); }
.mc-lu-section.subs { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--border-subtle); }
.mc-lu-player { display: flex; align-items: center; gap: var(--space-sm); padding: 4px 0; font-size: 0.8rem; border-bottom: 1px solid var(--border-subtle); }
.mc-lu-player:last-child { border-bottom: none; }
.mc-lu-num { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.66rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.mc-lu-side.away .mc-lu-num { background: var(--danger); }
.mc-lu-name { flex: 1; color: var(--text-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-lu-pos { font-size: 0.66rem; color: var(--text-tertiary); font-weight: 600; flex-shrink: 0; padding: 2px 6px; background: var(--bg-tertiary); border-radius: var(--radius-sm); }

/* Field */
.mc-field { background: #14421f; border-radius: var(--radius-md); overflow: hidden; border: 2px solid #1e5a2a; }
.mc-field-svg { display: block; width: 100%; height: auto; max-height: 520px; }

/* ── Match Tracker (Campo tab) ──────────────────────────────── */

.mc-tracker {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Field container with pulse overlays */
.mc-tracker-field-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #14421f;
  border: 2px solid #1e5a2a;
}

.mc-tracker-field-container .mc-field-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
}

/* Pulse zones — attacking third pressure indicators */
.mc-tracker-pulse {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.mc-tracker-pulse.top {
  top: 0;
  background: radial-gradient(ellipse at 50% 70%, rgba(74,144,217,0.2) 0%, transparent 75%);
}

.mc-tracker-pulse.bottom {
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(224,85,85,0.2) 0%, transparent 75%);
}

.mc-tracker-pulse.active {
  opacity: 1;
  animation: trackerPulse 2.4s ease-in-out infinite;
}

@keyframes trackerPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Ball — CSS transitions for smooth movement */
.mc-tracker-ball {
  transition: cx 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              cy 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.7));
}

.mc-tracker-ball-glow {
  transition: cx 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              cy 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              r 0.3s ease,
              opacity 0.3s ease;
  fill: rgba(255,221,68,0.3);
}

.mc-tracker-ball-glow.idle {
  animation: ballBreathe 1.6s ease-in-out infinite;
}

@keyframes ballBreathe {
  0%, 100% { r: 12; opacity: 0.2; }
  50% { r: 18; opacity: 0.45; }
}

/* Ball trail — fades at previous position */
.mc-tracker-ball-trail {
  transition: opacity 0.5s ease-out;
  fill: rgba(255,255,255,0.35);
}

/* Highlight ring on field (clicking timeline events) */
.mc-tracker-highlight-ring {
  animation: highlightPulse 0.9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes highlightPulse {
  0%, 100% { r: 15; opacity: 0.9; }
  50% { r: 24; opacity: 0.35; }
}

/* Highlight label — minute next to pulse ring */
.mc-tracker-highlight-label {
  font-size: 7px;
  fill: #fff;
  font-weight: 700;
  font-family: var(--font-sans);
  text-anchor: middle;
  pointer-events: none;
}

/* Timeline container */
.mc-tracker-timeline {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  overflow: hidden;
}

.mc-tracker-timeline-scroll {
  display: flex;
  gap: 4px;
  padding: 0 var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.mc-tracker-timeline-scroll::-webkit-scrollbar { height: 4px; }
.mc-tracker-timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

/* Timeline event card */
.mc-tte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  color: var(--text-secondary);
  position: relative;
}

.mc-tte:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.mc-tte.active {
  background: var(--brand-dim);
  border-color: var(--brand);
  color: var(--brand);
}

.mc-tte.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Timeline type indicators */
.mc-tte.goal { border-bottom: 3px solid var(--live); }
.mc-tte.card { border-bottom: 3px solid var(--accent); }
.mc-tte.subst { border-bottom: 3px solid var(--info); }
.mc-tte.var { border-bottom: 3px solid var(--brand); }

.mc-tte-min {
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mc-tte-icon {
  font-size: 0.8rem;
  line-height: 1;
}

/* Empty timeline */
.mc-tracker-timeline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mc-tracker-field-container .mc-field-svg {
    max-height: 340px;
  }

  .mc-tracker-pulse {
    height: 22%;
  }

  .mc-tte {
    min-width: 38px;
    height: 38px;
    padding: 3px 4px;
  }

  .mc-tte-min { font-size: 0.58rem; }
  .mc-tte-icon { font-size: 0.7rem; }

  .mc-tracker-timeline-scroll {
    padding: 0 var(--space-sm);
    gap: 3px;
  }
}

/* ── New Horizontal Tracker (bet365-style) ─────────────────── */
.mc-tr2 { display: flex; flex-direction: column; gap: 12px; }

.mc-tr2-poss-row {
  display: flex; align-items: center; gap: 8px; padding: 0 2px;
}
.mc-tr2-side {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.mc-tr2-side.home { flex-direction: row; }
.mc-tr2-side.away { flex-direction: row-reverse; }
.mc-tr2-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.mc-tr2-poss-pct {
  font-size: 1.05rem; font-weight: 900;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.mc-tr2-poss-pct.home { color: #4a90d9; }
.mc-tr2-poss-pct.away { color: #e05555; }
.mc-tr2-poss-track-wrap {
  flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.mc-tr2-poss-track {
  width: 100%; height: 8px; border-radius: 4px;
  display: flex; overflow: hidden; background: var(--bg-tertiary);
}
.mc-tr2-poss-fill.home { background: #4a90d9; }
.mc-tr2-poss-fill.away { background: #e05555; }
.mc-tr2-poss-caption {
  font-size: 0.58rem; font-weight: 650; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.mc-tr2-scorebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 10px;
  background: var(--bg-tertiary); border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2px;
}
.mc-tr2-sb-team {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--text-primary);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-tr2-sb-team.right { justify-content: flex-end; text-align: right; }
.mc-tr2-sb-logo {
  width: 22px; height: 22px; object-fit: contain; flex-shrink: 0;
  border-radius: 4px;
}
.mc-tr2-sb-center {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.mc-tr2-sb-score {
  font-size: 1.3rem; font-weight: 900; color: var(--text-primary);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 5px;
}
.mc-tr2-sb-div { color: var(--text-tertiary); font-size: 1rem; }
.mc-tr2-sb-timer {
  font-size: 0.68rem; font-weight: 800; color: var(--live);
  letter-spacing: 0.06em; text-transform: uppercase;
  animation: livePulse 2s ease-in-out infinite;
}
.mc-tr2-sb-timer.ht { color: var(--accent); animation: none; }

.mc-tr2-pitch-wrap {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,0.06);
  max-height: 205px;
}
.mc-tr2-svg { display: block; width: 100%; height: auto; max-height: 205px; }

.mc-tr2-attack-ind {
  text-align: center; font-size: 0.74rem; font-weight: 700;
  padding: 2px 0; letter-spacing: 0.03em;
  transition: color 0.4s ease;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.mc-tr2-attack-ind.home { color: #4a90d9; }
.mc-tr2-attack-ind.away { color: #e05555; }
.mc-tr2-attack-ind.neutral { color: var(--text-tertiary); }

.mc-tr2-mstats { display: flex; flex-direction: column; gap: 5px; padding: 0 2px; }
.mc-tr2-srow {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  grid-template-areas: "v1 bar v2" ". lbl .";
  align-items: center; gap: 0 6px;
}
.mc-tr2-sv {
  font-size: 0.8rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text-tertiary);
}
.mc-tr2-sv.home { text-align: right; color: #4a90d9; }
.mc-tr2-sv.away { text-align: left;  color: #e05555; }
.mc-tr2-sv.win  { color: var(--text-primary); font-size: 0.88rem; }
.mc-tr2-strack {
  height: 5px; border-radius: 3px; display: flex; overflow: hidden;
  background: var(--bg-tertiary); grid-area: bar;
}
.mc-tr2-slbl {
  grid-area: lbl; text-align: center;
  font-size: 0.57rem; font-weight: 650; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1px;
}

.mc-tr2-tl-wrap {
  border-top: 1px solid var(--border-subtle); padding-top: 10px;
}
.mc-tr2-tl-label {
  font-size: 0.62rem; font-weight: 700; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.mc-tr2-tl {
  display: flex; flex-wrap: wrap; gap: 5px;
  max-height: 96px; overflow-y: auto;
}
.mc-tr2-tl::-webkit-scrollbar { height: 3px; }
.mc-tr2-ev {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px; font-size: 0.68rem;
  font-weight: 600; border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary); color: var(--text-secondary);
  white-space: nowrap;
}
.mc-tr2-ev.home { border-color: rgba(74,144,217,.3); background: rgba(74,144,217,.08); }
.mc-tr2-ev.away { border-color: rgba(224,85,85,.3);  background: rgba(224,85,85,.08);  }
.mc-tr2-ev.goal { border-color: rgba(34,197,94,.4);  background: rgba(34,197,94,.1);   font-weight: 750; }
.mc-tr2-ev-min  { font-weight: 800; color: var(--brand); font-size: 0.63rem; }
.mc-tr2-ev-icon { font-size: 0.72rem; }
.mc-tr2-ev-name { max-width: 66px; overflow: hidden; text-overflow: ellipsis; }

/* Away events in Events tab — right-aligned */
.mc-event.away { flex-direction: row-reverse; text-align: right; }
.mc-event.away .mc-ev-info.away { text-align: right; }
.mc-event.away .mc-ev-min { color: #e05555; }

/* Modal loading */
.modal-loading-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.modal-loading-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Roster group labels */
.roster-group h4 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 750;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roster-group h4 span { color: var(--text-tertiary); font-size: 0.68rem; }
.roster-group h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}
.roster-group h3 span {
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius-full);
  padding: 2px 7px;
  font-size: 0.65rem;
}

/* Roster grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

/* League card compact (used in leagues/channels tabs) */
.league-card.compact {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.league-card.compact header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.league-card.compact h3 { font-size: 0.85rem; font-weight: 750; color: var(--text-primary); }
.league-card.compact p { font-size: 0.78rem; color: var(--text-secondary); }

/* Channel card (used in channels tab) */
.channel-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.channel-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.channel-card-title strong { font-size: 0.78rem; color: var(--text-secondary); }

/* Mini games list */
.mini-games { display: flex; flex-direction: column; gap: 6px; }
.mini-games span {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Clickable game cards */
.game-card.clickable { cursor: pointer; }

/* Manage modal */
.manage-body { padding: 0; }
.manage-search-bar { margin-bottom: var(--space-md); }
.manage-search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}
.manage-search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.manage-search-input::placeholder { color: var(--text-tertiary); }

.manage-results { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.manage-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}
.manage-result-card:hover { border-color: var(--border-default); }
.manage-result-card.overridden { border-color: var(--brand); background: var(--brand-dim); }
.manage-result-card.removed { opacity: 0.5; border-color: var(--danger); }
.manage-result-left { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; flex: 1; }
.manage-result-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.manage-result-info { display: flex; flex-direction: column; min-width: 0; }
.manage-result-info strong { color: var(--text-primary); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manage-result-league { color: var(--text-tertiary); font-size: 0.7rem; }
.manage-result-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.manage-result-select {
  padding: 6px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  outline: none;
  max-width: 160px;
  cursor: pointer;
}
.manage-result-select:focus { border-color: var(--brand); }

.manage-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.manage-row:last-child { border-bottom: none; }
.manage-row-team { font-size: 0.8rem; color: var(--text-secondary); font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-row-team.removed { text-decoration: line-through; color: var(--text-tertiary); }
.manage-row-arrow { color: var(--text-tertiary); font-size: 0.75rem; flex-shrink: 0; }
.manage-row-league { font-size: 0.78rem; color: var(--brand); font-weight: 650; flex: 1; }

button.manage-row-remove,
button.manage-row-restore {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.7rem;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
}
button.manage-row-remove { background: none; color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
button.manage-row-remove:hover { background: var(--danger); color: #fff; }
button.manage-row-restore { background: none; color: var(--live); border-color: rgba(34, 197, 94, 0.2); }
button.manage-row-restore:hover { background: var(--live); color: var(--text-inverse); }

.manage-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.manage-btn-add { background: var(--brand); color: #fff; border-color: var(--brand); }
.manage-btn-add:hover { background: var(--brand-hover); }
.manage-details { margin-top: var(--space-md); }
.manage-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 6px 0;
}
.manage-details summary:hover { color: var(--text-primary); }
.manage-list { padding: var(--space-sm) 0 var(--space-sm) var(--space-sm); }
.manage-add-form { display: flex; gap: var(--space-sm); padding: var(--space-sm) 0; flex-wrap: wrap; }
.manage-input {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  flex: 1;
  min-width: 140px;
}
.manage-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.manage-input::placeholder { color: var(--text-tertiary); }
.manage-icon { font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.muted { color: var(--text-tertiary); font-size: 0.78rem; font-style: italic; }

/* UFC specific */
.ufc-toolbar { background: var(--sport-ufc-dim); border: 1px solid rgba(239, 68, 68, 0.15); }

.ufc-fighter-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-strong);
}
.ufc-fighter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ufc-fighter-photo-fallback {
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--sport-ufc);
  background: var(--sport-ufc-dim);
  border-color: rgba(239, 68, 68, 0.2);
}

.ufc-fighter-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ufc-fighter-record {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.ufc-fighter-country {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.ufc-flag {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.ufc-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ufc-vs {
  color: var(--sport-ufc) !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
}

.ufc-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.ufc-fight-list-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  display: block;
  width: 100%;
  padding: 0 var(--space-lg) var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  margin: 6px 0 4px;
}

.ufc-mini-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.ufc-mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ufc-fight-list { display: grid; gap: var(--space-sm); padding: var(--space-lg); }

.ufc-fight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.ufc-fight-class {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
}

.ufc-mini-fighter { display: flex; align-items: center; gap: var(--space-sm); }
.ufc-mini-fighter.right { flex-direction: row-reverse; text-align: right; }
.ufc-fight-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.ufc-fight-time {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.ufc-fight-row em {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

/* Ajustes finais mobile (mantidos por último para vencer conflitos) */
@media (max-width: 768px) {
  .nba-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }
  .nba-match-row {
    gap: 8px !important;
  }
  .nba-team-block .team-logo,
  .nba-team-block .team-logo-fallback {
    width: 76px !important;
    height: 76px !important;
  }
  .nba-team-block strong {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }
  .nba-card-top time {
    font-size: 0.8rem !important;
  }
  .nba-channels-row {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }

  .ufc-event-header {
    padding: 14px !important;
  }
  .ufc-main-fight {
    padding: 14px !important;
    gap: 12px !important;
    grid-template-columns: minmax(0,1fr) 92px minmax(0,1fr) !important;
    align-items: center !important;
  }
  .ufc-fighter-photo,
  .ufc-fighter-photo-fallback {
    width: 112px !important;
    height: 112px !important;
    font-size: 1.55rem !important;
  }
  .ufc-fighter {
    width: 100%;
    align-items: center !important;
  }
  .ufc-fighter-info {
    min-height: 96px;
    justify-content: flex-start;
  }
  .ufc-fighter strong {
    font-size: 0.86rem !important;
    line-height: 1.14 !important;
    max-width: 112px !important;
    display: block;
    min-height: 40px;
    text-align: center;
    word-break: break-word;
  }
  .ufc-fighter-country {
    font-size: 0.68rem !important;
    justify-content: center;
    text-align: center;
    min-height: 32px;
  }
  .ufc-flag {
    width: 14px !important;
    height: 14px !important;
  }
  .ufc-center {
    align-items: center !important;
    justify-content: center !important;
    padding-top: 4px;
  }
  .ufc-category {
    text-align: center;
    line-height: 1.15;
    font-size: 0.68rem;
  }
  .ufc-fight-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .ufc-mini-card {
    padding: 12px !important;
  }
}

.ufc-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ufc-center strong { color: var(--sport-ufc); font-size: 1.2rem; font-weight: 900; text-transform: uppercase; }
.ufc-mini-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.ufc-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.ufc-fighter strong { font-size: 0.88rem; font-weight: 750; color: var(--text-primary); }

/* Form hint */
.form-hint { display: block; color: var(--text-tertiary); font-size: 0.72rem; margin-top: 4px; }
.mt-12 { margin-top: var(--space-md); }

/* Legends */
.league-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* Team logo (reusable component) */
.team-logo {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-tertiary);
}
.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.team-logo-fallback {
  border: 2px solid var(--brand);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* NBA specific overrides */
.nba-card { border-top: 3px solid var(--sport-nba); }
.nba-toolbar { background: var(--sport-nba-dim); border: 1px solid rgba(59, 130, 246, 0.15); }
.nba-source { font-size: 0.72rem; color: var(--text-tertiary); font-weight: 650; margin-top: var(--space-sm); text-align: center; }

/* ---------------------------------------------------------------
   26. LOADING SHIMMER
   --------------------------------------------------------------- */
@keyframes shimmer {
  0% { opacity: 0.55; }
  50% { opacity: 0.25; }
  100% { opacity: 0.55; }
}

.loading-shimmer {
  animation: shimmer 1.2s ease-in-out infinite;
  pointer-events: none;
  position: relative;
}

.loading-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: inherit;
  opacity: 0.5;
  z-index: 10;
}

/* ---------------------------------------------------------------
   27. PRINT STYLES (optional)
   --------------------------------------------------------------- */
@media print {
  .ongrid-header,
  .sport-bar,
  .filter-bar,
  .toolbar-ongrid,
  .sub-nav,
  .ad-banner { display: none !important; }

  body { background: #fff; color: #000; }
  .game-card { break-inside: avoid; border: 1px solid #ddd; }
}

/* ── Campo tab: bet365-style pitch container + event popup ─────────── */
.mc-tr2-pitch-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* "Marcadores de Gols" header bar */
.mc-tr2-pitch-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.82);
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mc-tr2-ph-left {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mc-tr2-ph-icon { font-size: 0.9rem; }
.mc-tr2-ph-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pitch no longer needs its own border — container handles it */
.mc-tr2-pitch-container .mc-tr2-pitch-wrap {
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Event popup overlay */
.mc-tr2-evpop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 10, 3, 0.80);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 10;
}
.mc-tr2-evpop.visible { opacity: 1; }

.mc-tr2-evpop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 0 16px;
}
.mc-tr2-evpop-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8));
}
.mc-tr2-evpop-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  line-height: 1.1;
}
.mc-tr2-evpop-title.goal {
  color: #22c55e;
  text-shadow: 0 0 30px rgba(34,197,94,0.7), 0 2px 10px rgba(0,0,0,0.9);
  animation: goalPop 0.45s cubic-bezier(.17,.67,.44,1.3) forwards;
}
.mc-tr2-evpop-title.card-red  { color: #ef4444; text-shadow: 0 0 20px rgba(239,68,68,0.6), 0 2px 10px rgba(0,0,0,0.9); }
.mc-tr2-evpop-title.card-yellow { color: #facc15; text-shadow: 0 0 20px rgba(250,204,21,0.5), 0 2px 10px rgba(0,0,0,0.9); }

@keyframes goalPop {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.mc-tr2-evpop-player {
  font-size: 0.92rem;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.mc-tr2-evpop-team {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   PRÉ-JOGO TAB  (Predictions + Injuries)
   ════════════════════════════════════════════════════════════ */
.mc-pj-wrap { display:flex; flex-direction:column; gap:16px; padding:4px 0; }

.mc-pj-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.mc-pj-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 12px;
}
.mc-pj-advice {
  font-size: 0.88rem; font-style: italic;
  color: var(--brand); margin-bottom: 12px; font-weight: 500;
}
.mc-pj-bars { display:flex; flex-direction:column; gap:7px; }
.mc-pj-bar-row { display:grid; grid-template-columns:1fr 2fr auto; align-items:center; gap:8px; }
.mc-pj-team { font-size:0.72rem; color:var(--text-secondary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mc-pj-track { height:6px; background:var(--bg-tertiary); border-radius:4px; overflow:hidden; }
.mc-pj-fill  { height:100%; border-radius:4px; transition:width .5s; }
.mc-pj-fill.home { background:#4a90d9; }
.mc-pj-fill.draw { background:#888; }
.mc-pj-fill.away { background:#e05555; }
.mc-pj-pct  { font-size:0.72rem; font-weight:700; color:var(--text-primary); min-width:30px; text-align:right; }
.mc-pj-winner { margin-top:10px; font-size:0.78rem; color:var(--text-secondary); }
.mc-pj-winner strong { color:var(--brand); }

/* Injuries */
.mc-inj-team { margin-bottom:12px; }
.mc-inj-team:last-child { margin-bottom:0; }
.mc-inj-team-header { display:flex; align-items:center; gap:6px; margin-bottom:8px; font-size:0.8rem; font-weight:700; color:var(--text-primary); }
.mc-inj-team-logo { width:20px; height:20px; object-fit:contain; }
.mc-inj-row { display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px solid var(--border-subtle); }
.mc-inj-row:last-child { border-bottom:none; }
.mc-inj-photo { width:32px; height:32px; border-radius:50%; object-fit:cover; border:1px solid var(--border-subtle); }
.mc-inj-photo-placeholder { width:32px; height:32px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.mc-inj-info { display:flex; flex-direction:column; gap:2px; }
.mc-inj-name { font-size:0.82rem; font-weight:600; color:var(--text-primary); }
.mc-inj-type { font-size:0.70rem; color:var(--text-secondary); }

/* ════════════════════════════════════════════════════════════
   H2H TAB
   ════════════════════════════════════════════════════════════ */
.mc-h2h-wrap { display:flex; flex-direction:column; gap:12px; }

.mc-h2h-summary {
  display:grid; grid-template-columns:1fr auto 1fr;
  background:var(--bg-secondary); border:1px solid var(--border-subtle);
  border-radius:var(--radius-md); padding:14px 12px; gap:8px;
}
.mc-h2h-sum-item { display:flex; flex-direction:column; align-items:center; gap:3px; }
.mc-h2h-sum-item.home { align-items:flex-start; }
.mc-h2h-sum-item.away { align-items:flex-end; }
.mc-h2h-sum-n { font-size:1.8rem; font-weight:900; color:var(--text-primary); line-height:1; }
.mc-h2h-sum-item.home .mc-h2h-sum-n { color:#4a90d9; }
.mc-h2h-sum-item.away .mc-h2h-sum-n { color:#e05555; }
.mc-h2h-sum-l { font-size:0.62rem; color:var(--text-tertiary); text-align:center; font-weight:600; letter-spacing:.04em; }

.mc-h2h-list { display:flex; flex-direction:column; gap:6px; }
.mc-h2h-row {
  background:var(--bg-secondary); border:1px solid var(--border-subtle);
  border-radius:var(--radius-sm); padding:8px 10px;
  display:flex; flex-direction:column; gap:4px;
  border-left:3px solid transparent;
}
.mc-h2h-row.home { border-left-color:#4a90d9; }
.mc-h2h-row.away { border-left-color:#e05555; }
.mc-h2h-row.draw { border-left-color:#888; }
.mc-h2h-date { font-size:0.62rem; color:var(--text-tertiary); }
.mc-h2h-match { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mc-h2h-team { font-size:0.78rem; color:var(--text-secondary); flex:1; }
.mc-h2h-team.right { text-align:right; }
.mc-h2h-team.winner { color:var(--text-primary); font-weight:700; }
.mc-h2h-score { font-size:0.9rem; font-weight:800; color:var(--text-primary); white-space:nowrap; }
.mc-h2h-comp { font-size:0.60rem; color:var(--text-tertiary); font-style:italic; }

/* ════════════════════════════════════════════════════════════
   TABELA TAB (Standings)
   ════════════════════════════════════════════════════════════ */
.mc-tb-wrap { display:flex; flex-direction:column; gap:16px; }
.mc-tb-group-title { font-size:0.70rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-secondary); margin-bottom:6px; }
.mc-tb-scroll { overflow-x:auto; }
.mc-tb-table {
  width:100%; border-collapse:collapse; font-size:0.75rem;
  color:var(--text-secondary);
}
.mc-tb-table th {
  padding:5px 6px; text-align:center; font-weight:700; font-size:0.63rem;
  color:var(--text-tertiary); border-bottom:1px solid var(--border-subtle);
  white-space:nowrap;
}
.mc-tb-table th:nth-child(2) { text-align:left; }
.mc-tb-table td {
  padding:6px 6px; text-align:center; border-bottom:1px solid var(--border-subtle);
}
.mc-tb-table td:nth-child(2) { text-align:left; }
.mc-tb-table tr:last-child td { border-bottom:none; }
.mc-tb-highlight td { background:rgba(74,144,217,.08); color:var(--text-primary); }
.mc-tb-highlight .mc-tb-pts { color:var(--brand) !important; }
.mc-tb-pos { font-weight:700; color:var(--text-tertiary); width:20px; }
.mc-tb-team { display:flex; align-items:center; gap:6px; }
.mc-tb-logo { width:16px; height:16px; object-fit:contain; }
.mc-tb-pts { font-weight:800; color:var(--text-primary); }
.mc-tb-form-cell { display:flex; gap:2px; justify-content:center; }
.mc-tb-form { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:3px; font-size:0.55rem; font-weight:800; color:#fff; }
.mc-tb-form.w { background:#22c55e; }
.mc-tb-form.d { background:#888; }
.mc-tb-form.l { background:#e05555; }

/* ── Lineups tab — player ratings + badges ─────────────────── */
.mc-lu-coach {
  font-size: 0.70rem; color: var(--text-secondary);
  padding: 2px 0 8px 2px;
}
.mc-lu-player { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.mc-lu-rating {
  margin-left:auto; min-width:28px; padding:1px 5px;
  border-radius:4px; font-size:0.68rem; font-weight:800;
  color:#fff; text-align:center; flex-shrink:0;
}
.mc-lu-badge {
  font-size:0.60rem; padding:1px 4px;
  border-radius:3px; font-weight:700;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}
.mc-lu-badge.goal { color:#22c55e; background:rgba(34,197,94,.12); }
.mc-lu-badge.ast  { color:#4a90d9; background:rgba(74,144,217,.12); }
.mc-lu-badge.save { color:#a78bfa; background:rgba(167,139,250,.12); }
.mc-lu-badge.shot { color:#f59e0b; background:rgba(245,158,11,.12); }
.mc-lu-player.sub { opacity: 0.7; }
.mc-lineups-fallback-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 760px) {
  .mc-lineups-fallback-grid { grid-template-columns:1fr; }
}

/* ════════════════════════════════════════════════════════════
   HERO HEADER — Árbitro + Estádio
   ════════════════════════════════════════════════════════════ */
.mc-meta-extra {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; margin-top: 5px;
}
.mc-meta-venue, .mc-meta-referee {
  font-size: 0.62rem; color: var(--text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.mc-meta-venue { color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════
   LINEUPS — Player photos + Coach card
   ════════════════════════════════════════════════════════════ */
.mc-lu-photo {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.mc-lu-photo-fb {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; background: var(--bg-tertiary);
  color: var(--text-tertiary); width: 28px; height: 28px;
  border-radius: 50%; flex-shrink: 0;
}
.mc-lu-coach-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 8px;
  background: var(--bg-tertiary); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.mc-lu-coach-photo {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.mc-lu-coach-photo-fb {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; width: 38px; height: 38px; flex-shrink: 0;
}
.mc-lu-coach-info { display: flex; flex-direction: column; gap: 2px; }
.mc-lu-coach-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.mc-lu-coach-meta { font-size: 0.65rem; color: var(--text-tertiary); }

/* ════════════════════════════════════════════════════════════
   TRANSFERS WIDGET (inside Escalações tab)
   ════════════════════════════════════════════════════════════ */
.mc-tr-widget {
  margin-top: 20px; border-top: 1px solid var(--border-subtle); padding-top: 16px;
}
.mc-lu-section-title {
  font-size: 0.70rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 12px;
}
.mc-tr-side { margin-bottom: 14px; }
.mc-tr-side-name {
  font-size: 0.72rem; font-weight: 700; color: var(--brand);
  margin-bottom: 6px; padding-left: 2px;
}
.mc-tr-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-subtle);
}
.mc-tr-row:last-child { border-bottom: none; }
.mc-tr-photo {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--border-subtle);
}
.mc-tr-photo-fb {
  width: 30px; height: 30px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.mc-tr-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-tr-player { font-size: 0.80rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tr-clubs { font-size: 0.62rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.mc-tr-date { font-size: 0.60rem; color: var(--text-tertiary); }
.mc-tr-type {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px;
  background: var(--brand-dim); color: var(--brand);
}

/* ════════════════════════════════════════════════════════════
   VENUE CARD (inside Pré-Jogo tab)
   ════════════════════════════════════════════════════════════ */
.mc-venue-card { padding-bottom: 12px; }
.mc-venue-img {
  width: 100%; max-height: 160px; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.mc-venue-name {
  font-size: 1rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 8px;
}
.mc-venue-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.mc-venue-meta span {
  font-size: 0.72rem; color: var(--text-secondary);
  background: var(--bg-tertiary); border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 3px 8px;
}

/* ── Player Profile ─────────────────────────────────────── */
.mc-player-loading { display:flex; flex-direction:column; align-items:center; gap:12px; padding:48px 0; color:var(--text-muted,#888); }
.mc-player-profile { padding:0 0 24px; }
.mc-player-back { background:none; border:none; color:var(--accent,#4a90d9); font-size:.85rem; font-weight:600; cursor:pointer; padding:12px 16px; display:flex; align-items:center; gap:6px; }
.mc-player-back:hover { opacity:.7; }
.mc-player-hero { display:flex; gap:16px; padding:4px 16px 16px; align-items:flex-start; }
.mc-player-photo { width:80px; height:80px; border-radius:50%; object-fit:cover; background:var(--bg-elevated); flex-shrink:0; }
.mc-player-photo.fallback { display:flex; align-items:center; justify-content:center; font-size:2rem; background:var(--bg-elevated); }
.mc-player-info { flex:1; min-width:0; }
.mc-player-name { font-size:1.1rem; font-weight:700; margin:0 0 4px; }
.mc-player-team { display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--text-muted,#888); margin-bottom:8px; }
.mc-player-team-logo { width:16px; height:16px; object-fit:contain; }
.mc-player-meta { display:flex; flex-wrap:wrap; gap:6px; font-size:.75rem; color:var(--text-secondary,#666); }
.mc-player-meta span { background:var(--bg-tertiary); border:1px solid var(--border-subtle); border-radius:20px; padding:2px 8px; }
.mc-player-league { font-size:.7rem; color:var(--accent,#4a90d9); margin-top:6px; font-weight:600; }
.mc-pst-section { padding:0 16px; }
.mc-pst-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:8px; margin-top:10px; }
.mc-pst-item { background:var(--card-bg,#f8f8f8); border-radius:10px; padding:10px 8px; text-align:center; }
.mc-pst-val { display:block; font-size:1.3rem; font-weight:700; color:var(--accent,#4a90d9); }
.mc-pst-lbl { display:block; font-size:.65rem; color:var(--text-muted,#999); margin-top:2px; text-transform:uppercase; letter-spacing:.4px; }
.mc-lu-arrow { margin-left:auto; color:var(--text-muted,#aaa); font-size:1rem; }

/* ── Tabela sub-tabs ────────────────────────────────────── */
.mc-tb-subtabs { display:flex; gap:4px; padding:12px 12px 0; overflow-x:auto; scrollbar-width:none; }
.mc-tb-subtabs::-webkit-scrollbar { display:none; }
.mc-tb-stab { background:var(--bg-tertiary); border:1px solid var(--border-default); border-radius:20px; padding:5px 12px; font-size:.75rem; font-weight:600; cursor:pointer; color:var(--text-secondary); white-space:nowrap; transition:background .15s,color .15s,border-color .15s; }
.mc-tb-stab:hover { background:var(--bg-elevated); border-color:var(--border-strong); color:var(--text-primary); }
.mc-tb-stab.active { background:var(--brand); border-color:var(--brand); color:#fff; }
#mc-tb-content { padding-top:4px; }

/* ── Top Scorers / Assists / Cards list ─────────────────── */
.mc-scorer-list { padding:8px 12px; display:flex; flex-direction:column; gap:6px; }
.mc-scorer-row { display:flex; align-items:center; gap:10px; background:var(--bg-tertiary); border:1px solid var(--border-subtle); border-radius:10px; padding:8px 10px; transition:border-color .15s; }
.mc-scorer-row:hover { border-color:var(--border-default); }
.mc-scorer-rank { font-size:.72rem; font-weight:700; color:var(--text-tertiary); min-width:18px; text-align:center; }
.mc-scorer-player { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.mc-scorer-photo { width:34px; height:34px; border-radius:50%; object-fit:cover; background:var(--bg-elevated); flex-shrink:0; }
.mc-scorer-photo-fb { width:34px; height:34px; border-radius:50%; background:var(--bg-elevated); border:1px solid var(--border-subtle); display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; }
.mc-scorer-info { min-width:0; }
.mc-scorer-name { display:block; font-size:.82rem; font-weight:650; color:var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mc-scorer-team { display:flex; align-items:center; gap:4px; font-size:.68rem; color:var(--text-tertiary); margin-top:1px; }
.mc-scorer-tlogo { width:12px; height:12px; object-fit:contain; }
.mc-scorer-stats { display:flex; gap:10px; align-items:center; flex-shrink:0; }
.mc-scorer-main { display:flex; flex-direction:column; align-items:center; }
.mc-scorer-main span, .mc-scorer-sec span { display:block; }
.mc-scorer-main { font-size:1.05rem; font-weight:750; color:var(--brand); text-align:center; line-height:1.1; }
.mc-scorer-main small { font-size:.58rem; color:var(--text-tertiary); font-weight:500; text-transform:uppercase; letter-spacing:.03em; }
.mc-scorer-sec { font-size:.85rem; font-weight:600; color:var(--text-secondary); text-align:center; line-height:1.1; }
.mc-scorer-sec small { font-size:.58rem; color:var(--text-tertiary); font-weight:500; text-transform:uppercase; letter-spacing:.03em; }

/* ── Odds section ───────────────────────────────────────── */
.mc-odds-market { margin-bottom: 14px; }
.mc-odds-market-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-secondary, #a6accd);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mc-odds-bk { font-size: .66rem; color: var(--text-muted, #7f86aa); font-weight: 500; }
.mc-odds-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-odds-item {
  flex: 1 1 120px;
  min-width: 110px;
  background: rgba(20, 27, 48, 0.85);
  border: 1px solid rgba(143, 155, 198, 0.22);
  border-radius: 10px;
  padding: 8px 8px;
  text-align: center;
}
.mc-odds-label {
  display: block;
  font-size: .68rem;
  color: var(--text-muted, #99a0c1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.mc-odds-val {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #f8c74d;
}

/* Ajustes do modal no tema claro (pré-jogo/cotações) */
[data-theme="light"] .mc-pj-section {
  background: #ffffff;
  border-color: #d8deea;
}
[data-theme="light"] .mc-pj-title {
  color: #4b5563;
}
[data-theme="light"] .mc-pj-advice {
  color: #7c3aed;
}
[data-theme="light"] .mc-pj-track {
  background: #e7ebf3;
}
[data-theme="light"] .mc-pj-team,
[data-theme="light"] .mc-pj-winner {
  color: #4b5563;
}
[data-theme="light"] .mc-odds-market-name {
  color: #374151;
}
[data-theme="light"] .mc-odds-bk {
  color: #6b7280;
}
[data-theme="light"] .mc-odds-item {
  background: #eef2f8;
  border-color: #d4dbe8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .mc-odds-label {
  color: #5f6b7d;
}
[data-theme="light"] .mc-odds-val {
  color: #c77a00;
}

/* ── Coach trophies ─────────────────────────────────────── */
.mc-lu-coach-trophies { font-size:.7rem; color:#b8860b; font-weight:600; margin-top:3px; display:block; }

/* ── Aba BET — Bookmaker selector ───────────────────────── */
.modal-tab-bet { background:linear-gradient(135deg,#7c3aed,#4f46e5) !important; color:#fff !important; font-weight:700 !important; border-radius:8px !important; padding:5px 14px !important; }
.modal-tab-bet.active { box-shadow:0 0 0 2px #7c3aed !important; }

/* Match modal polish (alta prioridade) */
#matchModal .match-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px 18px 12px !important;
}
#matchModal .mc-hero-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 20px !important;
}
#matchModal .mc-hero-team { gap: 10px !important; }
#matchModal .mc-hero-badge {
  width: 82px !important;
  height: 82px !important;
  border: 2px solid rgba(148,163,184,.35) !important;
  background: radial-gradient(circle at 30% 20%, rgba(71,85,105,.28), rgba(15,23,42,.92)) !important;
}
#matchModal .mc-hero-badge img { padding: 9px !important; }
#matchModal .mc-hero-center {
  background: linear-gradient(180deg, rgba(30,41,59,.62), rgba(15,23,42,.72)) !important;
  border: 1px solid rgba(148,163,184,.28) !important;
  border-radius: 16px !important;
  padding: 10px 14px !important;
}
#matchModal .mc-score { font-size: 2.8rem !important; }
#matchModal .mc-hero-name { font-size: 1rem !important; font-weight: 800 !important; }
#matchModal .modal-tabs {
  border-top: 1px solid rgba(148,163,184,.2) !important;
  background: linear-gradient(180deg, rgba(15,23,42,.46), rgba(15,23,42,.1)) !important;
}

/* grid de bookmakers */
.bet-bookmaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

/* card individual */
.bet-bk-card {
  position: relative;
  border: 2px solid var(--border-default, #232533);
  border-radius: 14px;
  padding: 14px 8px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  background: var(--bg-elevated, #1C1E28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bet-bk-card:hover {
  border-color: var(--brand, #9254F8);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(146,84,248,.15);
}
.bet-bk-card.selected {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.22), 0 4px 20px rgba(124,58,237,.18);
  background: rgba(124,58,237,.1);
}

/* badge colorida da marca */
.bet-bk-badge {
  width: 52px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  flex-shrink: 0;
}

.bet-bk-name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-primary, #E5E7EB);
  line-height: 1.2;
}

/* checkmark de selecionado */
.bet-bk-check {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: .65rem;
  font-weight: 900;
  color: #7c3aed;
  background: rgba(124,58,237,.18);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* linha de ID personalizado */
.bet-custom-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bet-custom-row label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary, #9CA3AF);
  white-space: nowrap;
}
.bet-custom-row input[type="number"] {
  width: 100px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-default, #232533);
  background: var(--bg-secondary, #111218);
  color: var(--text-primary, #E5E7EB);
  font-size: .85rem;
}
.bet-custom-row a {
  font-size: .78rem;
  color: #9254F8;
  text-decoration: none;
}
.bet-custom-row a:hover { text-decoration: underline; }
/* League IDs tab (Config) */
.league-id-add-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.league-id-add-row .tag-input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(20,24,36,.92), rgba(16,20,30,.92));
  color: #eaf0ff;
  padding: 0 10px;
  font-size: 13px;
}

.league-id-add-row .tag-input::placeholder {
  color: rgba(200,210,235,.45);
}

.league-id-add-row .tag-input:focus {
  outline: none;
  border-color: rgba(152, 255, 0, .75);
  box-shadow: 0 0 0 3px rgba(152, 255, 0, .16);
  background: linear-gradient(180deg, rgba(22,28,40,.98), rgba(18,24,34,.98));
}

[data-theme="light"] .league-id-add-row .tag-input {
  border: 1px solid #d6dbe7;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  color: #1f2937;
}

[data-theme="light"] .league-id-add-row .tag-input::placeholder {
  color: #8b95a7;
}

[data-theme="light"] .league-id-add-row .tag-input:focus {
  border-color: rgba(124, 58, 237, .65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
  background: #ffffff;
}

.league-id-table-wrap {
  border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 10px;
  overflow: hidden;
}

.league-id-table {
  width: 100%;
  border-collapse: collapse;
}

.league-id-table th,
.league-id-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
  text-align: left;
}

.league-id-table thead th {
  font-size: 12px;
  opacity: .8;
  letter-spacing: .02em;
}

.league-id-table .empty-row {
  text-align: center;
  opacity: .7;
}

.league-id-table td .tag-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(20,24,36,.92), rgba(16,20,30,.92));
  color: #eaf0ff;
  padding: 0 10px;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.league-id-table td .tag-input::placeholder {
  color: rgba(200,210,235,.45);
}

.league-id-table td .tag-input:hover {
  border-color: rgba(152, 255, 0, .35);
}

.league-id-table td .tag-input:focus {
  outline: none;
  border-color: rgba(152, 255, 0, .75);
  box-shadow: 0 0 0 3px rgba(152, 255, 0, .16);
  background: linear-gradient(180deg, rgba(22,28,40,.98), rgba(18,24,34,.98));
}

.league-id-table td:first-child {
  font-weight: 700;
  color: #d6deff;
  letter-spacing: .02em;
}

.league-id-table th {
  color: rgba(223,231,255,.72);
}

.league-id-table tbody tr:hover {
  background: rgba(152, 255, 0, .04);
}

[data-theme="light"] .league-id-table td .tag-input {
  border: 1px solid #d6dbe7;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  color: #1f2937;
}

[data-theme="light"] .league-id-table td .tag-input::placeholder {
  color: #8b95a7;
}

[data-theme="light"] .league-id-table td .tag-input:hover {
  border-color: #b8c1d3;
}

[data-theme="light"] .league-id-table td .tag-input:focus {
  border-color: rgba(124, 58, 237, .65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
  background: #ffffff;
}

[data-theme="light"] .league-id-table td:first-child {
  color: #6b7280;
}

[data-theme="light"] .league-id-table th {
  color: #6b7280;
}

[data-theme="light"] .league-id-table tbody tr:hover {
  background: rgba(124, 58, 237, .04);
}

.league-id-remove {
  border: 1px solid rgba(255,80,80,.45);
  color: #ff8b8b;
  background: transparent;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
  cursor: pointer;
}

.login-required-panel {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(152, 255, 0, .13), transparent 42%),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  text-align: center;
}

.login-required-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(152, 255, 0, .12);
  border: 1px solid rgba(152, 255, 0, .28);
  font-size: 1.45rem;
}

.login-required-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.25;
}

.login-required-panel p {
  margin: 10px 0 20px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.login-required-google,
.ongrid-auth-btn.login-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #98ff00);
  color: #071009;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(34, 197, 94, .22);
}

.login-required-google {
  width: 100%;
  min-height: 46px;
}

.login-required-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

[data-theme="light"] .login-required-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .08), transparent 42%),
    #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
}

.manual-teams-editor {
  display: grid;
  gap: 12px;
}

.manual-teams-help {
  margin: 0;
  color: var(--text-secondary);
  font-size: .84rem;
  line-height: 1.45;
}

.manual-teams-textarea {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  font: 700 .88rem/1.55 Consolas, "SFMono-Regular", monospace;
}

.manual-teams-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(152, 255, 0, .12);
}

.manual-teams-actions {
  display: flex;
  justify-content: flex-end;
}

[data-theme="light"] .manual-teams-textarea {
  background: #ffffff;
  color: #111827;
}

/* ================================================================
   MOBILE PREMIUM — Responsividade completa (mobile-first)
   Adicionado na v31 — não remove nenhuma funcionalidade existente
   ================================================================ */

/* ── 1. Games grid: 1 coluna em mobile ─────────────────────────── */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .league-group-body {
    grid-template-columns: 1fr;
  }
}

/* ── 2. Game card premium mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .game-card {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 9px;
  }

  .game-card-body {
    min-height: 78px;
    gap: 6px;
  }

  .game-card-team .team-logo {
    width: 44px;
    height: 44px;
  }

  .game-card-team-logo-fallback {
    width: 44px;
    height: 44px;
    font-size: 0.78rem;
  }

  .game-card-team-name {
    font-size: 0.82rem;
    max-width: 120px;
  }

  .game-card-hour {
    font-size: 1.45rem;
  }

  .game-card-league {
    font-size: 0.68rem;
    max-width: calc(100vw - 140px);
  }

  .game-card-footer {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Live badge maior no mobile */
  .game-card-live,
  .game-card-finished,
  .game-card-scheduled {
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  /* Score vivo maior */
  .game-card-score {
    font-size: 1.3rem;
  }
}

/* ── 3. Channel badges maiores no mobile ────────────────────────── */
@media (max-width: 768px) {
  .channel-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    height: 26px;
  }
}

/* ── 4. Cinematic hero + featured event mobile ───────────────── */
@media (max-width: 768px) {
  /* Hero */
  .cinematic-hero {
    border-radius: 18px;
    padding: 20px 18px 24px;
    min-height: 360px;
    margin-bottom: 24px;
  }

  .ch-topbar {
    margin-bottom: 16px;
  }

  .ch-counters {
    display: none; /* esconde contadores no mobile pra não poluir */
  }

  /* Featured event match poster */
  .fe-duel {
    gap: 12px;
  }

  .fe-crest {
    width: 48px; height: 48px;
    font-size: .88rem;
  }

  .fe-team-name {
    font-size: 1.1rem;
    letter-spacing: -.03em;
  }

  .fe-time-num {
    font-size: 1.75rem;
  }

  .fe-live-time {
    font-size: 1.05rem;
  }

  .fe-minute {
    font-size: 1.6rem;
  }

  .fe-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fe-cta-btn {
    height: 38px;
    padding: 0 18px;
    font-size: .8rem;
  }

  /* Stream sections mobile */
  .hs-section {
    padding: 20px 0 8px;
  }

  .hs-header {
    margin-bottom: 12px;
  }

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

  .hs-icon {
    font-size: 1.1rem;
  }

  .hs-track {
    gap: 8px;
    padding-bottom: 6px;
    /* scroll suave sem rebote */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  /* Oculta scrollbar em mobile */
  .hs-track::-webkit-scrollbar { display: none; }
  .hs-track { scrollbar-width: none; }

  /* Stream cards mobile */
  .stream-card {
    min-width: 185px;
    max-width: 185px;
    border-radius: 15px;
    scroll-snap-align: start;
  }

  .stream-card-top {
    padding: 12px 12px 0;
  }

  .stream-card-time-wrap {
    padding: 6px 12px 2px;
  }

  .stream-card-hour {
    font-size: 1.3rem;
  }

  .stream-card-teams {
    padding: 8px 12px;
  }

  .stream-card-teams .name {
    font-size: .84rem;
  }

  .stream-card-footer {
    padding: 0 12px 12px;
  }
}

/* ── 5. MQF buttons — touch target 44px ────────────────────────── */
@media (max-width: 900px) {
  .mobile-quick-filters {
    display: none !important;
    gap: 6px;
    padding: 8px 4px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-quick-filters::-webkit-scrollbar { display: none; }

  .mqf-btn {
    height: 38px;
    min-width: 68px;
    padding: 0 14px;
    font-size: 0.76rem;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .mqf-btn.active {
    font-weight: 800;
  }
}

/* ── 6. Segmented control — touch targets ───────────────────────── */
@media (max-width: 768px) {
  .segmented-control {
    flex: none;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 4px;
  }

  .segmented-control::-webkit-scrollbar { display: none; }

  .segment-btn {
    flex: 0 0 auto;
    min-width: 80px;
    height: 38px;
    font-size: 0.74rem;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  /* AO VIVO badge no segmented */
  .live-count-badge {
    font-size: 0.58rem;
    min-width: 16px;
    height: 16px;
  }

  .game-count {
    width: fit-content;
    justify-self: start;
  }
}

/* ── 7. Header mobile refinements ───────────────────────────────── */
@media (max-width: 768px) {
  .ongrid-header {
    padding: 0 12px;
  }

  .ongrid-header-btn {
    width: 36px;
    height: 36px;
  }
}

/* ── 8. Sub-nav mobile — scroll horizontal ──────────────────────── */
@media (max-width: 768px) {
  .sub-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 4px 2px;
  }

  .sub-nav::-webkit-scrollbar { display: none; }

  .sub-nav-tab {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 8px 0;
  }
}

/* ── 9. Match modal mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  #matchModal .modal-panel {
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 95dvh;
    margin-top: auto;
  }

  .match-hero {
    gap: 8px;
    padding: var(--space-sm) 0;
  }

  .mc-hero-badge {
    width: 52px;
    height: 52px;
  }

  .mc-hero-name {
    font-size: 0.78rem;
    max-width: 100px;
  }

  .mc-hero-center {
    min-width: 72px;
  }

  .mc-score {
    font-size: 1.9rem;
  }

  .mc-score.dim {
    font-size: 1.35rem;
  }
}

/* ── 10. Sport section header mobile ────────────────────────────── */
@media (max-width: 768px) {
  .sport-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sport-section-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── 11. Bottom nav safe area (iPhone) ──────────────────────────── */
@media (max-width: 768px) {
  .bottom-nav {
    padding-bottom: max(5px, env(safe-area-inset-bottom, 5px));
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .ongrid-main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── 12. Breakpoint 360px — telas muito pequenas ────────────────── */
@media (max-width: 360px) {
  .game-card-team-name {
    font-size: 0.75rem;
    max-width: 90px;
  }

  .game-card-hour {
    font-size: 1.2rem;
  }

  .game-card-team .team-logo {
    width: 38px;
    height: 38px;
  }

  .stream-card {
    min-width: 180px;
    max-width: 180px;
  }

  .mqf-btn {
    min-width: 58px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .segment-btn {
    font-size: 0.7rem;
    padding: 0 6px;
  }
}

/* ── 13. Breakpoint 430px — iPhone Pro Max / large Android ──────── */
@media (min-width: 430px) and (max-width: 768px) {
  .game-card-team-name {
    max-width: 140px;
    font-size: 0.88rem;
  }

  .game-card-hour {
    font-size: 1.6rem;
  }

  .stream-card {
    min-width: 215px;
    max-width: 215px;
  }
}

/* ── 14. Tablet (769px–1024px) ──────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stream-card {
    min-width: 240px;
    max-width: 240px;
  }

  .premium-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .ongrid-main {
    padding: 0 var(--space-lg);
  }
}

/* ── 15. Animações suaves — respeitar preferências do usuário ───── */
@media (prefers-reduced-motion: reduce) {
  .game-card-live,
  .game-card-elapsed,
  .live-dot-btn,
  .mc-dot {
    animation: none !important;
  }

  .game-card,
  .stream-card,
  .bet-bk-card {
    transition: none !important;
  }
}

/* ── 16. Light mode adjustments for mobile ──────────────────────── */
@media (max-width: 768px) {
  [data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-color: #e5e7eb;
  }

  [data-theme="light"] .mobile-quick-filters {
    background: transparent;
  }

  [data-theme="light"] .mqf-btn {
    background: #fff;
    border-color: #e5e7eb;
    color: #4b5563;
  }

  [data-theme="light"] .mqf-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
}

/* ── 17. Scroll suave global no mobile ──────────────────────────── */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
  }

  .hs-track,
  .mobile-quick-filters,
  .sub-nav,
  .modal-tabs {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

/* ── 18. Melhora visual dos cards no mobile (elevação) ──────────── */
@media (max-width: 768px) {
  .game-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .game-card--live {
    border-left: 3px solid var(--live);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), -1px 0 0 var(--live);
  }

  .stream-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* Garante que nada vaze da tela */
  .ongrid-app {
    overflow-x: hidden;
  }
}

/* ── 19. Padding horizontal base do app no mobile ───────────────── */
@media (max-width: 768px) {
  .ongrid-main {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ── 20. Favoritos — botão maior no mobile ──────────────────────── */
@media (max-width: 768px) {
  .fav-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 10px;
  }
}

/* ── 21. Empty states mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .empty-state {
    padding: var(--space-2xl) var(--space-lg);
  }

  .empty-state-icon {
    font-size: 2rem;
  }

  .empty-state-text {
    font-size: 0.85rem;
  }

  .stream-empty {
    min-height: 60px;
    font-size: 0.75rem;
  }
}

/* ── 22. Game card hover desativado em touch ────────────────────── */
@media (hover: none) {
  .game-card:hover,
  .stream-card:hover {
    transform: none;
    box-shadow: inherit;
    border-color: inherit;
  }

  .game-card:hover::before {
    opacity: 0;
  }

  /* Feedback de toque via active state */
  .game-card:active {
    transform: scale(0.98);
    opacity: 0.92;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  .stream-card:active {
    transform: scale(0.97);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  .mqf-btn:active {
    opacity: 0.75;
  }
}

/* ── 23. Imagens sem overflow ───────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── 24. Premium hero gradiente mais impactante ─────────────────── */
@media (max-width: 768px) {
  .premium-hero {
    background:
      radial-gradient(800px 200px at 0% 0%, rgba(124, 58, 237, 0.22), transparent 55%),
      radial-gradient(600px 180px at 100% 100%, rgba(59, 130, 246, 0.18), transparent 58%),
      linear-gradient(160deg, var(--bg-secondary), var(--bg-primary));
  }
}

/* ── 25. Botão "Ver detalhes" no featured event ─────────────────── */
@media (max-width: 768px) {
  .featured-event .btn-secondary {
    flex: 1;
    height: 38px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .featured-event .stream-card-footer {
    gap: 8px;
  }
}

/* ================================================================
   VISUAL PREMIUM v33 — Mobile overrides para o novo hero e cards
   ================================================================ */

/* ── Hero mobile: mais alto, gradiente mais forte ──────────────── */
@media (max-width: 768px) {
  .premium-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    min-height: 280px;
    border-radius: 18px;
    gap: 16px;
  }

  /* Esconde a coluna direita (featured event) no mobile muito pequeno */
  @media (max-width: 480px) {
    .premium-hero-right {
      /* mostra mas com menos espaço */
    }
  }

  .premium-title {
    font-size: 1.7rem;
  }

  .premium-kicker {
    font-size: .62rem;
  }

  .premium-counters {
    margin-top: 10px;
    gap: 5px;
  }

  .premium-counter {
    font-size: .67rem;
    padding: 4px 10px;
  }

  /* Featured event compacto no mobile */
  .featured-event {
    padding: 12px;
    min-height: auto;
    gap: 10px;
    border-radius: 14px;
  }

  .featured-event-teams {
    gap: 6px;
  }

  .featured-event-team strong {
    font-size: .85rem;
  }

  .featured-time-main {
    font-size: 1.3rem;
  }

  /* Stream cards em telas muito pequenas */
  .stream-card {
    min-width: 170px;
    max-width: 170px;
    border-radius: 14px;
  }

  .stream-card-top { padding: 10px 10px 0; }
  .stream-card-time-wrap { padding: 5px 10px 2px; }
  .stream-card-hour { font-size: 1.2rem; }
  .stream-card-teams { padding: 6px 10px; }
  .stream-card-teams .name { font-size: .8rem; }
  .stream-card-footer { padding: 0 10px 10px; }

  /* HS section em tela muito pequena */
  .hs-section {
    padding: 16px 0 6px;
  }

  .hs-header h3 {
    font-size: .95rem;
  }
}

/* ── Game cards mobile — aumentar logos e nomes ────────────────── */
@media (max-width: 768px) {
  .game-card {
    border-radius: 14px;
    border-color: rgba(255,255,255,.07);
    box-shadow: 0 1px 6px rgba(0,0,0,.3);
  }

  [data-theme="light"] .game-card {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-card);
  }

  .game-card--live {
    border-left-width: 3px;
    box-shadow:
      -1px 0 0 var(--live),
      0 1px 8px rgba(0,0,0,.3),
      inset 0 0 20px rgba(34,197,94,.04);
  }
}

/* ── Stream cards live no mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .stream-card--live {
    border-color: rgba(34,197,94,.4);
    box-shadow:
      0 0 0 1px rgba(34,197,94,.15),
      0 3px 12px rgba(0,0,0,.3);
  }
}

/* ── Animações de entrada dos cards ────────────────────────────── */
.game-card {
  animation: fadeSlideUp .25s ease both;
}

/* Delay progressivo nos cards (até 12) */
.game-card:nth-child(1) { animation-delay: .02s; }
.game-card:nth-child(2) { animation-delay: .04s; }
.game-card:nth-child(3) { animation-delay: .06s; }
.game-card:nth-child(4) { animation-delay: .08s; }
.game-card:nth-child(5) { animation-delay: .10s; }
.game-card:nth-child(6) { animation-delay: .12s; }
.game-card:nth-child(n+7) { animation-delay: .14s; }

/* Seções de stream com delay */
.hs-section:nth-child(1) { animation-delay: .05s; }
.hs-section:nth-child(2) { animation-delay: .08s; }
.hs-section:nth-child(3) { animation-delay: .11s; }
.hs-section:nth-child(4) { animation-delay: .14s; }
.hs-section:nth-child(n+5) { animation-delay: .17s; }

/* ── Sport bar mais moderna ────────────────────────────────────── */
.sport-bar {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .sport-bar {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  backdrop-filter: none;
}

/* ── Premium counters com ícones ───────────────────────────────── */
.premium-counter--live::before {
  content: '● ';
  color: var(--live);
  font-size: .55rem;
  vertical-align: middle;
  margin-right: 2px;
}

/* ── Game card league text mais legível ────────────────────────── */
.game-card-league {
  color: rgba(255,255,255,.82);
}

[data-theme="light"] .game-card-league {
  color: var(--text-secondary);
}

/* ── Footer de canais dos cards — melhor contraste ─────────────── */
.game-card-footer {
  border-top-color: rgba(255,255,255,.05);
}

[data-theme="light"] .game-card-footer {
  border-top-color: var(--border-subtle);
}

/* ── Fav button mobile — touch target maior ────────────────────── */
@media (max-width: 768px) {
  .fav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* Auth modal */
.auth-modal-panel { max-width: 520px; }
.auth-modal-body { display: grid; gap: 12px; }
.auth-form-block { display: grid; gap: 10px; }
.auth-field { display: grid; gap: 6px; }
.auth-field input {
  height: 42px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.auth-alert {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.auth-alert.error { background: rgba(239, 68, 68, 0.12); color: #fecaca; border: 1px solid rgba(239, 68, 68, 0.25); }
.auth-alert.success { background: rgba(34, 197, 94, 0.12); color: #bbf7d0; border: 1px solid rgba(34, 197, 94, 0.25); }
.auth-actions { display: flex; gap: 8px; margin-top: 4px; }
.bot-check { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Auth experience refresh */
.ongrid-auth-btn.login-main {
  height: 42px;
  padding: 0 17px;
  gap: 9px;
  border-radius: 999px;
  color: #06140c;
  background: linear-gradient(112deg, #20dc71, #52ef91);
  box-shadow: 0 10px 25px rgba(39, 226, 122, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ongrid-auth-btn.login-main:hover {
  color: #06140c;
  background: linear-gradient(112deg, #25e678, #62f09a);
  box-shadow: 0 14px 30px rgba(39, 226, 122, .27);
  transform: translateY(-1px);
}

.login-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #07170e;
  box-shadow: 0 0 0 4px rgba(4, 23, 13, .1);
}

.ongrid-login-dropdown {
  top: calc(100% + 13px);
  min-width: 290px;
  padding: 11px;
  border-radius: 17px;
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(155deg, #181b27, #10131c);
  box-shadow: 0 28px 66px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.025) inset;
}

.ongrid-login-dropdown::before {
  content: "";
  position: absolute;
  right: 30px;
  top: -7px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #171a26;
  border-left: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
}

.login-dropdown-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 7px 8px 13px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.login-dropdown-head strong {
  color: #f7f9fe;
  font-size: .91rem;
  letter-spacing: -.02em;
}

.login-dropdown-head span {
  color: #8690a2;
  font-size: .73rem;
}

.ongrid-login-item {
  position: relative;
  z-index: 1;
  min-height: 45px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: .83rem;
  gap: 10px;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.ongrid-login-item:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  transform: translateX(1px);
}

.ongrid-login-item.email-entry {
  margin-top: 5px;
  color: #07160d;
  background: linear-gradient(108deg, #22dd72, #4bec8d);
}

.ongrid-login-item.email-entry:hover {
  color: #07160d;
  background: linear-gradient(108deg, #2ae379, #61f19c);
}

.ongrid-login-item.create-entry {
  justify-content: center;
  min-height: 39px;
  margin-top: 5px;
  color: #bfc7d7;
}

.ongrid-login-item.create-entry:hover { color: #fff; }

.ongrid-login-item .google-mark {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c4.1 0 7.8 1.4 10.7 4.2l8-8C37.9 1.5 31.5 0 24 0 14.8 0 6.6 5.1 2.5 12.4l9.4 7.3C13.9 13 18.5 9.5 24 9.5z'/%3E%3Cpath fill='%23FBBC05' d='M2.5 12.4l9.4 7.3C13.8 13.5 18.4 10 24 10c4.1 0 7.8 1.4 10.7 4.2l8-8C37.9 1.5 31.5 0 24 0 14.8 0 6.6 5.1 2.5 12.4z'/%3E%3Cpath fill='%2334A853' d='M24 48c7.1 0 13.1-2.3 17.3-6.3l-7.3-5.7C31.9 37.4 28.2 39 24 39c-5.3 0-9.9-3.4-11.6-8.2l-9.4 7.3C6.9 42.6 14.7 48 24 48z'/%3E%3Cpath fill='%234285F4' d='M41.3 41.7C45 37.6 48 31.9 48 24c0-1.7-.2-3.3-.5-4.8H24v9h13.5c-.6 3.2-2.2 5.7-4.5 7.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ongrid-login-item .google-badge {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c4.1 0 7.8 1.4 10.7 4.2l8-8C37.9 1.5 31.5 0 24 0 14.8 0 6.6 5.1 2.5 12.4l9.4 7.3C13.9 13 18.5 9.5 24 9.5z'/%3E%3Cpath fill='%23FBBC05' d='M2.5 12.4l9.4 7.3C13.8 13.5 18.4 10 24 10c4.1 0 7.8 1.4 10.7 4.2l8-8C37.9 1.5 31.5 0 24 0 14.8 0 6.6 5.1 2.5 12.4z'/%3E%3Cpath fill='%2334A853' d='M24 48c7.1 0 13.1-2.3 17.3-6.3l-7.3-5.7C31.9 37.4 28.2 39 24 39c-5.3 0-9.9-3.4-11.6-8.2l-9.4 7.3C6.9 42.6 14.7 48 24 48z'/%3E%3Cpath fill='%234285F4' d='M41.3 41.7C45 37.6 48 31.9 48 24c0-1.7-.2-3.3-.5-4.8H24v9h13.5c-.6 3.2-2.2 5.7-4.5 7.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ongrid-login-item .mail-mark {
  color: #07160d;
  background: rgba(4, 22, 13, .11);
}

.ongrid-login-legal {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  padding: 11px 9px 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #758094;
  font-size: .69rem;
  line-height: 1.45;
}

.ongrid-login-legal a {
  color: #34df7e;
  text-decoration: none;
  font-weight: 700;
}

#authModal .auth-modal-panel {
  width: min(462px, calc(100vw - 28px));
  max-width: 462px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 0 0, rgba(39,226,122,.08), transparent 34%),
    linear-gradient(150deg, #151823, #0f121b);
  box-shadow: 0 30px 88px rgba(0,0,0,.64);
}

#authModal .modal-header {
  padding: 25px 25px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#authModal .auth-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

#authModal .auth-brand-orb {
  width: 53px;
  height: 53px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #37e583;
  border: 1px solid rgba(39,226,122,.26);
  background: rgba(39,226,122,.09);
  font-size: 1.3rem;
  font-weight: 900;
}

#authModal .auth-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #32e47e;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .18em;
}

#authModal .auth-modal-heading h2 {
  margin: 0 0 5px;
  color: #f6f8fd;
  font-size: 1.22rem;
  letter-spacing: -.04em;
}

#authModal .auth-modal-heading > span:last-child {
  color: #9aa4b5;
  font-size: .8rem;
}

#authModal .modal-close {
  border-radius: 11px;
  background: rgba(255,255,255,.05);
}

#authModal .auth-modal-body {
  gap: 14px;
  padding: 21px 25px 25px;
}

#authModal .auth-form-block { gap: 11px; }

#authModal .auth-google-btn {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: #f0f3fa;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}

#authModal .auth-google-btn:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.075);
}

#authModal .auth-google-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c4.1 0 7.8 1.4 10.7 4.2l8-8C37.9 1.5 31.5 0 24 0 14.8 0 6.6 5.1 2.5 12.4l9.4 7.3C13.9 13 18.5 9.5 24 9.5z'/%3E%3Cpath fill='%23FBBC05' d='M2.5 12.4l9.4 7.3C13.8 13.5 18.4 10 24 10c4.1 0 7.8 1.4 10.7 4.2l8-8C37.9 1.5 31.5 0 24 0 14.8 0 6.6 5.1 2.5 12.4z'/%3E%3Cpath fill='%2334A853' d='M24 48c7.1 0 13.1-2.3 17.3-6.3l-7.3-5.7C31.9 37.4 28.2 39 24 39c-5.3 0-9.9-3.4-11.6-8.2l-9.4 7.3C6.9 42.6 14.7 48 24 48z'/%3E%3Cpath fill='%234285F4' d='M41.3 41.7C45 37.6 48 31.9 48 24c0-1.7-.2-3.3-.5-4.8H24v9h13.5c-.6 3.2-2.2 5.7-4.5 7.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#authModal .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6d7789;
  font-size: .68rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .1em;
  margin: 5px 0;
}

#authModal .auth-divider::before,
#authModal .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.08);
}

#authModal .auth-field { gap: 7px; }

#authModal .auth-field span {
  color: #c2cad7;
  font-size: .78rem;
  font-weight: 700;
}

#authModal .auth-field input {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: rgba(255,255,255,.09);
  background: #151925;
  font: inherit;
  font-size: .86rem;
  outline: none;
  transition: border-color .17s ease, box-shadow .17s ease;
}

#authModal .auth-field input:focus {
  border-color: #28df76;
  box-shadow: 0 0 0 3px rgba(39,226,122,.14);
}

#authModal .auth-actions {
  gap: 9px;
  margin-top: 7px;
}

#authModal .auth-submit,
#authModal .auth-secondary-action {
  height: 47px;
  flex: 1;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: .83rem;
  font-weight: 800;
}

#authModal .auth-submit {
  color: #05150c;
  background: linear-gradient(108deg, #22dd72, #4bec8d);
  box-shadow: 0 12px 26px rgba(39,226,122,.16);
}

#authModal .auth-submit:hover { background: linear-gradient(108deg, #2ae379, #5cf298); }

#authModal .auth-secondary-action {
  color: #d6dce7;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

#authModal .auth-secondary-action:hover { background: rgba(255,255,255,.075); }

#authModal .bot-check {
  align-items: flex-start;
  color: #a9b1c0;
  font-size: .78rem;
  line-height: 1.4;
  margin: 4px 0;
}

#authModal .bot-check input {
  margin-top: 2px;
  accent-color: #26df75;
}

#authModal .bot-check a,
#authModal .auth-legal-note a {
  color: #35e17d;
  font-weight: 700;
  text-decoration: none;
}

#authModal .auth-legal-note {
  margin: 11px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #758093;
  font-size: .7rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 540px) {
  .ongrid-login-dropdown { min-width: min(290px, calc(100vw - 24px)); }
  #authModal .modal-header { padding: 21px 19px 17px; }
  #authModal .auth-modal-body { padding: 18px 19px 21px; }
}

/* ════════════════════════════════════════════════════════════════════
   JOGO PAGE — Standalone Match Center (/jogo/<fixture_id>)
   Premium redesign — card hero, glow badges, pill tabs
   ════════════════════════════════════════════════════════════════════ */

/* ── Page body ───────────────────────────────────────────────────── */
.jogo-page-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(146, 84, 248, 0.10), transparent 60%),
    radial-gradient(ellipse 800px 400px at 90% 200px, rgba(34, 197, 94, 0.04), transparent 70%),
    var(--bg-primary);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans, 'Inter', sans-serif);
  color: var(--text-primary);
}

[data-theme="light"] .jogo-page-body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(146, 84, 248, 0.06), transparent 60%),
    var(--bg-primary);
}

/* ── Top bar ─────────────────────────────────────────────────────── */
.jogo-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 58px;
  flex-shrink: 0;
}

[data-theme="light"] .jogo-topbar {
  background: rgba(248, 250, 252, 0.85);
}

.jogo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.jogo-back-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-default);
  transform: translateX(-2px);
}

.jogo-topbar-logo { flex: 1; display: flex; justify-content: center; align-items: center; }
.jogo-topbar-logo .ongrid-logo { height: 26px; width: auto; object-fit: contain; }

/* ── Page wrapper ────────────────────────────────────────────────── */
.jogo-page-wrap {
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px 60px;
}

/* ─────────────────────────────────────────────────────────────────
   ─── HERO CARD ───
   Premium card with gradient background, glow on team logos
   ───────────────────────────────────────────────────────────────── */
.jogo-hero-wrap {
  padding: 0;
  border-bottom: none;
  margin-bottom: 20px;
}

.jogo-page-body .match-hero {
  position: relative;
  padding: 36px 28px 30px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(146,84,248,0.08) 0%, rgba(146,84,248,0) 60%),
    linear-gradient(135deg, rgba(28,30,40,0.95) 0%, rgba(17,18,24,0.95) 100%);
  border: 1px solid rgba(146, 84, 248, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 80px -30px rgba(146, 84, 248, 0.35);
  overflow: hidden;
}

/* Decorative accent line at top */
.jogo-page-body .match-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(146,84,248,0.5) 50%, transparent 100%);
}

/* Subtle pitch-pattern overlay */
.jogo-page-body .match-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(146,84,248,0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 50%, rgba(146,84,248,0.06) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.jogo-page-body .match-hero > * { position: relative; z-index: 1; }

[data-theme="light"] .jogo-page-body .match-hero {
  background:
    linear-gradient(180deg, rgba(146,84,248,0.05) 0%, rgba(146,84,248,0) 60%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(146, 84, 248, 0.15);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 20px 50px -20px rgba(0,0,0,0.12),
    0 0 80px -40px rgba(146, 84, 248, 0.25);
}

/* Team badge — bigger, white circle, glow */
.jogo-page-body .mc-hero-badge {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 8px 24px -8px rgba(0,0,0,0.5),
    0 0 30px -8px rgba(146, 84, 248, 0.3),
    0 1px 0 rgba(255,255,255,0.5) inset;
  transition: transform 0.3s ease;
}
.jogo-page-body .mc-hero-badge:hover { transform: translateY(-2px) scale(1.03); }
.jogo-page-body .mc-hero-badge img { padding: 14px; }

/* Team name — brighter, bolder */
.jogo-page-body .mc-hero-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 220px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin-top: 4px;
}

/* Score — huge with subtle glow */
.jogo-page-body .mc-hero-center { gap: 10px; min-width: 130px; }
.jogo-page-body .mc-score {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(255,255,255,0.08));
}
.jogo-page-body .mc-score.live {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(34, 197, 94, 0.35));
}
.jogo-page-body .mc-score.dim {
  font-size: 2.4rem;
  background: linear-gradient(180deg, #4b5160 0%, #2e3340 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}
.jogo-page-body .mc-score-sep {
  font-size: 2rem;
  color: rgba(255,255,255,0.25);
  margin: 0 6px;
  font-weight: 700;
  -webkit-text-fill-color: rgba(255,255,255,0.25);
}

/* Status pill — bigger, more prominent */
.jogo-page-body .mc-status {
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
}
.jogo-page-body .mc-status.mc-live {
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(34,197,94,0.08));
  border: 1px solid rgba(34,197,94,0.35);
  box-shadow: 0 0 20px -6px rgba(34, 197, 94, 0.4);
}
.jogo-page-body .mc-dot {
  width: 7px; height: 7px;
  box-shadow: 0 0 8px var(--live);
}

/* Meta info — clean spaced */
.jogo-page-body .mc-meta {
  font-size: 0.78rem;
  margin-top: 8px;
  gap: 14px;
  color: var(--text-secondary);
}
.jogo-page-body .mc-meta span { font-weight: 600; }

.jogo-page-body .mc-meta-extra {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────────────
   ─── TABS — pill style with brand active state ───
   ───────────────────────────────────────────────────────────────── */
.jogo-tabs {
  position: sticky;
  top: 58px;
  z-index: 90;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(28,30,40,0.6), rgba(17,18,24,0.6));
}
.jogo-tabs::-webkit-scrollbar { display: none; }

[data-theme="light"] .jogo-tabs {
  background: rgba(248, 250, 252, 0.9);
}

.jogo-tabs .modal-tab {
  flex: 1;
  min-width: max-content;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-tertiary);
  border-bottom: none !important;
  transition: all 0.2s;
  white-space: nowrap;
}
.jogo-tabs .modal-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.jogo-tabs .modal-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #9254F8 0%, #7c3aed 100%);
  box-shadow:
    0 4px 14px -4px rgba(146, 84, 248, 0.55),
    0 1px 0 rgba(255,255,255,0.15) inset;
}

/* ── Match body ──────────────────────────────────────────────────── */
.jogo-body {
  padding: 0;
  min-height: 400px;
  max-height: none;
  overflow: visible;
}

/* ─── Boost event cards inside jogo page ─── */
.jogo-page-body .mc-events { gap: 6px; padding: 4px 0; }
.jogo-page-body .mc-event {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28,30,40,0.6), rgba(17,18,24,0.6));
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  transition: all 0.18s;
}
.jogo-page-body .mc-event:hover {
  border-color: var(--border-default);
  transform: translateX(2px);
}
.jogo-page-body .mc-event.home {
  background: linear-gradient(90deg, rgba(74,144,217,0.12) 0%, rgba(28,30,40,0.5) 60%);
  border-left: 3px solid #4a90d9;
}
.jogo-page-body .mc-event.away {
  background: linear-gradient(270deg, rgba(224,85,85,0.12) 0%, rgba(28,30,40,0.5) 60%);
  border-right: 3px solid #e05555;
  border-left: 1px solid var(--border-subtle);
}
.jogo-page-body .mc-event.ev-goal {
  border-left: 3px solid var(--live);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.15), 0 4px 16px -8px rgba(34,197,94,0.25);
}
.jogo-page-body .mc-ev-min {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand);
  min-width: 44px;
  padding-top: 0;
}
.jogo-page-body .mc-ev-icon { font-size: 1.05rem; min-width: 26px; }
.jogo-page-body .mc-ev-info { font-size: 0.9rem; }
.jogo-page-body .mc-ev-info strong { font-weight: 700; color: var(--text-primary); }
.jogo-page-body .mc-ev-info small { color: var(--text-secondary); font-size: 0.78rem; }

/* ─────────────────────────────────────────────────────────────────
   ─── CHANNELS ROW (inside match hero) ───
   ───────────────────────────────────────────────────────────────── */
/* Override .match-hero on jogo page: stack hero-row + channels-row vertically.
   (Default .match-hero is grid 3-col expecting 3 children — would break our 2-child layout.) */
.jogo-page-body .match-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-template-columns: none;
}

.jogo-page-body .mc-hero-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.mc-channels-row {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(146, 84, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.mc-channels-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mc-channels-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.mc-channel-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(146,84,248,0.18), rgba(146,84,248,0.06));
  border: 1px solid rgba(146, 84, 248, 0.28);
  box-shadow: 0 2px 8px -2px rgba(146,84,248,0.25);
  letter-spacing: -0.005em;
  transition: all 0.18s;
}
.mc-channel-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(146, 84, 248, 0.5);
  box-shadow: 0 4px 12px -2px rgba(146,84,248,0.4);
}

@media (max-width: 640px) {
  .mc-channels-row {
    margin-top: 16px;
    padding-top: 14px;
    gap: 8px;
  }
  .mc-channels-label { font-size: 0.7rem; }
  .mc-channel-pill { font-size: 0.7rem; padding: 5px 10px; }
}

/* ── Loading skeleton ────────────────────────────────────────────── */
.jogo-hero-skeleton {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 16px 0;
}
.jogo-skel-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.jogo-skel-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  animation: shimmer 1.5s ease-in-out infinite;
}
.jogo-skel-name {
  width: 100px;
  height: 14px;
  border-radius: 6px;
  background: var(--bg-elevated);
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}
.jogo-skel-vs {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.jogo-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.jogo-footer-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}
.jogo-footer-link:hover { opacity: 0.8; text-decoration: underline; }
.jogo-footer-brand { font-weight: 700; }

/* ── Mobile overrides ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .jogo-topbar { padding: 0 14px; height: 52px; }
  .jogo-back-btn { font-size: 0.78rem; padding: 5px 10px; }
  .jogo-topbar-logo .ongrid-logo { height: 22px; }
  .jogo-page-wrap { padding: 14px 12px 48px; }
  .jogo-hero-wrap { margin-bottom: 14px; }
  .jogo-page-body .match-hero {
    padding: 22px 16px 20px;
    border-radius: 18px;
    gap: 12px;
  }
  .jogo-page-body .mc-hero-badge {
    width: 72px;
    height: 72px;
  }
  .jogo-page-body .mc-hero-badge img { padding: 9px; }
  .jogo-page-body .mc-hero-name {
    font-size: 0.85rem;
    max-width: 110px;
    margin-top: 2px;
  }
  .jogo-page-body .mc-hero-center { min-width: 90px; gap: 6px; }
  .jogo-page-body .mc-score { font-size: 2.4rem; }
  .jogo-page-body .mc-score.dim { font-size: 1.7rem; }
  .jogo-page-body .mc-score-sep { font-size: 1.4rem; margin: 0 3px; }
  .jogo-page-body .mc-status { padding: 4px 10px; font-size: 0.65rem; }
  .jogo-page-body .mc-meta { font-size: 0.7rem; gap: 8px; }
  .jogo-page-body .mc-meta-extra { font-size: 0.66rem; gap: 8px; }
  .jogo-skel-logo { width: 58px; height: 58px; }
  .jogo-footer { padding: 14px 16px; font-size: 0.78rem; }
  .jogo-tabs {
    top: 52px;
    padding: 6px 3px;
    border-radius: 12px;
    gap: 2px;
  }
  .jogo-tabs .modal-tab {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .jogo-page-body .mc-event { padding: 10px 12px; font-size: 0.85rem; }
  .jogo-page-body .mc-ev-min { font-size: 0.82rem; min-width: 36px; }
}

/* ════════════════════════════════════════════════════════════════════
   AD SLOTS — Monetização (AdSense, afiliados, HTML customizado)
   ════════════════════════════════════════════════════════════════════ */
.ad-slot {
  position: relative;
  margin: 16px auto;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  min-height: 90px;
}
.ad-slot::before {
  content: "Anúncio";
  display: block;
  font-size: 0.62rem;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.6;
}
.ad-slot > * { max-width: 100%; }
.ad-slot img { max-width: 100%; height: auto; }
.ad-slot iframe { max-width: 100%; }

/* Header banner — abaixo da topbar */
.ad-slot-header {
  margin: 12px auto 18px;
  padding: 0 16px;
}

/* Footer banner */
.ad-slot-footer {
  margin: 24px auto 8px;
  padding: 0 16px;
}

/* Slot dentro da página /jogo/ (acima das tabs) */
.ad-slot-match {
  margin: 18px 0;
}

/* Slot entre jogos (renderizado via JS) */
.ad-slot-inline {
  margin: 12px 0;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

/* Sticky bottom mobile */
.ad-slot-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(11, 11, 15, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-default);
  padding: 8px 12px 10px;
  text-align: center;
  box-shadow: 0 -8px 24px -8px rgba(0,0,0,0.5);
}
.ad-slot-sticky::before {
  font-size: 0.58rem;
  margin-bottom: 4px;
}
.ad-sticky-close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ad-sticky-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Light mode */
[data-theme="light"] .ad-slot-sticky {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: var(--border-default);
}

@media (max-width: 640px) {
  .ad-slot-header, .ad-slot-footer { padding: 0 12px; }
  .ad-slot::before { font-size: 0.56rem; margin-bottom: 4px; }
}

/* ════════════════════════════════════════════════════════════════════
   UFC POSTER LAYOUT — slide do hero estilo pôster oficial
   ════════════════════════════════════════════════════════════════════ */
.eh-slide--ufc {
  position: relative;
  overflow: hidden;
}

/* Overlay UFC: gradiente radial centralizado + escurecimento nas laterais */
.eh-slide--ufc .eh-slide-overlay,
.eh-slide--has-banner.eh-slide--ufc .eh-slide-overlay,
.eh-slide-overlay--ufc {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.45) 100%) !important;
}

/* Fotos dos lutadores — corpo completo por padrão (admin controla zoom/posição) */
.eh-ufc-body {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 40%;
  object-fit: contain;
  object-position: bottom center;  /* mantém corpo inteiro quando houver PNG full-body */
  z-index: 2;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.7));
  pointer-events: none;
  user-select: none;
}
.eh-ufc-body--left  { left: 5%; }
.eh-ufc-body--right { right: 5%; transform: scaleX(-1); /* espelha pra "olhar" pro centro */ }
.eh-ufc-body--right.eh-ufc-no-mirror { transform: none; }
.eh-ufc-body--left { object-position: bottom left; }
.eh-ufc-body--right { object-position: bottom right; }

/* Card central (categoria + names + data + canal) */
.eh-ufc-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 14px 22px;
  max-width: 50%;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}
.eh-ufc-card * { pointer-events: auto; }

/* .eh-ufc-brand removido — UFC vem do banner de fundo */

.eh-ufc-categoria {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.92;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.eh-ufc-matchup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: nowrap;
}

.eh-ufc-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.eh-ufc-surname {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7), 0 0 2px rgba(0,0,0,0.4);
  white-space: nowrap;
  line-height: 1;
}

.eh-ufc-vs {
  font-size: 2.4rem;
  font-weight: 900;
  color: #e10600;
  font-style: italic;
  letter-spacing: -0.02em;
  margin: 0 8px;
  text-shadow:
    0 0 14px rgba(225,6,0,0.55),
    0 3px 10px rgba(0,0,0,0.7),
    0 0 2px rgba(255,255,255,0.15);
  line-height: 1;
}

.eh-ufc-datetime {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  margin-top: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.eh-ufc-channel {
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  font-family: 'Inter', sans-serif;
}

.eh-ufc-cta {
  margin-top: 12px;
}
.eh-ufc-cta .eh-cta {
  background: rgba(225,6,0,0.95);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px -4px rgba(225,6,0,0.6);
}
.eh-ufc-cta .eh-cta:hover {
  background: #ff0a00;
  transform: translateY(-1px);
}

/* Responsivo */
@media (max-width: 900px) {
  .eh-ufc-body { width: 38%; }
  .eh-ufc-body--left  { left: 2%; }
  .eh-ufc-body--right { right: 2%; transform: scaleX(-1); }
  .eh-ufc-card { max-width: 60%; gap: 6px; padding: 8px 12px; }
  .eh-ufc-categoria { font-size: 0.65rem; letter-spacing: 0.22em; }
  .eh-ufc-surname { font-size: 1.3rem; }
  .eh-ufc-vs { font-size: 1.7rem; margin: 0 5px; }
  .eh-ufc-flag { width: 22px; height: 16px; }
  .eh-ufc-datetime { font-size: 0.9rem; margin-top: 6px; }
  .eh-ufc-channel { font-size: 1rem; }
  .eh-ufc-matchup { gap: 6px; }
}

@media (max-width: 540px) {
  .eh-ufc-body { width: 36%; }
  .eh-ufc-body--left  { left: 0%; }
  .eh-ufc-body--right { right: 0%; transform: scaleX(-1); }
  .eh-ufc-card { max-width: 70%; }
  .eh-ufc-surname { font-size: 1rem; }
  .eh-ufc-vs { font-size: 1.3rem; margin: 0 3px; }
  .eh-ufc-flag { width: 18px; height: 13px; }
  .eh-ufc-datetime { font-size: 0.78rem; }
  .eh-ufc-channel { font-size: 0.85rem; }
}

/* ════════════════════════════════════════════════════════════════════
   NBA POSTER LAYOUT — slide do hero estilo arena
   ════════════════════════════════════════════════════════════════════ */
.eh-slide--nba {
  position: relative;
  overflow: hidden;
}

.eh-slide--nba .eh-slide-overlay,
.eh-slide--has-banner.eh-slide--nba .eh-slide-overlay,
.eh-slide-overlay--nba {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.35) 100%) !important;
}

/* Logos dos times — tamanho equilibrado, mais próximos do centro
   (filter aplicado dinamicamente via JS com a cor dominante de cada logo) */
.eh-nba-logo {
  position: absolute;
  top: 50%;
  width: 17%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  z-index: 2;
  /* Fallback inicial — substituído por window._applyLogoGlow após load */
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55));
  pointer-events: none;
  transition: filter 0.4s ease;
}
.eh-nba-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.eh-nba-logo-fb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 3px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.eh-nba-logo--left  { left: 26%; }
.eh-nba-logo--right { right: 26%; }

/* Card central */
.eh-nba-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 5;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.eh-nba-date {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239,68,68,0.5), 0 3px 10px rgba(0,0,0,0.6);
  line-height: 1;
}

.eh-nba-time {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.15), 0 3px 12px rgba(0,0,0,0.7);
  line-height: 1.05;
}

.eh-nba-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #22c55e;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(34,197,94,0.5), 0 3px 10px rgba(0,0,0,0.7);
}
.eh-nba-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: livePulse 1.2s ease-in-out infinite;
}

.eh-nba-score {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 12px rgba(34,197,94,0.4), 0 3px 14px rgba(0,0,0,0.7);
  line-height: 1;
  margin-top: 4px;
}

/* Canais embaixo */
.eh-nba-channels {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.eh-nba-channel {
  font-size: 1rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* CTA */
.eh-nba-cta {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.eh-nba-cta .eh-cta {
  background: rgba(255,255,255,0.95);
  color: #0b0b0f;
  border: none;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.5);
}
.eh-nba-cta .eh-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Responsivo */
@media (max-width: 900px) {
  .eh-nba-logo { width: 18%; max-width: 130px; }
  .eh-nba-logo--left  { left: 20%; }
  .eh-nba-logo--right { right: 20%; }
  .eh-nba-date { font-size: 1.2rem; }
  .eh-nba-time { font-size: 1.8rem; }
  .eh-nba-live { font-size: 0.84rem; }
  .eh-nba-score { font-size: 2.2rem; }
  .eh-nba-channel { font-size: 0.85rem; }
}

@media (max-width: 540px) {
  .eh-nba-logo { width: 22%; max-width: 110px; }
  .eh-nba-logo--left  { left: 14%; }
  .eh-nba-logo--right { right: 14%; }
  .eh-nba-date { font-size: 1rem; }
  .eh-nba-time { font-size: 1.45rem; }
  .eh-nba-live { font-size: 0.72rem; }
  .eh-nba-score { font-size: 1.7rem; }
  .eh-nba-channel { font-size: 0.72rem; }
  .eh-nba-channels { bottom: 18%; gap: 8px; }
}

/* ════════════════════════════════════════════════════════════════════
   CHANNEL LOGOS — usadas em todos os tipos de slide do hero
   ════════════════════════════════════════════════════════════════════ */

/* Logo de canal no slide padrão (futebol) — substitui pílula de texto */
.eh-channel-pill--logo {
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.3);
}
.eh-channel-pill--logo img {
  height: 18px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

/* Logo de canal no pôster NBA */
.eh-nba-channel-logo {
  height: 28px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
}

/* Logo de canal no pôster UFC */
.eh-ufc-channel-logo {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin-top: 4px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.7));
}

@media (max-width: 640px) {
  .eh-channel-pill--logo img { height: 14px; max-width: 60px; }
  .eh-nba-channel-logo { height: 22px; max-width: 70px; }
  .eh-ufc-channel-logo { height: 24px; max-width: 100px; }
}

/* ════════════════════════════════════════════════════════════════════
   FUTEBOL POSTER LAYOUT — design premium centralizado v2
   ════════════════════════════════════════════════════════════════════ */
.eh-slide--fut { position: relative; overflow: hidden; }

/* Sobrescreve overlay padrão (que tem 88% preto à esquerda) — selector com maior
   specificity pra vencer .eh-slide--has-banner .eh-slide-overlay */
.eh-slide.eh-slide--fut .eh-slide-overlay,
.eh-slide.eh-slide--has-banner.eh-slide--fut .eh-slide-overlay,
.eh-slide-overlay--fut {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.0) 25%, rgba(0,0,0,0.0) 65%, rgba(0,0,0,0.45) 100%) !important;
}

.eh-fut-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 24px 16px;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

.eh-fut-league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px -8px rgba(0,0,0,0.5);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.eh-fut-league::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  flex-shrink: 0;
}

.eh-fut-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 880px;
}

.eh-fut-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eh-fut-logo {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.18), rgba(255,255,255,0.06) 60%, transparent 100%);
  border: 1px solid rgba(255,255,255,0.12);
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.55));
  transition: filter 0.4s ease, transform 0.3s ease;
}
.eh-slide--clickable:hover .eh-fut-logo { transform: translateY(-3px); }
.eh-fut-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.eh-fut-logo-fb {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #334155, #1e293b);
  border-radius: 50%;
  font-size: 2.2rem; font-weight: 900; color: #fff;
}

.eh-fut-name {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 2px rgba(0,0,0,0.5);
  line-height: 1.15;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.eh-fut-name--lg { font-size: 1.55rem; }
.eh-fut-name--md { font-size: 1.2rem; }
.eh-fut-name--sm { font-size: 0.95rem; }

.eh-fut-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 130px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 28px -12px rgba(0,0,0,0.6);
}

.eh-fut-date {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239,68,68,0.45);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.eh-fut-time {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255,255,255,0.10);
}
.eh-fut-x {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.eh-fut-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #22c55e;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(34,197,94,0.5);
  margin-bottom: 4px;
}
.eh-fut-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: livePulse 1.2s ease-in-out infinite;
}
.eh-fut-score {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 14px rgba(34,197,94,0.35);
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
}

.eh-fut-bottom-row {
  width: min(880px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.eh-hero-updated {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  background: rgba(10,20,35,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.eh-hero-cta {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #6cbf3a, #4f9f29);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 22px -8px rgba(61,132,24,.8);
}
.eh-hero-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.featured-day {
  margin: 10px 0 14px;
  border: 1px solid rgba(111,120,160,.24);
  background:
    radial-gradient(1200px 220px at 10% 0%, rgba(70,110,255,.16), transparent 58%),
    radial-gradient(900px 220px at 95% 100%, rgba(30,180,110,.14), transparent 62%),
    linear-gradient(180deg, rgba(10,16,38,.94), rgba(7,11,26,.97));
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -30px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05);
}
.featured-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.featured-day-header h3 {
  margin: 0;
  font-size: 0.86rem;
  color: #f3f6ff;
  letter-spacing: .01em;
  font-weight: 800;
}
.featured-day-header span {
  font-size: 0.74rem;
  color: rgba(235,243,255,.82);
  border: 1px solid rgba(188,205,255,.28);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(90,120,220,.12);
}
.featured-day-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.fd-track-wrap { overflow: hidden; width: 100%; }
.fd-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(380px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.fd-track::-webkit-scrollbar { display: none; }
.fd-item {
  scroll-snap-align: start;
  border: 1px solid rgba(174,194,255,.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)),
    rgba(9,16,34,.68);
  padding: 11px 12px;
  box-shadow: 0 10px 24px -18px rgba(0,0,0,.55);
}
.fd-nav {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(20,28,48,.75);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fd-nav:hover { background: rgba(38,55,92,.85); }
.featured-day-league {
  align-self: center;
  font-size: .7rem;
  color: rgba(233,242,255,.9);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(184,204,255,.28);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(122,146,245,.14);
}
.featured-day-teams {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 18px;
  width: auto;
  justify-content: center;
}
.featured-day-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 240px;
}
.featured-day-team:first-child {
  justify-content: flex-end;
  text-align: right;
}
.featured-day-team:last-child {
  justify-content: flex-start;
  text-align: left;
}
.featured-day-team strong {
  color: #f8fbff;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-day-time {
  color: #f8fbff;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(190,208,255,.35);
  background: linear-gradient(180deg, rgba(25,36,70,.84), rgba(16,24,48,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.featured-day-league {
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .featured-day-card { grid-template-columns: 1fr; }
  .fd-nav { display: none !important; }
  .fd-track { grid-auto-columns: minmax(300px, 92vw); }
  .featured-day-teams {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .featured-day-team:first-child,
  .featured-day-team:last-child {
    justify-content: center;
    text-align: center;
  }
  .featured-day-time {
    justify-self: center;
  }
}
.featured-day-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.featured-day-logo-wrap {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.featured-day-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

[data-theme="light"] .featured-day {
  border-color: rgba(75,100,160,.22);
  background:
    radial-gradient(900px 180px at 8% 0%, rgba(86,120,255,.14), transparent 60%),
    radial-gradient(700px 180px at 95% 100%, rgba(23,161,103,.12), transparent 60%),
    linear-gradient(180deg, #f8fbff, #f1f6ff);
  box-shadow: 0 18px 36px -28px rgba(31,56,110,.28), inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .featured-day-header h3 { color: #1e2a4a; }
[data-theme="light"] .featured-day-header span {
  color: #2f477e;
  border-color: rgba(110,140,212,.35);
  background: rgba(140,166,233,.15);
}
[data-theme="light"] .fd-item {
  border-color: rgba(117,144,205,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,250,255,.9)),
    rgba(255,255,255,.9);
  box-shadow: 0 10px 24px -20px rgba(31,56,110,.24);
}
[data-theme="light"] .featured-day-league {
  color: #2b3e70;
  border-color: rgba(109,136,201,.34);
  background: rgba(141,166,226,.2);
}
[data-theme="light"] .featured-day-team strong { color: #1d2c4d; }
[data-theme="light"] .featured-day-time {
  color: #1d2c4d;
  border-color: rgba(109,136,201,.34);
  background: linear-gradient(180deg, rgba(229,238,255,.95), rgba(217,230,252,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
[data-theme="light"] .fd-nav {
  border-color: rgba(117,144,205,.35);
  background: rgba(227,237,255,.95);
  color: #2b3e70;
}

.eh-fut-channels-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 28px -12px rgba(0,0,0,0.55);
}
.eh-fut-channels-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  white-space: nowrap;
}
.eh-fut-channels {
  display: flex;
  gap: 12px;
  align-items: center;
}
.eh-fut-channel-logo {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  padding: 6px 12px;
  background: rgba(20, 22, 32, 0.65);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eh-fut-channel {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.005em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .eh-fut-card { gap: 12px; padding: 18px 12px; }
  .eh-fut-teams { gap: 18px; max-width: 100%; }
  .eh-fut-league { font-size: 0.68rem; padding: 5px 12px; letter-spacing: 0.16em; }
  .eh-fut-logo { width: 90px; height: 90px; padding: 9px; }
  .eh-fut-name--lg { font-size: 1.15rem; }
  .eh-fut-name--md { font-size: 1rem; }
  .eh-fut-name--sm { font-size: 0.86rem; }
  .eh-fut-center { min-width: 100px; padding: 8px 12px; gap: 0; }
  .eh-fut-date { font-size: 0.68rem; letter-spacing: 0.12em; }
  .eh-fut-time { font-size: 1.6rem; }
  .eh-fut-x { font-size: 1.2rem; }
  .eh-fut-live { font-size: 0.66rem; }
  .eh-fut-score { font-size: 1.8rem; }
  .eh-fut-channels-wrap { gap: 10px; padding: 8px 14px; }
  .eh-fut-channels-label { display: none; }
  .eh-fut-channel-logo { height: 24px; max-width: 96px; padding: 4px 8px; }
  .eh-fut-channel { font-size: 0.84rem; padding: 4px 9px; }
}

@media (max-width: 540px) {
  .eh-fut-card { gap: 8px; padding: 12px 8px; }
  .eh-fut-teams { gap: 10px; }
  .eh-fut-logo { width: 64px; height: 64px; padding: 6px; }
  .eh-fut-name { max-width: 110px; -webkit-line-clamp: 1; }
  .eh-fut-name--lg { font-size: 0.92rem; }
  .eh-fut-name--md { font-size: 0.82rem; }
  .eh-fut-name--sm { font-size: 0.72rem; }
  .eh-fut-center { min-width: 76px; padding: 6px 10px; border-radius: 12px; }
  .eh-fut-date { font-size: 0.6rem; }
  .eh-fut-time { font-size: 1.2rem; }
  .eh-fut-x { font-size: 0.95rem; }
  .eh-fut-score { font-size: 1.4rem; }
  .eh-fut-channels-wrap { padding: 6px 10px; gap: 7px; }
  .eh-fut-channel-logo { height: 20px; max-width: 72px; padding: 3px 6px; }
  .eh-fut-channel { font-size: 0.72rem; padding: 3px 7px; }
}

/* =========================
   F1 TAB (design próprio)
   ========================= */
.f1-shell{
  margin-top:12px;
  border:1px solid rgba(239,38,56,.28);
  border-radius:18px;
  padding:18px;
  background:
    radial-gradient(1200px 240px at 10% -10%, rgba(239,38,56,.2), transparent 65%),
    radial-gradient(800px 200px at 100% 0, rgba(120,14,24,.3), transparent 60%),
    linear-gradient(160deg, rgba(9,10,14,.95), rgba(16,18,24,.98));
}
.f1-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.f1-kicker{
  color:#ff4258;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.78rem;
}
.f1-head h2{margin:4px 0 3px;font-size:1.55rem;font-weight:900}
.f1-head p{margin:0;color:var(--text-secondary);font-weight:600}
.f1-actions{display:flex;align-items:center;gap:10px}
.f1-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.f1-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
  background:linear-gradient(90deg, rgba(42,42,42,.88), rgba(30,31,35,.95));
  box-shadow:0 10px 24px rgba(0,0,0,.28);
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.f1-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,0,0,.55);
  box-shadow:0 16px 34px rgba(0,0,0,.34);
}
.f1-card.is-done{opacity:.86}
.f1-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.f1-round{color:#ff2e2e;font-size:.8rem;font-weight:900;letter-spacing:.16em}
.f1-country{font-size:1.2rem}
.f1-card h3{margin:0 0 8px;font-size:1.8rem;font-weight:900;letter-spacing:.03em;line-height:1}
.f1-circuit{margin:0 0 12px;color:#b4b7c0;min-height:38px;font-weight:500}
.f1-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.f1-date{font-weight:800;color:#fff;border:1px solid rgba(255,0,0,.45);border-radius:8px;padding:4px 8px}
.f1-state{
  font-size:.74rem;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,0,0,.16);
  color:#ffb0b0;
  font-weight:800;
}
.f1-channels{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid rgba(255,0,0,.35);padding-top:8px}
.f1-chip{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.32);
  color:#eef1ff;
  font-size:.73rem;
  font-weight:700;
}
[data-theme="light"] .f1-shell{
  background:
    radial-gradient(1200px 240px at 10% -10%, rgba(239,38,56,.1), transparent 65%),
    linear-gradient(180deg, #fff, #f6f8fc);
  border-color:rgba(239,38,56,.22);
}
[data-theme="light"] .f1-card{
  background:linear-gradient(180deg, #ffffff, #f7f7f9);
  border-color:rgba(141,21,21,.22);
  box-shadow:0 6px 18px rgba(30,33,53,.08);
}
[data-theme="light"] .f1-date{color:#181b24}
[data-theme="light"] .f1-state{background:rgba(239,38,56,.1);color:#b2162a}
[data-theme="light"] .f1-circuit{color:#6b7280}
[data-theme="light"] .f1-round{color:#d01818}
[data-theme="light"] .f1-channels{border-top-color:rgba(209,23,23,.3)}
[data-theme="light"] .f1-chip{background:#f5f6fa;color:#222}

.f1-modal{
  max-width:760px;
  width:min(94vw,760px);
  background:linear-gradient(180deg, rgba(10,11,16,.98), rgba(15,16,23,.98));
  border:1px solid rgba(239,38,56,.3);
  border-radius:16px;
  padding:16px;
}
.f1-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}
.f1-modal-head h3{margin:6px 0 4px;font-size:1.35rem;font-weight:900}
.f1-modal-head p{margin:0;color:var(--text-secondary);font-weight:600}
.f1-modal-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.f1-schedule{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.f1-sch-item{
  display:grid;
  grid-template-columns:110px 90px 1fr;
  gap:10px;
  align-items:center;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:10px;
  padding:10px 12px;
}
.f1-sch-day{font-weight:800;color:#ff8f9d}
.f1-sch-time{font-weight:900}
.f1-sch-label{font-weight:700}
[data-theme="light"] .f1-modal{
  background:linear-gradient(180deg,#fff,#f7f9fc);
  border-color:rgba(239,38,56,.2);
}
[data-theme="light"] .f1-sch-item{
  background:#fff;
  border-color:rgba(27,33,44,.12);
}
@media (max-width:700px){
  .f1-grid{grid-template-columns:1fr}
  .f1-sch-item{grid-template-columns:90px 72px 1fr;padding:8px 10px}
}

/* ════════════════════════════════════════════════════════════════════
   PERFORMANCE: anti-flicker + smooth transitions globais
   ════════════════════════════════════════════════════════════════════ */

/* Quando tab tá oculta, pausa animações */
body.is-tab-hidden *,
body.is-tab-hidden *::before,
body.is-tab-hidden *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Conteúdo de jogos com transição suave entre updates */
#hojeGames, #amanhaGames, [data-section="football"] .games-list {
  contain: layout style;  /* CSS containment: isola repaints */
  will-change: contents;
}

/* Imagens com aspect-ratio reservado evita layout shift */
.game-row img, .team-logo, .channel-badge img {
  content-visibility: auto;
}

/* Smooth scroll global */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration para elementos animados */
.eh-slide, .eh-slide-bg, .modal, .modal-content, .toast {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Loading bar fixa no topo (anti-flicker durante navegação) */
.global-loading-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hover) 50%, var(--brand) 100%);
  background-size: 200% 100%;
  z-index: 99999;
  animation: globalLoadingShift 1s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.global-loading-bar.active { opacity: 1; }
@keyframes globalLoadingShift {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* Imagens lazy load smoother */
img[loading="lazy"] {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: imgLoadingShimmer 1.5s ease-in-out infinite;
}
img[loading="lazy"][data-loaded="true"] {
  animation: none;
  background: none;
}
@keyframes imgLoadingShimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* Reduzir layout shift entre slides do hero */
.editorial-hero {
  contain: layout style;
}

/* Optimize text rendering */
body {
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Pause animações se não estiverem em viewport (poupador) */
.eh-slide:not(.active) * {
  animation-play-state: paused !important;
}

/* ════════════════════════════════════════════════════════════════════
   UX POLISH LAYER — micro-interações + smooth states (sem mexer em layout)
   ════════════════════════════════════════════════════════════════════ */

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hover) 100%);
  z-index: 99998;
  pointer-events: none;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(146, 84, 248, 0.45);
}

/* Floating back-to-top */
.fab-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9990;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 24px -6px rgba(146, 84, 248, 0.55), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.fab-back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.fab-back-to-top:hover { transform: translateY(-3px) scale(1.05); }
.fab-back-to-top:active { transform: translateY(0) scale(0.95); }
@media (max-width: 640px) {
  .fab-back-to-top { width: 42px; height: 42px; bottom: calc(80px + env(safe-area-inset-bottom, 0)); right: 16px; }
}

/* Skeleton loader */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}
.skeleton-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-circle { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.skeleton-line { height: 14px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.skeleton-line--short { width: 80px; }
.skeleton-line--medium { width: 140px; }
.skeleton-line--long { width: 100%; max-width: 320px; }
@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Empty states com personalidade */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-secondary); }
.empty-state-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
  animation: emptyStateFloat 3s ease-in-out infinite;
}
@keyframes emptyStateFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.empty-state-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.empty-state-desc { font-size: 0.86rem; color: var(--text-tertiary); max-width: 360px; margin: 0 auto; line-height: 1.5; }

/* Toast notifications redesenhado */
.toast {
  position: fixed;
  top: 24px;
  bottom: auto;        /* Cancela bottom da 1a definicao (que esticava o toast) */
  right: 24px;
  left: auto;
  z-index: 99997;
  background: linear-gradient(180deg, rgba(28,30,40,0.97), rgba(17,18,24,0.97));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 36px -6px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.08) inset;
  opacity: 0;
  transform: translateX(120%) scale(0.9);
  transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
  max-width: 360px;
  width: max-content;  /* Tamanho do conteudo, nao stretch */
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast:not(.hidden) { opacity: 1; transform: translateX(0) scale(1); }
.toast::before {
  content: "";
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--brand);
  flex-shrink: 0;
}
.toast.toast-success::before { background: var(--live); }
.toast.toast-error::before { background: var(--danger); }
.toast.toast-info::before { background: var(--info); }
@media (max-width: 640px) {
  .toast { top: calc(env(safe-area-inset-top, 12px) + 12px); right: 12px; left: 12px; max-width: none; }
}

/* Focus states acessíveis (keyboard nav) */
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Tap highlight removido + active scale (mobile feel) */
button, .clickable, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button:active:not(:disabled), .clickable:active {
  transform: scale(0.97);
  transition: transform 0.08s ease-out;
}

/* Smooth scroll otimizado em scrollables */
.modal-body, .ham-slides-list, .games-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Live pulse ripple (chama atenção) */
.badge-live, .mc-status.mc-live {
  position: relative;
}

/* Tab content fade smooth */
.tab-content, .config-tab-content, .modal-panel {
  animation: tabFadeIn 0.25s ease-out;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inputs focus state melhorado */
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(146, 84, 248, 0.15);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* Selection cor brand */
::selection { background: rgba(146, 84, 248, 0.35); color: #fff; }
::-moz-selection { background: rgba(146, 84, 248, 0.35); color: #fff; }

/* Scrollbar customizada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* Disabled buttons mais claros */
button:disabled, [aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  filter: saturate(0.5);
}

/* Loading button state universal */
button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Cards interactive lift (sem mexer em design existente) */
.game-row, .stream-card, .premium-card {
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
}
.game-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.4);
}

/* ════════════════════════════════════════════════════════════════════
   DESIGN POLISH v2 — refinamentos visuais
   ════════════════════════════════════════════════════════════════════ */

/* ─── 1. Banner de publicidade vazio: esconde quando sem conteúdo ─── */
.ad-banner.top-ad:not(:has(img,iframe,ins,a)),
.ad-banner.top-ad:empty {
  display: none !important;
}
/* Esconde também o label "Publicidade" se não tem conteúdo de ad */
.ad-banner.top-ad:not(:has(img,iframe,ins,a)) .ad-banner-label {
  display: none;
}
.ad-banner.top-ad {
  display: none;  /* esconde por padrão; só aparece se tiver conteúdo */
}
.ad-banner.top-ad:has(img),
.ad-banner.top-ad:has(iframe),
.ad-banner.top-ad:has(ins),
.ad-banner.top-ad:has(a) {
  display: block;
}

/* ad-slots vazios também escondem o ::before "Anúncio" */
.ad-slot:empty,
.ad-slot:not(:has(img,iframe,ins,a,div,span)) {
  display: none !important;
}

/* ─── 2. "Atualizado às" no hero: mais discreto ─── */
.eh-hero-updated {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ─── 3. Segmented control (AO VIVO / Ontem / Hoje / Amanhã) polido ─── */
.segmented-control {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(8px);
}
.segment-btn {
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  transition: all 0.18s;
  cursor: pointer;
}
.segment-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.segment-btn.active {
  background: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 4px 14px -4px rgba(0,0,0,0.4);
}
.segment-btn-live.active {
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(34,197,94,0.08));
  color: #4ade80;
  box-shadow: 0 0 16px -4px rgba(34,197,94,0.4);
}
.live-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}

/* ─── 4. Filter selects (Todos canais / campeonatos / Horário) ─── */
/* Mantém aparência nativa do select (sem appearance:none que quebra). */
.filter-select {
  background-color: rgba(0,0,0,0.30) !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-select:hover {
  border-color: rgba(255,255,255,0.15) !important;
  background-color: rgba(255,255,255,0.04) !important;
}
.filter-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(146,84,248,0.18) !important;
  outline: none !important;
}

/* ─── 5. Badges (AGENDADO, AO VIVO, ENCERRADO) ─── */
.badge-status, .game-status, .status-badge {
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  border: 1px solid currentColor;
  background: transparent !important;
}
.badge-status.agendado, .game-status.agendado {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(59, 130, 246, 0.08) !important;
}
.badge-status.live, .game-status.live, .game-status.ao-vivo {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(34, 197, 94, 0.1) !important;
}
.badge-status.encerrado, .game-status.encerrado {
  color: var(--text-tertiary);
  border-color: var(--border-default);
}

/* ─── 6. Game cards (linhas de jogos) — leve refresh ─── */
.game-row {
  border-radius: 12px !important;
  border: 1px solid var(--border-subtle) !important;
  background: linear-gradient(180deg, rgba(28,30,40,0.5), rgba(17,18,24,0.4)) !important;
  padding: 14px 16px !important;
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
}
.game-row:hover {
  border-color: rgba(146, 84, 248, 0.3) !important;
  background: linear-gradient(180deg, rgba(35,38,55,0.6), rgba(22,24,34,0.5)) !important;
  box-shadow: 0 6px 20px -8px rgba(146,84,248,0.25), 0 1px 0 rgba(255,255,255,0.05) inset !important;
  transform: translateY(-1px);
}
.game-row .channel-badge {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* ─── 7. Sidebar sport menu (Futebol / NBA / UFC) ─── */
.sport-tab {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.18s;
  position: relative;
}
.sport-tab:hover {
  background: rgba(255,255,255,0.05);
}
.sport-tab.active {
  background: linear-gradient(135deg, rgba(146,84,248,0.18), rgba(146,84,248,0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand);
}

/* ─── 8. Sub-nav (Jogos / Times / Ligas / Canais / Membros) ─── */
.sub-nav-tab {
  position: relative;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.sub-nav-tab::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.sub-nav-tab:hover { color: var(--text-secondary); }
.sub-nav-tab.active {
  color: var(--text-primary);
}
.sub-nav-tab.active::after { transform: scaleX(1); }

/* ─── 9. Buscador (input top) ─── */
.search-input, .ongrid-search input {
  background: rgba(0,0,0,0.30) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px;
  padding: 10px 16px 10px 40px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.18s;
  backdrop-filter: blur(8px);
}
.search-input:focus, .ongrid-search input:focus {
  border-color: rgba(146,84,248,0.4) !important;
  background: rgba(0,0,0,0.5) !important;
  box-shadow: 0 0 0 3px rgba(146,84,248,0.15);
}

/* ─── 10. Botão Login (verde gradiente) ─── */
.btn-login {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 4px 14px -4px rgba(34,197,94,0.5);
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(34,197,94,0.6);
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

/* ─── 11. Progress bar do hero (no fundo do slide) — mais sutil ─── */
.eh-progress {
  height: 2px !important;
  background: rgba(255,255,255,0.06) !important;
}
.eh-progress-fill {
  background: linear-gradient(90deg, var(--brand), var(--brand-hover)) !important;
  box-shadow: 0 0 6px rgba(146,84,248,0.5);
}

/* ─── 12. Hero CTA button (Onde Assistir) refinado ─── */
.eh-hero-cta, .eh-cta {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 6px 18px -4px rgba(34,197,94,0.55), 0 1px 0 rgba(255,255,255,0.15) inset;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-size: 0.82rem;
  text-transform: uppercase;
}
.eh-hero-cta:hover, .eh-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(34,197,94,0.7), 0 1px 0 rgba(255,255,255,0.2) inset;
}

/* ─── 13. Theme toggle (sol/lua) refinado ─── */
.theme-toggle, .ongrid-header-btn.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.18s;
  display: grid;
  place-items: center;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: rotate(15deg);
}

/* ─── 14. Pílula "18 jogos" / contador de filtros ─── */
.live-count-badge, .filter-count {
  background: rgba(146,84,248,0.15);
  border: 1px solid rgba(146,84,248,0.35);
  color: #c4a3ff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ─── 15. Section spacing premium ─── */
.tab-panel.active {
  animation: panelEnter 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 16. Dia/Section header (quando agrupado por dia) ─── */
.day-section-header, .league-group-header {
  background: linear-gradient(90deg, rgba(146,84,248,0.10), transparent 60%);
  border-left: 3px solid var(--brand);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-weight: 800;
  font-size: 0.92rem;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ════════════════════════════════════════════════════════════════════
   ADMIN TOOLS MENU (consolidado) — CSV/JSON/Sheets/Verificar/Reprocessar
   Substitui os botões soltos por um único dropdown limpo
   ════════════════════════════════════════════════════════════════════ */
.admin-tools-menu { position: relative; }

/* Quando admin tá logado, mostra elementos admin-only.
   Usa body.is-admin (adicionado via JS) com revert pra restaurar display nativo. */
body.is-admin .admin-only { display: revert !important; }
body.is-admin .admin-tools-menu.admin-only { display: inline-flex !important; }

.admin-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s;
  backdrop-filter: blur(8px);
}
.admin-tools-trigger:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(146,84,248,0.4);
}
.admin-tools-trigger .admin-chevron {
  transition: transform 0.2s;
  opacity: 0.6;
}
.admin-tools-trigger[aria-expanded="true"] .admin-chevron {
  transform: rotate(180deg);
}

.admin-tools-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: linear-gradient(180deg, rgba(28,30,40,0.98), rgba(17,18,24,0.98));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 6px;
  z-index: 1000;
  box-shadow:
    0 18px 40px -10px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.08) inset;
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.admin-tools-menu.is-open .admin-tools-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.admin-tools-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-tools-item:hover {
  background: rgba(146,84,248,0.10);
}
.admin-tools-item svg {
  opacity: 0.7;
  flex-shrink: 0;
}
.admin-tools-item:hover svg { opacity: 1; color: var(--brand); }
.admin-tools-item--primary {
  background: linear-gradient(135deg, rgba(146,84,248,0.18), rgba(146,84,248,0.06));
  color: #c4a3ff;
}
.admin-tools-item--primary svg { opacity: 1; color: var(--brand); }
.admin-tools-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 6px;
}

/* ════════════════════════════════════════════════════════════════════
   HERO ADMIN OVERLAY — botão "Editar" no canto do hero (não solto embaixo)
   ════════════════════════════════════════════════════════════════════ */
.hero-admin-trigger--overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 15;
}
.hero-admin-trigger--overlay .hero-admin-btn {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  box-shadow: 0 4px 14px -2px rgba(0,0,0,0.5);
}
.hero-admin-trigger--overlay .hero-admin-btn:hover {
  background: rgba(146,84,248,0.85);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════════
   TEMA CLARO — adaptações de TODAS as novas adições recentes
   (UX polish layer + design v2 + admin menu)
   ════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  /* Toast */
  .toast {
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,250,252,0.97));
    border-color: rgba(0,0,0,0.08);
    color: #0b0b0f;
    box-shadow: 0 12px 36px -6px rgba(0,0,0,0.15);
  }

  /* Floating back-to-top fica com sombra mais clara */
  .fab-back-to-top {
    box-shadow: 0 8px 24px -6px rgba(146,84,248,0.45);
  }

  /* Skeleton loaders com tons claros */
  .skeleton-row {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
  }
  .skeleton-row::after {
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 50%, transparent 100%);
  }
  .skeleton-circle, .skeleton-line {
    background: rgba(0,0,0,0.06);
  }

  /* Segmented control */
  .segmented-control {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
  }
  .segment-btn { color: #64748b; }
  .segment-btn:hover { background: rgba(0,0,0,0.04); color: #0b0b0f; }
  .segment-btn.active {
    background: #fff;
    color: #0b0b0f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.6) inset;
  }
  .segment-btn-live.active {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    color: #16a34a;
  }

  /* Filter selects */
  .filter-select {
    background-color: #fff !important;
    border-color: rgba(0,0,0,0.10) !important;
    color: #0b0b0f;
  }
  .filter-select:hover {
    background-color: #f8fafc !important;
    border-color: rgba(0,0,0,0.18) !important;
  }

  /* Game cards */
  .game-row {
    background: linear-gradient(180deg, #fff, #f8fafc) !important;
    border-color: rgba(0,0,0,0.08) !important;
  }
  .game-row:hover {
    background: linear-gradient(180deg, #fff, #f1f5f9) !important;
    border-color: rgba(146,84,248,0.3) !important;
    box-shadow: 0 6px 20px -8px rgba(146,84,248,0.2) !important;
  }

  /* Sidebar sport menu */
  .sport-tab:hover { background: rgba(0,0,0,0.04); }
  .sport-tab.active {
    background: linear-gradient(135deg, rgba(146,84,248,0.10), rgba(146,84,248,0.04));
    color: #0b0b0f;
  }

  /* Search bar */
  .search-input, .ongrid-search input {
    background: #fff !important;
    border-color: rgba(0,0,0,0.10) !important;
    color: #0b0b0f;
  }

  /* Scrollbar */
  ::-webkit-scrollbar-track { background: #f1f5f9; }
  ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-color: #f1f5f9;
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

  /* Selection */
  ::selection { background: rgba(146,84,248,0.25); color: #0b0b0f; }

  /* Admin tools menu */
  .admin-tools-trigger {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    color: #0b0b0f;
  }
  .admin-tools-trigger:hover {
    background: #f8fafc;
    border-color: rgba(146,84,248,0.4);
  }
  .admin-tools-dropdown {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-color: rgba(0,0,0,0.10);
    box-shadow: 0 18px 40px -10px rgba(0,0,0,0.18);
  }
  .admin-tools-item { color: #0b0b0f; }
  .admin-tools-item:hover { background: rgba(146,84,248,0.08); }
  .admin-tools-divider { background: rgba(0,0,0,0.06); }

  /* Hero admin overlay no light */
  .hero-admin-trigger--overlay .hero-admin-btn {
    background: rgba(255,255,255,0.85);
    color: #0b0b0f;
    border-color: rgba(0,0,0,0.12);
  }
  .hero-admin-trigger--overlay .hero-admin-btn:hover {
    background: var(--brand);
    color: #fff;
  }

  /* Disabled buttons */
  button:disabled, [aria-disabled="true"] { opacity: 0.4; }

  /* Loading bar */
  body.is-date-loading .games-section::before {
    background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  }

  /* "Atualizado às" */
  .eh-hero-updated { color: rgba(0,0,0,0.4) !important; }
}

/* Filter-bar quando inline na control-bar-left (ao lado de Ontem/Hoje/Amanhã) */
.filter-bar.filter-bar-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 0 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.filter-bar.filter-bar-inline .filter-select {
  height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 10px;
  min-width: 130px;
}
@media (max-width: 1200px) {
  .filter-bar.filter-bar-inline .filter-select { min-width: 110px; font-size: 0.74rem; padding: 0 10px; }
}

/* Mobile: admin trigger fica icon-only */
@media (max-width: 720px) {
  .admin-tools-trigger span { display: none; }
  .admin-tools-trigger { padding: 8px; }
}

/* Mobile: hero admin label colapsa em ícone */
@media (max-width: 540px) {
  .hero-admin-trigger--overlay .hero-admin-btn-label { display: none; }
  .hero-admin-trigger--overlay .hero-admin-btn { padding: 7px; }
}

/* ═══════════════════════════════════════════════════════════════
   ONGRID LIVE — Premium Sports Navigation
   ═══════════════════════════════════════════════════════════════ */

.ongrid-live-app {
  --ol-accent: #00e676;
  --ol-accent-dim: #00c853;
  --ol-live: #ff1744;
  --ol-card: rgba(22,22,24,.7);
  --ol-border: rgba(255,255,255,.06);
  --ol-glass: rgba(22,22,24,.7);
  --ol-radius: 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
[data-theme="light"] .ongrid-live-app {
  --ol-card: rgba(255,255,255,.85);
  --ol-border: rgba(0,0,0,.08);
  --ol-glass: rgba(255,255,255,.8);
}

/* ── Hero Section ── */
.ol-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 20px;
}
.ol-hero-bg {
  position: absolute;
  inset: 0;
  transition: background 0.6s ease;
}
.ol-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,11,15,0) 0%,
    rgba(11,11,15,.4) 40%,
    rgba(11,11,15,.88) 72%,
    rgba(11,11,15,1) 100%
  );
}
[data-theme="light"] .ol-hero-gradient {
  background: linear-gradient(180deg,
    rgba(248,250,252,0) 0%,
    rgba(248,250,252,.5) 45%,
    rgba(248,250,252,.92) 75%,
    rgba(248,250,252,1) 100%
  );
}
.ol-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.ol-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Live badge */
.ol-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,23,68,.15);
  color: var(--ol-live);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ol-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ol-live);
  animation: olPulse 1.4s ease-in-out infinite;
}
@keyframes olPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .5; }
}
.ol-hero-comp {
  font-size: .8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Channel badge (reused) */
.ol-channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Hero match layout */
.ol-hero-match {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.ol-hero-team {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ol-hero-team-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.ol-team-crest {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* Score */
.ol-hero-score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}
.ol-score-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ol-score-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ol-score-x {
  font-size: .9rem;
  color: var(--text-tertiary);
  font-weight: 300;
}
.ol-hero-minute {
  font-size: .7rem;
  font-weight: 800;
  color: var(--ol-live);
  animation: olPulse 1.4s ease-in-out infinite;
}

/* Hero events */
.ol-hero-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ol-hero-events span {
  background: rgba(255,255,255,.06);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  color: var(--text-secondary);
}
[data-theme="light"] .ol-hero-events span {
  background: rgba(0,0,0,.05);
}

/* Primary CTA button */
.ol-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: 14px;
  background: var(--ol-accent);
  color: #000;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
  width: fit-content;
  box-shadow: 0 0 30px rgba(0,230,118,.15);
}
.ol-btn-primary:hover {
  background: var(--ol-accent-dim);
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(0,230,118,.25);
}
.ol-btn-primary:active { transform: scale(.98); }

/* ── Sections ── */
.ol-section {
  padding: 24px 0;
}
.ol-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ol-section-bar {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ol-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.ol-section-count {
  font-size: .75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Horizontal scroll ── */
.ol-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ol-hscroll::-webkit-scrollbar { display: none; }

/* ── Live Card ── */
.ol-live-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--ol-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius);
  padding: 18px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  scroll-snap-align: start;
}
.ol-live-card:hover, .ol-live-card:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.1);
  z-index: 5;
}
[data-theme="light"] .ol-live-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.ol-live-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ol-accent), 0 12px 40px rgba(0,0,0,.35);
}
.ol-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ol-card-sport {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
.ol-card-teams {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.ol-card-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ol-card-team-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.ol-card-crest {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
  flex-shrink: 0;
}
.ol-card-team-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ol-card-score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 8px;
}
.ol-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
[data-theme="light"] .ol-card-footer {
  border-top-color: rgba(0,0,0,.06);
}
.ol-card-minute {
  font-size: .72rem;
  font-weight: 800;
  color: var(--ol-live);
  animation: olPulse 1.4s ease-in-out infinite;
}
.ol-card-watch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: rgba(0,230,118,.08);
  color: var(--ol-accent);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  opacity: 0;
}
.ol-live-card:hover .ol-card-watch,
.ol-live-card:focus-visible .ol-card-watch {
  opacity: 1;
}
.ol-card-watch:hover {
  background: rgba(0,230,118,.15);
}

/* ── Upcoming row ── */
.ol-upcoming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ol-upcoming-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ol-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ol-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s ease;
}
.ol-upcoming-row:hover, .ol-upcoming-row:focus-visible {
  background: rgba(255,255,255,.04);
  transform: translateX(4px);
}
[data-theme="light"] .ol-upcoming-row:hover {
  background: rgba(0,0,0,.03);
}
.ol-upcoming-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ol-accent);
}
.ol-up-time {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}
.ol-up-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
[data-theme="light"] .ol-up-divider {
  background: rgba(0,0,0,.08);
}
.ol-up-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ol-up-crest {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .6rem;
  color: #fff;
  flex-shrink: 0;
}
.ol-up-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ol-up-vs {
  font-size: .65rem;
  color: var(--text-tertiary);
  font-weight: 500;
  padding: 0 4px;
}
.ol-up-comp {
  font-size: .65rem;
  color: var(--text-tertiary);
  display: none;
}
@media (min-width: 1100px) {
  .ol-up-comp { display: block; }
}

/* Countdown */
.ol-countdown {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}
.ol-cd-num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.ol-cd-sep {
  color: var(--text-tertiary);
  font-size: .75rem;
  font-weight: 300;
  padding: 0 1px;
}
.ol-cd-label {
  font-size: .55rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
}

/* ── Day Events Grid ── */
.ol-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.ol-event-card {
  background: var(--ol-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius);
  padding: 20px;
  cursor: pointer;
  transition: all .25s ease;
}
.ol-event-card:hover, .ol-event-card:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.ol-event-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ol-accent);
}
.ol-ev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ol-ev-sport {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ol-ev-sport-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.ol-ev-comp-name {
  font-size: .7rem;
  font-weight: 600;
}
.ol-ev-time {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.ol-ev-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ol-ev-subtitle {
  font-size: .78rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.ol-ev-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
[data-theme="light"] .ol-ev-footer {
  border-top-color: rgba(0,0,0,.06);
}

/* ── Modal Overlay ── */
.ol-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: olFadeIn .25s ease;
}
@keyframes olFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ol-modal {
  background: var(--bg-elevated, #161618);
  border: 1px solid var(--ol-border);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow: auto;
  animation: olSlideUp .3s cubic-bezier(.4,0,.2,1);
  margin: 16px;
}
@keyframes olSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ol-modal-banner {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ol-modal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-elevated, #161618) 100%);
}
.ol-modal-body {
  padding: 24px;
}
.ol-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.ol-detail-comp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ol-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ol-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.ol-detail-comp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ol-detail-comp-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ol-detail-events {
  margin-bottom: 16px;
}
.ol-detail-events-label {
  font-size: .65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 8px;
}
.ol-detail-events-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ol-detail-events-list span {
  background: rgba(255,255,255,.05);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: .72rem;
  color: var(--text-secondary);
}
[data-theme="light"] .ol-detail-events-list span {
  background: rgba(0,0,0,.04);
}
.ol-detail-desc {
  font-size: .82rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ol-detail-countdown-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ol-glass);
  border: 1px solid var(--ol-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.ol-detail-countdown-label {
  font-size: .8rem;
  color: var(--text-tertiary);
}
.ol-detail-actions {
  display: flex;
  gap: 10px;
}
.ol-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--ol-border);
  border-radius: 14px;
  background: var(--ol-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.ol-btn-secondary:hover { background: rgba(255,255,255,.06); }
.ol-detail-actions .ol-btn-primary { flex: 1; justify-content: center; }

/* ── Mock Player Overlay ── */
.ol-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: #000;
  animation: olFadeIn .3s ease;
}
.ol-player {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ol-player-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ol-player-noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
.ol-player-center {
  text-align: center;
  position: relative;
  z-index: 2;
}
.ol-player-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,230,118,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: olScaleIn .4s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes olScaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.ol-player-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.ol-player-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}
.ol-player-intent {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--ol-accent);
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  font-weight: 600;
}
.ol-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(22,22,24,.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.ol-player-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ol-player-bar-info h4 {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.ol-player-bar-info p {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  margin: 2px 0 0;
}
.ol-player-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ol-player-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--ol-accent);
  font-weight: 600;
}
.ol-player-status .ol-live-dot {
  width: 6px;
  height: 6px;
  background: var(--ol-accent);
}
.ol-btn-exit {
  padding: 8px 22px;
  border: none;
  border-radius: 12px;
  background: rgba(255,23,68,.15);
  color: var(--ol-live);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.ol-btn-exit:hover { background: rgba(255,23,68,.25); }

/* Tuning spinner */
.ol-tuning {
  text-align: center;
}
.ol-tuning-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
}
.ol-tuning-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--ol-accent);
  animation: olSpin 1.2s linear infinite;
}
@keyframes olSpin {
  to { transform: rotate(360deg); }
}
.ol-tuning-num {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--bg-elevated, #1a1a1d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ol-tuning-text {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  animation: olPulse 1.4s ease-in-out infinite;
}

/* Loading dots */
.ol-loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}
.ol-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ol-accent);
  animation: olDotPulse 1s ease-in-out infinite;
}
.ol-loading-dots span:nth-child(2) { animation-delay: .2s; }
.ol-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes olDotPulse {
  0%,100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ol-hero {
    height: auto;
    min-height: 320px;
    border-radius: 16px;
  }
  .ol-hero-content {
    padding: 16px 16px 18px;
    gap: 10px;
  }
  .ol-hero-meta {
    gap: 8px;
    margin-bottom: 10px;
  }
  .ol-live-badge,
  .ol-channel-badge {
    padding: 4px 10px;
    font-size: .64rem;
    border-radius: 999px;
  }
  .ol-hero-comp {
    font-size: .72rem;
  }
  .ol-hero-match {
    gap: 10px;
    margin-bottom: 12px;
    justify-content: space-between;
  }
  .ol-hero-team {
    gap: 10px;
  }
  .ol-hero-team-name {
    font-size: 1rem;
    max-width: 90px;
  }
  .ol-score-num {
    font-size: 2rem;
  }
  .ol-score-mid {
    gap: 2px;
  }
  .ol-score-x {
    font-size: .8rem;
  }
  .ol-hero-minute {
    font-size: .65rem;
  }
  .ol-team-crest {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .ol-hero-events {
    gap: 6px;
    margin-bottom: 12px;
  }
  .ol-hero-events span {
    padding: 4px 10px;
    font-size: .68rem;
  }
  .ol-btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: .84rem;
    box-shadow: 0 0 26px rgba(0,230,118,.12);
  }
  .ol-upcoming-grid { grid-template-columns: 1fr; }
  .ol-live-card { width: 260px; }
  .ol-events-grid { grid-template-columns: 1fr; }
  .ol-modal { margin: 8px; border-radius: 18px; }
  .ol-modal-banner { height: 140px; }
}
@media (max-width: 480px) {
  .ol-hero {
    min-height: 292px;
  }
  .ol-hero-match {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .ol-hero-score {
    padding: 0 2px;
    gap: 8px;
  }
  .ol-score-num { font-size: 1.72rem; }
  .ol-hero-team-name { font-size: .88rem; }
  .ol-team-crest { width: 38px; height: 38px; font-size: .88rem; }
  .ol-btn-primary {
    margin-top: 2px;
    padding: 11px 16px;
  }
}

@media (max-width: 768px) {
  .ongrid-auth-btn.login-main {
    height: 38px;
    padding: 0 14px;
    gap: 7px;
    font-size: .8rem;
  }
  .ongrid-login-dropdown {
    min-width: min(310px, calc(100vw - 20px));
  }
  .ongrid-login-item {
    min-height: 42px;
    font-size: .8rem;
  }
  .login-dropdown-head strong {
    font-size: .86rem;
  }
  .login-dropdown-head span {
    font-size: .69rem;
  }
}

/* ── Modal manual de status/resultado ───────────────────────── */
.edit-status-panel {
  width: min(560px, calc(100vw - 24px));
}
.edit-status-grid .edit-status-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-status-grid .edit-status-field > span {
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.edit-status-grid .edit-channels-input {
  width: 100%;
}
.edit-status-grid .edit-status-field--full {
  margin-top: 2px;
}
@media (max-width: 560px) {
  .edit-status-grid {
    grid-template-columns: 1fr !important;
  }
}
