:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(28, 39, 65, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-active: rgba(34, 197, 94, 0.15);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(34, 197, 94, 0.4);
  
  --primary: #22c55e;
  --primary-glow: rgba(34, 197, 94, 0.35);
  --primary-light: #4ade80;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px -5px var(--primary-glow);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(0, 0, 0, 0.04);
  --bg-glass-active: rgba(34, 197, 94, 0.15);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(0, 0, 0, 0.15);
  --border-accent: rgba(34, 197, 94, 0.6);
  
  --primary-glow: rgba(34, 197, 94, 0.25);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(34, 197, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

:root[data-theme="light"] .filter-select,
:root[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .score-display {
  color: var(--text-primary);
  text-shadow: none;
  background: rgba(0, 0, 0, 0.05);
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem 1.25rem;
}

/* Header */
.app-header {
  padding: 1.5rem 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brand-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.logo-wrap:hover {
  transform: translateY(-1px);
}

.logo-icon-box {
  width: 54px;
  height: 54px;
  background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.25) 0%, rgba(18, 26, 43, 0.8) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(34, 197, 94, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  transition: var(--transition);
  padding: 6px;
}

.logo-wrap:hover .logo-icon-box {
  border-color: var(--primary);
  box-shadow: 0 10px 28px -4px rgba(34, 197, 94, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.brand-name {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-domain {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.02em;
}

.brand-highlight {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.15));
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px -3px rgba(34, 197, 94, 0.3);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.refresh-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-family: inherit;
  transition: var(--transition);
}

.refresh-btn:hover {
  background: var(--bg-glass-active);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.refresh-btn svg {
  transition: transform 0.4s ease;
}

.refresh-btn:hover svg {
  transform: rotate(180deg);
}

/* Date Navigator */
.date-nav-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.date-nav {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

.date-nav::-webkit-scrollbar {
  height: 5px;
}

.date-nav::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 10px;
}

.date-tab {
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition);
  font-family: inherit;
  user-select: none;
}

.date-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.date-tab.active {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(6, 182, 212, 0.1));
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px -5px var(--primary-glow);
}

.date-tab .tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.date-tab.active .tab-badge {
  color: var(--primary-light);
}

.date-tab .tab-date {
  font-size: 0.95rem;
  font-weight: 700;
}

.date-tab .tab-count {
  font-size: 0.7rem;
  background: var(--bg-glass);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  margin-top: 0.2rem;
}

.date-tab.active .tab-count {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

/* Search & Filters Section */
.filters-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

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

.search-input {
  width: 100%;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 200px;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.filter-select {
  width: 100%;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:hover {
  border-color: var(--border-glass-hover);
}

.filter-select:focus {
  border-color: var(--primary);
}

.reset-filters-btn {
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.reset-filters-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Quick Filter Chips */
.quick-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.quick-chip-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chip:hover, .chip.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Matches Header Info */
.results-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.results-count {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--primary-light);
  font-weight: 700;
}

.brazil-only-notice {
  font-size: 0.78rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

/* Match Card */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.1);
}

.match-card.is-live {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 25px -5px rgba(239, 68, 68, 0.2);
}

.match-card.is-live::before {
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.champ-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-weight: 600;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champ-flag {
  font-size: 1rem;
}

.champ-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Schedule Info (Data e Horário de Brasília) */
.match-schedule-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.schedule-date-badge {
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.schedule-time-badge {
  color: var(--primary-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.schedule-tz-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.time-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.time-badge.live {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  animation: pulse-live 1.5s infinite;
}

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

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

/* Match Faceoff */
.match-faceoff {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.team-badge-wrap {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.25s ease;
}

.match-card:hover .team-badge-wrap {
  transform: scale(1.06);
}

.team-badge {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Match Center (VS / Score) */
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vs-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
}

.score-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.score-divider {
  color: var(--text-muted);
  font-weight: 400;
}

/* Card Broadcast (Onde Assistir) */
.card-broadcasts {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.broadcast-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.broadcast-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.broadcast-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.broadcast-pill:hover {
  transform: translateY(-1px);
}

.broadcast-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.5rem auto;
}

/* Skeleton Loading */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: pulse-skel 1.5s infinite ease-in-out;
}

@keyframes pulse-skel {
  0% { opacity: 0.5; }
  50% { opacity: 0.9; }
  100% { opacity: 0.5; }
}

.skeleton-line {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  height: 16px;
}

.skeleton-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 auto;
}

/* Install PWA Button */
.install-pwa-btn {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #0b0f19;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px -3px rgba(34, 197, 94, 0.5);
  transition: var(--transition);
  animation: pulse-btn 2.5s infinite;
}

.install-pwa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(34, 197, 94, 0.7);
}

@keyframes pulse-btn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Espaços de Monetização / Ads Slots */
.ad-slot {
  width: 100%;
  margin: 1.5rem 0;
}

.ad-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.ad-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
}

.ad-badge-top {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.ad-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ad-icon-promo {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.4));
}

.ad-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 280px;
}

.ad-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.ad-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ad-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
}

.ad-cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px -2px rgba(245, 158, 11, 0.6);
}

/* Slot Inferior / Placeholder */
.ad-card-large {
  padding: 1.5rem;
  text-align: center;
  border-style: dashed;
}

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.ad-placeholder-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.ad-placeholder-text strong {
  color: var(--primary-light);
}

.ad-badge-size {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Banner Fixo Inferior Mobile (Anchor Ad) */
.mobile-sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
  padding: 0.6rem 1rem;
  z-index: 999;
  backdrop-filter: blur(12px);
}

.sticky-ad-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sticky-ad-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  flex: 1;
}

.sticky-ad-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sticky-ad-text {
  font-size: 0.82rem;
  color: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-ad-btn {
  background: #22c55e;
  color: #0b0f19;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sticky-ad-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0.3rem;
}

/* Prompt Banner de Instalação PWA */
.pwa-install-banner {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 480px;
  background: rgba(18, 26, 43, 0.95);
  border: 1px solid var(--primary);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px -5px var(--primary-glow);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: slide-up 0.4s ease;
}

@keyframes slide-up {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pwa-banner-text strong {
  font-size: 0.92rem;
  color: #ffffff;
}

.pwa-banner-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pwa-btn-primary {
  background: var(--primary);
  color: #0b0f19;
  border: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.pwa-btn-primary:hover {
  background: var(--primary-light);
}

.pwa-btn-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.35rem;
}

/* Footer */
.app-footer {
  margin-top: 3rem;
  margin-bottom: 3.5rem; /* Espaço para o banner fixo mobile */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.app-footer a {
  color: var(--primary-light);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVIDADE E OTIMIZAÇÃO AVANÇADA PARA CELULARES (MOBILE FIRST UX)
   ========================================================================== */

@media (max-width: 768px) {
  .app-container {
    padding: 0 0.85rem 5rem 0.85rem;
  }

  .app-header {
    padding: 1.25rem 0 1rem 0;
    gap: 1rem;
  }

  .brand-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo-wrap {
    gap: 0.75rem;
  }

  .logo-icon-box {
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: var(--radius-sm);
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .brand-tag {
    font-size: 0.6rem;
    padding: 0.12rem 0.45rem;
  }

  .header-status {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .refresh-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .install-pwa-btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.76rem;
  }

  /* Barra de Navegação por Datas no Mobile */
  .date-nav-wrapper {
    margin-bottom: 1rem;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding: 0 0.85rem;
  }

  .date-nav {
    gap: 0.5rem;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .date-tab {
    padding: 0.55rem 0.9rem;
    min-width: 85px;
    border-radius: var(--radius-sm);
  }

  .date-tab .tab-badge {
    font-size: 0.65rem;
  }

  .date-tab .tab-date {
    font-size: 0.85rem;
  }

  .date-tab .tab-count {
    font-size: 0.65rem;
  }

  /* Filtros no Celular */
  .filters-bar {
    padding: 0.95rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .search-input {
    padding: 0.65rem 0.85rem 0.65rem 2.4rem;
    font-size: 0.88rem;
  }

  .filter-pills-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .filter-group {
    width: 100%;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .filter-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }

  .reset-filters-btn {
    width: 100%;
    text-align: center;
    padding: 0.55rem;
  }

  .quick-chips {
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .quick-chips .chip {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.74rem;
    padding: 0.25rem 0.6rem;
  }

  /* Grid de Jogos em coluna única */
  .matches-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Cards de Jogos otimizados para Mobile */
  .match-card {
    padding: 0.95rem;
    border-radius: var(--radius-md);
    gap: 0.75rem;
  }

  .card-header {
    font-size: 0.74rem;
  }

  .champ-tag {
    max-width: 65%;
  }

  .time-badge {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
  }

  /* Confronto dos Times no Celular */
  .match-faceoff {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
  }

  .team-badge-wrap {
    width: 44px;
    height: 44px;
    padding: 6px;
  }

  .team-name {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .vs-pill {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .score-display {
    font-size: 1.2rem;
    padding: 0.2rem 0.6rem;
  }

  /* Emissoras e Onde Assistir */
  .card-broadcasts {
    padding-top: 0.65rem;
    gap: 0.4rem;
  }

  .broadcast-label {
    font-size: 0.65rem;
  }

  .broadcast-badges-list {
    gap: 0.35rem;
  }

  .broadcast-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.74rem;
  }

  .broadcast-logo {
    width: 14px;
    height: 14px;
  }

  /* Anúncios no Mobile */
  .ad-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ad-icon-promo {
    display: none;
  }

  .ad-title {
    font-size: 0.86rem;
  }

  .ad-sub {
    font-size: 0.74rem;
  }

  .ad-cta-btn {
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  /* Banner Fixo Inferior */
  .mobile-sticky-ad {
    padding: 0.5rem 0.75rem;
  }

  .sticky-ad-text {
    font-size: 0.76rem;
  }

  .sticky-ad-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.74rem;
  }

  /* PWA Modal */
  .pwa-install-banner {
    bottom: 52px;
    width: 95%;
    padding: 0.75rem 0.95rem;
  }

  .pwa-banner-icon {
    width: 36px;
    height: 36px;
  }

  .pwa-banner-text strong {
    font-size: 0.84rem;
  }

  .pwa-banner-text span {
    font-size: 0.72rem;
  }

  .pwa-btn-primary {
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
  }
}

/* Telas muito pequenas (ex: iPhone SE, telas < 380px) */
@media (max-width: 380px) {
  .team-name {
    font-size: 0.78rem;
  }

  .team-badge-wrap {
    width: 38px;
    height: 38px;
    padding: 4px;
  }

  .brand-name {
    font-size: 1.15rem;
  }
}
