@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1a2b;
  --line: #21344b;
  --text: #f1f6fc;
  --muted: #91a4bb;
  --accent: #78e2b1;
  --blue: #83b8ff;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% -10%, #173556 0, transparent 42%), var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid #203047;
  background: #07111fef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100% - 1120px) / 2));
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font:
    700 14px "Space Grotesk",
    sans-serif;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: var(--muted);
  font:
    600 9px "DM Sans",
    sans-serif;
  letter-spacing: 2px;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #082017;
  font:
    700 22px "Space Grotesk",
    sans-serif;
}
.test-label {
  border: 1px solid #3d705f;
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.test-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}
.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}
.hero {
  padding: 56px 0 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 12px;
}
.hero h1 {
  font:
    700 clamp(32px, 5vw, 52px) / 1.08 "Space Grotesk",
    sans-serif;
  letter-spacing: -1.8px;
  margin: 0;
}
.subhead {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin: 16px 0 24px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.primary-btn,
.secondary-btn {
  min-height: 42px;
  border-radius: 11px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.primary-btn {
  border: 0;
  background: var(--accent);
  color: #062117;
}
.secondary-btn {
  border: 1px solid var(--line);
  background: #0d1a2b;
  color: var(--text);
}
.primary-btn:disabled {
  opacity: 0.6;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}
.stat-card,
.panel {
  background: linear-gradient(145deg, #101f32, #0b1726);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-card {
  padding: 19px;
}
.stat-card > span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.stat-card strong {
  display: block;
  font:
    700 29px "Space Grotesk",
    sans-serif;
  margin: 12px 0 5px;
  overflow-wrap: anywhere;
}
.stat-card .stat-date {
  font-size: 16px;
  padding: 7px 0;
}
.panel {
  padding: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font:
    700 25px "Space Grotesk",
    sans-serif;
  margin: 0;
}
.result-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 10px;
  margin-bottom: 20px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #071321;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  min-width: 0;
}
.search-box span {
  font-size: 22px;
  color: var(--muted);
}
.search-box input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  height: 43px;
  font-size: 12px;
}
.filter-row select {
  background: #071321;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  min-height: 43px;
  min-width: 0;
  font-size: 12px;
}
.fixture-list {
  display: grid;
  gap: 12px;
}
.fixture-card {
  border: 1px solid #23364d;
  background: rgba(7, 18, 31, 0.72);
  border-radius: 14px;
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
}
.fixture-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.competition {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-pill {
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 8px;
  background: #26364a;
  color: #d6e2f1;
}
.status-pill.upcoming {
  background: #173b31;
  color: #8aefc0;
}
.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.team {
  font:
    600 15px "Space Grotesk",
    sans-serif;
  overflow-wrap: anywhere;
}
.team:last-child {
  text-align: right;
}
.versus {
  text-align: center;
  color: #6f849b;
  font-size: 10px;
  font-weight: 700;
}
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
.match-meta span {
  overflow-wrap: anywhere;
}
.fixture-date {
  text-align: right;
  min-width: 110px;
}
.fixture-date strong {
  display: block;
  font:
    600 13px "Space Grotesk",
    sans-serif;
}
.fixture-date span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.loading-state,
.empty-state {
  padding: 44px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-state > span {
  font-size: 28px;
}
.empty-state h3 {
  color: var(--text);
  margin: 10px 0 5px;
}
.empty-state p {
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  padding: 24px 2px 35px;
}
footer a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .container {
    width: calc(100% - 24px);
  }
  .hero {
    padding: 39px 0 24px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .subhead {
    font-size: 13px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 13px 11px;
    border-radius: 13px;
  }
  .stat-card > span,
  .stat-card small {
    font-size: 9px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .stat-card .stat-date {
    font-size: 12px;
  }
  .panel {
    padding: 15px 12px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .search-box {
    grid-column: 1/-1;
  }
  .fixture-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
  .fixture-date {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #203047;
    padding-top: 10px;
    min-width: 0;
  }
  .fixture-date strong,
  .fixture-date span {
    margin: 0;
  }
  .fixture-date span {
    font-size: 10px;
  }
  .team {
    font-size: 13px;
  }
  .match-meta {
    font-size: 10px;
  }
  footer {
    flex-direction: column;
  }
}
@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card strong {
    margin: 7px 0;
  }
  .filter-row {
    grid-template-columns: 1fr;
  }
  .search-box {
    grid-column: auto;
  }
}

/* BCCI live score card: innings and overs-first scoreboard layout */
#liveScoresPanel .fixture-list {
  gap: 14px;
}
#liveScoresPanel .live-score-card {
  overflow: hidden;
  border: 1px solid #263a50;
  border-radius: 15px;
  background: #081321;
}
#liveScoresPanel .live-card-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #26364a;
  background: #0d1a2a;
  color: #e8f0fa;
  font-size: 12px;
}
#liveScoresPanel .live-card-status > span {
  font-weight: 700;
  text-transform: capitalize;
  color: var(--accent);
}
#liveScoresPanel .live-card-status > strong {
  font-size: 12px;
}
#liveScoresPanel .live-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px;
}
#liveScoresPanel .live-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
#liveScoresPanel .live-team-right {
  align-items: flex-end;
  text-align: right;
}
#liveScoresPanel .live-team-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #172b40;
  color: #bcd6f4;
  border: 1px solid #30465e;
  font-size: 10px;
  font-weight: 800;
}
#liveScoresPanel .live-team > strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
#liveScoresPanel .live-team > small {
  font-size: 10px;
  color: var(--accent);
}
#liveScoresPanel .live-versus {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #172638;
  color: #9fb1c7;
  font-size: 11px;
  font-weight: 800;
}
#liveScoresPanel .live-score-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid #25364a;
  border-bottom: 1px solid #25364a;
  background: #0b1725;
}
#liveScoresPanel .live-batting-name {
  color: var(--muted);
  font-size: 12px;
}
#liveScoresPanel .live-score-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}
#liveScoresPanel .live-score-value > strong {
  font:
    700 19px "Space Grotesk",
    sans-serif;
  color: #f5f8fc;
}
#liveScoresPanel .live-overs {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
#liveScoresPanel .live-yet {
  color: var(--muted);
  font-size: 13px;
}
#liveScoresPanel .live-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 15px;
}
#liveScoresPanel .live-card-footer > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
#liveScoresPanel .live-card-footer strong {
  color: var(--blue);
  font-size: 12px;
}
#liveScoresPanel .live-card-footer span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
#liveScoresPanel .live-card-footer time {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 600px) {
  #liveScoresPanel.panel {
    padding: 16px 12px;
  }
  #liveScoresPanel .live-card-main {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 6px;
    padding: 15px 12px 12px;
  }
  #liveScoresPanel .live-team > strong {
    font-size: 13px;
  }
  #liveScoresPanel .live-team-badge {
    width: 32px;
    height: 32px;
  }
  #liveScoresPanel .live-score-strip {
    padding: 11px 12px;
  }
  #liveScoresPanel .live-card-footer {
    padding: 12px;
    flex-direction: column;
  }
  #liveScoresPanel .live-card-footer time {
    text-align: left;
    white-space: normal;
  }
  #liveScoresPanel .live-card-status {
    padding: 10px 12px;
  }
}

#liveScoresPanel .live-team-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  border: 1px solid #d6e0eb;
}
@media (max-width: 600px) {
  #liveScoresPanel .live-team-logo {
    width: 42px;
    height: 42px;
    padding: 4px;
  }
}

/* Compact live card matching the mobile reference */
#liveScoresPanel .live-score-card {
  border-top: 5px solid #ef292f;
  border-radius: 12px;
  background: #fff;
  color: #20242b;
}
#liveScoresPanel .live-card-status {
  min-height: 49px;
  padding: 9px 14px;
  background: #fff;
  color: #20242b;
  border-bottom: 1px solid #e7e7e7;
  justify-content: flex-start;
  gap: 8px;
}
#liveScoresPanel .live-card-status .live-status-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #f21f2b;
  font-size: 14px;
  font-weight: 800;
}
#liveScoresPanel .live-status-label i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #f21f2b;
  box-shadow: 0 0 0 4px #fde8e9;
}
#liveScoresPanel .live-card-status > strong {
  margin-left: 0;
  font-size: 14px;
  line-height: 1.25;
  color: #20242b;
}
#liveScoresPanel .live-card-main {
  background: #fff;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 8px;
  padding: 16px 14px 12px;
}
#liveScoresPanel .live-team {
  gap: 5px;
  color: #20242b;
}
#liveScoresPanel .live-team-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
#liveScoresPanel .live-team > strong {
  font-size: 14px;
  line-height: 1.2;
  color: #20242b;
}
#liveScoresPanel .live-team > small {
  color: #7b8794;
  font-size: 10px;
}
#liveScoresPanel .live-versus {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0f6;
  color: #697386;
  font-size: 12px;
}
#liveScoresPanel .live-team-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 20px;
  white-space: nowrap;
}
#liveScoresPanel .live-team-score strong {
  color: #20242b;
  font-size: 16px;
  font-weight: 800;
}
#liveScoresPanel .live-team-score span {
  color: #858585;
  font-size: 12px;
  font-weight: 600;
}
#liveScoresPanel .live-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 14px;
  border-top: 1px solid #e7e7e7;
  background: #fff;
  color: #555b66;
  font-size: 12px;
  line-height: 1.4;
}
#liveScoresPanel .live-card-footer > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#liveScoresPanel .live-card-footer strong {
  color: #06a5d7;
  font-size: 14px;
}
#liveScoresPanel .live-card-footer time {
  flex: 0 0 auto;
  color: #555b66;
  font-size: 11px;
  text-align: right;
}
@media (max-width: 520px) {
  #liveScoresPanel .live-card-status {
    align-items: flex-start;
    flex-wrap: nowrap;
  }
  #liveScoresPanel .live-card-status > strong {
    min-width: 0;
  }
  #liveScoresPanel .live-card-main {
    padding: 15px 14px 12px;
  }
  #liveScoresPanel .live-team-score {
    margin-top: 19px;
  }
  #liveScoresPanel .live-card-footer time {
    max-width: 86px;
    overflow-wrap: anywhere;
  }
}

/* Entire live match card opens its dedicated scorecard in a new tab */
#liveScoresPanel .live-score-card-clickable {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
#liveScoresPanel .live-score-card-clickable:hover,
#liveScoresPanel .live-score-card-clickable:focus-visible {
  outline: 2px solid #78e2b1;
  outline-offset: 3px;
  box-shadow: 0 8px 24px #0002;
}
#liveScoresPanel .live-score-card-clickable:active {
  transform: scale(0.995);
}

/* Tilak 72 premium responsive polish */
:root {
  --accent: #80e9b8;
  --blue: #82b9ff;
  --line: #263e59;
  --radius: 20px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  background:
    radial-gradient(ellipse at 10% 0%, #12395a88 0, transparent 36%),
    radial-gradient(ellipse at 95% 12%, #143b3180 0, transparent 28%), var(--bg);
}
.topbar {
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  border-bottom-color: #28415d;
  box-shadow: 0 8px 28px #0002;
}
.brand-mark {
  background: linear-gradient(145deg, #9bf3c8, #53d69b);
  box-shadow: 0 4px 18px #67e6b444;
}
.container {
  width: min(1120px, calc(100% - 32px));
}
.hero {
  padding-top: clamp(30px, 5vw, 58px);
}
.hero h1 {
  letter-spacing: -0.045em;
}
.primary-btn,
.secondary-btn {
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    filter 0.16s ease;
}
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.panel,
.stat-card {
  box-shadow: 0 14px 38px #00000018;
  backdrop-filter: blur(10px);
}
.fixture-card {
  border-color: #2b4562;
  box-shadow: 0 8px 24px #00000017;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.fixture-card:hover {
  transform: translateY(-2px);
  border-color: #4a7297;
  background: linear-gradient(135deg, #132b43, #0d1a2b);
}
.status-pill {
  max-width: 48%;
  overflow-wrap: anywhere;
}
.fixture-date strong {
  overflow-wrap: anywhere;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.loading-state {
  border-radius: 14px;
  line-height: 1.7;
}
footer {
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding-inline: 14px;
    gap: 10px;
  }
  .brand {
    font-size: 12px;
    letter-spacing: 0.3px;
    gap: 8px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .test-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .test-label {
    font-size: 9px;
    letter-spacing: 0.5px;
    padding: 7px 9px;
  }
  .container {
    width: calc(100% - 22px);
  }
  .hero {
    padding: 30px 0 20px;
  }
  .hero h1 {
    font-size: clamp(29px, 8vw, 42px);
    line-height: 1.08;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-actions > * {
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
    font-size: 11px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 16px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .stat-card:last-child {
    grid-column: 1/-1;
  }
  .panel {
    padding: 15px;
    border-radius: 16px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .search-box {
    grid-column: 1/-1;
  }
  .fixture-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }
  .fixture-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .fixture-date strong {
    font-size: 14px;
  }
  .fixture-date span {
    font-size: 10px;
  }
  .teams {
    gap: 7px;
  }
  .team {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 380px) {
  .topbar {
    padding-inline: 9px;
  }
  .brand {
    font-size: 11px;
  }
  .test-label {
    padding: 6px;
    font-size: 8px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card:last-child {
    grid-column: auto;
  }
  .filter-row {
    grid-template-columns: 1fr;
  }
  .search-box {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* Premium upcoming fixture cards + team PNG identity — BCCI test folder only */
#fixtureList.fixture-list {
  gap: 15px;
}
#fixtureList .fixture-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 19px 20px;
  border: 1px solid #294560;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 0% 0%, #15528a38, transparent 58%),
    linear-gradient(145deg, #0e2034 0%, #091726 100%);
  box-shadow:
    0 12px 28px #0000001c,
    inset 0 1px 0 #ffffff08;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
#fixtureList .fixture-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#82b9ff, #80e9b8);
  opacity: 0.9;
}
#fixtureList .fixture-card:hover {
  transform: translateY(-2px);
  border-color: #4c789d;
  box-shadow:
    0 16px 34px #0000002b,
    inset 0 1px 0 #ffffff0c;
}
#fixtureList .fixture-topline {
  gap: 9px;
  margin-bottom: 17px;
}
#fixtureList .competition {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.45px;
  overflow-wrap: anywhere;
}
#fixtureList .status-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.1px;
}
#fixtureList .teams {
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 10px;
}
#fixtureList .team {
  min-width: 0;
  font-size: 15px;
}
#fixtureList .team-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#fixtureList .team-away .team-identity {
  justify-content: flex-end;
}
#fixtureList .team-name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
#fixtureList .team-logo {
  position: relative;
  display: inline-grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  background: linear-gradient(145deg, #18334d, #0b1a2b);
  box-shadow: inset 0 1px 0 #ffffff0d;
}
#fixtureList .team-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}
#fixtureList .team-logo-fallback {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  background: linear-gradient(145deg, #21496d, #11243a);
  color: #b9d8ff;
  font:
    800 11px/1 "Space Grotesk",
    sans-serif;
}
#fixtureList .team-logo .team-logo-fallback {
  display: none;
  position: absolute;
  inset: 0;
}
#fixtureList .team-logo.logo-unavailable .team-logo-fallback {
  display: inline-grid;
}
#fixtureList .team-away .team-identity {
  flex-direction: row;
}
#fixtureList .team-away .team-name {
  text-align: right;
}
#fixtureList .versus {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  background: #172b40;
  font-size: 10px;
  letter-spacing: 0.4px;
}
#fixtureList .match-meta {
  margin-top: 16px;
  gap: 8px 17px;
  line-height: 1.55;
  font-size: 11px;
}
#fixtureList .fixture-date {
  min-width: 126px;
  padding-left: 12px;
  border-left: 1px solid #294057;
}
#fixtureList .fixture-date strong {
  font-size: 14px;
  line-height: 1.35;
}
#fixtureList .fixture-date span {
  margin-top: 7px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  #fixtureList .fixture-card {
    padding: 16px 14px;
    border-radius: 17px;
    gap: 13px;
  }
  #fixtureList .fixture-topline {
    margin-bottom: 15px;
  }
  #fixtureList .teams {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 6px;
  }
  #fixtureList .team {
    font-size: 13px;
  }
  #fixtureList .team-identity {
    gap: 7px;
  }
  #fixtureList .team-logo,
  #fixtureList .team-logo-fallback {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  #fixtureList .team-logo img {
    padding: 4px;
  }
  #fixtureList .fixture-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 0;
    border-top: 1px solid #263a50;
    padding: 11px 0 0;
    flex-wrap: wrap;
    gap: 6px;
  }
  #fixtureList .fixture-date span {
    margin: 0;
  }
}
@media (max-width: 360px) {
  #fixtureList .teams {
    grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr);
    gap: 4px;
  }
  #fixtureList .team {
    font-size: 11px;
  }
  #fixtureList .team-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  #fixtureList .team-away .team-identity {
    align-items: flex-end;
  }
  #fixtureList .team-logo,
  #fixtureList .team-logo-fallback {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  #fixtureList .versus {
    width: 25px;
    height: 25px;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #fixtureList .fixture-card {
    transition: none;
  }
  #fixtureList .fixture-card:hover {
    transform: none;
  }
}

/* Compact live-aware refresh strip — BCCI test folder only */
.live-refresh-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 22px 0 18px;
  padding: 16px 18px;
  border: 1px solid #294560;
  border-radius: 18px;
  background: linear-gradient(135deg, #10253aee, #0a1726ee);
  box-shadow:
    0 12px 30px #0002,
    inset 0 1px 0 #ffffff08;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.live-refresh-strip .live-refresh-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #8292a6;
  box-shadow: 0 0 0 5px #8292a61a;
}
.live-refresh-strip > div {
  min-width: 0;
  flex: 1;
}
.live-refresh-strip strong {
  display: block;
  color: #edf5ff;
  font-size: 14px;
  font-weight: 800;
}
.live-refresh-strip p {
  margin: 4px 0 0;
  color: #93a7bd;
  font-size: 12px;
  line-height: 1.5;
}
.live-refresh-badge {
  flex: 0 0 auto;
  border: 1px solid #31465d;
  border-radius: 999px;
  padding: 7px 10px;
  background: #17283b;
  color: #c4d0df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.live-refresh-badge.is-live {
  color: #a3f5cf;
  background: #12392f;
  border-color: #23634e;
}
.live-refresh-strip:has(.is-live) .live-refresh-dot {
  background: #35e49b;
  box-shadow: 0 0 0 5px #35e49b20;
  animation: bcci-live-pulse 1.5s infinite;
}
@keyframes bcci-live-pulse {
  50% {
    box-shadow: 0 0 0 9px #35e49b08;
  }
}
@media (max-width: 520px) {
  .live-refresh-strip {
    gap: 10px;
    margin: 16px 0;
    padding: 13px 12px;
    border-radius: 15px;
  }
  .live-refresh-strip strong {
    font-size: 12px;
  }
  .live-refresh-strip p {
    font-size: 11px;
  }
  .live-refresh-badge {
    padding: 6px 7px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-refresh-strip:has(.is-live) .live-refresh-dot {
    animation: none;
  }
}

/* Upcoming-match layout inspired by the main Matches page. Scoped to BCCI test only. */
.upcoming-hero {
  padding: 24px 4px 20px;
  text-align: center;
}
.upcoming-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.upcoming-hero h1 {
  margin: 0;
  font:
    900 clamp(29px, 4.4vw, 46px) / 1.05 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.045em;
}
.upcoming-hero h1 span {
  color: #ff9068;
}
.upcoming-hero-rule {
  width: 102px;
  height: 5px;
  border-radius: 9px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, #7bdff2, #ff9068);
}
.upcoming-hero-copy {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 620px;
}
.live-refresh-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 13px 16px;
}
.live-refresh-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.live-refresh-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #71849a;
}
.live-refresh-badge {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  color: #b8c9dd;
}
.live-refresh-badge.is-live {
  color: #8aefc0;
}
.filters.panel {
  background: linear-gradient(145deg, rgba(17, 34, 54, 0.96), rgba(8, 20, 35, 0.96));
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 38px #0003;
}
.fixture-list {
  gap: 18px;
}
.fixture-card.upcoming-match-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 20px 20px 0;
  border: 1px solid #30445c;
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(20, 36, 57, 0.98), rgba(6, 18, 32, 0.98));
  box-shadow: 0 12px 30px #0002;
  isolation: isolate;
}
.upcoming-match-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #75dff3, #ff9068);
}
.upcoming-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.upcoming-date {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #36516e;
  border-radius: 12px;
  background: #132a43;
  color: #d8e8fa;
  font-size: 12px;
  font-weight: 800;
}
.squad-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #35516a;
  border-radius: 999px;
  background: #172d40;
  color: #91dff2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.squad-confirmed i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #80e9b8;
  box-shadow: 0 0 0 4px #80e9b81a;
}
.upcoming-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 20px 0 17px;
}
.upcoming-team {
  min-width: 0;
  text-align: center;
}
.upcoming-team .team-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.upcoming-team .team-logo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 7px;
  border: 1px solid #30475f;
  border-radius: 22px;
  background: linear-gradient(145deg, #203650, #0b192b);
  box-shadow: inset 0 1px 0 #ffffff12;
}
.upcoming-team .team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.upcoming-team .team-logo-fallback {
  font-size: 19px;
  font-weight: 900;
  color: #c6e7ff;
}
.upcoming-team .team-name {
  font:
    700 15px/1.3 "Space Grotesk",
    sans-serif;
  overflow-wrap: anywhere;
}
.upcoming-versus {
  text-align: center;
  color: #ff9874;
  font-size: 12px;
  font-weight: 900;
}
.upcoming-match-info {
  display: grid;
  gap: 12px;
  padding: 0 4px 17px;
  color: #bdcde0;
  font-size: 12px;
}
.upcoming-match-info > strong {
  color: #e8f1fc;
  font-size: 13px;
}
.upcoming-venue,
.upcoming-time {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.upcoming-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  margin: 0 -20px;
  padding: 14px 18px;
  border-top: 1px solid #263b52;
  color: #9bd9ff;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 0.18s,
    color 0.18s;
}
.upcoming-details:hover {
  background: #132b44;
  color: #d2efff;
}
.upcoming-details span {
  font-size: 18px;
}
@media (min-width: 801px) {
  .upcoming-hero {
    padding-top: 36px;
    padding-bottom: 26px;
  }
  .fixture-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .fixture-card.upcoming-match-card {
    height: 100%;
  }
}
@media (max-width: 800px) {
  .upcoming-hero {
    padding: 22px 0 18px;
  }
  .upcoming-hero h1 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .upcoming-hero-copy {
    font-size: 12px;
  }
  .live-refresh-strip {
    padding: 11px 12px;
    gap: 9px;
  }
  .live-refresh-strip p {
    font-size: 11px;
  }
  .live-refresh-badge {
    font-size: 9px;
  }
  .fixture-card.upcoming-match-card {
    padding: 16px 15px 0;
    border-radius: 19px;
  }
  .upcoming-card-top {
    gap: 8px;
  }
  .upcoming-date {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .squad-confirmed {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 9px;
  }
  .upcoming-teams {
    grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr);
    gap: 7px;
    padding: 18px 0 16px;
  }
  .upcoming-team .team-logo {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
  .upcoming-team .team-name {
    font-size: 13px;
  }
  .upcoming-match-info {
    gap: 11px;
    padding-bottom: 15px;
    font-size: 11px;
  }
  .upcoming-details {
    min-height: 58px;
    margin: 0 -15px;
    font-size: 13px;
  }
}
@media (max-width: 390px) {
  .upcoming-card-top {
    align-items: flex-start;
  }
  .upcoming-date {
    font-size: 10px;
  }
  .squad-confirmed {
    font-size: 8px;
    letter-spacing: 0;
  }
  .upcoming-team .team-logo {
    width: 60px;
    height: 60px;
    padding: 5px;
  }
  .upcoming-team .team-name {
    font-size: 12px;
  }
  .upcoming-match-info {
    font-size: 10px;
  }
}

/* BCCI view switcher: keep Upcoming and Complete tabs consistent without link underlines. */
.bcci-view-tabs .match-centre-tab,
.bcci-view-tabs .match-centre-tab:link,
.bcci-view-tabs .match-centre-tab:visited,
.bcci-view-tabs .match-centre-tab:hover,
.bcci-view-tabs .match-centre-tab:focus,
.bcci-view-tabs .match-centre-tab:active {
  text-decoration: none !important;
}


/* Dedicated live match cards: same match grid, clear live state, compact score line. */
.live-matches-section{margin:0 0 22px;padding:18px}
.live-matches-section[hidden]{display:none!important}
.live-matches-section .section-heading{margin-bottom:14px}
.live-match-list{margin:0}
.live-match-card{border-color:#285d65;background:linear-gradient(145deg,#102d3a,#0b192b)}
.live-match-card .upcoming-teams{padding-top:16px}
.live-now-pill{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 12px;border:1px solid #2c8e78;border-radius:999px;background:#123e3b;color:#9bf3d1;font-size:11px;font-weight:900;letter-spacing:.07em}
.live-now-pill i{width:8px;height:8px;border-radius:50%;background:#68f0b6;box-shadow:0 0 0 4px #68f0b622;animation:bcci-live-pulse 1.8s ease-in-out infinite}
.live-team-score{display:block;margin-top:8px;color:#e9f5ff;font-size:17px;font-weight:900;font-variant-numeric:tabular-nums}
.live-score-line{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin:0 0 15px;padding:12px;border:1px solid #284b5a;border-radius:14px;background:#071b29;color:#dceeff;text-align:center;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.live-score-line span:last-child{text-align:right}
.live-score-line span:first-child{text-align:left}
.live-score-line b{color:#78e6bc;font-size:9px;letter-spacing:.08em}
.live-score-pending{display:block;color:#9cb2c9;font-weight:600}
.live-status-text{color:#83e6bd;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.live-match-centre-link{border-top-color:#27525b;background:linear-gradient(90deg,#102f3d,#10233a)}
.live-match-centre-link:hover{background:#153b49}
@keyframes bcci-live-pulse{0%,100%{opacity:1;box-shadow:0 0 0 4px #68f0b622}50%{opacity:.55;box-shadow:0 0 0 7px #68f0b610}}
@media(prefers-reduced-motion:reduce){.live-now-pill i{animation:none}}
