/* =============================================
   HATKE BROADCAST — 4 PREMIUM SCOREBUG THEMES
   =============================================
   Theme 1: IPL Premium (Gold/Blue, slanted, glassmorphism)
   Theme 2: Minimalist World Cup (Clean flat, corporate)
   Theme 3: Star Sports Neon (Dark, neon accents, glow)
   Theme 4: Classic Box (Square, high contrast, compact)
   ============================================= */

/* =============================================
   THEME 1: IPL PREMIUM
   Gold/Blue accents, slanted edges, heavy glassmorphism
   ============================================= */
.scorebug-wrapper.style-ipl .scorebug-row {
  gap: 0;
}
.scorebug-wrapper.style-ipl .team-panel-left {
  background: linear-gradient(135deg, var(--team-a) 0%, #991b1b 100%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.scorebug-wrapper.style-ipl .team-panel-right {
  background: linear-gradient(135deg, var(--team-b) 0%, #1e40af 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.scorebug-wrapper.style-ipl .team-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.scorebug-wrapper.style-ipl .center-block {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(245,158,11,0.08);
}
.scorebug-wrapper.style-ipl .center-block .main-score {
  font-family: var(--font-score);
  font-size: 52px;
  font-weight: 700;
  color: #fff;
}
.scorebug-wrapper.style-ipl .center-block .sub-info {
  color: #94a3b8;
  font-size: 13px;
}
.scorebug-wrapper.style-ipl .player-stats {
  background: linear-gradient(to right, rgba(15,23,42,0.95), rgba(0,0,0,0.95), rgba(15,23,42,0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
}
.scorebug-wrapper.style-ipl .player-stats .lbl {
  color: var(--gold-bright);
  font-weight: 900;
}
.scorebug-wrapper.style-ipl .player-stats .val {
  color: #fff;
  font-weight: 700;
}

/* =============================================
   THEME 2: MINIMALIST WORLD CUP
   Clean flat design, solid colors, corporate broadcast
   ============================================= */
.scorebug-wrapper.style-minimalist {
  bottom: 30px;
}
.scorebug-wrapper.style-minimalist .scorebug-row {
  gap: 0;
  height: 64px;
}
.scorebug-wrapper.style-minimalist .team-panel {
  padding: 0 20px;
}
.scorebug-wrapper.style-minimalist .team-panel-left {
  background: var(--team-a);
  clip-path: none;
  border-radius: 6px 0 0 6px;
  width: 320px;
}
.scorebug-wrapper.style-minimalist .team-panel-right {
  background: var(--team-b);
  clip-path: none;
  border-radius: 0 6px 6px 0;
  width: 320px;
}
.scorebug-wrapper.style-minimalist .team-panel::after {
  display: none;
}
.scorebug-wrapper.style-minimalist .team-panel .name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: none;
}
.scorebug-wrapper.style-minimalist .center-block {
  background: #ffffff;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
  min-width: 200px;
  padding: 4px 20px;
}
.scorebug-wrapper.style-minimalist .center-block .main-score {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #111827;
}
.scorebug-wrapper.style-minimalist .center-block .sub-info {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
}
.scorebug-wrapper.style-minimalist .center-block .target-line {
  font-family: 'Inter', system-ui, sans-serif;
  color: #dc2626;
  font-size: 11px;
}
.scorebug-wrapper.style-minimalist .player-stats {
  background: #f8fafc;
  backdrop-filter: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 30px;
  margin-top: 8px;
}
.scorebug-wrapper.style-minimalist .player-stats .lbl {
  color: #6b7280;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.scorebug-wrapper.style-minimalist .player-stats .val {
  color: #111827;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

/* Minimalist ball dots */
.scorebug-wrapper.style-minimalist ~ .last-balls .ball-dot {
  border-radius: 4px;
  border: none;
  box-shadow: none;
}

/* Minimalist stat cards */
.scorebug-wrapper.style-minimalist ~ .stat-card {
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.scorebug-wrapper.style-minimalist ~ .stat-card .card-header {
  color: #111827;
  border-bottom-color: #e2e8f0;
}
.scorebug-wrapper.style-minimalist ~ .stat-card .player-name {
  color: #111827;
}
.scorebug-wrapper.style-minimalist ~ .stat-card .player-score {
  color: var(--team-a);
}
.scorebug-wrapper.style-minimalist ~ .stat-card .player-detail {
  color: #6b7280;
}
.scorebug-wrapper.style-minimalist ~ .stat-card .bowler-fig {
  color: #111827;
}
.scorebug-wrapper.style-minimalist ~ .stat-card .bowler-econ {
  color: #6b7280;
}

/* =============================================
   THEME 3: STAR SPORTS NEON
   Dark mode, bright neon accents, glowing shadows
   ============================================= */
.scorebug-wrapper.style-neon .scorebug-row {
  gap: 2px;
}
.scorebug-wrapper.style-neon .team-panel {
  padding: 0 24px;
}
.scorebug-wrapper.style-neon .team-panel-left {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  clip-path: none;
  border-radius: 12px 0 0 12px;
  border: 2px solid var(--team-a);
  border-right: none;
  box-shadow: 0 0 20px var(--team-a-glow), inset 0 0 15px rgba(255,255,255,0.03);
  width: 340px;
}
.scorebug-wrapper.style-neon .team-panel-right {
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
  clip-path: none;
  border-radius: 0 12px 12px 0;
  border: 2px solid var(--team-b);
  border-left: none;
  box-shadow: 0 0 20px var(--team-b-glow), inset 0 0 15px rgba(255,255,255,0.03);
  width: 340px;
}
.scorebug-wrapper.style-neon .team-panel::after {
  display: none;
}
.scorebug-wrapper.style-neon .team-panel .name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 10px currentColor;
}
.scorebug-wrapper.style-neon .center-block {
  background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 0 25px rgba(245,158,11,0.3), inset 0 0 15px rgba(245,158,11,0.05);
}
.scorebug-wrapper.style-neon .center-block .main-score {
  font-family: var(--font-score);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(251,191,36,0.5);
}
.scorebug-wrapper.style-neon .center-block .sub-info {
  color: #94a3b8;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(148,163,184,0.3);
}
.scorebug-wrapper.style-neon .center-block .target-line {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239,68,68,0.5);
}
.scorebug-wrapper.style-neon .player-stats {
  background: linear-gradient(to right, rgba(10,10,15,0.95), rgba(15,15,30,0.95), rgba(10,10,15,0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(245,158,11,0.15);
}
.scorebug-wrapper.style-neon .player-stats .lbl {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}
.scorebug-wrapper.style-neon .player-stats .val {
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

/* Neon ball dots with glow */
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot {
  box-shadow: 0 0 12px currentColor;
  border: 2px solid currentColor;
  background: rgba(0,0,0,0.6);
}
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot.r0 {
  color: #475569;
  background: rgba(71,85,105,0.3);
}
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot.r4 {
  color: #22c55e;
  background: rgba(34,197,94,0.3);
}
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot.r6 {
  color: #ef4444;
  background: rgba(239,68,68,0.3);
}
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot.rw {
  color: #ef4444;
  background: rgba(239,68,68,0.3);
}
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot.rwd {
  color: #f59e0b;
  background: rgba(245,158,11,0.3);
}
.scorebug-wrapper.style-neon ~ .last-balls .ball-dot.rnb {
  color: #f97316;
  background: rgba(249,115,22,0.3);
}

/* Neon stat cards */
.scorebug-wrapper.style-neon ~ .stat-card {
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
}
.scorebug-wrapper.style-neon ~ .stat-card .card-header {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
  border-bottom-color: rgba(245,158,11,0.3);
}
.scorebug-wrapper.style-neon ~ .stat-card .player-score {
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}

/* Neon FOW panel */
.scorebug-wrapper.style-neon ~ .fow-panel {
  background: rgba(10,10,15,0.95);
  border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
}
.scorebug-wrapper.style-neon ~ .fow-panel .fow-header {
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}

/* =============================================
   THEME 4: CLASSIC BOX
   Traditional square layout, high contrast, compact
   ============================================= */
.scorebug-wrapper.style-classic {
  bottom: 20px;
}
.scorebug-wrapper.style-classic .scorebug-row {
  gap: 0;
  height: 70px;
  border: 2px solid #374151;
  border-radius: 4px;
  overflow: hidden;
}
.scorebug-wrapper.style-classic .team-panel {
  padding: 0 16px;
}
.scorebug-wrapper.style-classic .team-panel-left {
  background: var(--team-a);
  clip-path: none;
  border-radius: 0;
  width: 300px;
  justify-content: flex-start;
}
.scorebug-wrapper.style-classic .team-panel-right {
  background: var(--team-b);
  clip-path: none;
  border-radius: 0;
  width: 300px;
  justify-content: flex-end;
}
.scorebug-wrapper.style-classic .team-panel::after {
  display: none;
}
.scorebug-wrapper.style-classic .team-panel .name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: none;
}
.scorebug-wrapper.style-classic .center-block {
  background: #111827;
  border-top: none;
  border-bottom: none;
  border-left: 2px solid #374151;
  border-right: 2px solid #374151;
  box-shadow: none;
  min-width: 200px;
  padding: 4px 16px;
}
.scorebug-wrapper.style-classic .center-block .main-score {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: none;
}
.scorebug-wrapper.style-classic .center-block .sub-info {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
}
.scorebug-wrapper.style-classic .center-block .target-line {
  font-family: 'Inter', system-ui, sans-serif;
  color: #ef4444;
  font-size: 11px;
}
.scorebug-wrapper.style-classic .player-stats {
  background: #1f2937;
  backdrop-filter: none;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 8px 24px;
  margin-top: 8px;
}
.scorebug-wrapper.style-classic .player-stats .lbl {
  color: #fbbf24;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}
.scorebug-wrapper.style-classic .player-stats .val {
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

/* Classic ball dots */
.scorebug-wrapper.style-classic ~ .last-balls .ball-dot {
  border-radius: 4px;
  border: 2px solid transparent;
  box-shadow: none;
}

/* Classic stat cards */
.scorebug-wrapper.style-classic ~ .stat-card {
  background: #1f2937;
  backdrop-filter: none;
  border: 1px solid #374151;
  border-radius: 4px;
  box-shadow: none;
}
.scorebug-wrapper.style-classic ~ .stat-card .card-header {
  color: #fbbf24;
  border-bottom-color: #374151;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
}
.scorebug-wrapper.style-classic ~ .stat-card .player-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.scorebug-wrapper.style-classic ~ .stat-card .player-score {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
}
.scorebug-wrapper.style-classic ~ .stat-card .player-detail {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
}
.scorebug-wrapper.style-classic ~ .stat-card .bowler-fig {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
}
.scorebug-wrapper.style-classic ~ .stat-card .bowler-econ {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
}

/* Classic FOW panel */
.scorebug-wrapper.style-classic ~ .fow-panel {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 4px;
  box-shadow: none;
}
.scorebug-wrapper.style-classic ~ .fow-panel .fow-header {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Classic partnership bar */
.scorebug-wrapper.style-classic ~ .partnership-bar {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: none;
}

/* =============================================
   SHARED THEME TRANSITIONS
   ============================================= */
.scorebug-wrapper {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.scorebug-wrapper .team-panel {
  transition: all 0.4s ease;
}
.scorebug-wrapper .center-block {
  transition: all 0.4s ease;
}
