/* THE 72 CLUB — premium visual system refresh
   Progressive overrides only: existing HTML, data hooks and interactions remain intact. */
:root {
  --bg: #070b14;
  --panel: #0d1422;
  --panel2: #111d30;
  --white: #f7f9ff;
  --muted: #a3b0c4;
  --orange: #ff6a35;
  --cyan: #75e3ff;
  --line: rgba(169, 194, 229, 0.15);
  --text-primary: #f7f9ff;
  --text-secondary: #c1ccdc;
  --text-muted: #93a3ba;
  --text-accent: #ff8a52;
  --ui-radius: 18px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(43, 92, 157, 0.14), transparent 34rem),
    radial-gradient(ellipse at 100% 35%, rgba(255, 83, 100, 0.055), transparent 32rem), var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(255, 83, 100, 0.32);
  color: #fff;
}
a {
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.topbar {
  min-height: 76px;
  height: auto;
  padding: 12px clamp(16px, 4vw, 64px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid rgba(153, 184, 224, 0.17);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.brand {
  letter-spacing: 0.075em;
  gap: 11px;
}
.brand-mark-photo {
  border: 1px solid rgba(255, 83, 100, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 83, 100, 0.07);
}
nav {
  gap: clamp(12px, 1.65vw, 25px);
  align-items: center;
  color: #d0daea;
}
nav a {
  padding: 9px 0;
  position: relative;
  font-weight: 700;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: right 0.22s ease;
}
nav a:hover::after,
nav a:focus-visible::after {
  right: 0;
}
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.section {
  padding: clamp(64px, 7vw, 108px) clamp(18px, 7.5vw, 120px);
}
.section-heading {
  gap: 28px;
  margin-bottom: clamp(26px, 3vw, 42px);
}
.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.6;
}
.section h2,
.profile-copy h2,
.about-section h2 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section h2 em,
.profile-copy h2 em,
.about-section h2 em {
  color: var(--orange);
}
.profile-section {
  position: relative;
  isolation: isolate;
  background: linear-gradient(115deg, rgba(12, 23, 40, 0.96), rgba(8, 14, 25, 0.94));
  border-color: rgba(143, 177, 221, 0.15);
}
.profile-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(117, 227, 255, 0.08), transparent 45%);
  pointer-events: none;
}
.profile-photo-wrap {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(255, 255, 255, 0.018);
}
.profile-photo-wrap img {
  object-position: center top;
}
.profile-facts {
  gap: 10px;
}
.profile-facts div {
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 36, 58, 0.95), rgba(11, 20, 34, 0.95));
  border-color: rgba(160, 190, 230, 0.14);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.profile-facts div:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 227, 255, 0.4);
}
.profile-facts small {
  color: #a7b8d0;
}
.profile-facts strong {
  color: #f7f9ff;
}
.profile-intro {
  color: #c2cede;
  font-size: clamp(14px, 1.2vw, 16px);
}
.icc-ranking-card,
.home-bowling-card,
.match-history-summary,
.home-snapshot-block,
.settings-card,
.featured-match-card,
.upcoming-matches-panel,
.cricinfo-gallery {
  border-radius: var(--ui-radius);
  border-color: rgba(160, 190, 230, 0.16);
}
.button,
.calculate-button {
  min-height: 44px;
  border-radius: 12px;
  justify-content: center;
  padding: 13px 18px;
  cursor: pointer;
}
.primary,
.button.primary {
  background: linear-gradient(135deg, #ff7c45, #e94f2f);
  color: #180910;
  box-shadow: 0 8px 24px rgba(255, 83, 100, 0.16);
}
.primary:hover,
.button.primary:hover {
  background: linear-gradient(135deg, #ff7c88, #ff6a35);
  box-shadow: 0 12px 30px rgba(255, 83, 100, 0.24);
}
.outline {
  border: 1px solid rgba(161, 190, 228, 0.32);
  border-radius: 12px;
}
.outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(117, 227, 255, 0.06);
}
.home-quick-stats,
.home-format-stats,
.home-bowling-stats,
.stats-grid,
.activity-feed,
.tilak-news-grid,
.cricinfo-photo-grid,
.bcci-video-grid,
.match-center-grid,
.upcoming-matches-grid {
  gap: 14px;
}
.stat-card,
.home-mini-stat,
.home-format-card,
.record-card,
.milestone-card,
.analytics-card,
.match-card,
.snapshot-card,
.tilak-news-card,
.bcci-video-card,
.activity-item,
.player-match-milestone {
  border-radius: 16px;
  border-color: rgba(160, 190, 230, 0.15);
  background: linear-gradient(145deg, rgba(16, 28, 46, 0.98), rgba(10, 17, 29, 0.98));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.stat-card:hover,
.home-mini-stat:hover,
.home-format-card:hover,
.record-card:hover,
.milestone-card:hover,
.analytics-card:hover,
.match-card:hover,
.snapshot-card:hover,
.tilak-news-card:hover,
.bcci-video-card:hover,
.cricinfo-photo-grid > *:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 227, 255, 0.38);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.stats-grid:not(.career-formats) .stat-feature {
  background: linear-gradient(135deg, #ff6977 0%, #e94f2f 100%);
  border-color: transparent;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(255, 83, 100, 0.16);
}
.stat-label {
  color: #b7c5d8;
}
.stat-note {
  color: #a6b5ca;
}
.stat-feature .stat-label,
.stat-feature .stat-note {
  color: #35151c;
}
.stats-subnav,
.statsguru-format-tabs,
.statsguru-sourcebar,
.data-line,
.table-foot {
  border-radius: 14px;
}
.stats-subnav button,
.statsguru-format-tabs button {
  border-radius: 10px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
input,
select,
textarea {
  min-height: 42px;
  border-radius: 10px;
  border-color: rgba(160, 190, 230, 0.25);
  background-color: #0d1829;
  color: #f4f7ff;
}
textarea {
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #8496b0;
}
label {
  color: #c5d1e1;
}
.table-wrap {
  border-radius: 14px;
  border-color: rgba(160, 190, 230, 0.18);
  background: rgba(10, 18, 31, 0.55);
}
table {
  border-collapse: separate;
  border-spacing: 0;
}
th {
  color: var(--cyan);
  background: #101d30;
}
td {
  color: #dce5f2;
}
tbody tr {
  transition: background 0.18s ease;
}
tbody tr:hover {
  background: rgba(117, 227, 255, 0.055);
}
.data-line {
  background: rgba(15, 27, 45, 0.9);
}
.innings-section {
  background: linear-gradient(180deg, #080f1c, #0b1422);
}
.home-snapshot-section {
  background: linear-gradient(180deg, rgba(8, 14, 25, 0.5), rgba(12, 22, 37, 0.35));
}
.home-snapshot-foot {
  border-color: rgba(160, 190, 230, 0.16);
}
.ticker {
  background: #75e3ff;
  color: #06101b;
}
.ticker b {
  color: #d9344b;
}
footer {
  border-color: rgba(160, 190, 230, 0.16);
}
:focus-visible {
  outline-color: var(--cyan);
  outline-offset: 4px;
}
img {
  height: auto;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  .section {
    padding-left: max(8vw, calc((100vw - 1380px) / 2));
    padding-right: max(8vw, calc((100vw - 1380px) / 2));
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding-inline: 22px;
  }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 11px;
  }
}
@media (max-width: 900px) {
  .topbar {
    min-height: 68px;
  }
  .topbar nav,
  nav.open {
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    padding: 14px;
    gap: 4px;
    border-radius: 16px;
    background: rgba(9, 16, 29, 0.97);
    border: 1px solid rgba(160, 190, 230, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  }
  nav.open a {
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
  }
  nav.open a:hover {
    background: rgba(117, 227, 255, 0.07);
    border-color: rgba(117, 227, 255, 0.15);
  }
  nav.open a::after {
    display: none;
  }
  .section {
    padding: 66px 5vw;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }
  .topbar {
    padding: 10px 16px;
  }
  .brand {
    font-size: 11px;
    gap: 9px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .section {
    padding: 56px 18px;
  }
  .section-heading {
    margin-bottom: 25px;
  }
  .section-heading > p {
    font-size: 12px;
  }
  .profile-section {
    gap: 28px;
  }
  .profile-photo-wrap {
    width: min(100%, 340px);
    min-height: 0;
    aspect-ratio: 4 / 4.4;
    margin-inline: auto;
  }
  .profile-copy h2 {
    font-size: clamp(54px, 15vw, 76px);
  }
  .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid,
  .career-formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stats-grid:not(.career-formats) .stat-feature {
    grid-column: 1 / -1;
  }
  .stat-card {
    padding: 16px;
    min-height: 126px;
  }
  .stats-grid:not(.career-formats) .stat-card:not(.stat-feature) {
    min-height: 128px;
  }
  .stat-card strong {
    font-size: clamp(31px, 9vw, 43px);
    overflow-wrap: anywhere;
  }
  .stats-grid:not(.career-formats) .stat-feature strong {
    font-size: clamp(54px, 14vw, 68px);
  }
  .featured-match-main {
    align-items: flex-start;
    gap: 16px;
  }
  .featured-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-feed,
  .tilak-news-grid,
  .bcci-video-grid,
  .match-center-grid,
  .upcoming-matches-grid {
    grid-template-columns: 1fr;
  }
  .home-snapshot-columns,
  .about-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .home-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-snapshot-heading,
  .home-bowling-heading,
  .upcoming-matches-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-format-stats {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    max-width: 100%;
  }
  .table-foot {
    gap: 10px;
    font-size: 9px;
  }
  .settings-theme-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .settings-theme-options button {
    min-width: 0;
    padding: 12px 7px;
  }
  .settings-theme-options small {
    font-size: 9px;
  }
  .bcci-player-page-content {
    grid-template-columns: 1fr;
  }
  .bcci-up-next-panel {
    max-height: none;
  }
  .button {
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .section {
    padding-inline: 14px;
  }
  .brand small {
    font-size: 8px;
  }
  .profile-copy h2 {
    font-size: 50px;
  }
  .stat-card {
    padding: 13px;
  }
  .stat-card strong {
    font-size: 30px;
  }
  .settings-theme-options {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* SECTION FINISHING PASS — stronger hierarchy, cleaner grids, and consistent orange accents. */
:root {
  --orange: #ff6a35;
  --cyan: #7ce5f2;
  --text-accent: #ff6a35;
  --section-edge: rgba(124, 229, 242, 0.14);
}
.section:not(.profile-section) {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}
.section:not(.profile-section)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 92% 0%, rgba(124, 229, 242, 0.035), transparent 36rem);
}
.section-heading h2 {
  max-width: 100%;
}
.section-heading > div {
  min-width: 0;
}
.section-heading > p {
  line-height: 1.85;
}
.records-section,
.fan-zone-section,
.tilak-photos-section,
.tilak-news-section,
.tilak-videos-section,
.settings-section {
  background: linear-gradient(180deg, rgba(13, 26, 44, 0.52), rgba(7, 11, 20, 0.18));
}
.records-section .record-card,
.records-section .milestone-card,
.records-section .analytics-card,
.fan-zone-section > *,
.settings-section > *,
.about-section > * {
  min-width: 0;
}
.records-section .record-card strong,
.records-section .milestone-card strong,
.records-section .analytics-card strong {
  color: var(--orange);
}
.records-section .record-card,
.records-section .milestone-card,
.records-section .analytics-card {
  padding: clamp(16px, 2vw, 24px);
}
.tilak-photos-section .cricinfo-photo-grid,
.cricinfo-photo-grid {
  gap: 14px;
}
.cricinfo-photo-grid img,
.tilak-photos-section img {
  border-radius: 14px;
}
.tilak-photos-section .cricinfo-photo-grid > *,
.cricinfo-gallery .cricinfo-photo-grid > * {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.tilak-news-grid,
.bcci-video-grid {
  align-items: stretch;
}
.tilak-news-card,
.bcci-video-card {
  overflow: hidden;
}
.tilak-news-card img,
.bcci-video-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.tilak-news-card h3,
.bcci-video-card h3,
.home-snapshot-block h3 {
  line-height: 1.35;
  text-wrap: balance;
}
.tilak-news-card p,
.bcci-video-card p {
  line-height: 1.75;
}
.fan-zone-section .button,
.fan-zone-section button,
.settings-section button {
  min-height: 44px;
}
.fan-zone-section input,
.fan-zone-section select,
.fan-zone-section textarea,
.settings-section input,
.settings-section select {
  width: 100%;
  max-width: 100%;
}
.settings-section .settings-card {
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.96), rgba(9, 16, 28, 0.96));
}
.settings-theme-options button[aria-pressed="true"],
.settings-theme-options button.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 53, 0.14);
}
.about-section {
  align-items: start;
}
.about-section p {
  color: var(--text-secondary);
  line-height: 1.9;
}
.match-center-section {
  padding: clamp(44px, 6vw, 80px) clamp(18px, 7.5vw, 120px);
}
.match-center-section .section-heading {
  margin-bottom: 26px;
}
.home-snapshot-section .home-mini-stat strong,
.home-format-card strong,
.home-bowling-stats strong {
  font-variant-numeric: tabular-nums;
}
.home-mini-stat span,
.home-format-card .stat-label,
.home-bowling-stats .stat-label {
  letter-spacing: 0.09em;
}
.home-bowling-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 229, 242, 0.075), transparent 22rem),
    linear-gradient(145deg, #101d30, #0a111d);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}
.home-snapshot-foot,
.data-line,
.statsguru-sourcebar {
  line-height: 1.7;
}
.stats-subnav {
  position: sticky;
  top: 82px;
  z-index: 8;
  background: rgba(8, 14, 25, 0.92);
  border: 1px solid var(--line);
  padding: 6px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.stats-subnav button[aria-selected="true"],
.stats-subnav button.active,
.statsguru-format-tabs button.active {
  background: linear-gradient(135deg, #ff7c45, #e94f2f);
  color: #180d09;
  border-color: transparent;
  font-weight: 900;
}
.statsguru-format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.statsguru-format-tabs button {
  min-height: 40px;
  padding: 10px 14px;
}
.table-wrap {
  max-width: 100%;
  overscroll-behavior-x: contain;
  scrollbar-color: #38516d #0a1422;
}
.table-wrap table {
  min-width: 650px;
}
.table-wrap th,
.table-wrap td {
  white-space: nowrap;
}
.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .section-heading > p {
    max-width: 62ch;
  }
  .stats-subnav {
    top: 68px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .stats-subnav button {
    flex: 0 0 auto;
  }
  .statsguru-sourcebar,
  .data-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .home-snapshot-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .tilak-photos-section .cricinfo-photo-grid,
  .cricinfo-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fan-zone-section .button,
  .settings-section .button {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .section h2 {
    overflow-wrap: anywhere;
  }
  .home-quick-stats {
    gap: 9px;
  }
  .home-mini-stat {
    padding: 14px;
  }
  .home-mini-stat strong {
    font-size: clamp(25px, 8vw, 34px);
  }
  .statsguru-format-tabs button {
    padding: 9px 11px;
    font-size: 11px;
  }
}

/* Distinct, coordinated stat accents — Runs remains the hero metric. */
.stats-grid:not(.career-formats) .stat-card:not(.stat-feature) {
  border-top: 2px solid rgba(124, 229, 242, 0.55);
}
.stats-grid:not(.career-formats) .stat-card:nth-child(3) {
  border-top-color: rgba(167, 139, 250, 0.8);
}
.stats-grid:not(.career-formats) .stat-card:nth-child(4) {
  border-top-color: rgba(124, 229, 242, 0.8);
}
.stats-grid:not(.career-formats) .stat-card:nth-child(5) {
  border-top-color: rgba(163, 230, 53, 0.75);
}
.stats-grid:not(.career-formats) .stat-card:nth-child(6) {
  border-top-color: rgba(251, 191, 36, 0.8);
}
.career-formats .stat-card,
.home-format-card {
  border-left: 2px solid rgba(124, 229, 242, 0.55);
}
.career-formats .stat-card:nth-child(2n) {
  border-left-color: rgba(255, 106, 53, 0.72);
}
.career-formats .stat-card:nth-child(3n) {
  border-left-color: rgba(167, 139, 250, 0.75);
}
.records-section .record-card:nth-child(3n + 1) {
  border-top: 2px solid rgba(255, 106, 53, 0.65);
}
.records-section .record-card:nth-child(3n + 2) {
  border-top: 2px solid rgba(124, 229, 242, 0.65);
}
.records-section .record-card:nth-child(3n) {
  border-top: 2px solid rgba(167, 139, 250, 0.65);
}

/* VISUAL EXPANSION 02 — bold editorial sections, depth, and matchday UI. */
:root {
  --club-orange: #ff6a35;
  --club-cyan: #7ce5f2;
  --club-purple: #a78bfa;
  --club-green: #a3e635;
}
.section-heading .eyebrow,
.home-snapshot-heading .eyebrow,
.home-snapshot-blockhead .eyebrow {
  text-transform: uppercase;
}
.section-heading h2,
.home-snapshot-heading h2 {
  line-height: 0.98;
}
.section-heading h2 em,
.home-snapshot-heading h2 em {
  text-shadow: 0 8px 36px rgba(255, 106, 53, 0.12);
}
.profile-section {
  overflow: hidden;
}
.profile-section::after {
  content: "72";
  position: absolute;
  right: -2vw;
  bottom: -10vw;
  z-index: -1;
  color: rgba(255, 255, 255, 0.018);
  font:
    900 clamp(240px, 39vw, 620px) / 0.8 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.1em;
  pointer-events: none;
}
.profile-copy .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--club-orange);
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}
.icc-ranking-card {
  background: linear-gradient(115deg, rgba(16, 31, 51, 0.96), rgba(10, 17, 29, 0.96));
  box-shadow: inset 3px 0 0 rgba(124, 229, 242, 0.7);
}
.icc-ranking-card strong {
  font-variant-numeric: tabular-nums;
}
.home-snapshot-section {
  position: relative;
  isolation: isolate;
}
.home-snapshot-section::after {
  content: "";
  position: absolute;
  inset: auto 7.5vw 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 229, 242, 0.25),
    rgba(255, 106, 53, 0.25),
    transparent
  );
  pointer-events: none;
}
.home-mini-stat {
  position: relative;
  overflow: hidden;
}
.home-mini-stat::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -30px;
  top: -30px;
  border: 1px solid rgba(124, 229, 242, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(124, 229, 242, 0.025),
    0 0 0 20px rgba(124, 229, 242, 0.018);
  pointer-events: none;
}
.home-mini-stat:nth-child(2)::after {
  border-color: rgba(255, 106, 53, 0.2);
}
.home-mini-stat:nth-child(3)::after {
  border-color: rgba(167, 139, 250, 0.2);
}
.home-mini-stat:nth-child(4)::after {
  border-color: rgba(163, 230, 53, 0.18);
}
.home-snapshot-block,
.home-bowling-card,
.match-history-summary {
  position: relative;
  overflow: hidden;
}
.home-snapshot-block::before,
.match-history-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--club-orange);
}
.home-snapshot-block:nth-child(2)::before {
  background: var(--club-cyan);
}
.home-bowling-heading h3,
.home-snapshot-blockhead h3,
.official-records-head h3,
.analytics-head h3,
.upcoming-matches-heading h3 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.stats-section {
  background:
    radial-gradient(ellipse at 0% 25%, rgba(255, 106, 53, 0.045), transparent 28rem),
    radial-gradient(ellipse at 100% 70%, rgba(124, 229, 242, 0.04), transparent 32rem), #080e19;
}
.stats-grid:not(.career-formats) .stat-feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8754 0%, #ff6a35 48%, #e74d32 100%);
}
.stats-grid:not(.career-formats) .stat-feature::after {
  content: "RUNS";
  position: absolute;
  right: 18px;
  bottom: -10px;
  color: rgba(28, 10, 6, 0.12);
  font:
    900 clamp(44px, 7vw, 86px) / 1 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.04em;
}
.player-analysis-content,
.statsguru-panel,
.bowling-breakdown-wrap,
.bowling-innings-wrap {
  border-radius: 18px;
  border-color: rgba(169, 194, 229, 0.16);
  background: linear-gradient(145deg, rgba(15, 27, 45, 0.86), rgba(8, 14, 24, 0.82));
}
.player-analysis-grid,
.statsguru-category-grid {
  gap: 12px;
}
.player-analysis-grid > *,
.statsguru-category-grid > * {
  border-radius: 13px;
}
.records-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(167, 139, 250, 0.07), transparent 28rem),
    linear-gradient(180deg, #0a1220, #080d17);
}
.official-records-head,
.analytics-head,
.match-history-head,
.gallery-heading {
  border-bottom: 1px solid rgba(169, 194, 229, 0.14);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.official-records-grid,
.milestone-grid,
.analytics-grid {
  gap: 14px;
}
.official-records-grid > *,
.milestone-grid > *,
.analytics-grid > * {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border-color: rgba(169, 194, 229, 0.16);
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.96), rgba(9, 16, 28, 0.98));
}
.milestone-grid > *::after,
.analytics-grid > *::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--club-orange);
}
.milestone-grid > *:nth-child(3n + 2)::after {
  background: var(--club-cyan);
}
.milestone-grid > *:nth-child(3n)::after {
  background: var(--club-purple);
}
.analytics-chart {
  border-radius: 18px;
  border: 1px solid rgba(169, 194, 229, 0.16);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(124, 229, 242, 0.055), transparent 22rem),
    rgba(10, 18, 31, 0.7);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
}
.fan-zone-section {
  background:
    radial-gradient(ellipse at 0% 10%, rgba(255, 106, 53, 0.06), transparent 25rem),
    radial-gradient(ellipse at 100% 90%, rgba(124, 229, 242, 0.055), transparent 28rem), #080e19;
}
.fan-zone-grid {
  gap: 14px;
  align-items: stretch;
}
.fan-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.fan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--club-orange), transparent 80%);
  pointer-events: none;
}
.fan-quiz-card::before {
  background: linear-gradient(90deg, var(--club-cyan), transparent 80%);
}
.fan-club-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--club-purple), transparent 80%);
}
.fan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 229, 242, 0.3);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}
.fan-card h3 {
  line-height: 1.25;
  text-wrap: balance;
}
.fan-card h3 em {
  color: var(--club-orange);
  font-style: normal;
}
.feature-eyebrow {
  color: var(--club-cyan);
  letter-spacing: 0.14em;
}
.poll-options label,
.fan-ritual-list label {
  border-radius: 11px;
  border: 1px solid rgba(169, 194, 229, 0.13);
  background: rgba(5, 11, 20, 0.3);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.poll-options label:hover,
.fan-ritual-list label:hover {
  border-color: rgba(124, 229, 242, 0.32);
  background: rgba(124, 229, 242, 0.045);
}
.fan-badge-preview {
  border: 1px solid rgba(255, 106, 53, 0.36);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 106, 53, 0.18), transparent 55%), #0b1422;
}
.innings-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 229, 242, 0.055), transparent 30rem),
    linear-gradient(180deg, #091321, #080d17);
}
.embedded-match-center {
  background: transparent;
}
.match-center-toolbar {
  border: 1px solid rgba(169, 194, 229, 0.15);
  border-radius: 16px;
  background: rgba(12, 22, 37, 0.7);
  padding: 16px;
}
.match-center-summary {
  border-radius: 10px;
  background: rgba(124, 229, 242, 0.055);
  border: 1px solid rgba(124, 229, 242, 0.12);
  padding: 12px 14px;
}
.match-center-grid,
.upcoming-matches-grid {
  gap: 14px;
}
.match-center-grid > *,
.upcoming-matches-grid > * {
  min-width: 0;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.96), rgba(9, 16, 28, 0.98));
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.match-center-grid > *:hover,
.upcoming-matches-grid > *:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 229, 242, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.upcoming-matches-panel {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 106, 53, 0.06), transparent 24rem),
    rgba(10, 18, 31, 0.7);
}
.tilak-photos-section {
  background: linear-gradient(180deg, #080d17, #0a1422);
}
.cricinfo-gallery {
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(145deg, rgba(15, 27, 45, 0.8), rgba(8, 14, 24, 0.7));
}
.cricinfo-photo-grid > * {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.cricinfo-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}
.cricinfo-photo-grid > *:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}
.tilak-news-section {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(167, 139, 250, 0.055), transparent 28rem), #090f1b;
}
.tilak-news-layout {
  border-radius: 18px;
}
.tilak-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(169, 194, 229, 0.16);
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
}
.tilak-news-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.tilak-news-card a,
.tilak-news-card .text-link {
  color: var(--club-cyan);
}
.tilak-videos-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 106, 53, 0.065), transparent 28rem),
    linear-gradient(180deg, #0a1220, #080d17);
}
.bcci-video-controls {
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 16px;
  background: rgba(12, 22, 37, 0.72);
  padding: 16px;
}
.bcci-video-grid > * {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.bcci-video-grid > *:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 53, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}
.bcci-video-modal:not([hidden]) {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bcci-video-panel {
  border: 1px solid rgba(124, 229, 242, 0.22);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.bcci-video-player-head {
  background: rgba(7, 13, 23, 0.96);
  border-bottom: 1px solid rgba(169, 194, 229, 0.16);
}
.settings-section {
  background: linear-gradient(180deg, #090f1b, #080d17);
}
.settings-card {
  border: 1px solid rgba(169, 194, 229, 0.17);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 229, 242, 0.06), transparent 24rem),
    linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
}
.settings-theme-options button {
  border-radius: 13px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.settings-theme-options button:hover {
  transform: translateY(-2px);
}
.settings-theme-options button[aria-pressed="true"] {
  background: rgba(255, 106, 53, 0.09);
  border-color: var(--club-orange);
}
.about-section {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(255, 106, 53, 0.06), transparent 26rem), #070b14;
}
.about-section h2 {
  font-size: clamp(42px, 6vw, 76px);
}
footer {
  background: #060a12;
  padding-block: 26px;
}
@media (min-width: 1000px) {
  .fan-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fan-card {
    padding: clamp(20px, 2.2vw, 30px);
  }
}
@media (max-width: 760px) {
  .profile-section::after {
    right: -12vw;
    bottom: -8vw;
  }
  .match-center-toolbar {
    padding: 12px;
  }
  .cricinfo-gallery {
    padding: 12px;
  }
  .fan-card {
    padding: 20px;
  }
  .bcci-video-controls {
    padding: 12px;
  }
  .official-records-head,
  .analytics-head,
  .gallery-heading {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .statsguru-section {
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card,
  .match-center-grid > *,
  .upcoming-matches-grid > *,
  .cricinfo-photo-grid img,
  .bcci-video-grid > *,
  .settings-theme-options button {
    transition: none !important;
  }
}

/* Style expansion: stronger section identity and richer matchday cards. */
.profile-section {
  overflow: hidden;
}
.profile-section::after {
  content: "72";
  position: absolute;
  right: -2vw;
  bottom: -10vw;
  z-index: -1;
  color: rgba(255, 255, 255, 0.018);
  font:
    900 clamp(240px, 39vw, 620px) / 0.8 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.1em;
  pointer-events: none;
}
.profile-copy > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 7px;
}
.icc-ranking-card {
  background: linear-gradient(115deg, rgba(16, 31, 51, 0.96), rgba(10, 17, 29, 0.96));
  box-shadow: inset 3px 0 0 rgba(124, 229, 242, 0.7);
}
.home-mini-stat {
  position: relative;
  overflow: hidden;
}
.home-mini-stat::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -30px;
  top: -30px;
  border: 1px solid rgba(124, 229, 242, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(124, 229, 242, 0.025),
    0 0 0 20px rgba(124, 229, 242, 0.018);
  pointer-events: none;
}
.home-mini-stat:nth-child(2)::after {
  border-color: rgba(255, 106, 53, 0.2);
}
.home-mini-stat:nth-child(3)::after {
  border-color: rgba(167, 139, 250, 0.2);
}
.home-mini-stat:nth-child(4)::after {
  border-color: rgba(163, 230, 53, 0.18);
}
.stats-section {
  background:
    radial-gradient(ellipse at 0% 25%, rgba(255, 106, 53, 0.045), transparent 28rem),
    radial-gradient(ellipse at 100% 70%, rgba(124, 229, 242, 0.04), transparent 32rem), #080e19;
}
.stats-grid:not(.career-formats) .stat-feature {
  background: linear-gradient(135deg, #ff8754, #ff6a35 48%, #e74d32);
}
.stats-grid:not(.career-formats) .stat-feature::after {
  content: "RUNS";
  position: absolute;
  right: 18px;
  bottom: -10px;
  color: rgba(28, 10, 6, 0.12);
  font:
    900 clamp(44px, 7vw, 86px) / 1 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.04em;
}
.records-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(167, 139, 250, 0.07), transparent 28rem),
    linear-gradient(180deg, #0a1220, #080d17);
}
.official-records-head,
.analytics-head,
.match-history-head,
.gallery-heading {
  border-bottom: 1px solid rgba(169, 194, 229, 0.14);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.official-records-grid,
.milestone-grid,
.analytics-grid {
  gap: 14px;
}
.official-records-grid > *,
.milestone-grid > *,
.analytics-grid > * {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border-color: rgba(169, 194, 229, 0.16);
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.96), rgba(9, 16, 28, 0.98));
}
.milestone-grid > *::after,
.analytics-grid > *::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--orange);
}
.milestone-grid > *:nth-child(3n + 2)::after {
  background: var(--cyan);
}
.milestone-grid > *:nth-child(3n)::after {
  background: #a78bfa;
}
.analytics-chart {
  border-radius: 18px;
  border: 1px solid rgba(169, 194, 229, 0.16);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(124, 229, 242, 0.055), transparent 22rem),
    rgba(10, 18, 31, 0.7);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
}
.fan-zone-section {
  background:
    radial-gradient(ellipse at 0% 10%, rgba(255, 106, 53, 0.06), transparent 25rem),
    radial-gradient(ellipse at 100% 90%, rgba(124, 229, 242, 0.055), transparent 28rem), #080e19;
}
.fan-zone-grid {
  gap: 14px;
  align-items: stretch;
}
.fan-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.fan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent 80%);
  pointer-events: none;
}
.fan-quiz-card::before {
  background: linear-gradient(90deg, var(--cyan), transparent 80%);
}
.fan-club-card:nth-child(3)::before {
  background: linear-gradient(90deg, #a78bfa, transparent 80%);
}
.fan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 229, 242, 0.3);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}
.fan-card h3 {
  line-height: 1.25;
  text-wrap: balance;
}
.fan-card h3 em {
  color: var(--orange);
  font-style: normal;
}
.feature-eyebrow {
  color: var(--cyan);
  letter-spacing: 0.14em;
}
.poll-options label,
.fan-ritual-list label {
  border-radius: 11px;
  border: 1px solid rgba(169, 194, 229, 0.13);
  background: rgba(5, 11, 20, 0.3);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.poll-options label:hover,
.fan-ritual-list label:hover {
  border-color: rgba(124, 229, 242, 0.32);
  background: rgba(124, 229, 242, 0.045);
}
.fan-badge-preview {
  border: 1px solid rgba(255, 106, 53, 0.36);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 106, 53, 0.18), transparent 55%), #0b1422;
}
.innings-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 229, 242, 0.055), transparent 30rem),
    linear-gradient(180deg, #091321, #080d17);
}
.match-center-toolbar,
.bcci-video-controls {
  border: 1px solid rgba(169, 194, 229, 0.15);
  border-radius: 16px;
  background: rgba(12, 22, 37, 0.72);
  padding: 16px;
}
.match-center-summary {
  border-radius: 10px;
  background: rgba(124, 229, 242, 0.055);
  border: 1px solid rgba(124, 229, 242, 0.12);
  padding: 12px 14px;
}
.match-center-grid > *,
.upcoming-matches-grid > * {
  min-width: 0;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.96), rgba(9, 16, 28, 0.98));
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.match-center-grid > *:hover,
.upcoming-matches-grid > *:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 229, 242, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.upcoming-matches-panel {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 106, 53, 0.06), transparent 24rem),
    rgba(10, 18, 31, 0.7);
}
.cricinfo-gallery {
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(145deg, rgba(15, 27, 45, 0.8), rgba(8, 14, 24, 0.7));
}
.cricinfo-photo-grid > * {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.cricinfo-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}
.cricinfo-photo-grid > *:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}
.tilak-news-section {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(167, 139, 250, 0.055), transparent 28rem), #090f1b;
}
.tilak-news-card,
.bcci-video-grid > * {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.tilak-news-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.bcci-video-grid > *:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 53, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}
.bcci-video-panel {
  border: 1px solid rgba(124, 229, 242, 0.22);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.settings-card {
  border: 1px solid rgba(169, 194, 229, 0.17);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 229, 242, 0.06), transparent 24rem),
    linear-gradient(145deg, rgba(17, 29, 48, 0.97), rgba(9, 16, 28, 0.98));
}
.settings-theme-options button {
  border-radius: 13px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.settings-theme-options button:hover {
  transform: translateY(-2px);
}
.settings-theme-options button[aria-pressed="true"] {
  background: rgba(255, 106, 53, 0.09);
  border-color: var(--orange);
}
.about-section {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(255, 106, 53, 0.06), transparent 26rem), #070b14;
}
.about-section h2 {
  font-size: clamp(42px, 6vw, 76px);
}
footer {
  background: #060a12;
  padding-block: 26px;
}
@media (min-width: 1000px) {
  .fan-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fan-card {
    padding: clamp(20px, 2.2vw, 30px);
  }
}
@media (max-width: 760px) {
  .profile-section::after {
    right: -12vw;
    bottom: -8vw;
  }
  .match-center-toolbar,
  .bcci-video-controls {
    padding: 12px;
  }
  .cricinfo-gallery {
    padding: 12px;
  }
  .fan-card {
    padding: 20px;
  }
  .official-records-head,
  .analytics-head,
  .gallery-heading {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .statsguru-section {
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card,
  .match-center-grid > *,
  .upcoming-matches-grid > *,
  .cricinfo-photo-grid img,
  .bcci-video-grid > *,
  .settings-theme-options button {
    transition: none !important;
  }
}

/* Keep the existing Light/System appearance switch fully supported after the new visual layer. */
:root[data-theme-resolved="light"] .records-section,
:root[data-theme-resolved="light"] .fan-zone-section,
:root[data-theme-resolved="light"] .tilak-photos-section,
:root[data-theme-resolved="light"] .tilak-news-section,
:root[data-theme-resolved="light"] .tilak-videos-section,
:root[data-theme-resolved="light"] .settings-section,
:root[data-theme-resolved="light"] .about-section,
:root[data-theme-resolved="light"] .innings-section,
:root[data-theme-resolved="light"] .stats-section {
  background: var(--bg) !important;
  color: var(--white);
}
:root[data-theme-resolved="light"] .fan-card,
:root[data-theme-resolved="light"] .official-records-grid > *,
:root[data-theme-resolved="light"] .milestone-grid > *,
:root[data-theme-resolved="light"] .analytics-grid > *,
:root[data-theme-resolved="light"] .match-center-grid > *,
:root[data-theme-resolved="light"] .upcoming-matches-grid > *,
:root[data-theme-resolved="light"] .bcci-video-grid > *,
:root[data-theme-resolved="light"] .home-bowling-card,
:root[data-theme-resolved="light"] .match-center-toolbar,
:root[data-theme-resolved="light"] .bcci-video-controls,
:root[data-theme-resolved="light"] .analytics-chart,
:root[data-theme-resolved="light"] .settings-card,
:root[data-theme-resolved="light"] .upcoming-matches-panel,
:root[data-theme-resolved="light"] .cricinfo-gallery {
  background: #fff !important;
  color: #152235;
  border-color: rgba(18, 35, 55, 0.16);
  box-shadow: 0 8px 24px rgba(25, 45, 70, 0.06);
}
:root[data-theme-resolved="light"] .home-snapshot-block,
:root[data-theme-resolved="light"] .match-history-summary,
:root[data-theme-resolved="light"] .statsguru-panel,
:root[data-theme-resolved="light"] .player-analysis-content {
  background: #fff;
  color: #152235;
  border-color: rgba(18, 35, 55, 0.16);
}
:root[data-theme-resolved="light"] .fan-card h3,
:root[data-theme-resolved="light"] .home-snapshot-block h3,
:root[data-theme-resolved="light"] .official-records-head h3,
:root[data-theme-resolved="light"] .analytics-head h3,
:root[data-theme-resolved="light"] .upcoming-matches-heading h3,
:root[data-theme-resolved="light"] .home-bowling-heading h3 {
  color: #152235;
}
:root[data-theme-resolved="light"] .feature-eyebrow,
:root[data-theme-resolved="light"] .home-snapshot-block a,
:root[data-theme-resolved="light"] .tilak-news-card a {
  color: #087e91;
}
:root[data-theme-resolved="light"] .poll-options label,
:root[data-theme-resolved="light"] .fan-ritual-list label {
  background: #f5f8fc;
  color: #152235;
  border-color: rgba(18, 35, 55, 0.14);
}
:root[data-theme-resolved="light"] .fan-badge-preview {
  background: linear-gradient(135deg, #fff3eb, #fff);
  color: #152235;
}
:root[data-theme-resolved="light"] .match-center-summary,
:root[data-theme-resolved="light"] .data-line,
:root[data-theme-resolved="light"] .stats-subnav {
  background: #edf3f8;
  color: #152235;
  border-color: rgba(18, 35, 55, 0.14);
}
:root[data-theme-resolved="light"] .stats-subnav button[aria-selected="true"],
:root[data-theme-resolved="light"] .stats-subnav button.active,
:root[data-theme-resolved="light"] .statsguru-format-tabs button.active {
  color: #fff;
}
:root[data-theme-resolved="light"] .bcci-video-player-head {
  background: #edf3f8;
  color: #152235;
}
:root[data-theme-resolved="light"] .bcci-video-panel {
  background: #fff;
  color: #152235;
}

/* FORMAT-WISE CAREER — compact dashboard cards on phones, roomier grid on desktop. */
#career-formats.career-formats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}
#career-formats .format-card {
  min-width: 0;
  min-height: 0 !important;
  padding: 18px 19px !important;
  gap: 7px;
  border: 1px solid rgba(169, 194, 229, 0.16);
  border-left: 3px solid rgba(124, 229, 242, 0.65);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.92), rgba(9, 16, 28, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
#career-formats .format-card:nth-child(3n + 2) {
  border-left-color: rgba(255, 106, 53, 0.8);
}
#career-formats .format-card:nth-child(3n) {
  border-left-color: rgba(167, 139, 250, 0.8);
}
#career-formats .format-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 229, 242, 0.38);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
#career-formats .format-card .stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1.35;
}
#career-formats .format-card strong {
  font-size: clamp(27px, 2.5vw, 38px) !important;
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
#career-formats .format-card .stat-note,
#career-formats .format-card .format-detail {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#career-formats .format-card .format-detail {
  color: var(--muted, #9ba9bc);
}
@media (min-width: 1200px) {
  #career-formats.career-formats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  #career-formats .format-card {
    padding: 20px 21px !important;
  }
}
@media (max-width: 760px) {
  #career-formats.career-formats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #career-formats .format-card {
    padding: 13px 12px !important;
    border-radius: 14px;
    gap: 6px;
  }
  #career-formats .format-card .stat-label {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  #career-formats .format-card strong {
    font-size: clamp(23px, 6.5vw, 31px) !important;
  }
  #career-formats .format-card .stat-note,
  #career-formats .format-card .format-detail {
    font-size: 10px;
    line-height: 1.45;
  }
}
@media (max-width: 350px) {
  #career-formats.career-formats {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
:root[data-theme-resolved="light"] #career-formats .format-card {
  background: linear-gradient(145deg, #fff, #f5f8fc);
  color: #152235;
  border-color: rgba(18, 35, 55, 0.15);
  box-shadow: 0 7px 20px rgba(25, 45, 70, 0.05);
}
:root[data-theme-resolved="light"] #career-formats .format-card .format-detail {
  color: #5d6b7e;
}

/* MOBILE NAV FIX — fully opaque menu surface, above page content, scroll-safe. */
@media (max-width: 800px) {
  .topbar,
  .death-topbar {
    position: sticky;
    z-index: 5000 !important;
    isolation: isolate;
  }
  #main-nav,
  .topbar nav,
  .death-topbar nav {
    background: #0a1220 !important;
    background-color: #0a1220 !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    isolation: isolate;
    z-index: 5001 !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.72) !important;
    border: 1px solid #26364c !important;
    border-top: 1px solid #26364c !important;
  }
  #main-nav.open,
  .topbar nav.open,
  .death-topbar nav.open {
    display: grid !important;
    background: #0a1220 !important;
    background-color: #0a1220 !important;
  }
  #main-nav a,
  .topbar nav a,
  .death-topbar nav a {
    background: #111f33 !important;
    opacity: 1 !important;
    color: #e5edf8;
  }
  #main-nav a[aria-current="page"],
  .death-topbar nav a[aria-current="page"] {
    color: var(--orange) !important;
  }
}

/* RESPONSIVE POLISH PASS — unified rhythm, safer mobile spacing and accessible controls. */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan, #7ce5f2);
  outline-offset: 3px;
}
img,
video,
canvas,
svg {
  max-width: 100%;
}
body {
  overflow-wrap: break-word;
}
.section,
.section > *,
.section-heading,
.profile-section > *,
.stats-grid > *,
.career-formats > *,
.records-section > *,
.match-center-grid > *,
.upcoming-matches-grid > *,
.tilak-news-grid > *,
.bcci-video-grid > * {
  min-width: 0;
}
.stat-card,
.record-card,
.milestone-card,
.analytics-card,
.match-card,
.home-format-card,
.home-mini-stat,
.tilak-news-card,
.bcci-video-card {
  overflow-wrap: anywhere;
}
.table-wrap,
.statsguru-table-wrap,
.match-history-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1100px) {
  .section {
    padding-inline: clamp(48px, 7.5vw, 120px);
  }
  .section-heading {
    max-width: 1440px;
    margin-inline: auto;
  }
  .profile-section {
    padding-inline: clamp(48px, 7.5vw, 120px);
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 82px;
  }
  .section {
    padding: 48px 18px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 22px;
  }
  .section-heading > p {
    margin-top: 12px;
    line-height: 1.7;
  }
  .topbar,
  .death-topbar {
    min-height: 70px;
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  #main-nav,
  #death-nav {
    max-height: min(68dvh, 540px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #main-nav a,
  #death-nav a {
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 10px;
    line-height: 1.35;
  }
  .profile-facts,
  .home-quick-stats {
    gap: 8px;
  }
  .stat-card,
  .home-mini-stat,
  .home-format-card {
    min-width: 0;
  }
  .match-center-toolbar,
  .bcci-video-controls {
    flex-wrap: wrap;
  }
  .match-center-toolbar > *,
  .bcci-video-controls > * {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 42px 15px;
  }
  .section h2 {
    overflow-wrap: anywhere;
  }
  .stats-grid,
  .career-formats,
  .home-quick-stats {
    gap: 9px;
  }
  .stat-card {
    padding: 13px;
    border-radius: 14px;
  }
  .stat-card strong {
    overflow-wrap: anywhere;
  }
  .table-wrap {
    border-radius: 12px;
  }
  .calculator-card,
  .settings-card,
  .upcoming-matches-panel,
  .match-center-toolbar,
  .bcci-video-controls {
    padding: 14px;
  }
  .bcci-player-page-content {
    gap: 14px;
  }
  footer {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Career format cards: use the right-hand space for key batting milestones. */
#career-formats.career-formats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
#career-formats .format-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 21px 22px !important;
  min-height: 0 !important;
  border-radius: 19px !important;
}
#career-formats .format-main-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 15px;
}
#career-formats .format-runs {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
#career-formats .format-runs > strong {
  font-size: clamp(34px, 3vw, 46px) !important;
  line-height: 1 !important;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
#career-formats .format-runs-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: var(--muted, #9ba9bc);
}
#career-formats .format-batting-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
#career-formats .format-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 10px;
  min-width: 0;
  border: 1px solid rgba(124, 229, 242, 0.15);
  border-radius: 10px;
  background: rgba(124, 229, 242, 0.045);
}
#career-formats .format-fact span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #a5b1c3);
}
#career-formats .format-fact strong {
  font-size: 17px !important;
  line-height: 1 !important;
  color: var(--text, #f4f7fb);
  font-variant-numeric: tabular-nums;
}
#career-formats .format-fact:nth-child(2) {
  border-color: rgba(255, 106, 53, 0.22);
  background: rgba(255, 106, 53, 0.06);
}
#career-formats .format-fact:nth-child(4) {
  border-color: rgba(167, 139, 250, 0.22);
  background: rgba(167, 139, 250, 0.06);
}
#career-formats .format-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(169, 194, 229, 0.12);
  color: var(--muted, #a5b1c3);
  font-size: 10px;
  letter-spacing: 0.035em;
  line-height: 1.45;
}
#career-formats .format-meta-row span:first-child {
  color: var(--cyan, #7ce5f2);
  font-weight: 700;
}
@media (max-width: 760px) {
  #career-formats.career-formats {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  #career-formats .format-card {
    padding: 18px 18px !important;
    gap: 11px !important;
  }
  #career-formats .format-main-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
  }
  #career-formats .format-runs > strong {
    font-size: clamp(36px, 9vw, 45px) !important;
  }
  #career-formats .format-fact {
    padding: 9px 10px;
  }
  #career-formats .format-fact strong {
    font-size: 18px !important;
  }
}
@media (max-width: 360px) {
  #career-formats .format-card {
    padding: 15px 13px !important;
  }
  #career-formats .format-main-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
  }
  #career-formats .format-fact {
    padding: 8px 7px;
  }
  #career-formats .format-meta-row {
    gap: 6px 9px;
  }
}
:root[data-theme-resolved="light"] #career-formats .format-fact {
  background: #f1f7fb;
  border-color: rgba(18, 35, 55, 0.12);
}
:root[data-theme-resolved="light"] #career-formats .format-fact strong {
  color: #152235;
}

/* NAVBAR BLUE FINISH — mobile-first, consistent with The 72 Club navy/cyan palette */
.topbar {
  background: linear-gradient(
    110deg,
    rgba(7, 27, 52, 0.97),
    rgba(9, 44, 78, 0.96) 58%,
    rgba(8, 30, 55, 0.97)
  ) !important;
  border-bottom: 1px solid rgba(87, 190, 255, 0.34) !important;
  box-shadow:
    0 10px 32px rgba(0, 70, 140, 0.18),
    0 1px 0 rgba(117, 227, 255, 0.06) !important;
}
.topbar .brand,
.topbar nav a {
  color: #f2f8ff;
}
.topbar .brand small {
  color: #a9c8e8;
}
.topbar .menu-toggle {
  color: #eff8ff;
  background: linear-gradient(145deg, #12345a, #0b2340) !important;
  border-color: rgba(117, 199, 255, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.topbar nav a::after {
  background: #75e3ff;
}
@media (max-width: 900px) {
  .topbar nav,
  nav.open {
    background: linear-gradient(155deg, rgba(8, 35, 64, 0.99), rgba(7, 20, 39, 0.99)) !important;
    border-color: rgba(117, 199, 255, 0.28) !important;
    box-shadow: 0 24px 60px rgba(0, 28, 65, 0.55) !important;
  }
  nav.open a:hover,
  nav.open a:focus-visible {
    background: rgba(58, 153, 230, 0.15) !important;
    border-color: rgba(117, 227, 255, 0.24) !important;
  }
}

/* Keep the quick format cards informative, matching the full career stats section */
.home-format-card .home-format-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0 7px;
}
.home-format-card .home-format-fact {
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid rgba(117, 227, 255, 0.12);
  border-radius: 7px;
  background: rgba(117, 227, 255, 0.035);
}
.home-format-card .home-format-fact span {
  display: block;
  color: #8daac5;
  font: 8px/1.35 var(--mono);
  letter-spacing: 0.04em;
}
.home-format-card .home-format-fact strong {
  display: block;
  margin-top: 2px;
  color: #eaf5ff;
  font: 700 11px/1.3 var(--mono);
  overflow-wrap: anywhere;
}
.home-format-card > small {
  font-size: 8px;
  line-height: 1.55;
}
@media (max-width: 420px) {
  .home-format-card .home-format-facts {
    gap: 4px;
  }
  .home-format-card .home-format-fact {
    padding: 5px 3px;
  }
  .home-format-card .home-format-fact span {
    font-size: 7px;
  }
  .home-format-card .home-format-fact strong {
    font-size: 10px;
  }
}

/* MOBILE CAREER CARDS — prevent labels and multi-digit values breaking across lines */
@media (max-width: 760px) {
  #career-formats .format-card {
    padding: 20px 18px !important;
    gap: 15px !important;
  }
  #career-formats .format-main-row {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
    align-items: center;
    gap: 16px !important;
  }
  #career-formats .format-runs > strong {
    font-size: clamp(38px, 9vw, 48px) !important;
    line-height: 1.05 !important;
    white-space: nowrap;
  }
  #career-formats .format-batting-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #career-formats .format-fact {
    min-width: 0;
    min-height: 78px;
    padding: 10px 8px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }
  #career-formats .format-fact span {
    display: block;
    max-width: 100%;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
  #career-formats .format-fact strong {
    display: block;
    max-width: 100%;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
  }
  #career-formats .format-meta-row {
    gap: 7px 12px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }
}
@media (max-width: 390px) {
  #career-formats .format-main-row {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) !important;
    gap: 10px !important;
  }
  #career-formats .format-card {
    padding: 17px 13px !important;
  }
  #career-formats .format-batting-facts {
    gap: 6px !important;
  }
  #career-formats .format-fact {
    min-height: 70px;
    padding: 8px 6px !important;
  }
  #career-formats .format-fact span {
    font-size: 9px !important;
  }
  #career-formats .format-fact strong {
    font-size: 16px !important;
  }
  #career-formats .format-meta-row {
    gap: 6px 10px !important;
    font-size: 10px !important;
  }
}

/* Main-page Death Overs section: keep the analyser visually integrated with the site. */
.death-overs-section {
  background: linear-gradient(180deg, rgba(9, 20, 35, 0.92), rgba(7, 13, 24, 0.98));
  border-top: 1px solid rgba(117, 227, 255, 0.12);
  border-bottom: 1px solid rgba(117, 227, 255, 0.12);
}
.death-overs-section .section-heading {
  align-items: end;
}
.death-overs-embed-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 227, 255, 0.14);
  border-radius: 18px;
  background: #070b14;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}
#death-overs-embed {
  display: block;
  width: 100%;
  min-height: 900px;
  height: 1100px;
  border: 0;
  background: #070b14;
  overflow: hidden;
}
@media (max-width: 640px) {
  .death-overs-section {
    padding-inline: 14px !important;
  }
  .death-overs-embed-wrap {
    border-radius: 14px;
  }
  #death-overs-embed {
    min-height: 1000px;
  }
}

/* ACCESSIBLE TEXT COLOURS — stronger contrast and consistent hierarchy across the site */
:root {
  --white: #f8fbff;
  --text-primary: #f8fbff;
  --text-secondary: #d4deec;
  --text-muted: #aabbd0;
  --muted: #aabbd0;
  --cyan: #80e8ff;
  --orange: #ff8152;
}
body {
  color: #f0f5fc;
}
p,
.section-copy,
.profile-intro,
.section-heading > p,
.method-note,
.calculator-status,
.innings-summary,
.home-bowling-updated,
.fan-zone-privacy {
  color: #b9c7d9;
}
small,
.caption,
.match-meta,
.stat-note,
.home-snapshot-foot,
.format-meta-row {
  color: #aebed2;
}
.eyebrow,
.section-kicker,
.section-heading .eyebrow,
.home-snapshot-blockhead a {
  color: #80e8ff;
}
label,
label > span {
  color: #d3dfed;
}
input,
select,
textarea,
input::placeholder,
textarea::placeholder {
  color: #f4f8ff;
}
input::placeholder,
textarea::placeholder {
  color: #9fb1c8;
  opacity: 1;
}
button,
.button,
a {
  -webkit-tap-highlight-color: rgba(128, 232, 255, 0.12);
}
nav a,
footer,
footer .brand small {
  color: #d4deec;
}
.stats-subnav button,
.statsguru-format-tabs button {
  color: #cbd7e7;
}
.stats-subnav button.active,
.statsguru-format-tabs button.active {
  color: #ffffff;
}
.home-format-card .home-format-fact span,
#career-formats .format-fact span {
  color: #b8c9dd;
}
.home-format-card .home-format-fact strong,
#career-formats .format-fact strong {
  color: #f5f9ff;
}
.home-format-card > small {
  color: #b5c5d9;
}
.death-overs-section .section-heading > p {
  color: #b9c7d9;
}
#death-overs-embed {
  color-scheme: dark;
}
:focus-visible {
  outline: 2px solid #80e8ff;
  outline-offset: 3px;
}
@media (prefers-contrast: more) {
  body,
  p,
  small,
  label,
  .section-copy,
  .stat-note,
  .format-meta-row {
    color: #f4f8ff !important;
  }
}

/* Death Overs section refresh: remove the duplicate intro and give the tool a cleaner premium frame. */
.death-overs-section {
  position: relative;
  padding-top: clamp(18px, 2.8vw, 34px) !important;
  padding-bottom: clamp(24px, 3vw, 42px) !important;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(46, 140, 210, 0.12), transparent 38%),
    radial-gradient(ellipse at 92% 100%, rgba(255, 155, 53, 0.08), transparent 34%),
    linear-gradient(180deg, #081426 0%, #070d18 100%) !important;
  border-top: 1px solid rgba(89, 191, 232, 0.2) !important;
  border-bottom: 1px solid rgba(89, 191, 232, 0.16) !important;
}
.death-overs-section > .section-heading {
  display: none !important;
}
.death-overs-embed-wrap {
  border: 1px solid rgba(82, 159, 211, 0.28) !important;
  border-radius: 20px !important;
  background: #081321 !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset !important;
  overflow: hidden !important;
}
#death-overs-embed {
  background: #070b14 !important;
}
@media (max-width: 640px) {
  .death-overs-section {
    padding-top: 12px !important;
    padding-bottom: 24px !important;
    padding-inline: 12px !important;
  }
  .death-overs-embed-wrap {
    border-radius: 15px !important;
    border-color: rgba(82, 159, 211, 0.24) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3) !important;
  }
}

/* 72 CLUB PROFILE REFRESH */
#profile.profile-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(28px, 4.5vw, 62px) clamp(22px, 5vw, 72px);
  background:
    radial-gradient(ellipse at 12% 18%, rgba(41, 130, 194, 0.17), transparent 34%),
    radial-gradient(ellipse at 92% 85%, rgba(255, 116, 67, 0.075), transparent 30%),
    linear-gradient(135deg, #0b1b2d, #091321 58%, #08101d);
  border-bottom: 1px solid rgba(112, 207, 242, 0.18);
}
#profile.profile-section:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px;
  border: 1px solid rgba(142, 189, 224, 0.06);
  border-radius: 24px;
  pointer-events: none;
}
#profile .profile-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5.25;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(132, 183, 223, 0.36);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(52, 129, 185, 0.28), transparent 58%),
    linear-gradient(155deg, #142a40, #091321 75%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 0 8px rgba(103, 175, 223, 0.035);
}
#profile .profile-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(1.04) contrast(1.02);
}
#profile .profile-copy {
  min-width: 0;
  max-width: 820px;
}
#profile .profile-copy > .eyebrow {
  margin-bottom: 13px;
  color: #75e5f6;
  font-size: clamp(10px, 1.15vw, 13px);
  letter-spacing: 0.15em;
  line-height: 1.6;
}
#profile .profile-copy > .eyebrow:before {
  width: 32px;
  height: 3px;
  margin-right: 12px;
  background: linear-gradient(90deg, #ff8754, #ffb05a);
}
#profile .profile-copy h2 {
  margin: 0 0 12px;
  color: #f5f8ff;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
#profile .profile-copy h2 em {
  color: #ff8050;
  font-style: normal;
}
#profile .profile-intro {
  max-width: 650px;
  margin: 0 0 19px;
  color: #b9c9dc;
  font-size: clamp(15px, 1.65vw, 21px);
  line-height: 1.6;
}
#profile .profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 17px;
}
#profile .profile-facts > div {
  min-width: 0;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(125, 169, 211, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 34, 53, 0.94), rgba(10, 20, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
#profile .profile-facts > div:hover {
  border-color: rgba(112, 220, 245, 0.42);
  transform: translateY(-2px);
}
#profile .profile-facts small {
  display: block;
  margin-bottom: 8px;
  color: #9db2ca;
  font-size: 10px;
  letter-spacing: 0.14em;
}
#profile .profile-facts strong {
  color: #f4f7ff;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#profile .icc-ranking-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 17px;
}
#profile .icc-ranking-card > div {
  min-width: 0;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(119, 170, 214, 0.2);
  border-radius: 15px;
  background: rgba(13, 24, 40, 0.86);
}
#profile .icc-ranking-card .eyebrow,
#profile .icc-ranking-card span {
  color: #82e4f4;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
#profile .icc-ranking-card strong {
  display: block;
  margin: 7px 0 3px;
  color: #ff8958;
  font-size: clamp(22px, 2.7vw, 35px);
  line-height: 1.1;
}
#profile .icc-ranking-card small {
  color: #afc0d5;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#profile .profile-teams {
  margin: 0 0 14px;
  color: #aebfd2;
  font-size: 12px;
  line-height: 1.7;
}
#profile .profile-teams b {
  margin-right: 7px;
  color: #7ce4f5;
  letter-spacing: 0.12em;
}
#profile .profile-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}
#profile .profile-quick-actions .button {
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: linear-gradient(110deg, #ff9557, #ff7049);
  color: #111a28;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 112, 73, 0.15);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
#profile .profile-quick-actions .button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(255, 112, 73, 0.22);
}
@media (max-width: 800px) {
  #profile.profile-section {
    grid-template-columns: minmax(145px, 0.72fr) minmax(0, 1.28fr);
    gap: 17px;
    padding: 24px 17px 29px;
  }
  #profile .profile-photo-wrap {
    aspect-ratio: 4/5.4;
    border-radius: 21px;
  }
  #profile .profile-copy h2 {
    font-size: clamp(28px, 5.8vw, 42px);
  }
  #profile .profile-intro {
    font-size: 14px;
    line-height: 1.5;
  }
  #profile .profile-facts {
    gap: 7px;
  }
  #profile .profile-facts > div,
  #profile .icc-ranking-card > div {
    padding: 10px;
    border-radius: 12px;
  }
}
@media (max-width: 520px) {
  #profile.profile-section {
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 19px 13px 22px;
  }
  #profile.profile-section:before {
    inset: 7px;
    border-radius: 16px;
  }
  #profile .profile-photo-wrap {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4/5.25;
    border-radius: 16px;
  }
  #profile .profile-copy > .eyebrow {
    margin-bottom: 7px;
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }
  #profile .profile-copy > .eyebrow:before {
    width: 13px;
    height: 2px;
    margin-right: 5px;
  }
  #profile .profile-copy h2 {
    margin-bottom: 7px;
    font-size: clamp(22px, 6vw, 31px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }
  #profile .profile-intro {
    margin-bottom: 9px;
    font-size: clamp(10px, 2.9vw, 13px);
    line-height: 1.45;
  }
  #profile .profile-facts {
    gap: 6px;
    margin-bottom: 9px;
  }
  #profile .profile-facts > div,
  #profile .icc-ranking-card > div {
    padding: 8px;
    border-radius: 10px;
  }
  #profile .profile-facts small {
    margin-bottom: 4px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  #profile .profile-facts strong {
    font-size: clamp(10px, 2.8vw, 13px);
  }
  #profile .icc-ranking-card {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
  }
  #profile .icc-ranking-card .eyebrow,
  #profile .icc-ranking-card span {
    font-size: 7px;
    letter-spacing: 0.06em;
  }
  #profile .icc-ranking-card strong {
    margin: 4px 0 2px;
    font-size: clamp(16px, 4.4vw, 22px);
  }
  #profile .icc-ranking-card small {
    font-size: 8px;
    line-height: 1.35;
  }
  #profile .profile-teams {
    grid-column: 1/-1;
    margin: 8px 0 0;
    font-size: 9px;
  }
  #profile .profile-quick-actions {
    gap: 6px;
    margin-top: 9px;
  }
  #profile .profile-quick-actions .button {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  #profile.profile-section {
    grid-template-columns: minmax(92px, 32%) minmax(0, 1fr);
    gap: 9px;
    padding-inline: 10px;
  }
  #profile .profile-copy h2 {
    font-size: 21px;
  }
  #profile .profile-intro {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #profile .profile-facts > div,
  #profile .profile-quick-actions .button {
    transition: none !important;
  }
}

/* PROFILE UI UPDATE — larger mobile portrait, clean photo crop, richer team panel. */
#profile .profile-teams-panel {
  margin-top: 17px;
  padding: 16px;
  border: 1px solid rgba(117, 203, 237, 0.2);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 128, 80, 0.09), transparent 45%),
    linear-gradient(145deg, rgba(16, 34, 54, 0.94), rgba(8, 19, 33, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
#profile .profile-teams-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#profile .profile-teams-heading .eyebrow {
  color: #83e7f7;
  font-size: 10px;
  letter-spacing: 0.15em;
}
#profile .profile-teams-heading h3 {
  margin: 0;
  color: #f7faff;
  font-size: 16px;
  letter-spacing: -0.035em;
}
#profile .profile-teams-heading h3 em {
  color: #ff895b;
  font-style: normal;
}
#profile .profile-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#profile .profile-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(139, 177, 212, 0.22);
  border-radius: 9px;
  background: rgba(23, 42, 64, 0.78);
  color: #dce8f7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
}
#profile .profile-team-chip.team-india {
  border-color: rgba(255, 145, 85, 0.42);
  background: linear-gradient(
    110deg,
    rgba(255, 133, 75, 0.17),
    rgba(255, 255, 255, 0.04),
    rgba(90, 218, 164, 0.1)
  );
  color: #fff5e9;
}
#profile .profile-team-chip.team-india i {
  color: #ff9b64;
  font-style: normal;
}
#profile .profile-team-chip.team-mi {
  border-color: rgba(83, 160, 255, 0.38);
  color: #b8d9ff;
}
#profile .profile-team-chip.team-medak {
  border-color: rgba(255, 128, 80, 0.32);
  color: #ffb18d;
}
#profile .profile-teams-note {
  margin: 11px 0 0;
  color: #a9bed5;
  font-size: 10px;
  letter-spacing: 0.025em;
  line-height: 1.5;
}
@media (max-width: 800px) {
  #profile .profile-teams-panel {
    padding: 13px;
  }
}
@media (max-width: 520px) {
  /* Give the player the first, wide visual block; text no longer gets squeezed beside him. */
  #profile.profile-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    padding: 18px 14px 24px;
  }
  #profile .profile-photo-wrap {
    width: min(100%, 340px);
    max-width: none;
    height: 340px;
    aspect-ratio: auto;
    margin: 0 auto;
    border-radius: 20px;
  }
  #profile .profile-photo-wrap img {
    object-fit: cover;
    object-position: 34% 16%;
    transform: scale(1.13);
    transform-origin: 38% 20%;
  }
  #profile .profile-copy {
    width: 100%;
  }
  #profile .profile-copy > .eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  #profile .profile-copy h2 {
    font-size: clamp(32px, 9vw, 43px);
    margin-bottom: 9px;
  }
  #profile .profile-intro {
    max-width: 42rem;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  #profile .profile-facts {
    gap: 8px;
    margin-bottom: 12px;
  }
  #profile .profile-facts > div {
    padding: 12px;
    border-radius: 13px;
  }
  #profile .profile-facts small {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  #profile .profile-facts strong {
    font-size: 14px;
  }
  #profile .icc-ranking-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  #profile .icc-ranking-card > div {
    padding: 12px;
    border-radius: 13px;
  }
  #profile .icc-ranking-card .eyebrow,
  #profile .icc-ranking-card span {
    font-size: 8px;
    letter-spacing: 0.07em;
  }
  #profile .icc-ranking-card strong {
    font-size: 22px;
  }
  #profile .icc-ranking-card small {
    font-size: 10px;
  }
  #profile .profile-teams-panel {
    margin-top: 13px;
    padding: 13px;
  }
  #profile .profile-teams-heading {
    align-items: center;
    flex-wrap: wrap;
  }
  #profile .profile-team-chips {
    gap: 7px;
  }
  #profile .profile-team-chip {
    min-height: 35px;
    padding: 8px 9px;
    font-size: 10px;
  }
  #profile .profile-quick-actions {
    margin-top: 13px;
  }
  #profile .profile-quick-actions .button {
    min-height: 42px;
    padding: 11px 15px;
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  #profile .profile-photo-wrap {
    height: 300px;
  }
  #profile .profile-team-chip {
    font-size: 9px;
    padding: 7px 8px;
  }
}

/* PROFILE COMPACT PASS — remove dead space at tablet/mobile widths and balance desktop columns. */
#profile.profile-section {
  align-items: start;
  gap: clamp(22px, 3vw, 38px);
  padding-block: clamp(26px, 3.4vw, 44px);
}
#profile .profile-photo-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  align-self: start;
}
#profile .profile-copy {
  align-self: start;
}
#profile .profile-copy > .eyebrow {
  margin-bottom: 8px;
}
#profile .profile-copy h2 {
  margin-bottom: 9px;
}
#profile .profile-intro {
  margin-bottom: 14px;
}
#profile .profile-facts {
  gap: 8px;
  margin-bottom: 12px;
}
#profile .icc-ranking-card {
  gap: 8px;
  margin-bottom: 12px;
}
#profile .profile-teams-panel {
  margin-top: 0;
  padding: 15px;
}
#profile .profile-teams-heading {
  display: block;
  margin-bottom: 10px;
}
#profile .profile-teams-heading h3 {
  margin-top: 5px;
}
#profile .profile-team-chips {
  gap: 7px;
}
#profile .profile-team-chip {
  min-height: 32px;
  padding: 7px 10px;
}
#profile .profile-teams-note {
  margin-top: 9px;
}
#profile .profile-quick-actions {
  margin-top: 12px;
}

@media (max-width: 800px) {
  #profile.profile-section {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 18px 16px 24px;
  }
  #profile .profile-photo-wrap {
    width: min(100%, 360px);
    height: clamp(280px, 54vw, 360px);
    max-width: none;
    aspect-ratio: auto;
    margin: 0 auto;
    border-radius: 20px;
  }
  #profile .profile-photo-wrap img {
    object-position: 34% 15%;
    transform: scale(1.08);
    transform-origin: 38% 20%;
  }
  #profile .profile-copy {
    width: 100%;
    max-width: none;
  }
  #profile .profile-copy > .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
  }
  #profile .profile-copy h2 {
    font-size: clamp(32px, 6vw, 46px);
    margin-bottom: 8px;
  }
  #profile .profile-intro {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 13px;
  }
  #profile .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }
  #profile .profile-facts > div {
    padding: 11px 12px;
  }
  #profile .profile-facts small {
    font-size: 9px;
    margin-bottom: 5px;
  }
  #profile .profile-facts strong {
    font-size: 14px;
  }
  #profile .icc-ranking-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }
  #profile .icc-ranking-card > div {
    padding: 11px 12px;
  }
  #profile .icc-ranking-card .eyebrow,
  #profile .icc-ranking-card span {
    font-size: 8px;
  }
  #profile .icc-ranking-card strong {
    font-size: clamp(19px, 4vw, 25px);
    margin: 5px 0 3px;
  }
  #profile .icc-ranking-card small {
    font-size: 10px;
  }
  #profile .profile-teams-panel {
    padding: 13px;
  }
  #profile .profile-teams-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  #profile .profile-teams-heading h3 {
    margin: 0;
    font-size: 17px;
  }
  #profile .profile-team-chips {
    gap: 7px;
  }
  #profile .profile-team-chip {
    min-height: 33px;
    padding: 8px 10px;
    font-size: 10px;
  }
  #profile .profile-teams-note {
    font-size: 10px;
  }
  #profile .profile-quick-actions {
    margin-top: 12px;
  }
  #profile .profile-quick-actions .button {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  #profile.profile-section {
    padding-inline: 12px;
    gap: 15px;
  }
  #profile .profile-photo-wrap {
    height: 285px;
  }
  #profile .profile-team-chip {
    font-size: 9px;
    padding: 7px 8px;
  }
  #profile .profile-teams-heading .eyebrow {
    font-size: 9px;
  }
}

/* MOBILE RECOVERY — keep touch-screen layout compact and prevent sticky tabs covering content. */
@media (max-width: 760px), (pointer: coarse) and (hover: none) {
  .stats-subnav {
    position: relative !important;
    top: auto !important;
    z-index: 2 !important;
    margin: 0 0 12px !important;
    padding: 6px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  #career-formats.career-formats {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  #career-formats .format-card {
    min-width: 0 !important;
    padding: 15px 14px !important;
    gap: 10px !important;
  }
  #career-formats .format-main-row {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
    gap: 10px !important;
  }
  #career-formats .format-runs > strong {
    font-size: clamp(32px, 8vw, 43px) !important;
    white-space: nowrap !important;
  }
  #career-formats .format-batting-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  #career-formats .format-fact {
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 7px 6px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  #career-formats .format-fact span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
  }
  #career-formats .format-fact strong {
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
  }
  #career-formats .format-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px 10px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
  }

  #profile.profile-section {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
    padding: 14px 13px 18px !important;
  }
  #profile .profile-photo-wrap {
    width: min(100%, 280px) !important;
    height: clamp(205px, 55vw, 270px) !important;
    min-height: 0 !important;
    max-height: 270px !important;
    margin: 0 auto !important;
    aspect-ratio: auto !important;
  }
  #profile .profile-photo-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 34% 15% !important;
    transform: scale(1.03) !important;
  }
  #profile .profile-copy,
  #profile .profile-facts,
  #profile .icc-ranking-card,
  #profile .profile-teams-panel {
    min-width: 0 !important;
    width: 100% !important;
  }
  #profile .profile-copy h2 {
    font-size: clamp(29px, 7vw, 38px) !important;
    margin-bottom: 6px !important;
  }
  #profile .profile-intro {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }
  #profile .profile-facts,
  #profile .icc-ranking-card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  #profile .profile-facts > div,
  #profile .icc-ranking-card > div {
    min-width: 0 !important;
    padding: 9px 10px !important;
  }
  #profile .profile-teams-panel {
    padding: 11px !important;
  }
  #profile .profile-team-chips {
    gap: 6px !important;
  }
  #profile .profile-team-chip {
    max-width: 100%;
    min-height: 29px !important;
    padding: 6px 8px !important;
    font-size: 9px !important;
  }
  #profile .profile-quick-actions {
    margin-top: 10px !important;
  }
  .stats-section .section-heading {
    gap: 10px;
  }
  .stats-section .section-heading > p {
    max-width: none;
    margin-top: 4px;
  }
}

/* Touch devices may request desktop-site mode; keep the site navigation phone-friendly. */
@media (pointer: coarse) and (hover: none) {
  .topbar {
    min-height: 68px;
    height: auto;
    padding: 9px 14px;
    z-index: 5000 !important;
  }
  .menu-toggle {
    display: grid !important;
    place-items: center;
    flex: 0 0 auto;
  }
  .topbar nav:not(.open) {
    display: none !important;
  }
  .topbar nav.open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: calc(100dvh - 76px) !important;
    overflow-y: auto !important;
  }
}

/* Mobile navigation recovery: handle Android Chrome's "Desktop site" viewport. */
@media (pointer: coarse) and (hover: none) {
  main > section[hidden],
  .stats-subview[hidden] {
    display: none !important;
  }

  .topbar {
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 68px !important;
    height: auto !important;
    padding: 9px 14px !important;
    z-index: 7000 !important;
  }
  .topbar .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .topbar .menu-toggle {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-height: 48px !important;
    position: relative !important;
    z-index: 7002 !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }
  .topbar nav:not(.open) {
    display: none !important;
  }
  .topbar nav.open {
    display: grid !important;
    position: absolute !important;
    top: calc(100% + 1px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 12px !important;
    margin: 0 !important;
    z-index: 7001 !important;
    background: #081525 !important;
    border: 1px solid rgba(130, 178, 220, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55) !important;
  }
  .topbar nav.open a {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 10px !important;
    white-space: normal !important;
    font-size: 12px !important;
    border-radius: 9px !important;
    touch-action: manipulation;
  }
}

/* MOBILE AUDIT FIX: selected sections must stay hidden even when section styles are specific. */
main > section[id][hidden],
#profile.profile-section[hidden],
#stats.stats-section[hidden],
#death-overs[hidden],
#records[hidden],
#fan-zone[hidden],
#innings[hidden],
#match-center[hidden],
#photos[hidden],
#news[hidden],
#tilak-videos[hidden],
#settings[hidden],
#about[hidden],
#stats .stats-subview[hidden] {
  display: none !important;
}

/* Keep touch devices compact even when Android Chrome requests Desktop site. */
@media (pointer: coarse) and (hover: none), (max-width: 760px) {
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 7000 !important;
  }
  .topbar .menu-toggle {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-height: 48px !important;
  }
  .topbar nav:not(.open) {
    display: none !important;
  }
  .topbar nav.open {
    display: grid !important;
    position: absolute !important;
    top: calc(100% + 1px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 12px !important;
    margin: 0 !important;
    z-index: 7001 !important;
    background: #081525 !important;
    border: 1px solid rgba(130, 178, 220, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55) !important;
  }
  .topbar nav.open a {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 10px !important;
    white-space: normal !important;
    font-size: 12px !important;
  }
  .stats-subnav {
    position: relative !important;
    top: auto !important;
  }
  #career-formats.career-formats {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #career-formats .format-main-row {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) !important;
  }
  #career-formats .format-batting-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #career-formats .format-fact {
    min-width: 0 !important;
    padding: 8px 5px !important;
  }
  #career-formats .format-fact span,
  #career-formats .format-fact strong {
    white-space: nowrap !important;
    word-break: normal !important;
  }
  #profile.profile-section {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
  }
  #profile .profile-photo-wrap {
    width: min(100%, 280px) !important;
    height: clamp(205px, 55vw, 270px) !important;
    max-height: 270px !important;
    margin: 0 auto !important;
  }
}

/* Final mobile polish: preserve desktop rules, tighten touch layouts only. */
@media (max-width: 760px), (pointer: coarse) and (hover: none) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  main {
    width: 100%;
    min-width: 0;
  }
  main > section:not([hidden]) {
    min-width: 0;
  }
  main > section.section {
    scroll-margin-top: 12px;
  }

  .topbar {
    box-sizing: border-box !important;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)) !important;
    backdrop-filter: blur(16px);
  }
  .topbar .brand {
    font-size: 11px;
    line-height: 1.2;
  }
  .topbar .brand small {
    display: block;
    margin-top: 2px;
  }
  .topbar nav.open a {
    text-decoration: none;
  }
  .topbar nav.open a.active,
  .topbar nav.open a[aria-current="page"] {
    border-color: rgba(255, 139, 66, 0.7) !important;
    background: linear-gradient(
      135deg,
      rgba(255, 139, 66, 0.15),
      rgba(117, 227, 255, 0.06)
    ) !important;
    color: #fff !important;
  }

  #profile.profile-section {
    box-sizing: border-box;
    margin-inline: auto;
    width: calc(100% - 24px) !important;
    border-radius: 18px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 85% 0%, rgba(60, 126, 194, 0.14), transparent 48%),
      var(--surface, #0b1422);
    border: 1px solid rgba(169, 194, 229, 0.14);
  }
  #profile .profile-photo-wrap {
    overflow: hidden;
    border-radius: 14px;
    background: #0c1b2d;
  }
  #profile .profile-copy {
    overflow-wrap: anywhere;
  }
  #profile .profile-eyebrow-row {
    flex-wrap: wrap;
  }
  #profile .profile-facts > div,
  #profile .icc-ranking-card > div {
    border: 1px solid rgba(169, 194, 229, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }
  #profile .profile-facts small,
  #profile .icc-ranking-card small {
    line-height: 1.35;
  }
  #profile .profile-teams-panel {
    border: 1px solid rgba(169, 194, 229, 0.12);
    border-radius: 12px;
    background: rgba(5, 13, 24, 0.42);
  }
  #profile .profile-quick-actions .button {
    min-height: 42px;
  }

  #stats.stats-section,
  main > section.section:not(#profile):not(#home-snapshot) {
    box-sizing: border-box;
    padding-inline: 12px;
  }
  #stats .section-heading h2 {
    line-height: 1;
  }
  .stats-subnav {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px !important;
    padding: 5px !important;
    border-radius: 12px;
    background: rgba(10, 21, 36, 0.94);
    border: 1px solid rgba(169, 194, 229, 0.14);
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .stats-subnav button {
    flex: 1 0 auto;
    min-height: 40px;
    padding: 9px 12px !important;
    border-radius: 8px;
    white-space: nowrap;
    touch-action: manipulation;
  }
  .stats-subnav button.active,
  .stats-subnav button[aria-selected="true"] {
    background: linear-gradient(110deg, rgba(255, 139, 66, 0.2), rgba(117, 227, 255, 0.08));
    border-color: rgba(255, 139, 66, 0.42);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  .stat-card {
    min-width: 0;
    padding: 14px !important;
    border-radius: 13px;
  }
  .stat-card strong {
    overflow-wrap: anywhere;
  }
  .section-heading {
    min-width: 0;
  }
  .section-heading p {
    max-width: 100%;
  }

  #career-formats .format-card {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  }
  #career-formats .format-meta-row > * {
    max-width: 100%;
  }

  .bcci-video-controls,
  .tilak-news-layout,
  .tilak-photos-section,
  .match-center-layout {
    min-width: 0;
    max-width: 100%;
  }
  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  #profile.profile-section {
    width: calc(100% - 16px) !important;
    padding-inline: 10px !important;
  }
  #profile .profile-facts,
  #profile .icc-ranking-card {
    gap: 6px !important;
  }
  #profile .profile-facts > div,
  #profile .icc-ranking-card > div {
    padding: 8px !important;
  }
  .stats-grid {
    gap: 7px !important;
  }
  .stat-card {
    padding: 11px !important;
  }
  .stats-subnav button {
    padding-inline: 9px !important;
  }
}

/* 72 CLUB — colourful motion polish (progressive, non-destructive) */
:root {
  --club-violet: #9b7bff;
  --club-pink: #ff6b9d;
  --club-lime: #c7f36b;
  --club-blue: #62c8ff;
  --club-glass: rgba(17, 29, 48, 0.78);
}
body {
  isolation: isolate;
}
.topbar {
  border-image: linear-gradient(90deg, var(--club-blue), var(--club-violet), var(--club-pink)) 1;
}
.brand-mark-photo {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.brand:hover .brand-mark-photo {
  transform: rotate(-5deg) scale(1.06);
  box-shadow:
    0 0 0 5px rgba(155, 123, 255, 0.14),
    0 0 28px rgba(98, 200, 255, 0.22);
}
.section-heading h2 em,
.profile-copy h2 em {
  background: linear-gradient(100deg, var(--orange), var(--club-pink) 48%, var(--club-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card,
.home-mini-stat,
.home-snapshot-block,
.home-bowling-card,
.settings-card,
.cricinfo-gallery,
.tilak-news-grid > *,
.bcci-video-grid > *,
.profile-teams-panel {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
}
.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(155, 123, 255, 0.22);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--club-blue), var(--club-violet), var(--club-pink));
  opacity: 0.85;
}
.stat-card:hover,
.home-mini-stat:hover,
.home-snapshot-block:hover,
.home-bowling-card:hover,
.settings-card:hover,
.cricinfo-gallery:hover,
.profile-teams-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 200, 255, 0.42);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(155, 123, 255, 0.07);
}
.button,
button,
.stats-subnav button,
.statsguru-format-tabs button {
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.button:hover,
button:hover:not(:disabled) {
  filter: brightness(1.08);
}
.button:active,
button:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}
.button.primary {
  background-image: linear-gradient(115deg, #ff6a35, #ff6b9d 52%, #9b7bff);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 106, 53, 0.17);
}
nav a.active {
  color: #fff;
}
nav a.active::after {
  right: 0;
  background: linear-gradient(90deg, var(--club-blue), var(--club-pink));
}
.profile-photo-wrap img {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.35s ease;
}
.profile-photo-wrap:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}
.profile-team-chip {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.profile-team-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 200, 255, 0.6);
  background: rgba(98, 200, 255, 0.1);
}
.activity-empty,
.empty {
  color: var(--text-secondary, #c1ccdc);
}
:where(input, select, textarea, button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--club-blue);
  outline-offset: 3px;
}
@keyframes clubRiseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clubGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(98, 200, 255, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(98, 200, 255, 0.12);
  }
}
main > section:not([hidden]) {
  animation: clubRiseIn 0.32s ease both;
}
.stat-card,
.home-mini-stat {
  animation: clubRiseIn 0.42s ease both;
}
.live-dot {
  box-shadow: 0 0 0 4px rgba(115, 224, 174, 0.09);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 720px) {
  .topbar {
    border-image: none;
  }
  .stat-card:hover,
  .home-mini-stat:hover,
  .home-snapshot-block:hover,
  .home-bowling-card:hover,
  .settings-card:hover,
  .cricinfo-gallery:hover,
  .profile-teams-panel:hover {
    transform: none;
  }
  .button,
  button {
    min-height: 42px;
  }
}
