* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  background: #0f172a;
  color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
}

.app-container {
  width: 100%;
  max-width: 480px;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 92vh;
}

.app-header {
  background: #009270;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.brand-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.left-menu-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.left-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Teko', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1;
}

.ball-icon { font-size: 18px; }

/* Left Slide-Down Navigation Drawer */
.left-menu-dropdown {
  background: #0f172a;
  border-bottom: 2px solid #009270;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeInMenu 0.14s ease-out;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-drawer-item {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-drawer-item:hover {
  border-color: #009270;
  background: #0f172a;
}

.menu-drawer-item.stream-highlight {
  border-color: #7c3aed;
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
}

.menu-soon-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Live Streaming Coming Soon Card */
.stream-coming-soon-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stream-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ede9fe;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-pill-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.stream-coming-soon-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.stream-coming-soon-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 12px;
}

.live-tag-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.admin-unlock-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-unlock-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.top-nav-bar {
  background: #e2e8f0;
  padding: 8px 12px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid #cbd5e1;
}

.nav-btn {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn.active, .nav-btn:hover {
  background: #009270;
  color: #ffffff;
  border-color: #009270;
}

.viewer-main-section {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.back-bar-row {
  display: flex;
  justify-content: flex-start;
}

.back-link-btn {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* ================= MATCHES HUB & LIVE INTIMATION ================= */
.live-intimation-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: 0.5px;
}

.pulse-live-dot {
  width: 8px;
  height: 8px;
  background-color: #dc2626;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.6);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.live-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #009270;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 146, 112, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.live-hero-card:hover {
  transform: translateY(-2px);
}

.live-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-series {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.hero-session-badge-line {
  font-size: 11px;
  font-weight: 800;
  color: #009270;
  margin-top: 4px;
}

.hero-bet-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 5px;
  display: inline-block;
}

.bet-match-pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.bet-setup-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 10px;
}

.hero-toss-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  margin-top: 6px;
}

.badge-live-tag {
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.badge-live-tag.toss-stage {
  background: #d97706;
}

.live-hero-teams {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-team-row .team-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.team-score {
  font-family: 'Teko', sans-serif;
  font-size: 26px;
  color: #009270;
  line-height: 1;
}

.team-sub-score {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.hero-status-line {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  border-top: 1px dashed #cbd5e1;
  padding-top: 6px;
}

.hero-status-line.chase-highlight {
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 800;
}

.empty-all-matches-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 36px 16px;
  text-align: center;
  color: #0f172a;
  font-size: 15px;
}

.section-label-simple {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.completed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.completed-card-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.completed-card-item:hover {
  border-color: #0284c7;
  transform: translateY(-1px);
}

.card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.card-session-subline {
  font-size: 11px;
  font-weight: 700;
  color: #009270;
}

.card-teams-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.card-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-result-line {
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
}

.btn-delete-match-sm {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-delete-match-sm:hover {
  background: #dc2626;
  color: #ffffff;
}

.no-history-msg {
  background: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

/* ================= LIVE SCORECARD BOARD ================= */
.live-match-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.match-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  gap: 6px;
}

.match-date-tag {
  color: #475569;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
}

.match-session-pill-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.session-match-pill {
  display: inline-block;
  background: #ecfdf5;
  color: #009270;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.weather-conditions-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weather-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.weather-metric {
  color: #0f172a;
  font-weight: 700;
}

.swing-metric-badge {
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.pitch-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px dashed #cbd5e1;
  padding-top: 5px;
  font-size: 10.5px;
  color: #334155;
}

.pitch-cond-item strong {
  color: #0f172a;
}

.match-teams-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.team-name {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.vs-badge {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}

.toss-info-line {
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
  margin-top: 2px;
}

.score-display-box {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-number-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.runs, .wickets {
  font-family: 'Teko', sans-serif;
  font-size: 54px;
  line-height: 0.9;
  font-weight: 700;
  color: #009270;
}

.slash {
  font-family: 'Teko', sans-serif;
  font-size: 40px;
  color: #94a3b8;
}

.overs-bracket {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  margin-left: 6px;
}

.rate-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.chase-equation {
  color: #dc2626;
  font-weight: 700;
}

.match-result-banner {
  margin-top: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
}

/* ================= SCORECARD TABS ================= */
.scorecard-tabs-bar {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 4px;
}

.score-tab {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 4px;
  text-align: center;
}

.score-tab.active {
  background: #009270;
  color: #ffffff;
}

.tab-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.innings-header-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #009270;
}

.live-panel-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.cricket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cricket-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 4px 6px;
  border-bottom: 1px solid #e2e8f0;
}

.cricket-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.cricket-table td.text-right, .cricket-table th.text-right {
  text-align: right;
}

.active-batter-row { background: #f0fdf4; }
.striker-star { color: #009270; font-weight: bold; }
.dot-space { color: #94a3b8; }

.player-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #cbd5e1;
  flex-shrink: 0;
}

.zoomable-photo {
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.zoomable-photo:hover {
  transform: scale(1.08);
}

.player-link {
  color: #0284c7;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.player-link:hover { color: #009270; }

.dismissal-col {
  color: #64748b;
  font-size: 11px;
  font-style: italic;
}

.dismissal-col.active-crease-tag {
  color: #009270;
  font-weight: 800;
  font-style: normal;
}

.yet-to-bat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
}

.yet-to-bat-box strong {
  color: #009270;
}

/* Over Circles */
.this-over-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  overflow-x: auto;
}

.empty-over-text { font-size: 12px; color: #94a3b8; }

.ball-circle {
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 13px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ball-circle.four { background: #0284c7; color: #ffffff; }
.ball-circle.six { background: #16a34a; color: #ffffff; }
.ball-circle.wkt { background: #dc2626; color: #ffffff; }
.ball-circle.extra { background: #d97706; color: #ffffff; }

/* ================= PLAYING XI VIEWER TAB ================= */
.playing-xi-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.xi-team-btn {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.xi-team-btn.active {
  background: #009270;
  border-color: #009270;
  color: #ffffff;
}

.xi-players-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xi-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

.xi-player-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xi-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #009270;
  background: #e2e8f0;
}

.xi-player-meta {
  display: flex;
  flex-direction: column;
}

.xi-player-meta strong {
  font-size: 13px;
  color: #0f172a;
}

.xi-player-meta span {
  font-size: 11px;
  color: #64748b;
}

/* ================= SQUADS ROSTER VIEW ================= */
.squad-header-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}

.squad-title-single {
  font-size: 16px;
  font-weight: 800;
  color: #009270;
}

.squad-category-tabs {
  display: flex;
  gap: 6px;
}

.cat-tab {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.cat-tab.active {
  background: #009270;
  border-color: #009270;
  color: #ffffff;
}

.squad-view-sub { font-size: 11px; color: #64748b; margin-top: 2px; }

.public-squad-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-squad-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.public-squad-card:hover {
  border-color: #009270;
  transform: translateY(-1px);
}

.public-squad-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 2px solid #009270;
  flex-shrink: 0;
}

.public-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.public-player-name { font-size: 14px; font-weight: 800; color: #0f172a; }
.public-player-style { font-size: 11px; color: #475569; }
.public-player-bowl { font-size: 10px; color: #64748b; }

.public-role-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ================= ABOUT PLAYER VIEW ================= */
.profile-page-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-hero-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 3px solid #009270;
  margin-bottom: 4px;
}

.tap-zoom-hint {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 6px;
}

.profile-hero-name { font-size: 22px; font-weight: 800; color: #0f172a; }

.role-pill {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.team-subtext { font-size: 12px; color: #64748b; margin-top: 4px; }
.profile-section-title { font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; }

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card .val { font-size: 16px; font-weight: 800; color: #0f172a; }
.stat-card .lbl { font-size: 10px; color: #64748b; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.profile-meta-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.meta-row { display: flex; justify-content: space-between; color: #475569; }
.meta-row strong { color: #0f172a; }

/* ================= FULL-SCREEN HIGH-CLARITY HD PHOTO LIGHTBOX ================= */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(5px);
  animation: fadeInLightbox 0.18s ease-out;
}

@keyframes fadeInLightbox {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.photo-lightbox-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #cbd5e1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-enlarged-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  image-rendering: high-quality;
}

.lightbox-caption {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 10px;
}

/* ================= PLAYING XI ANNOUNCEMENT CHECKLIST ================= */
.setup-xi-tabs {
  display: flex;
  gap: 6px;
}

.xi-setup-tab {
  flex: 1;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.xi-setup-tab.active {
  background: #009270;
  border-color: #009270;
  color: #ffffff;
}

.setup-xi-checklist {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px;
}

.xi-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  cursor: pointer;
}

.xi-check-item:last-child {
  border-bottom: none;
}

.xi-check-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xi-check-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* ================= GUIDED NEXT-STEP BAR & INLINE PANELS ================= */
.admin-next-step-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.btn-next-step-go {
  background: #d97706;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-pin-settings {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border: 1px solid #334155;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
}

/* Moderate Inline Bowler Change Strip (After 1 Over Completes) */
.inline-over-bowler-strip {
  background: #064e3b;
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 9px 10px;
  color: #ecfdf5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-set-bowler-inline {
  background: #10b981;
  color: #022c22;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 8px;
  cursor: pointer;
}

/* Run-Out Extra Completed Runs Sub-panel */
.runout-extra-subpanel {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 7px 8px;
}

.ro-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.ro-sub-row select {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #475569;
  border-radius: 4px;
}

.ro-run-chip {
  flex: 1;
  height: 28px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #475569;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ro-run-chip.active {
  background: #dc2626;
  border-color: #fca5a5;
}

.inline-noball-strip, .inline-wicket-strip {
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 10px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nb-strip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.nb-penalty-toggle {
  display: flex;
  gap: 4px;
}

.nb-pen-btn {
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.nb-pen-btn.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #a78bfa;
}

.nb-close-mini {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

.nb-bat-runs-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.nb-run-chip {
  flex: 1;
  height: 32px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.nb-run-chip.four { background: #0284c7; border-color: #38bdf8; }
.nb-run-chip.six { background: #16a34a; border-color: #4ade80; }

.wkt-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.wkt-inline-grid select {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
  outline: none;
}

.btn-confirm-wkt-inline {
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 8px;
  cursor: pointer;
}

/* ================= SCORER ADMIN CONSOLE DRAWER ================= */
.scorer-admin-drawer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  border-top: 2px solid #009270;
  border-radius: 14px 14px 0 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  z-index: 500;
  margin-top: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.drawer-header h4 { font-size: 14px; font-weight: 700; color: #4ade80; }
.close-drawer-btn { background: transparent; border: none; color: #94a3b8; font-size: 16px; cursor: pointer; }

.admin-top-actions-4 {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr 0.8fr;
  gap: 5px;
}

.admin-quick-switches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-setup { background: #009270; color: #ffffff; border: none; font-size: 11px; font-weight: 700; padding: 8px 4px; border-radius: 6px; cursor: pointer; }
.btn-xi { background: #7c3aed; color: #ffffff; border: none; font-size: 11px; font-weight: 700; padding: 8px 4px; border-radius: 6px; cursor: pointer; }
.btn-squad { background: #0284c7; color: #ffffff; border: none; font-size: 11px; font-weight: 700; padding: 8px 4px; border-radius: 6px; cursor: pointer; }
.btn-end { background: #b91c1c; color: #ffffff; border: none; font-size: 11px; font-weight: 700; padding: 8px 4px; border-radius: 6px; cursor: pointer; }
.btn-switch { background: #1e293b; color: #38bdf8; border: 1px solid #334155; font-size: 11px; font-weight: 700; padding: 6px 4px; border-radius: 6px; cursor: pointer; }

.scorer-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.scorer-keypad button {
  height: 44px;
  border-radius: 6px;
  border: none;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scorer-keypad button:active { transform: scale(0.96); }

.run-btn { background: #1e293b; color: #ffffff; }
.run-btn.four { background: #0284c7; color: #ffffff; }
.run-btn.six { background: #16a34a; color: #ffffff; }
.extra-btn { background: #b45309; color: #fef08a; font-size: 12px; }
.extra-btn.nb { background: #7c3aed; color: #ede9fe; }
.extra-btn.wkt { background: #dc2626; color: #ffffff; }
.util-btn { background: #334155; color: #cbd5e1; font-size: 12px; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 14px;
}

.modal-overlay.hidden, .hidden { display: none !important; }

.modal-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #0f172a;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-header-row { display: flex; justify-content: space-between; align-items: center; }
.modal-header-row h3 { font-size: 16px; font-weight: 700; }
.modal-sub { font-size: 11px; color: #64748b; margin-top: -6px; }
.close-btn { background: transparent; border: none; font-size: 16px; color: #64748b; cursor: pointer; }

.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-group label { font-size: 11px; font-weight: 700; color: #475569; }
.field-group input, .field-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

.weather-setup-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
}

.weather-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-card-header label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.btn-detect-weather {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.primary-btn { background: #009270; color: #ffffff; font-size: 13px; font-weight: 700; border: none; padding: 10px; border-radius: 6px; cursor: pointer; }
.primary-btn.sm { padding: 8px 10px; font-size: 11.5px; }
.primary-btn.red-bg { background: #dc2626; }
.cancel-btn { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; font-size: 13px; font-weight: 700; padding: 10px; border-radius: 6px; cursor: pointer; }
.cancel-btn.sm { padding: 8px 10px; font-size: 11.5px; }

/* Squad Roster Card */
.add-player-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-upload-label {
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 8px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  display: block;
}

.squad-roster-scroll {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.squad-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  border-radius: 6px;
  gap: 6px;
}

.squad-row-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.squad-row-item .player-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #cbd5e1; flex-shrink: 0; }
.squad-player-meta { display: flex; flex-direction: column; overflow: hidden; }
.squad-player-meta strong { font-size: 13px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad-player-meta span { font-size: 10px; color: #64748b; }

.squad-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-edit-player-sm {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-del-player-sm {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 5px;
  cursor: pointer;
}