/* ================================================================
   HYCC Cricket Tournament — Dark / Lime Green Theme
   ================================================================ */

/* ----------------------------------------------------------------
   Root Variables
   ---------------------------------------------------------------- */
:root {
  /* Core Palette — Dark */
  --bg: linear-gradient(to right, #007a47 , #fac748);
  --bg-elevated: #00331e;
  --bg-card: #007a47;
  --surface: #00331e;
  --surface-hover: #007a47;

  /* Accent — Lime Green */
  --primary: #a3e635;
  --primary-dark: #84cc16;
  --primary-soft: rgba(163, 230, 53, 0.12);
  --primary-glow: rgba(163, 230, 53, 0.20);

  /* Secondary & Accent */
  --secondary: #22d3ee;
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.12);

  /* Text */
  --text: #fafafa;
  --text-secondary: #fff;
  --text-muted: #fff;

  /* Borders */
  --border: #fff;
  --border-strong: #fff;
  --border-accent: #fff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6), 0 4px 6px -4px rgba(0,0,0,0.5);

  /* Transitions */
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.4s ease;

  /* Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Legacy compat */
  --hy-bg: #0a0a0a;
  --hy-bg-2: #141414;
  --hy-surface: #1a1a1a;
  --hy-surface-hover: #262626;
  --hy-primary: #a3e635;
  --hy-primary-dark: #84cc16;
  --hy-primary-soft: rgba(163, 230, 53, 0.12);
  --hy-primary-glow: rgba(163, 230, 53, 0.20);
  --hy-secondary: #22d3ee;
  --hy-accent: #fbbf24;
  --hy-accent-soft: rgba(251, 191, 36, 0.12);
}

/* ----------------------------------------------------------------
   Base
   ---------------------------------------------------------------- */
html, body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body {
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
::selection { background: var(--primary-soft); color: var(--primary); }

/* ----------------------------------------------------------------
   Bootstrap Overrides — Dark Theme
   ---------------------------------------------------------------- */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.5rem;
}
.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.btn-secondary {
  background: var(--surface) !important;
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
  border-radius: var(--radius-pill);
}
.btn-secondary:hover {
  background: var(--surface-hover) !important;
  border-color: var(--primary) !important;
}
.btn-success {
  background: #22c55e !important; border-color: #22c55e !important;
  color: #0a0a0a !important; border-radius: var(--radius-pill); font-weight: 600;
}
.btn-danger {
  background: #ef4444 !important; border-color: #ef4444 !important;
  color: #fff !important; border-radius: var(--radius-pill); font-weight: 600;
}
.btn-warning {
  background: var(--accent) !important; border-color: var(--accent) !important;
  color: #0a0a0a !important; border-radius: var(--radius-pill); font-weight: 600;
}
.btn-info {
  background: var(--secondary) !important; border-color: var(--secondary) !important;
  color: #0a0a0a !important; border-radius: var(--radius-pill); font-weight: 600;
}
.btn-outline-primary {
  border-color: var(--primary) !important; color: var(--primary) !important;
  border-radius: var(--radius-pill); font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--primary) !important; color: #0a0a0a !important;
}
.btn-outline-light {
  border-color: var(--border-strong) !important; color: var(--text-secondary) !important;
  border-radius: var(--radius-pill);
}
.btn-outline-light:hover {
  border-color: var(--primary) !important; color: var(--primary) !important;
  background: transparent !important;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* Form Controls */
.form-control, .form-select {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }

/* Tables */
.table { color: var(--text); --bs-table-color: var(--text); }
.table thead th {
  background: var(--bg-elevated) !important;
  color: var(--text-secondary) !important;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border) !important;
  border-top: none;
}
.table tbody td { border-color: var(--border) !important; vertical-align: middle; }
.table tbody tr:hover td { background: var(--surface-hover) !important; }

/* Alerts */
.alert-info {
  background: rgba(34, 211, 238, 0.08) !important;
  border-color: rgba(34, 211, 238, 0.2) !important;
  color: #22d3ee !important;
}
.alert-warning {
  background: rgba(251, 191, 36, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}
.alert-success {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.2) !important;
  color: #22c55e !important;
}
.alert-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}
.alert { border-radius: var(--radius); }
.alert .btn-close { filter: invert(1); opacity: 0.5; }

/* Badges */
.badge { font-weight: 600; font-size: 0.7rem; padding: 0.35em 0.65em; border-radius: 6px; }
.bg-primary { background: var(--primary) !important; color: #0a0a0a !important; }
.bg-success { background: #22c55e !important; color: #0a0a0a !important; }
.bg-danger { background: #ef4444 !important; color: #fff !important; }
.bg-warning { background: var(--accent) !important; color: #0a0a0a !important; }
.bg-info { background: var(--secondary) !important; color: #0a0a0a !important; }
.bg-secondary { background: var(--surface-hover) !important; color: var(--text-secondary) !important; }

/* Pagination */
.page-link {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
}
.page-link:hover { background: var(--surface-hover) !important; color: var(--text) !important; }
.page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; color: #0a0a0a !important; }

/* Nav Tabs */
.nav-tabs { border-bottom: 1px solid var(--border); }
.nav-tabs .nav-link { color: var(--text-muted); border: none; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link:hover { color: var(--text-secondary); border-color: transparent; }
.nav-tabs .nav-link.active { color: var(--primary) !important; background: transparent !important; border-bottom-color: var(--primary) !important; }

/* Dropdown */
.dropdown-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.dropdown-item { color: var(--text-secondary); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-hover) !important; color: var(--text) !important; }
.dropdown-item.active { background: var(--primary-soft) !important; color: var(--primary) !important; }
.dropdown-divider { border-color: var(--border) !important; }

/* Modal */
.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
}
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); }
.modal-title { color: var(--text); }

/* Card */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text);
}
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.card-footer { background: transparent !important; border-top: 1px solid var(--border); }

/* List Group */
.list-group-item {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text);
}

/* Accordion */
.accordion-item { background: var(--bg-card) !important; border-color: var(--border) !important; }
.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.accordion-button::after { filter: invert(1); }
.accordion-button:not(.collapsed) { color: var(--primary) !important; }

/* Offcanvas */
.offcanvas { background: var(--bg-card) !important; border-color: var(--border) !important; }
.offcanvas-title { color: var(--text); }

/* Progress */
.progress { background: var(--surface) !important; border-radius: var(--radius-pill); }
.progress-bar { background: var(--primary) !important; color: #0a0a0a !important; }

/* Breadcrumb */
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* Text colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: #22c55e !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: var(--accent) !important; }
.text-info { color: var(--secondary) !important; }
.text-white { color: var(--text) !important; }
.text-white-50 { color: var(--text-muted) !important; }

/* Background colors */
.bg-light { background: var(--bg-elevated) !important; }
.bg-white { background: var(--bg-card) !important; }
.bg-dark { background: var(--surface) !important; }

/* ----------------------------------------------------------------
   Public Site — Top Bar
   ---------------------------------------------------------------- */
.top-bar {
  background: var(--primary) !important;
  color: #0a0a0a;
  font-size: 0.78rem;
  padding: 8px 0;
  font-weight: 500;
}
.top-bar a { color: #0a0a0a; opacity: 0.8; }
.top-bar a:hover { opacity: 1; }

/* ----------------------------------------------------------------
   Public Site — Navbar
   ---------------------------------------------------------------- */
.navbar-main {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.navbar-main .navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text) !important;
  letter-spacing: 1px;
}
.navbar-main .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}
.navbar-main .nav-link:hover {
  color: var(--text) !important;
  background: var(--surface);
}
.navbar-main .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-soft);
}
.navbar-main .navbar-toggler {
  border-color: var(--border);
}
.navbar-main .navbar-toggler-icon {
  filter: invert(1);
}
.navbar-main .btn-register {
  background: var(--primary) !important;
  color: #0a0a0a !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
}
.navbar-main .btn-register:hover {
  background: var(--primary-dark) !important;
}
.navbar-spacer { height: 0; }

/* ----------------------------------------------------------------
   Public Site — Hero
   ---------------------------------------------------------------- */
.hero-v2 {
  position: relative;
  background: var(--bg);
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-v2__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-v2__bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -200px; right: -150px;
  opacity: 0.4;
}
.hero-v2__bg::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.hero-v2__label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-v2__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-v2__title span { color: var(--primary); }
.hero-v2__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------------
   Public Site — Sections
   ---------------------------------------------------------------- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-header .section-title { margin-bottom: 0; }

/* ----------------------------------------------------------------
   Public Site — Live Match Card
   ---------------------------------------------------------------- */
.live-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}
.live-card-v2:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.live-card-v2__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.live-card-v2__live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-card-v2__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.live-card-v2__team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.live-card-v2__team--right { justify-content: flex-end; }
.live-card-v2__team img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.live-card-v2__team-name {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-card-v2__team-score {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.live-card-v2__team-overs {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.live-card-v2__vs {
  text-align: center;
  flex-shrink: 0;
}
.live-card-v2__vs span {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ----------------------------------------------------------------
   Public Site — Fixture Card
   ---------------------------------------------------------------- */
.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-slow);
}
.fixture-card:hover {
  border-color: var(--border-strong);
}
.fixture-card__date {
  font-size: 0.7rem; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.fixture-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.fixture-card__team {
  display: flex; align-items: center; gap: 0.5rem;
  flex: 1;
}
.fixture-card__team--right { justify-content: flex-end; }
.fixture-card__team img {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.fixture-card__team span {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.fixture-card__vs {
  flex-shrink: 0;
  text-align: center;
}
.fixture-card__vs small {
  display: block; font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase;
}
.fixture-card__meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex; justify-content: space-between;
}

/* ----------------------------------------------------------------
   Public Site — Points Table V2
   ---------------------------------------------------------------- */
.points-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.points-v2__header {
  display: grid;
  grid-template-columns: 40px 1fr 50px 50px 60px 70px;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.points-v2__row {
  display: grid;
  grid-template-columns: 40px 1fr 50px 50px 60px 70px;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}
.points-v2__row:hover { background: var(--surface-hover); }
.points-v2__row:last-child { border-bottom: none; }
.points-v2__pos { font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--primary); }
.points-v2__team { display: flex; align-items: center; gap: 0.5rem; }
.points-v2__team img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.points-v2__team span { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.points-v2__cell { text-align: center; font-size: 0.8rem; color: var(--text-secondary); }
.points-v2__cell--pts { font-weight: 700; color: var(--primary); }
.points-v2__nrr { font-family: 'Oswald', sans-serif; font-size: 0.8rem; color: var(--text-secondary); text-align: right; }

/* ----------------------------------------------------------------
   Public Site — Result Card
   ---------------------------------------------------------------- */
.result-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-slow);
}
.result-v2:hover { border-color: var(--border-strong); }
.result-v2__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.result-v2__date {
  font-size: 0.7rem; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.result-v2__teams {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.result-v2__team { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.result-v2__team--right { justify-content: flex-end; }
.result-v2__team img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.result-v2__team-info span { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); }
.result-v2__team-score { font-family: 'Oswald'; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.result-v2__team-score--win { color: var(--primary); }
.result-v2__vs { flex-shrink: 0; text-align: center; }
.result-v2__footer {
  padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted); text-align: center;
}

/* ----------------------------------------------------------------
   Public Site — Player Card
   ---------------------------------------------------------------- */
.player-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.player-card:hover { border-color: var(--border-strong); }
.player-card__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 0.75rem;
}
.player-card__photo-wrapper {
  position: relative; display: inline-block;
}
.player-card__rank {
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #0a0a0a;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-card);
}
.player-card__name {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-card__team {
  font-size: 0.72rem; color: var(--text-muted);
  margin-bottom: 0.875rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.player-card__stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}
.player-card__stat-value {
  font-family: 'Oswald';
  font-size: 1rem; font-weight: 700; color: var(--primary);
}
.player-card__stat-label {
  font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   Public Site — News Card
   ---------------------------------------------------------------- */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}
.news-card:hover { border-color: var(--border-strong); }
.news-card__image {
  height: 180px; overflow: hidden; position: relative;
}
.news-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition-slow);
}
.news-card:hover .news-card__image img { transform: scale(1.05); }
.news-card__date {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,10,10,0.8); backdrop-filter: blur(8px);
  color: var(--primary); font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 6px;
}
.news-card__content { padding: 1.25rem; }
.news-card__title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem; line-height: 1.3;
}
.news-card__excerpt {
  font-size: 0.82rem; color: var(--text-secondary);
  margin-bottom: 1rem; line-height: 1.5;
}

/* ----------------------------------------------------------------
   Public Site — Champion Section
   ---------------------------------------------------------------- */
.champion-v2 {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.champion-v2__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.champion-v2__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.3) 100%);
}
.champion-v2__content {
  position: relative; z-index: 2;
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.champion-v2__badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.champion-v2__title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.champion-v2__year { font-family: 'Oswald'; font-size: 2rem; font-weight: 700; color: var(--primary); }

/* ----------------------------------------------------------------
   Public Site — Stats Counter
   ---------------------------------------------------------------- */
.stats-counter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stats-counter__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 0.75rem;
}
.stats-counter__number {
  font-family: 'Oswald';
  font-size: 2rem; font-weight: 700; color: var(--primary);
  line-height: 1;
}
.stats-counter__label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------------
   Public Site — Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-elevated);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.site-footer__title {
  font-family: 'Oswald';
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.site-footer__links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}
.site-footer__links a:hover { color: var(--primary); padding-left: 4px; }
.site-footer__contact {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 2;
}
.site-footer__contact i { color: var(--primary); width: 18px; }
.site-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition-fast);
  border: 1px solid var(--border);
}
.site-footer__social a:hover {
  background: var(--primary);
  color: #0a0a0a;
  border-color: var(--primary);
}
.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ----------------------------------------------------------------
   Auth Pages
   ---------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 2rem;
  position: relative;
}
.auth-page__bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.auth-page__bg::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -150px; right: -150px;
  opacity: 0.3;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.auth-card__logo {
  font-family: 'Oswald';
  font-size: 1.5rem; font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-card__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}

/* ----------------------------------------------------------------
   Portal — Sidebar
   ---------------------------------------------------------------- */
.admin-sidebar, .team-sidebar {
  background: var(--bg-elevated) !important;
  border-right: 1px solid var(--border);
}
.admin-sidebar .nav-link, .team-sidebar .nav-link,
.portal-offcanvas .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  display: flex; align-items: center;
  transition: var(--transition-fast);
}
.admin-sidebar .nav-link:hover, .team-sidebar .nav-link:hover,
.portal-offcanvas .nav-link:hover {
  background: var(--surface);
  color: var(--text) !important;
}
.admin-sidebar .nav-link.active, .team-sidebar .nav-link.active,
.portal-offcanvas .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-soft) !important;
}
.admin-sidebar .text-muted-custom, .team-sidebar .text-muted-custom,
.portal-offcanvas .text-muted-custom {
  color: var(--text-muted) !important;
}

/* ----------------------------------------------------------------
   Portal — Navbar
   ---------------------------------------------------------------- */
.portal-navbar {
  background: var(--bg-elevated) !important;
  border-bottom: 1px solid var(--border);
}
.portal-navbar .navbar-brand {
  font-family: 'Oswald';
  font-weight: 700;
  color: var(--text) !important;
}
.portal-offcanvas {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  width: 280px;
}
.portal-offcanvas .offcanvas-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}
.portal-offcanvas .offcanvas-title {
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
}
.portal-offcanvas .btn-close {
  filter: invert(1);
  opacity: 0.6;
}
[data-bs-theme="light"] .portal-offcanvas .btn-close {
  filter: none;
  opacity: 0.5;
}
.portal-offcanvas .offcanvas-body {
  padding: 0.75rem;
}
.portal-offcanvas .nav-link i {
  width: 22px;
  text-align: center;
  margin-right: 0.5rem;
}

/* ----------------------------------------------------------------
   Portal — Stat Cards
   ---------------------------------------------------------------- */
.stat-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.stat-card__value {
  font-family: 'Oswald';
  font-size: 1.75rem; font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-card__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-card__trend {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------------
   Portal — Disable card hover lifts in portals
   ---------------------------------------------------------------- */
.admin-main .card:hover,
.team-main .card:hover,
.portal-navbar ~ div .card:hover,
.portal-navbar ~ .container .card:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ----------------------------------------------------------------
   Portal — Tables
   ---------------------------------------------------------------- */
.admin-main .table tbody tr:hover td,
.team-main .table tbody tr:hover td {
  background: var(--surface-hover) !important;
}

/* ----------------------------------------------------------------
   DataTables Dark Override
   ---------------------------------------------------------------- */
div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_paginate {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
}
table.dataTable thead th {
  border-bottom: 1px solid var(--border) !important;
}

/* ----------------------------------------------------------------
   Live Score Page
   ---------------------------------------------------------------- */
.live-score-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}
.live-score-board {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.live-score-team-name { color: var(--text-secondary); font-size: 0.9rem; }
.live-score-runs {
  font-family: 'Oswald';
  font-size: 3rem; font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.live-score-runs span { color: var(--primary); }
.live-score-overs { color: var(--text-muted); font-size: 0.85rem; }
.live-score-vs {
  font-family: 'Oswald';
  font-size: 1.25rem; color: var(--text-muted);
}
.live-score-crr {
  display: inline-block;
  background: var(--primary);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* ----------------------------------------------------------------
   Scorer Panel
   ---------------------------------------------------------------- */
.scorer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.scorer-btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem;
  border: none;
  transition: var(--transition-fast);
}
.scorer-btn-run { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.scorer-btn-run:hover { background: var(--surface-hover); border-color: var(--primary); color: var(--primary); }
.scorer-btn-boundary { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border-accent); }
.scorer-btn-boundary:hover { background: var(--primary); color: #0a0a0a; }
.scorer-btn-wicket { background: #fff; color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.scorer-btn-wicket:hover { background: #ef4444; color: #fff; }
.scorer-btn-wide, .scorer-btn-noball, .scorer-btn-bye, .scorer-btn-legbye {
  background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border);
  font-size: 0.75rem; padding: 0.4rem;
}
.scorer-btn-wide:hover, .scorer-btn-noball:hover, .scorer-btn-bye:hover, .scorer-btn-legbye:hover {
  border-color: var(--secondary); color: var(--secondary);
}

.scorer-btn-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 64px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff;
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.22);
  transition: var(--transition-fast);
  padding: 0.5rem 0.25rem;
}
.scorer-btn-extra:hover {
  background: #22d3ee;
  color: #0a0a0a;
  border-color: #22d3ee;
}
.scorer-btn-extra i {
  font-size: 1.15rem;
}
.scorer-btn-extra--danger {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.22);
}
.scorer-btn-extra--danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* ----------------------------------------------------------------
   Commentary
   ---------------------------------------------------------------- */
.commentary-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.commentary-item:last-child { border-bottom: none; }
.commentary-over { color: var(--primary); font-weight: 700; font-size: 0.75rem; margin-right: 0.5rem; }
.commentary-text { color: var(--text-secondary); }
.commentary-highlight { color: var(--accent); font-weight: 600; }
.commentary-wicket { color: #ef4444; font-weight: 600; }

/* ----------------------------------------------------------------
   Match Detail / Scorecard
   ---------------------------------------------------------------- */
.match-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.scorecard-team-header {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.scorecard-team-header span { font-weight: 600; color: var(--text); }
.scorecard-team-header strong { font-family: 'Oswald'; font-size: 1.1rem; color: var(--primary); }

/* ----------------------------------------------------------------
   Gallery
   ---------------------------------------------------------------- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__title {
  color: #fff; font-size: 0.85rem; font-weight: 600;
}

/* ----------------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient-dark {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--surface) 100%);
}
.border-accent { border-color: var(--border-accent) !important; }
.shadow-glow {
  box-shadow: 0 0 20px var(--primary-glow);
}
.font-mono {
  font-family: 'Oswald', monospace;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-v2 { padding: 80px 0 50px; }
  .hero-v2__title { font-size: 2.2rem; }
  .points-v2__header,
  .points-v2__row {
    grid-template-columns: 30px 1fr 40px 40px 50px 60px;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.7rem;
  }
  .player-card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .live-card-v2__team-score { font-size: 1.2rem; }
  .section-title { font-size: 1.4rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ----------------------------------------------------------------
   Footer Legacy Classes
   ---------------------------------------------------------------- */
.footer-newsletter {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.text-muted-custom {
  color: var(--text-muted) !important;
}
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition-fast);
  border: 1px solid var(--border);
}
.social-icon:hover {
  background: var(--primary);
  color: #0a0a0a;
  border-color: var(--primary);
}
.footer-link {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}
.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}
.divider-gradient {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ----------------------------------------------------------------
   Navbar scrolled state
   ---------------------------------------------------------------- */
.navbar-main.scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ----------------------------------------------------------------
   Reveal animations
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   Image placeholder
   ---------------------------------------------------------------- */
.img-placeholder {
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ----------------------------------------------------------------
   Hero Live Card (homepage)
   ---------------------------------------------------------------- */
.hero-v2__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.hero-v2__card-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.hero-v2__live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-v2__live-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444 0%, #ef4444 50%, var(--primary) 50%, var(--primary) 100%);
  background-size: 200% 100%;
  animation: live-stripe 2s linear infinite;
}
@keyframes live-stripe {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.hero-v2__live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.hero-v2__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ef4444;
}
.hero-v2__live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: pulse-live 1.8s infinite;
}
.hero-v2__live-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
}
.hero-v2__live-card-body {
  padding: 1.25rem;
}
.hero-v2__live-teams {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.hero-v2__live-team {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}
.hero-v2__live-team--batting {
  background: var(--primary-soft);
  border-color: var(--border-accent);
}
.hero-v2__live-team img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.hero-v2__live-team-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.hero-v2__live-team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-v2__live-team-overs {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hero-v2__live-team-score {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}
.hero-v2__live-vs {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: -0.25rem 0;
}
.hero-v2__live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-v2__live-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.5rem;
  text-align: center;
}
.hero-v2__live-stat span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.hero-v2__live-stat strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
}
.hero-v2__live-players {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-v2__live-batsmen,
.hero-v2__live-bowler {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}
.hero-v2__live-players-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.hero-v2__live-batsman,
.hero-v2__live-bowler > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.hero-v2__live-batsman span,
.hero-v2__live-bowler span {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-v2__live-batsman strong,
.hero-v2__live-bowler strong {
  color: var(--text);
  font-family: 'Oswald', sans-serif;
}
.hero-v2__live-toss {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.hero-v2__live-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.hero-v2__live-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hero-v2__card-stack-bg {
  position: absolute;
  top: 14px; left: 14px; right: -14px; bottom: -14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  z-index: 1;
}
.hero-v2__live-card--upcoming .hero-v2__live-card-header {
  color: var(--primary);
}
.hero-v2__live-card--upcoming .hero-v2__live-card-header i {
  color: var(--primary);
}
.hero-v2__live-card--upcoming .hero-v2__live-card-teams {
  padding: 1.25rem 1.25rem 0;
}
.hero-v2__live-card--upcoming .hero-v2__live-card-footer {
  padding: 0.875rem 1.25rem;
}
.hero-v2__fallback-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}
.hero-v2__fallback-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 991.98px) {
  .hero-v2__visual { min-height: auto; margin-top: 2rem; }
  .hero-v2__card-stack { max-width: 100%; }
  .hero-v2__live-team img { width: 44px; height: 44px; }
  .hero-v2__live-team-score { font-size: 1.4rem; }
  .hero-v2__live-players { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .hero-v2__live-card-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .hero-v2__live-meta { text-align: left; }
  .hero-v2__live-team { gap: 0.75rem; padding: 0.625rem; }
  .hero-v2__live-card-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ----------------------------------------------------------------
   Ball Tracker (scorer + public)
   ---------------------------------------------------------------- */
.ball-tracker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-height: 48px;
}

/* Scorer panel balls */
.sp-ball {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.sp-ball.boundary {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
}
.sp-ball.wicket {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.sp-ball.extra {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}
.sp-ball.dot {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}
.sp-over-sep {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}
.over-num { color: var(--primary); }
.over-runs { color: var(--text-muted); }

/* Public ball tracker */
.ball-tracker-ball {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.ball-tracker-ball.boundary {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
}
.ball-tracker-ball.wicket {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.ball-tracker-ball.extra {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}
.ball-tracker-ball.dot,
.ball-tracker-ball.run {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}
.ball-tracker-innings-sep {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}
.inn-label { color: var(--primary); }
.inn-runs { color: var(--text-muted); }

/* ----------------------------------------------------------------
   Scorer Tabs
   ---------------------------------------------------------------- */
.sp-tab {
  border-radius: var(--radius-sm) !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
}
.sp-tab.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #0a0a0a !important;
}

/* ----------------------------------------------------------------
   Table Images (admin/team portals)
   ---------------------------------------------------------------- */
.team-logo-sm {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover;
  border-radius: 50%;
}
.table img,
.datatable img {
  max-width: 40px;
  max-height: 40px;
  object-fit: cover;
}

/* ----------------------------------------------------------------
   Commentary Feed (scorer)
   ---------------------------------------------------------------- */
.comm-ball-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.comm-ball-row:last-child { border-bottom: none; }
.comm-over-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 36px;
}
.comm-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}
.comm-badge-run {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.comm-badge-boundary {
  background: #22c55e;
  color: #ffffff;
  border: 1px solid #22c55e;
}
.comm-badge-dot {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.comm-badge-wicket {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #ef4444;
}
.comm-badge-extra {
  background: #3b82f6;
  color: #ffffff;
  border: 1px solid #3b82f6;
}
.comm-text {
  color: var(--text-secondary);
  flex: 1;
}

/* ----------------------------------------------------------------
   Score Display (scorer panel)
   ---------------------------------------------------------------- */
.score-display {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
}

/* ----------------------------------------------------------------
   Section Header (admin/team portals)
   ---------------------------------------------------------------- */
.section-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.section-header__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}
.section-header__text {
  flex: 1;
}

/* ----------------------------------------------------------------
   Live Card (public site)
   ---------------------------------------------------------------- */
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
}
.live-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.live-card__header {
  background: transparent !important;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
}
.live-card__type {
  font-weight: 600;
  color: var(--text);
}
.live-card__date {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.live-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.live-card__team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.live-card__team-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.live-card__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.live-card__team-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.live-card__score {
  text-align: right;
}
.live-card__runs {
  font-family: 'Oswald';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.live-card__wickets {
  font-family: 'Oswald';
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}
.live-card__overs {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}
.live-card__divider {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.live-card__footer {
  background: transparent !important;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-card__venue {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.live-card__glow {
  position: absolute;
  top: -1px; left: 30%; right: 30%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.5;
}

/* ----------------------------------------------------------------
   Fixture Card
   ---------------------------------------------------------------- */
.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition-slow);
}
.fixture-card:hover {
  border-color: var(--border-strong);
}
.fixture-card__top {
  margin-bottom: 1rem;
}
.fixture-card__countdown {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}
.fixture-card__action {
  margin-top: 1rem;
}
.fixture-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.fixture-card__team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.fixture-card__team span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  overflow-wrap: break-word;
}
.fixture-card__vs {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fixture-card__meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
.fixture-card__meta > div {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   Points Table (compact)
   ---------------------------------------------------------------- */
.points-table-compact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.points-table-compact__row {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}
.points-table-compact__row:last-child {
  border-bottom: none;
}
.points-table-compact__row:hover {
  background: var(--surface-hover);
}
.points-table-compact__rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.points-table-compact__rank--1 { background: var(--primary-soft); color: var(--primary); }
.points-table-compact__rank--2 { background: rgba(34,211,238,0.1); color: var(--secondary); }
.points-table-compact__rank--3 { background: rgba(251,191,36,0.1); color: var(--accent); }
.points-table-compact__team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.points-table-compact__team img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.points-table-compact__team span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.points-table-compact__pts {
  font-family: 'Oswald';
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.points-table-compact__nrr {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
}

/* ----------------------------------------------------------------
   Result Card (compact)
   ---------------------------------------------------------------- */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition-slow);
}
.result-card:hover {
  border-color: var(--border-strong);
}
.result-card__date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.result-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.result-card__team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.result-card__team--right {
  justify-content: flex-end;
}
.result-card__team img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.result-card__team span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.result-card__score {
  font-family: 'Oswald';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.result-card__score--win {
  color: var(--primary);
}
.result-card__vs {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.result-card__footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ----------------------------------------------------------------
   Player Card (compact)
   ---------------------------------------------------------------- */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-slow);
}
.player-card:hover {
  border-color: var(--border-strong);
}
.player-card__photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 0.75rem;
}
.player-card__photo-wrapper {
  position: relative;
  display: inline-block;
}
.player-card__rank {
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #0a0a0a;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}
.player-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.player-card__team {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.player-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.player-card__stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}
.player-card__stat-value {
  font-family: 'Oswald';
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.player-card__stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   Players Scroll / Top Performers
   ---------------------------------------------------------------- */
.players-scroll {
  width: 100%;
}
.players-scroll__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ----------------------------------------------------------------
   News Card
   ---------------------------------------------------------------- */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}
.news-card:hover {
  border-color: var(--border-strong);
}
.news-card__image {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.news-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.news-card:hover .news-card__image img {
  transform: scale(1.05);
}
.news-card__date {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.news-card__content {
  padding: 1.25rem;
}
.news-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.news-card__excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   Sponsor Card
   ---------------------------------------------------------------- */
.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: var(--transition-slow);
}
.sponsor-card:hover {
  border-color: var(--border-strong);
}
.sponsor-card img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: var(--transition-slow);
}
.sponsor-card:hover img {
  filter: grayscale(0);
}

/* ----------------------------------------------------------------
   Champion Section
   ---------------------------------------------------------------- */
.champion-v2__trophy {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.champion-v2__team {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
.champion-v2__team--winner {
  position: relative;
}
.champion-v2__team-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--primary-glow);
  opacity: 0.15;
  pointer-events: none;
}
.champion-v2__team img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 0.75rem;
}
.champion-v2__team h4,
.champion-v2__team h5 {
  font-family: 'Oswald';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------------
   Live Pulse
   ---------------------------------------------------------------- */
.live-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 8px;
  animation: pulse-live 2s infinite;
  vertical-align: middle;
}

/* ----------------------------------------------------------------
   Sections
   ---------------------------------------------------------------- */
.section {
  padding: 64px 0;
}
.section--compact {
  padding: 40px 0;
}
.section--live {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ----------------------------------------------------------------
   Hero mini stats
   ---------------------------------------------------------------- */
.hero-v2__mini-stat-num {
  font-family: 'Oswald';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.hero-v2__mini-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ----------------------------------------------------------------
   Form check (dark)
   ---------------------------------------------------------------- */
.form-check-input {
  background: var(--surface);
  border-color: var(--border);
}
.form-check-input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.form-check-label {
  color: var(--text-secondary);
}

/* ================================================================
   LIVE SCORE PAGE — Public View
   ================================================================ */

/* Live Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-live 2s infinite;
}

/* Team Logo Sizes */
.team-logo-md {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.team-logo-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

/* Score Display — Public */
.scoreboard {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.scoreboard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.scoreboard__team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.scoreboard__score {
  font-family: 'Oswald';
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.scoreboard__score span {
  color: var(--text-muted);
  font-size: 2rem;
}
.scoreboard__overs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.scoreboard__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.scoreboard__vs-text {
  font-family: 'Oswald';
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.scoreboard__crr {
  background: var(--primary);
  color: #0a0a0a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}
.scoreboard__result {
  background: var(--primary-soft);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1rem;
}
.scoreboard__toss {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}
.scoreboard__toss i {
  color: var(--accent);
}

/* Player Cards */
.player-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .player-bar {
    grid-template-columns: 1fr;
  }
}
.player-bar__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}
.player-bar__card:hover {
  border-color: var(--border-strong);
}
.player-bar__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.player-bar__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.player-bar__stats {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'Oswald';
}
.player-bar__stats strong {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Scorecard Table */
.scorecard-table {
  --bs-table-color: var(--text);
  font-size: 0.85rem;
}
.scorecard-table thead th {
  background: var(--bg-elevated) !important;
  color: var(--text-muted) !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.6rem 0.75rem;
}
.scorecard-table tbody td {
  border-color: var(--border) !important;
  padding: 0.6rem 0.75rem;
  color: var(--text-secondary);
}
.scorecard-table tbody tr:hover td {
  background: var(--surface-hover) !important;
}
.scorecard-table .current-bowler {
  color: var(--primary);
  font-weight: 700;
}

/* Commentary Feed */
.commentary-feed {
  max-height: 600px;
  overflow-y: auto;
}
.commentary-feed::-webkit-scrollbar {
  width: 4px;
}
.commentary-feed::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}
.comm-over-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.75rem;
}
.comm-over-summary .over-label {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.comm-over-summary .over-runs {
  color: var(--text-muted);
}
.comm-ball-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.comm-ball-row:last-child {
  border-bottom: none;
}
.comm-over-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 40px;
  font-family: 'Oswald';
}
.comm-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.comm-badge-run {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.comm-badge-boundary {
  background: #22c55e;
  color: #ffffff;
  border: 1px solid #22c55e;
}
.comm-badge-dot {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.comm-badge-wicket {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #ef4444;
}
.comm-badge-extra {
  background: #3b82f6;
  color: #ffffff;
  border: 1px solid #3b82f6;
}
.comm-text {
  color: var(--text-secondary);
  flex: 1;
  font-size: 0.82rem;
}
.comm-wicket-box {
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid #ef4444;
  padding: 0.5rem 1rem;
  margin: 0 1rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Innings Header */
.innings-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.innings-header__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.innings-header__title {
  font-family: 'Oswald';
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.innings-header__target {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}


/* ================================================================
   THEME TOGGLE — Light / Dark
   ================================================================ */

/* Light mode variable overrides */
[data-bs-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f8f9fa;
  --bg-card: #ffffff;
  --surface: #f1f3f5;
  --surface-hover: #e9ecef;

  --primary: #4d7c0f;
  --primary-dark: #3f6212;
  --primary-soft: rgba(77, 124, 15, 0.12);
  --primary-glow: rgba(77, 124, 15, 0.15);

  --secondary: #0891b2;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.12);

  --text: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;

  --border: #dee2e6;
  --border-strong: #ced4da;
  --border-accent: rgba(77, 124, 15, 0.25);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08);

  /* Legacy compat */
  --hy-bg: #ffffff;
  --hy-bg-2: #f8f9fa;
  --hy-surface: #f1f3f5;
  --hy-surface-hover: #e9ecef;
  --hy-primary: #4d7c0f;
  --hy-primary-dark: #3f6212;
  --hy-primary-soft: rgba(77, 124, 15, 0.12);
  --hy-primary-glow: rgba(77, 124, 15, 0.15);
  --hy-secondary: #0891b2;
  --hy-accent: #d97706;
  --hy-accent-soft: rgba(217, 119, 6, 0.12);
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  font-size: 0.95rem;
}
.theme-toggle:hover,
.theme-toggle:focus {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
  outline: none;
}
.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Light mode component-specific fixes */
[data-bs-theme="light"] .navbar-main {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: var(--border);
}
[data-bs-theme="light"] .navbar-main.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-bs-theme="light"] .navbar-main .navbar-toggler-icon {
  filter: none;
}
[data-bs-theme="light"] .top-bar {
  color: #ffffff;
}
[data-bs-theme="light"] .top-bar a {
  color: #ffffff;
}

[data-bs-theme="light"] .accordion-button::after {
  filter: none;
}
[data-bs-theme="light"] .alert .btn-close {
  filter: none;
}

[data-bs-theme="light"] .dropdown-menu {
  box-shadow: var(--shadow-lg);
}

[data-bs-theme="light"] .auth-page__bg::before {
  opacity: 0.2;
}
[data-bs-theme="light"] .hero-v2__bg::before {
  opacity: 0.25;
}
[data-bs-theme="light"] .hero-v2__bg::after {
  background: radial-gradient(circle, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
}

[data-bs-theme="light"] .live-card-v2__team img,
[data-bs-theme="light"] .fixture-card__team img,
[data-bs-theme="light"] .result-v2__team img,
[data-bs-theme="light"] .live-card__logo,
[data-bs-theme="light"] .team-logo-md,
[data-bs-theme="light"] .team-logo-lg,
[data-bs-theme="light"] .player-card__photo,
[data-bs-theme="light"] .champion-v2__team img {
  border-color: var(--border);
}

[data-bs-theme="light"] .news-card__date {
  background: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="light"] .gallery-item__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

[data-bs-theme="light"] .score-display,
[data-bs-theme="light"] .scoreboard {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
}

[data-bs-theme="light"] .comm-wicket-box {
  background: rgba(239, 68, 68, 0.04);
}

/* Reduce visual intensity of glows and gradients in light mode */
[data-bs-theme="light"] .shadow-glow {
  box-shadow: 0 0 16px var(--primary-glow);
}


/* Portal navbar theming */
.portal-navbar .navbar-toggler-icon {
  filter: invert(1);
}
[data-bs-theme="light"] .portal-navbar .navbar-toggler-icon {
  filter: none;
}
.portal-navbar .navbar-text {
  color: var(--text-secondary) !important;
}


/* Light mode champion section gradient fix */
[data-bs-theme="light"] .champion-v2__bg::after {
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.3) 100%);
}


/* ================================================================
   PORTAL DATATABLES — Padding inside cards
   ================================================================ */

.admin-main .card .dataTables_wrapper,
.team-main .card .dataTables_wrapper,
.portal-navbar ~ .container .card .dataTables_wrapper {
  padding: 1rem;
}

@media (max-width: 768px) {
  .admin-main .card .dataTables_wrapper,
  .team-main .card .dataTables_wrapper,
  .portal-navbar ~ .container .card .dataTables_wrapper {
    padding: 0.75rem;
  }
}

/* Prevent flex children from blowing past viewport width */
.admin-main, .team-main { min-width: 0; }

/* Contain table/DataTables overflow within cards */
.table-responsive,
.dataTables_wrapper,
.admin-main .table,
.team-main .table,
.portal-navbar ~ .container .table { max-width: 100%; }

/* DataTables filter input should never exceed its container */
div.dataTables_wrapper div.dataTables_filter input { max-width: 100%; }

/* Action buttons inside collapsed child rows should wrap naturally */
table.dataTable > tbody > tr.child td.child li { word-break: break-word; }

/* Let DataTables Responsive extension handle overflow instead of Bootstrap table-responsive scroll */
.table-responsive:has(.datatable) { overflow-x: visible; }

/* Keep DataTables headers readable (don't break into single letters) */
.datatable thead th { white-space: nowrap; word-break: normal; }

/* Keep buttons inside tables on one line */
.admin-main .table .btn,
.team-main .table .btn,
.portal-navbar ~ .container .table .btn { white-space: nowrap; }

/* ----------------------------------------------------------------
   Sponsors grid (desktop)
   ---------------------------------------------------------------- */
.sponsors-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.sponsors-v2 .card {
  min-height: 100px;
}


/* ================================================================
   MOBILE-FIRST RESPONSIVE ENHANCEMENTS
   ================================================================ */

/* ----------------------------------------------------------------
   Small phones (up to 576px)
   ---------------------------------------------------------------- */
@media (max-width: 576px) {
  /* Base spacing */
  .section { padding: 40px 0; }
  .section--compact { padding: 24px 0; }
  .section--live { padding: 32px 0; }

  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Typography */
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-header .section-title { margin-bottom: 0; }
  .section-header .btn { width: 100%; }
  .section-header__title { font-size: 1.25rem; }

  /* Navbar */
  .navbar-main { padding: 0.5rem 0; }
  .navbar-main .navbar-brand { font-size: 1.1rem; }
  .navbar-main .navbar-brand img { height: 28px !important; max-width: 100px !important; }
  .navbar-main .nav-link { padding: 0.65rem 0.75rem !important; font-size: 0.95rem; }
  .navbar-collapse { border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.5rem; }
  .theme-toggle { width: 40px; height: 40px; font-size: 1rem; }

  /* Hero */
  .hero-v2 { padding: 100px 0 40px; }
  .hero-v2__title { font-size: 2rem; }
  .hero-v2__desc { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-v2__actions { flex-direction: column; gap: 0.75rem; }
  .hero-v2__actions .btn { width: 100%; }
  .hero-v2__actions .btn-lg { padding: 0.7rem 1.25rem; font-size: 0.95rem; }
  .hero-v2__stats-row { flex-wrap: wrap; gap: 1rem; width: 100%; }
  .hero-v2__mini-stat-num { font-size: 1.25rem; }

  /* Live card */
  .live-card__body { gap: 1rem; }
  .live-card__team { flex-direction: row; align-items: center; }
  .live-card__team-info { gap: 0.75rem; }
  .live-card__team-name { font-size: 0.8rem; }
  .live-card__runs { font-size: 1.25rem; }
  .live-card__logo { width: 36px; height: 36px; }
  .live-card__footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .live-card__footer .btn { width: 100%; }

  /* Fixture card */
  .fixture-card { padding: 1rem; }
  .fixture-card__teams { flex-direction: row; gap: 0.75rem; }
  .fixture-card__team { gap: 0.5rem; }
  .fixture-card__team img { width: 32px; height: 32px; }
  .fixture-card__team span { font-size: 0.8rem; }
  .fixture-card__meta { flex-direction: column; gap: 0.4rem; font-size: 0.75rem; }
  .fixture-card__action .btn { width: 100%; }

  /* Result card */
  .result-v2 { padding: 1rem; }
  .result-v2__teams { flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
  .result-v2__team { width: 100%; }
  .result-v2__team--right { justify-content: flex-start !important; }
  .result-v2__team img { width: 36px; height: 36px; }
  .result-v2__team-score { font-size: 1.1rem; }
  .result-v2__footer .btn { width: 100%; }

  /* Points table */
  .points-v2__header,
  .points-v2__row {
    grid-template-columns: 28px 1fr 32px 32px 40px 52px;
    gap: 0.25rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.7rem;
  }
  .points-v2__team img { width: 20px; height: 20px; }
  .points-v2__team span { font-size: 0.75rem; }
  .points-v2__nrr { font-size: 0.7rem; }

  /* Player cards */
  .player-card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .player-card { padding: 1rem 0.75rem; }
  .player-card__photo { width: 56px; height: 56px; }
  .player-card__name { font-size: 0.8rem; }
  .player-card__team { font-size: 0.65rem; }
  .player-card__stat-value { font-size: 0.85rem; }
  .player-card__stat-label { font-size: 0.55rem; }
  .players-scroll__track { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* News */
  .news-card__image { height: 160px; }
  .news-card__title { font-size: 0.95rem; }
  .news-card__excerpt { font-size: 0.8rem; }

  /* Stats counters */
  .stats-counter { padding: 1.25rem 1rem; }
  .stats-counter__number { font-size: 1.5rem; }
  .stats-counter__icon { width: 40px; height: 40px; font-size: 1rem; }

  /* Sponsors */
  .sponsors-v2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Footer */
  .site-footer { padding: 32px 0; }
  .footer-newsletter { padding: 1.5rem 0; }
  .footer-newsletter h3 { font-size: 1.1rem; }
  .footer-newsletter form { flex-direction: column; }
  .footer-newsletter form .btn { width: 100%; }

  /* Auth pages */
  .auth-page { padding: 1rem; }
  .auth-card { padding: 1.5rem; max-width: 100%; border-radius: var(--radius); }
  .auth-card__logo { font-size: 1.3rem; }

  /* Forms */
  .form-control, .form-select { min-height: 48px; font-size: 16px; }
  .form-control-sm, .form-select-sm { min-height: 40px; font-size: 0.9rem; }
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 40px; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

  /* Cards */
  .card { border-radius: var(--radius-sm); }
  .card-body { padding: 1rem; }

  /* Tables */
  .table { font-size: 0.85rem; }
  .table thead th { font-size: 0.7rem; padding: 0.6rem 0.5rem; }
  .table tbody td { padding: 0.6rem 0.5rem; }

  /* Live score page */
  .scoreboard { padding: 1.25rem 1rem; flex-direction: column; gap: 1rem; }
  .scoreboard__team { min-width: 100%; }
  .scoreboard__team-name { margin-top: 0.5rem; }
  .scoreboard__score { font-size: 2rem; }
  .scoreboard__score span { font-size: 1.5rem; }
  .team-logo-lg { width: 56px; height: 56px; }
  .team-logo-md { width: 48px; height: 48px; }
  .player-bar { grid-template-columns: 1fr; gap: 0.75rem; }
  .commentary-feed { max-height: 400px; }
}


/* ----------------------------------------------------------------
   Portal mobile app-like experience
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Reduce main content padding on phones/tablets */
  .admin-main .p-4,
  .team-main .p-4 { padding: 0.75rem !important; }

  .portal-navbar { min-height: 56px; }
  .portal-navbar .navbar-brand { font-size: 1rem; }

  /* Stat cards */
  .stat-card { padding: 1rem; }
  .stat-card__icon { width: 40px; height: 40px; font-size: 0.95rem; }
  .stat-card__value { font-size: 1.4rem; }
  .stat-card__label { font-size: 0.7rem; }

  /* Dashboard stat cards in team portal */
  .team-main .card-body.d-flex.align-items-center.gap-3 { gap: 0.75rem !important; padding: 1rem; }
  .team-main .card-body.d-flex.align-items-center.gap-3 > div:first-child { width: 40px !important; height: 40px !important; font-size: 1rem !important; }

  /* Portal tables */
  .admin-main .table,
  .team-main .table,
  .portal-navbar ~ .container .table { font-size: 0.8rem; }
  .admin-main .table td,
  .team-main .table td,
  .portal-navbar ~ .container .table td { padding: 0.6rem 0.5rem; white-space: normal; overflow-wrap: break-word; }
  .admin-main .table th,
  .team-main .table th,
  .portal-navbar ~ .container .table th { padding: 0.6rem 0.5rem; white-space: nowrap; }

  /* Stack action buttons in tables */
  .admin-main .table .btn-sm,
  .team-main .table .btn-sm,
  .portal-navbar ~ .container .table .btn-sm { padding: 0.35rem 0.5rem; font-size: 0.75rem; min-height: 32px; }

  /* DataTables controls */
  .admin-main .card .dataTables_wrapper,
  .team-main .card .dataTables_wrapper,
  .portal-navbar ~ .container .card .dataTables_wrapper { padding: 0.75rem; }
  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter { text-align: left; float: none; width: 100%; margin-bottom: 0.75rem; }
  div.dataTables_wrapper div.dataTables_filter input { width: 100%; }
  div.dataTables_wrapper div.dataTables_paginate { float: none; text-align: center; margin-top: 0.75rem; }
  div.dataTables_wrapper div.dataTables_info { float: none; text-align: center; }

  /* Section headers in portals */
  .admin-main .section-header,
  .team-main .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .admin-main .section-header .btn,
  .team-main .section-header .btn { width: 100%; }

  /* Modals */
  .modal-dialog { margin: 0.5rem; }
  .modal-content { border-radius: var(--radius); }

  /* Forms in portals */
  .admin-main .form-control,
  .admin-main .form-select,
  .team-main .form-control,
  .team-main .form-select,
  .portal-navbar ~ .container .form-control,
  .portal-navbar ~ .container .form-select { min-height: 48px; font-size: 16px; }

  /* Scorer panel */
  .score-display { padding: 1rem; }
  .score-display .h2 { font-size: 1.5rem; }
  .scorer-btn { padding: 0.75rem 0.5rem; font-size: 0.9rem; min-height: 48px; }
  .scorer-btn-wide, .scorer-btn-noball, .scorer-btn-bye, .scorer-btn-legbye { font-size: 0.7rem; padding: 0.5rem 0.25rem; }
  .scorer-btn-extra { min-height: 56px; font-size: 0.65rem; gap: 0.25rem; padding: 0.4rem 0.2rem; }
  .scorer-btn-extra i { font-size: 1rem; }
  .ball-tracker-bar { gap: 4px; padding: 0.5rem; }
  .sp-ball { width: 28px; height: 28px; font-size: 0.7rem; }

  /* Card header buttons */
  .card-header.d-flex.justify-content-between.align-items-center { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .card-header.d-flex .btn { width: 100%; }
}

/* ----------------------------------------------------------------
   Extra small phones (up to 400px)
   ---------------------------------------------------------------- */
@media (max-width: 400px) {
  .hero-v2__title { font-size: 1.75rem; }
  .section-title { font-size: 1.35rem; }
  .player-card-grid { grid-template-columns: 1fr; }
  .fixture-card__teams { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .result-v2__teams { gap: 0.75rem; }
  .live-card__team { flex-direction: row; }
}

/* ----------------------------------------------------------------
   Touch target improvements (global)
   ---------------------------------------------------------------- */
.nav-link, .dropdown-item, .page-link, .btn, .form-control, .form-select, .theme-toggle {
  min-height: 44px;
}
.btn-sm, .form-control-sm, .form-select-sm, .page-link, .dropdown-item {
  min-height: 36px;
}
.navbar-main .nav-link { min-height: auto; }
.social-icon { min-width: 44px; min-height: 44px; }

/* Safe area support for mobile devices with notches/home indicator */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}


/* Mobile navbar brand truncation to fit toggler + theme toggle */
@media (max-width: 576px) {
  .navbar-main .navbar-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 110px);
    margin-right: auto;
  }
}


/* Mobile alert layouts */
@media (max-width: 576px) {
  .alert.d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .alert.d-flex .btn {
    width: 100%;
  }
}


/* Mobile form layouts in section headers */
@media (max-width: 576px) {
  .section-header form.d-flex,
  .section-header form {
    flex-direction: column !important;
    width: 100%;
    gap: 0.5rem;
  }
  .section-header form.d-flex .form-select,
  .section-header form.d-flex .form-control,
  .section-header form.d-flex .btn,
  .section-header form .form-select,
  .section-header form .form-control,
  .section-header form .btn {
    width: 100%;
  }

  /* Filter button groups */
  .btn-group {
    flex-wrap: wrap;
    width: 100%;
  }
  .btn-group .btn {
    flex: 1 1 auto;
    min-width: 100px;
  }
}


/* Larger touch targets for portal sidebar/offcanvas nav links */
.admin-sidebar .nav-link,
.team-sidebar .nav-link,
.portal-offcanvas .nav-link {
  min-height: 48px;
}


/* Mobile navbar collapse menu full-width links */
@media (max-width: 576px) {
  .navbar-collapse .nav-link {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  .navbar-collapse .btn-register {
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
  .navbar-collapse .dropdown-menu {
    width: 100%;
    text-align: center;
  }
}


/* ================================================================
   DATATABLES RESPONSIVE THEMING
   ================================================================ */

/* Responsive control icon */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  background-color: var(--primary) !important;
  color: var(--bg) !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.85rem;
  line-height: 1.1;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
  background-color: var(--primary-dark) !important;
}

/* Child row details */
table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
  padding: 0.5rem 0;
}
table.dataTable > tbody > tr.child ul.dtr-details > li {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
  border-bottom: none;
}
table.dataTable > tbody > tr.child span.dtr-title {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.dataTable > tbody > tr.child span.dtr-data {
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
table.dataTable > tbody > tr.child span.dtr-data .btn {
  margin: 0;
}
table.dataTable > tbody > tr.child td.child {
  background: var(--bg-elevated);
}

/* Ensure table-responsive plays nicely with DataTables */
.table-responsive .dataTables_wrapper {
  min-width: 100%;
}
