/* 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,
.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,
  .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;
}
.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);
}
.upcoming-matches-grid {
  gap: 14px;
}
.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;
}
.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;
  }
  .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,
  .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);
}
.bcci-video-controls {
  border: 1px solid rgba(169, 194, 229, 0.15);
  border-radius: 16px;
  background: rgba(12, 22, 37, 0.72);
  padding: 16px;
}
.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;
}
.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;
  }
  .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,
  .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"] .upcoming-matches-grid > *,
:root[data-theme-resolved="light"] .bcci-video-grid > *,
:root[data-theme-resolved="light"] .home-bowling-card,
: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"] .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 > *,
.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;
  }
  .bcci-video-controls {
    flex-wrap: wrap;
  }
  .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,
  .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],
#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 {
    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;
  }
}

/* Stats Centre / Explore refresh — scoped to the stats area to avoid site-wide regressions. */
#stats.stats-section {
  --stats-card-border: rgba(124, 229, 242, 0.16);
  --stats-card-glow: 0 14px 36px rgba(0, 0, 0, 0.18);
}
#stats .stats-subnav {
  z-index: 12;
  backdrop-filter: blur(16px);
  border: 1px solid var(--stats-card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
#stats .stats-subnav button,
#stats .statsguru-format-tabs button,
#stats .statsguru-category-grid button {
  min-width: 0;
  font-weight: 750;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}
#stats .statsguru-section {
  min-width: 0;
}
#stats .statsguru-sourcebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 15px;
  border: 1px solid var(--stats-card-border);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(98, 200, 255, 0.07), rgba(155, 123, 255, 0.07));
}
#stats .statsguru-format-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-block: 14px;
}
#stats .statsguru-format-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--stats-card-border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text-secondary, #cbd7e7);
  min-height: 42px;
}
#stats .statsguru-format-tabs button.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 7px 20px rgba(255, 106, 53, 0.18);
}
#stats .player-analysis-filter {
  border: 1px solid var(--stats-card-border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.86), rgba(10, 18, 32, 0.94));
  overflow: clip;
}
#stats .player-analysis-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
#stats .player-analysis-toggle::-webkit-details-marker {
  display: none;
}
#stats .player-analysis-toggle-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 138, 91, 0.3);
  border-radius: 11px;
  color: #ffad8b;
  background: rgba(255, 138, 91, 0.09);
  transition:
    transform 180ms ease,
    background 180ms ease;
}
#stats .player-analysis-filter[open] .player-analysis-toggle-icon {
  transform: rotate(45deg);
  background: rgba(255, 138, 91, 0.16);
}
#stats .player-analysis-content {
  min-width: 0;
  padding: 0 16px 16px;
}
#stats .player-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#stats .player-analysis-grid label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: var(--text-secondary, #cbd7e7);
  font-size: 12px;
  font-weight: 700;
}
#stats .player-analysis-grid select,
#stats .player-analysis-grid input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid var(--stats-card-border);
  border-radius: 10px;
  background: rgba(5, 13, 25, 0.8);
  color: var(--white, #f3f7ff);
  color-scheme: dark;
}
#stats .player-analysis-grid select:focus-visible,
#stats .player-analysis-grid input:focus-visible {
  border-color: var(--club-blue, #62c8ff);
}
#stats .player-analysis-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
#stats #sg-filter-status {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--text-secondary, #cbd7e7);
  font-size: 12px;
  line-height: 1.55;
}
#stats .sg-analysis-options {
  min-width: 0;
  margin-top: 14px;
  border: 1px solid var(--stats-card-border);
  border-radius: 12px;
  background: rgba(98, 200, 255, 0.035);
}
#stats .statsguru-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-block: 15px;
}
#stats .statsguru-category-grid button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--stats-card-border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-secondary, #cbd7e7);
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}
#stats .statsguru-category-grid button.active {
  color: #fff;
  border-color: rgba(255, 138, 91, 0.48);
  background: linear-gradient(125deg, rgba(255, 124, 69, 0.18), rgba(155, 123, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 138, 91, 0.06);
}
#stats .statsguru-panel {
  min-width: 0;
  border: 1px solid var(--stats-card-border);
  border-radius: 18px;
  box-shadow: var(--stats-card-glow);
}
#stats .statsguru-panel-head {
  flex-wrap: wrap;
  gap: 10px;
}
#stats .statsguru-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#stats .statsguru-metric {
  min-width: 0;
  border: 1px solid var(--stats-card-border);
  border-radius: 12px;
  padding: 13px;
  overflow-wrap: anywhere;
}
#stats .statsguru-metric strong {
  font-variant-numeric: tabular-nums;
}
#stats .statsguru-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
#stats .statsguru-panel table {
  min-width: 680px;
}
#stats .statsguru-panel th,
#stats .statsguru-panel td {
  white-space: nowrap;
}
#stats .statsguru-panel td:first-child,
#stats .statsguru-panel th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel, #101b2d);
}
#stats .statsguru-panel th:first-child {
  z-index: 2;
  background: color-mix(in srgb, var(--stats-accent, #7ce5f2) 16%, var(--panel2, #152238));
}
#stats .statsguru-note {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
:root[data-theme-resolved="light"] #stats .player-analysis-filter {
  background: linear-gradient(145deg, #fff, #f2f6fc);
}
:root[data-theme-resolved="light"] #stats .player-analysis-grid select,
:root[data-theme-resolved="light"] #stats .player-analysis-grid input {
  background: #fff;
  color: #152235;
  color-scheme: light;
}
:root[data-theme-resolved="light"] #stats .statsguru-category-grid button {
  background: #fff;
  color: #34465c;
}
:root[data-theme-resolved="light"] #stats .statsguru-category-grid button.active {
  background: linear-gradient(125deg, #fff0e8, #f0edff);
  color: #7e301b;
}
:root[data-theme-resolved="light"] #stats .statsguru-panel td:first-child {
  background: #fff;
}
@media (max-width: 900px) {
  #stats .statsguru-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #stats .statsguru-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #stats .stats-subnav {
    position: relative !important;
    top: auto !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }
  #stats .stats-subnav button {
    min-width: 0;
    padding: 10px 6px;
    font-size: 12px;
  }
  #stats .statsguru-sourcebar {
    align-items: flex-start;
    flex-direction: column;
    padding: 11px 12px;
    font-size: 11px;
  }
  #stats .statsguru-format-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 1px 8px;
    margin-inline: -2px;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  #stats .statsguru-format-tabs button {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 11px;
  }
  #stats .player-analysis-toggle {
    min-height: 60px;
    padding: 12px;
  }
  #stats .player-analysis-content {
    padding: 0 12px 13px;
  }
  #stats .player-analysis-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  #stats .player-analysis-actions > button {
    flex: 1 1 130px;
  }
  #stats .sg-analysis-options {
    padding: 10px;
  }
  #stats .statsguru-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  #stats .statsguru-category-grid button {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 11px;
  }
  #stats .statsguru-panel {
    padding: 12px;
    border-radius: 15px;
  }
  #stats .statsguru-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  #stats .statsguru-metric {
    padding: 10px;
  }
  #stats .statsguru-panel .table-wrap {
    margin-inline: -1px;
  }
  #stats .statsguru-panel table {
    min-width: 620px;
  }
}
@media (max-width: 360px) {
  #stats .statsguru-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #stats .statsguru-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  #stats .player-analysis-toggle-icon {
    transition: none;
  }
}

/* Explore compact layout: reduce vertical scrolling without changing data or behavior. */
#stats #statsguru .section-heading.explore-heading {
  margin-bottom: 12px;
  gap: 12px;
}
#stats #statsguru .explore-heading > p {
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.5;
}
#stats #statsguru .statsguru-sourcebar {
  padding: 9px 12px;
  line-height: 1.4;
}
#stats #statsguru .statsguru-format-tabs {
  gap: 6px;
  margin-block: 9px 10px;
}
#stats #statsguru .statsguru-format-tabs button {
  min-height: 36px;
  padding: 7px 11px;
}
#stats #statsguru .player-analysis-toggle {
  min-height: 54px;
  padding: 10px 13px;
}
#stats #statsguru .player-analysis-content {
  padding: 0 13px 12px;
}
#stats #statsguru .player-analysis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
#stats #statsguru .player-analysis-grid select,
#stats #statsguru .player-analysis-grid input {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 12px;
}
#stats #statsguru .player-analysis-actions {
  gap: 7px;
  margin-top: 10px;
}
#stats #statsguru .sg-analysis-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 10px;
  padding: 9px 11px;
  margin-top: 9px;
}
#stats #statsguru .sg-analysis-options legend {
  padding-inline: 5px;
}
#stats #statsguru .sg-analysis-options label {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}
#stats #statsguru .statsguru-category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-block: 10px;
}
#stats #statsguru .statsguru-category-grid button {
  min-height: 39px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.25;
}
#stats #statsguru .statsguru-panel {
  padding: 14px;
}
#stats #statsguru .statsguru-panel-head {
  margin-bottom: 10px;
}
#stats #statsguru .statsguru-summary {
  gap: 7px;
  margin-bottom: 10px;
}
#stats #statsguru .statsguru-metric {
  padding: 10px 11px;
}
#stats #statsguru .statsguru-metric strong {
  font-size: clamp(15px, 1.8vw, 22px);
}
#stats #statsguru .statsguru-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  #stats #statsguru .player-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #stats #statsguru .statsguru-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #stats #statsguru .sg-analysis-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #stats #statsguru .section-heading.explore-heading {
    margin-bottom: 9px;
  }
  #stats #statsguru .explore-heading > p {
    font-size: 12px;
  }
  #stats #statsguru .statsguru-sourcebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px 10px;
    padding: 8px 10px;
    font-size: 10px;
  }
  #stats #statsguru .statsguru-format-tabs {
    margin-block: 7px 8px;
    padding-bottom: 5px;
  }
  #stats #statsguru .statsguru-format-tabs button {
    min-height: 35px;
    padding: 7px 10px;
  }
  #stats #statsguru .player-analysis-toggle {
    min-height: 50px;
    padding: 9px 10px;
  }
  #stats #statsguru .player-analysis-toggle .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }
  #stats #statsguru .player-analysis-toggle strong {
    font-size: 13px;
  }
  #stats #statsguru .player-analysis-toggle small {
    font-size: 11px;
  }
  #stats #statsguru .player-analysis-content {
    padding: 0 10px 10px;
  }
  #stats #statsguru .player-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #stats #statsguru .player-analysis-grid label {
    gap: 4px;
    font-size: 11px;
  }
  #stats #statsguru .player-analysis-grid select,
  #stats #statsguru .player-analysis-grid input {
    min-height: 36px;
    padding: 6px 7px;
    font-size: 11px;
  }
  #stats #statsguru .player-analysis-actions {
    margin-top: 8px;
  }
  #stats #statsguru .player-analysis-actions > button {
    flex: 1 1 110px;
    min-height: 37px;
    padding: 8px 9px;
    font-size: 11px;
  }
  #stats #statsguru .sg-analysis-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    padding: 8px;
    margin-top: 8px;
  }
  #stats #statsguru .sg-analysis-options label {
    font-size: 11px;
  }
  #stats #statsguru .player-analysis-help {
    margin-block: 8px 0;
    font-size: 11px;
    line-height: 1.45;
  }
  #stats #statsguru .statsguru-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-block: 8px;
  }
  #stats #statsguru .statsguru-category-grid button {
    min-height: 37px;
    padding: 6px 7px;
    font-size: 10px;
    line-height: 1.2;
  }
  #stats #statsguru .statsguru-panel {
    padding: 10px;
    border-radius: 13px;
  }
  #stats #statsguru .statsguru-panel-head {
    gap: 7px;
    margin-bottom: 8px;
  }
  #stats #statsguru .statsguru-panel-head h3 {
    font-size: 16px;
  }
  #stats #statsguru .statsguru-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }
  #stats #statsguru .statsguru-metric {
    padding: 8px;
    border-radius: 9px;
  }
  #stats #statsguru .statsguru-metric span {
    font-size: 9px;
    letter-spacing: 0.035em;
  }
  #stats #statsguru .statsguru-metric strong {
    font-size: 16px;
  }
  #stats #statsguru .statsguru-note {
    margin-top: 8px;
  }
}
@media (max-width: 360px) {
  #stats #statsguru .statsguru-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* STATS / BATTING OVERVIEW — polished cards, restrained accents, scoped away from other sections. */
#stats #stats-overview {
  --bat-ink: #eaf2ff;
  --bat-muted: #9fb2c9;
  --bat-line: rgba(142, 177, 214, 0.16);
  --bat-panel: linear-gradient(145deg, rgba(16, 32, 52, 0.94), rgba(8, 18, 32, 0.97));
  color: var(--bat-ink);
}
#stats #stats-overview > .section-heading {
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
#stats #stats-overview > .section-heading h2 {
  margin: 5px 0 0;
  letter-spacing: -0.035em;
}
#stats #stats-overview > .section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--bat-muted);
  font-size: 12px;
  line-height: 1.55;
}
#stats #stats-overview .stats-grid {
  gap: 12px;
}
#stats #stats-overview .stat-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid var(--bat-line);
  border-radius: 17px;
  background: var(--bat-panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
#stats #stats-overview .stat-card::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 153, 85, 0.9),
    rgba(84, 190, 220, 0.55),
    transparent 88%
  );
  content: "";
  opacity: 0.62;
}
#stats #stats-overview .stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 190, 223, 0.34);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
}
#stats #stats-overview .stat-label {
  display: block;
  color: var(--bat-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.35;
}
#stats #stats-overview .stat-card > strong {
  display: block;
  margin-top: 10px;
  color: #f7fbff;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
#stats #stats-overview .stat-note {
  display: block;
  margin-top: 9px;
  color: #91a8c2;
  font-size: 10px;
  line-height: 1.35;
}
#stats #stats-overview .stat-feature {
  border-color: rgba(255, 153, 85, 0.32);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 140, 74, 0.16), transparent 58%),
    linear-gradient(145deg, rgba(34, 40, 55, 0.98), rgba(10, 20, 34, 0.98));
}
#stats #stats-overview .stat-feature::before {
  height: 3px;
  opacity: 1;
}
#stats #stats-overview .stat-feature > strong {
  color: #ffbd8b;
  font-size: clamp(31px, 3.5vw, 43px);
}
#stats #stats-overview .stat-watermark {
  right: 12px;
  bottom: -13px;
  color: rgba(240, 247, 255, 0.045);
  font-size: clamp(65px, 8vw, 100px);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}
#stats #stats-overview .format-heading {
  margin-top: clamp(25px, 4vw, 38px);
}
#stats #stats-overview .career-formats .format-card {
  padding: 16px;
}
#stats #stats-overview .career-formats .format-main-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}
#stats #stats-overview .career-formats .format-runs strong {
  display: block;
  color: #f5f9ff;
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
#stats #stats-overview .career-formats .format-runs-caption {
  display: block;
  margin-top: 4px;
  color: var(--bat-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
#stats #stats-overview .format-batting-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
#stats #stats-overview .format-fact {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid rgba(142, 177, 214, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
#stats #stats-overview .format-fact span {
  display: block;
  color: var(--bat-muted);
  font-size: 9px;
  font-weight: 750;
}
#stats #stats-overview .format-fact strong {
  display: block;
  margin-top: 3px;
  color: #e9f3ff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#stats #stats-overview .format-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
#stats #stats-overview .format-meta-row span {
  padding: 5px 7px;
  border: 1px solid rgba(142, 177, 214, 0.13);
  border-radius: 7px;
  background: rgba(5, 13, 24, 0.42);
  color: #afc2d8;
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#stats #stats-overview .data-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--bat-line);
  border-radius: 11px;
  background: rgba(8, 19, 32, 0.72);
  color: var(--bat-muted);
  font-size: 10px;
}
#stats #stats-overview .data-line b {
  color: #dcecff;
}
html[data-theme="light"] #stats #stats-overview,
body[data-theme="light"] #stats #stats-overview,
[data-theme="light"] #stats #stats-overview {
  --bat-ink: #17283d;
  --bat-muted: #60738a;
  --bat-line: rgba(60, 90, 125, 0.16);
  --bat-panel: linear-gradient(145deg, #ffffff, #f2f6fb);
  color: var(--bat-ink);
}
html[data-theme="light"] #stats #stats-overview .stat-card,
body[data-theme="light"] #stats #stats-overview .stat-card,
[data-theme="light"] #stats #stats-overview .stat-card {
  box-shadow: 0 8px 22px rgba(32, 54, 80, 0.07);
}
html[data-theme="light"] #stats #stats-overview .stat-card > strong,
body[data-theme="light"] #stats #stats-overview .stat-card > strong,
[data-theme="light"] #stats #stats-overview .stat-card > strong,
html[data-theme="light"] #stats #stats-overview .career-formats .format-runs strong,
body[data-theme="light"] #stats #stats-overview .career-formats .format-runs strong,
[data-theme="light"] #stats #stats-overview .career-formats .format-runs strong {
  color: #173451;
}
html[data-theme="light"] #stats #stats-overview .stat-feature > strong,
body[data-theme="light"] #stats #stats-overview .stat-feature > strong,
[data-theme="light"] #stats #stats-overview .stat-feature > strong {
  color: #a94e17;
}
html[data-theme="light"] #stats #stats-overview .format-fact strong,
body[data-theme="light"] #stats #stats-overview .format-fact strong,
[data-theme="light"] #stats #stats-overview .format-fact strong {
  color: #183954;
}
html[data-theme="light"] #stats #stats-overview .data-line,
body[data-theme="light"] #stats #stats-overview .data-line,
[data-theme="light"] #stats #stats-overview .data-line {
  background: rgba(237, 243, 250, 0.88);
}
@media (max-width: 700px) {
  #stats #stats-overview > .section-heading {
    align-items: start;
    gap: 7px;
    margin-bottom: 12px;
  }
  #stats #stats-overview > .section-heading > p {
    font-size: 11px;
    line-height: 1.45;
  }
  #stats #stats-overview .stats-grid {
    gap: 8px;
  }
  #stats #stats-overview .stat-card {
    padding: 13px 12px;
    border-radius: 13px;
  }
  #stats #stats-overview .stat-label {
    font-size: 9px;
    letter-spacing: 0.075em;
  }
  #stats #stats-overview .stat-card > strong {
    margin-top: 8px;
    font-size: clamp(22px, 6vw, 29px);
  }
  #stats #stats-overview .stat-feature > strong {
    font-size: clamp(27px, 7vw, 35px);
  }
  #stats #stats-overview .stat-note {
    margin-top: 6px;
    font-size: 9px;
  }
  #stats #stats-overview .career-formats .format-card {
    padding: 12px;
  }
  #stats #stats-overview .career-formats .format-main-row {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 10px;
  }
  #stats #stats-overview .career-formats .format-runs strong {
    font-size: clamp(24px, 6vw, 31px);
  }
  #stats #stats-overview .format-batting-facts {
    gap: 4px;
  }
  #stats #stats-overview .format-fact {
    padding: 6px 4px;
  }
  #stats #stats-overview .format-fact strong {
    font-size: 12px;
  }
  #stats #stats-overview .format-meta-row {
    gap: 5px;
    margin-top: 9px;
  }
  #stats #stats-overview .format-meta-row span {
    padding: 4px 6px;
    font-size: 8px;
  }
  #stats #stats-overview .data-line {
    padding: 9px 10px;
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  #stats #stats-overview .stats-grid:not(.career-formats) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  #stats #stats-overview .stat-card {
    transition: none;
  }
}

/* EXPLORE format selector — make the selected format unmistakable. */
#stats #statsguru .statsguru-format-tabs {
  gap: 9px;
  padding: 8px 5px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9, 20, 38, 0.72), rgba(20, 31, 52, 0.48));
  border: 1px solid rgba(125, 160, 205, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 132, 75, 0.7) transparent;
}
#stats #statsguru .statsguru-format-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(151, 174, 207, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(36, 51, 75, 0.88), rgba(20, 32, 51, 0.96));
  color: #e2eaf7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.015em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
#stats #statsguru .statsguru-format-tabs button:hover {
  border-color: rgba(255, 169, 106, 0.85);
  background: linear-gradient(180deg, rgba(61, 75, 101, 0.98), rgba(28, 43, 66, 0.98));
  transform: translateY(-1px);
}
#stats #statsguru .statsguru-format-tabs button.active {
  background: linear-gradient(135deg, #ffd166 0%, #ff9b50 48%, #ff6947 100%) !important;
  color: #172033 !important;
  border: 2px solid #fff2d4 !important;
  padding: 8px 14px;
  font-weight: 950;
  box-shadow:
    0 0 0 3px rgba(255, 132, 70, 0.2),
    0 8px 22px rgba(255, 105, 58, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: none;
  transform: translateY(-1px);
}
#stats #statsguru .statsguru-format-tabs button.active::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 50%;
  background: #172033;
  color: #ffe0a0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}
#stats #statsguru .statsguru-format-tabs button:focus-visible {
  outline: 3px solid #69d7ff;
  outline-offset: 3px;
}
#stats #statsguru .statsguru-format-pill {
  padding: 7px 12px;
  border: 1px solid rgba(255, 177, 91, 0.8);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 177, 91, 0.18), rgba(255, 105, 71, 0.12));
  color: #ffc078;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.055em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}
:root[data-theme-resolved="light"] #stats #statsguru .statsguru-format-tabs,
:root[data-theme="light"] #stats #statsguru .statsguru-format-tabs {
  background: linear-gradient(135deg, #edf3fb, #f8faff);
  border-color: #d4deeb;
}
:root[data-theme-resolved="light"] #stats #statsguru .statsguru-format-tabs button,
:root[data-theme="light"] #stats #statsguru .statsguru-format-tabs button {
  background: linear-gradient(180deg, #fff, #f0f4fa);
  border-color: #cbd6e5;
  color: #33445e;
}
:root[data-theme-resolved="light"] #stats #statsguru .statsguru-format-tabs button.active,
:root[data-theme="light"] #stats #statsguru .statsguru-format-tabs button.active {
  background: linear-gradient(135deg, #ffd166 0%, #ff9b50 48%, #ff6947 100%) !important;
  color: #172033 !important;
  border-color: #fff !important;
  box-shadow:
    0 0 0 3px rgba(255, 132, 70, 0.17),
    0 8px 20px rgba(196, 82, 38, 0.2);
}
:root[data-theme-resolved="light"] #stats #statsguru .statsguru-format-pill,
:root[data-theme="light"] #stats #statsguru .statsguru-format-pill {
  color: #9a3e18;
  background: linear-gradient(135deg, #fff2d9, #ffe7dd);
  border-color: #e9a46b;
}
@media (max-width: 760px) {
  #stats #statsguru .statsguru-format-tabs {
    gap: 8px;
    padding: 8px 7px 11px;
    margin-block: 9px 12px;
  }
  #stats #statsguru .statsguru-format-tabs button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12px;
  }
  #stats #statsguru .statsguru-format-tabs button.active {
    padding: 8px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #stats #statsguru .statsguru-format-tabs button {
    transition: none;
  }
}

/* Explore intro copy: turn the long plain sentence into a deliberate supporting callout. */
#stats #statsguru .section-heading.explore-heading {
  align-items: flex-end;
}
#stats #statsguru .explore-heading > p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  max-width: 360px;
  margin: 0 0 3px auto;
  padding: 12px 15px 12px 16px;
  border: 1px solid rgba(255, 133, 79, 0.28);
  border-left: 3px solid #ff8050;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(120deg, rgba(255, 124, 75, 0.105), rgba(17, 29, 47, 0.64));
  color: #b9c8dc;
  font-size: 12px;
  line-height: 1.55;
  text-wrap: pretty;
}
#stats #statsguru .explore-heading > p strong {
  color: #fff0df;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.35;
}
#stats #statsguru .explore-heading > p span {
  display: block;
}
:root[data-theme-resolved="light"] #stats #statsguru .explore-heading > p,
:root[data-theme="light"] #stats #statsguru .explore-heading > p {
  color: #52627a;
  background: linear-gradient(120deg, #fff5ec, #f4f7fc);
  border-color: #f0c4a9;
  border-left-color: #e96a37;
}
:root[data-theme-resolved="light"] #stats #statsguru .explore-heading > p strong,
:root[data-theme="light"] #stats #statsguru .explore-heading > p strong {
  color: #8d3e1e;
}
@media (max-width: 760px) {
  #stats #statsguru .section-heading.explore-heading {
    align-items: flex-start;
  }
  #stats #statsguru .explore-heading > p {
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
    padding: 10px 12px;
    font-size: 12px;
  }
  #stats #statsguru .explore-heading > p strong {
    font-size: 12px;
  }
}

/* VIDEO PLAYER VISIBILITY + NAVBAR PERSISTENCE FIX.
   Keep the original player, feed, controls and page structure intact. */
#bcci-video-player-modal:not([hidden]) {
  z-index: 6990 !important;
  display: grid !important;
  align-items: center;
  overflow: auto;
  overscroll-behavior: contain;
}
#bcci-video-player-modal .bcci-video-panel {
  width: min(1240px, calc(100vw - 28px));
  max-width: 1240px;
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  overflow: auto;
  overscroll-behavior: contain;
}
#bcci-video-player-modal .bcci-player-screen {
  display: block !important;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000 !important;
}
#bcci-video-player-modal #bcci-shaka-player {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #000 !important;
}
#bcci-video-player-modal .bcci-player-page-content,
#bcci-video-player-modal .bcci-player-main {
  min-width: 0;
}
.topbar {
  z-index: 7005 !important;
}
body.bcci-player-open .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 7005 !important;
}
@media (max-width: 760px) {
  #bcci-video-player-modal:not([hidden]) {
    padding: 8px;
    align-items: start;
  }
  #bcci-video-player-modal .bcci-video-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px auto;
  }
  #bcci-video-player-modal .bcci-player-page-content {
    grid-template-columns: minmax(0, 1fr);
  }
  #bcci-video-player-modal .bcci-up-next-panel {
    border-left: 0;
    border-top: 1px solid #1c2d56;
  }
  #bcci-video-player-modal .bcci-video-player-head {
    position: sticky;
    top: 0;
  }
}

/* HOTFIX: keep the actual player panel above its dim/blur backdrop on desktop Chrome. */
#bcci-video-player-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9990 !important;
  isolation: isolate !important;
  display: grid !important;
  place-items: center !important;
  padding: 16px !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#bcci-video-player-modal:not([hidden]) > .bcci-video-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: rgba(0, 5, 14, 0.82) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
}
#bcci-video-player-modal:not([hidden]) > .bcci-video-panel {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: min(1240px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  margin: 0 auto !important;
  overflow: auto !important;
  background: #06143e !important;
  color: #fff !important;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.8) !important;
}
#bcci-video-player-modal .bcci-player-page-content,
#bcci-video-player-modal .bcci-player-main,
#bcci-video-player-modal .bcci-player-screen {
  display: block;
  visibility: visible;
  opacity: 1;
}
#bcci-video-player-modal .bcci-player-page-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.8fr) !important;
}
#bcci-video-player-modal .bcci-player-screen {
  display: block !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000 !important;
}
#bcci-video-player-modal #bcci-shaka-player {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 180px;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #000 !important;
}
.topbar,
body.bcci-player-open .topbar {
  z-index: 10000 !important;
}
@media (max-width: 760px) {
  #bcci-video-player-modal:not([hidden]) {
    padding: 8px !important;
    place-items: start center !important;
  }
  #bcci-video-player-modal:not([hidden]) > .bcci-video-panel {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }
  #bcci-video-player-modal .bcci-player-page-content {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Quality control redesign: visible over the video, desktop + mobile. */
#bcci-video-player-modal .bcci-player-screen {
  position: relative !important;
  isolation: isolate;
}
#bcci-video-player-modal .bcci-player-quality-control {
  position: absolute !important;
  z-index: 30 !important;
  right: 16px !important;
  bottom: 58px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  pointer-events: none;
}
#bcci-video-player-modal .bcci-player-quality-control > * {
  pointer-events: auto;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-quality-head-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-width: 100px !important;
  min-height: 42px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(5, 15, 34, 0.92) !important;
  color: #fff !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(14px);
  font: 800 12px/1.1 var(--body, Arial, sans-serif) !important;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-quality-head-button::before {
  content: "⚙";
  color: #ff9a56;
  font-size: 17px;
  line-height: 1;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-quality-head-button:hover,
#bcci-video-player-modal
  .bcci-player-quality-control
  .bcci-quality-head-button[aria-expanded="true"] {
  border-color: #ff9254 !important;
  background: rgba(20, 48, 91, 0.97) !important;
  transform: translateY(-1px);
}
#bcci-video-player-modal .bcci-quality-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 145, 79, 0.18);
  color: #ffc18e;
  font-size: 11px;
  font-weight: 900;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu {
  position: absolute !important;
  right: 0 !important;
  bottom: 50px !important;
  z-index: 35 !important;
  width: min(270px, calc(100vw - 48px)) !important;
  max-height: min(55dvh, 340px) !important;
  overflow: auto !important;
  padding: 15px !important;
  border: 1px solid rgba(126, 173, 239, 0.38) !important;
  border-radius: 15px !important;
  background: rgba(5, 16, 39, 0.98) !important;
  color: #f6f8ff !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(18px);
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu label {
  display: grid;
  gap: 9px;
  color: #dce8ff;
  font-size: 12px;
  font-weight: 800;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu select {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #344e7c !important;
  border-radius: 10px !important;
  background: #101f40 !important;
  color: #fff !important;
  font-size: 14px !important;
}
#bcci-video-player-modal .bcci-player-quality-control #bcci-player-error {
  display: block;
  margin-top: 10px;
  color: #b8c8e6;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  #bcci-video-player-modal .bcci-player-quality-control {
    right: 9px !important;
    bottom: 50px !important;
  }
  #bcci-video-player-modal .bcci-player-quality-control .bcci-quality-head-button {
    min-width: 88px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
  }
  #bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu {
    width: min(250px, calc(100vw - 28px)) !important;
    max-height: 42dvh !important;
    padding: 12px !important;
  }
}

/* Final fix: keep the quality menu as a compact panel and hide the native select face. */
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu:not([hidden]) {
  display: block !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 16px !important;
  background: #07142f !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu label {
  display: grid !important;
  width: 100% !important;
  gap: 10px !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu label::before {
  content: "PLAYBACK QUALITY";
  display: block;
  color: #ffad77;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
#bcci-video-player-modal #bcci-playback-quality {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 36px 0 12px !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-quality-current {
  display: none !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-quality-head-button {
  min-width: 88px !important;
}
@media (max-width: 760px) {
  #bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu:not([hidden]) {
    padding: 12px !important;
  }
}

/* Quality selector placement correction from desktop screenshot. */
#bcci-video-player-modal .bcci-player-quality-control {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  width: max-content !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-quality-head-button {
  position: relative !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 94px !important;
  max-width: 140px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  white-space: nowrap !important;
  border-radius: 10px !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu:not([hidden]) {
  position: absolute !important;
  left: auto !important;
  right: 0 !important;
  bottom: calc(100% + 9px) !important;
  top: auto !important;
  transform: none !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: min(260px, calc(100vw - 32px)) !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 13px !important;
  border-radius: 13px !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu label {
  gap: 8px !important;
  font-size: 11px !important;
}
#bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu label::before {
  content: "SELECT RESOLUTION" !important;
  margin-bottom: 1px;
}
#bcci-video-player-modal #bcci-playback-quality {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
}
#bcci-video-player-modal .bcci-player-quality-control #bcci-player-error {
  max-width: 100% !important;
  margin-top: 8px !important;
}
@media (max-width: 760px) {
  #bcci-video-player-modal .bcci-player-quality-control {
    right: 8px !important;
    bottom: 8px !important;
  }
  #bcci-video-player-modal .bcci-player-quality-control .bcci-player-settings-menu:not([hidden]) {
    width: 205px !important;
    min-width: 205px !important;
  }
}

/* Plyr player skin adapted to the Tilak Varma Video Hub. */
#bcci-video-player-modal .bcci-player-screen .plyr {
  --plyr-color-main: #ff8050;
  --plyr-video-background: #000;
  --plyr-menu-background: #07142f;
  --plyr-menu-color: #f7f9ff;
  --plyr-tooltip-background: #07142f;
  --plyr-tooltip-color: #fff;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  background: #000 !important;
  border-radius: 0 !important;
}
#bcci-video-player-modal .bcci-player-screen .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  background: #000 !important;
}
#bcci-video-player-modal .bcci-player-screen .plyr video {
  width: 100% !important;
  height: 100% !important;
  max-height: calc(100dvh - 190px) !important;
  object-fit: contain !important;
  background: #000 !important;
}
#bcci-video-player-modal .bcci-player-screen .plyr--video .plyr__controls {
  padding: 38px 12px 10px !important;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86)) !important;
}
#bcci-video-player-modal .bcci-player-screen .plyr__control {
  border-radius: 8px;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
#bcci-video-player-modal .bcci-player-screen .plyr__control:hover,
#bcci-video-player-modal .bcci-player-screen .plyr__control[aria-pressed="true"] {
  background: #ff8050 !important;
  color: #07142f !important;
}
#bcci-video-player-modal .bcci-player-screen .plyr__progress input[type="range"],
#bcci-video-player-modal .bcci-player-screen .plyr__volume input[type="range"] {
  color: #ff8050 !important;
}
#bcci-video-player-modal .bcci-player-screen .plyr__time {
  color: #fff !important;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#bcci-video-player-modal .bcci-player-screen .plyr__control--overlaid {
  width: 68px;
  height: 68px;
  background: rgba(255, 128, 80, 0.96) !important;
  color: #07142f !important;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45);
}
#bcci-video-player-modal .bcci-player-screen .plyr__control--overlaid:hover {
  transform: scale(1.06);
}
@media (max-width: 760px) {
  #bcci-video-player-modal .bcci-player-screen .plyr video {
    max-height: calc(100dvh - 250px) !important;
  }
  #bcci-video-player-modal .bcci-player-screen .plyr--video .plyr__controls {
    padding: 28px 7px 7px !important;
  }
  #bcci-video-player-modal .bcci-player-screen .plyr__time {
    font-size: 10px;
  }
}

/* Keep quality controls below the video, never floating over the playing picture. */
#bcci-video-player-modal .bcci-player-title-block .bcci-player-quality-control {
  position: relative !important;
  inset: auto !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  gap: 8px !important;
}
#bcci-video-player-modal .bcci-player-title-block .bcci-quality-head-button {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 94px !important;
  max-width: 140px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
}
#bcci-video-player-modal .bcci-player-title-block .bcci-player-settings-menu:not([hidden]) {
  position: absolute !important;
  top: auto !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  left: auto !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: min(260px, calc(100vw - 32px)) !important;
  transform: none !important;
}
#bcci-video-player-modal .bcci-player-title-block .bcci-player-settings-menu:not([hidden]) label {
  display: grid !important;
  gap: 8px !important;
}
@media (max-width: 760px) {
  #bcci-video-player-modal .bcci-player-title-block .bcci-player-quality-control {
    margin-bottom: 10px !important;
  }
  #bcci-video-player-modal .bcci-player-title-block .bcci-player-settings-menu:not([hidden]) {
    width: 205px !important;
    min-width: 205px !important;
  }
}

/* THE 72 CLUB — final cohesive visual pass; presentation only, existing features/data untouched. */
:root {
  --ui-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  --ui-glow: rgba(117, 227, 255, 0.12);
}
body {
  text-rendering: optimizeLegibility;
}
:where(
  .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,
  .featured-match-card,
  .upcoming-matches-panel
) {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.22s var(--ui-ease),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
:where(
  .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,
  .featured-match-card,
  .upcoming-matches-panel
):focus-within {
  border-color: rgba(117, 227, 255, 0.42);
  box-shadow: 0 0 0 3px var(--ui-glow);
}
:where(button, .button, .outline, .calculate-button, .menu-toggle) {
  transition:
    transform 0.18s var(--ui-ease),
    filter 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
:where(button, .button, .outline, .calculate-button):focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan, #75e3ff);
  outline-offset: 3px;
}
:where(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
}
:where(img, video, iframe) {
  max-width: 100%;
}
:where(
  .stat-card,
  .home-mini-stat,
  .home-format-card,
  .record-card,
  .milestone-card,
  .analytics-card,
  .match-card,
  .snapshot-card,
  .tilak-news-card,
  .bcci-video-card
):hover {
  border-color: rgba(117, 227, 255, 0.28);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.22);
}
:where(.button, .primary, .calculate-button):hover {
  filter: brightness(1.07);
}
:where(.section, section[id]) {
  scroll-margin-top: 90px;
}
::selection {
  background: rgba(255, 106, 53, 0.32);
  color: #fff;
}
@media (max-width: 800px) {
  .topbar {
    gap: 10px;
  }
  nav a {
    min-height: 40px;
  }
  :where(.match-card, .bcci-video-card, .tilak-news-card) {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  .section {
    scroll-margin-top: 82px;
  }
  :where(button, .button, .outline, .calculate-button) {
    max-width: 100%;
  }
  :where(.match-card, .bcci-video-card, .tilak-news-card) {
    border-radius: 14px;
  }
}
@media (hover: none) {
  :where(
    .stat-card,
    .home-mini-stat,
    .home-format-card,
    .record-card,
    .milestone-card,
    .analytics-card,
    .match-card,
    .snapshot-card,
    .tilak-news-card,
    .bcci-video-card
  ):hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Series-wise photo albums and same-page glowing lightbox */
.tv-album-grid,
.tv-album-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
}
.tv-album-card {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
  color: #eef6ff;
  background: linear-gradient(145deg, rgba(17, 34, 56, 0.98), rgba(7, 15, 28, 0.98));
  border: 1px solid rgba(124, 229, 242, 0.18);
  border-radius: 17px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.tv-album-card:hover,
.tv-album-card:focus-visible {
  transform: translateY(-4px);
  border-color: #7ce5f2;
  box-shadow:
    0 0 0 1px rgba(124, 229, 242, 0.18),
    0 0 26px rgba(45, 205, 255, 0.17),
    0 15px 36px rgba(0, 0, 0, 0.35);
  outline: none;
}
.tv-album-cover {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0b1728;
}
.tv-album-cover > img,
.tv-album-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tv-album-card:hover .tv-album-cover > img {
  transform: scale(1.045);
}
.tv-album-count {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border: 1px solid #7ce5f266;
  border-radius: 999px;
  background: #06101ddf;
  color: #9af3ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.tv-album-open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: linear-gradient(120deg, #ff7a45, #f04c39);
  color: #160b0a;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 0 18px #ff6a3544;
}
.tv-album-info {
  display: grid;
  gap: 5px;
  padding: 12px;
}
.tv-album-info strong {
  font-size: clamp(12px, 1.25vw, 16px);
  line-height: 1.35;
}
.tv-album-info small {
  color: #98abc3;
  font-size: 10px;
  line-height: 1.5;
}
.tv-album-back-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #7ce5f233;
  border-radius: 15px;
  background: linear-gradient(120deg, #0d2035, #0a1423);
}
.tv-album-back {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid #7ce5f255;
  border-radius: 10px;
  background: #0b1b2d;
  color: #a5f4ff;
  cursor: pointer;
}
.tv-album-back-row h3 {
  margin: 3px 0;
  font-size: clamp(20px, 3vw, 30px);
}
.tv-album-back-row p {
  margin: 0;
  color: #9badc3;
  font-size: 12px;
}
.tv-album-photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  padding: 0;
  border: 1px solid #7ce5f222;
  border-radius: 12px;
  background: #0b1728;
  cursor: zoom-in;
}
.tv-album-photo:hover,
.tv-album-photo:focus-visible {
  border-color: #7ce5f2;
  box-shadow:
    0 0 0 1px #7ce5f255,
    0 0 22px #2dcfff26;
  outline: none;
}
.tv-album-photo:hover img {
  transform: scale(1.05);
}
.tv-photo-open-icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #e8fbff;
  background: #07101dcc;
  border: 1px solid #7ce5f266;
  box-shadow: 0 0 14px #2dcfff2b;
}
.tv-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 76px 72px 86px;
  background: rgba(2, 6, 14, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tv-photo-lightbox.is-open {
  display: flex;
  animation: tv-lightbox-in 0.18s ease both;
}
.tv-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 0;
  min-height: 0;
}
.tv-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 40px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px #7ce5f233,
    0 0 42px #2dcfff24,
    0 18px 70px #000a;
}
.tv-lightbox-figure figcaption {
  max-width: 90%;
  color: #f2f7ff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
.tv-lightbox-close,
.tv-lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #7ce5f277;
  background: #0c1b2ddd;
  color: #a5f4ff;
  cursor: pointer;
  box-shadow: 0 0 20px #2dcfff22;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.tv-lightbox-close {
  top: 20px;
  right: 22px;
  font-size: 32px;
  line-height: 1;
}
.tv-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 37px;
  line-height: 1;
}
.tv-lightbox-prev {
  left: 18px;
}
.tv-lightbox-next {
  right: 18px;
}
.tv-lightbox-close:hover,
.tv-lightbox-nav:hover {
  background: #16334b;
  box-shadow:
    0 0 28px #2dcfff55,
    0 0 12px #ff6a3533;
}
.tv-lightbox-tools {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  color: #a7bad0;
  font-size: 12px;
}
.tv-lightbox-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #ff8a5c88;
  border-radius: 12px;
  background: linear-gradient(120deg, #ff7b45, #ee4d37);
  color: #160a09;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 0 24px #ff6a3533;
}
.tv-lightbox-download:hover {
  box-shadow: 0 0 30px #ff6a3577;
}
.tv-lightbox-lock {
  overflow: hidden;
}
.album-manager {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(124, 229, 242, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 31, 51, 0.9), rgba(8, 15, 27, 0.9));
}
.album-create-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.album-create-row input {
  flex: 1;
  min-width: 0;
}
#album-admin-status:empty {
  display: none;
}
@keyframes tv-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 640px) {
  .tv-album-grid,
  .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .tv-album-card {
    border-radius: 10px;
  }
  .tv-album-info {
    padding: 8px;
  }
  .tv-album-info small {
    display: none;
  }
  .tv-album-count {
    left: 4px;
    top: 4px;
    padding: 4px 5px;
    font-size: 8px;
  }
  .tv-album-open {
    right: 4px;
    bottom: 4px;
    padding: 5px 6px;
    font-size: 8px;
  }
  .tv-album-photo {
    border-radius: 6px;
  }
  .tv-album-back-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .tv-photo-lightbox {
    padding: 70px 8px 94px;
  }
  .tv-lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .tv-lightbox-nav {
    width: 38px;
    height: 44px;
    border-radius: 12px;
    font-size: 30px;
    background: #07101dcf;
  }
  .tv-lightbox-prev {
    left: 6px;
  }
  .tv-lightbox-next {
    right: 6px;
  }
  .tv-lightbox-figure img {
    max-width: 100%;
    max-height: calc(100% - 34px);
  }
  .tv-lightbox-tools {
    bottom: 12px;
    gap: 9px;
  }
  .tv-lightbox-download {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .album-create-row {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tv-album-card,
  .tv-album-cover > img,
  .tv-album-photo img,
  .tv-lightbox-close,
  .tv-lightbox-nav {
    transition: none;
  }
  .tv-photo-lightbox.is-open {
    animation: none;
  }
}

/* Gallery layout repair: balanced cards, consistent cover crops, desktop + mobile */
#photos .cricinfo-gallery {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 2vw, 28px);
  overflow: hidden;
}
#cricinfo-photo-grid {
  width: 100%;
  min-width: 0;
}
#cricinfo-photo-grid .tv-album-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.5vw, 22px) !important;
  width: 100%;
  align-items: stretch;
}
#cricinfo-photo-grid .tv-album-card {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(150deg, #12243a, #091321 78%);
  border: 1px solid rgba(124, 229, 242, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  text-align: left;
}
#cricinfo-photo-grid .tv-album-cover {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4/3 !important;
  min-height: 0;
  overflow: hidden;
  background: #101c2c;
}
#cricinfo-photo-grid .tv-album-cover > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 28%;
  display: block;
}
#cricinfo-photo-grid .tv-album-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px !important;
  min-height: 82px;
}
#cricinfo-photo-grid .tv-album-info strong {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#cricinfo-photo-grid .tv-album-info small {
  display: block !important;
  color: #9fb1c8;
  font-size: 12px;
  line-height: 1.5;
}
#cricinfo-photo-grid .tv-album-count {
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  font-size: 10px;
}
#cricinfo-photo-grid .tv-album-open {
  right: 10px;
  bottom: 10px;
  padding: 8px 11px;
  font-size: 10px;
  white-space: nowrap;
}
#cricinfo-photo-grid .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(6px, 1vw, 14px) !important;
  width: 100%;
}
#cricinfo-photo-grid .tv-album-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  min-width: 0;
  overflow: hidden;
}
#cricinfo-photo-grid .tv-album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#cricinfo-photo-grid .tv-album-back-row {
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1100px) {
  #cricinfo-photo-grid .tv-album-card {
    max-width: none;
  }
  #cricinfo-photo-grid .tv-album-cover {
    aspect-ratio: 4/3 !important;
  }
}
@media (max-width: 760px) {
  #photos.section {
    padding: 54px 14px;
  }
  #photos .section-heading {
    gap: 12px;
  }
  #photos .cricinfo-gallery {
    padding: 13px;
    border-radius: 16px;
  }
  #photos .gallery-heading {
    gap: 10px;
    align-items: flex-start;
  }
  #photos .gallery-heading h3 {
    font-size: clamp(20px, 6vw, 29px);
    line-height: 1.1;
  }
  #cricinfo-gallery-updated {
    font-size: 9px;
    max-width: 105px;
    text-align: right;
    line-height: 1.5;
  }
  #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  #cricinfo-photo-grid .tv-album-card {
    border-radius: 11px;
  }
  #cricinfo-photo-grid .tv-album-cover {
    aspect-ratio: 3/4 !important;
  }
  #cricinfo-photo-grid .tv-album-info {
    padding: 8px !important;
    min-height: 0;
    gap: 4px;
  }
  #cricinfo-photo-grid .tv-album-info strong {
    font-size: 12px;
    line-height: 1.25;
  }
  #cricinfo-photo-grid .tv-album-info small {
    display: none !important;
  }
  #cricinfo-photo-grid .tv-album-count {
    left: 4px;
    top: 4px;
    padding: 4px 5px;
    font-size: 7px;
    letter-spacing: 0;
  }
  #cricinfo-photo-grid .tv-album-open {
    left: 4px;
    right: 4px;
    bottom: 5px;
    text-align: center;
    padding: 6px 3px;
    font-size: 7px;
    white-space: normal;
  }
  #cricinfo-photo-grid .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  #cricinfo-photo-grid .tv-album-photo {
    border-radius: 5px;
  }
  #cricinfo-photo-grid .tv-album-back-row {
    padding: 12px;
    gap: 9px;
  }
  #cricinfo-photo-grid .tv-album-back {
    min-height: 40px;
  }
}
@media (max-width: 360px) {
  #cricinfo-photo-grid .tv-album-grid {
    gap: 5px !important;
  }
  #cricinfo-photo-grid .tv-album-info {
    padding: 6px !important;
  }
  #cricinfo-photo-grid .tv-album-info strong {
    font-size: 11px;
  }
  #cricinfo-photo-grid .tv-album-open {
    font-size: 6px;
  }
}

/* PHOTO SECTION — premium responsive gallery refresh */
#photos.tilak-photos-section {
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(42px, 5vw, 76px) clamp(14px, 4vw, 56px) !important;
  scroll-margin-top: 90px;
}
#photos.tilak-photos-section > .section-heading {
  max-width: 1440px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
#photos.tilak-photos-section > .section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
#photos.tilak-photos-section > .section-heading > p {
  max-width: 410px;
  margin: 0;
  color: #a6b6ca;
  font-size: 14px;
  line-height: 1.7;
}
#photos .cricinfo-gallery {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: clamp(16px, 2.2vw, 30px) !important;
  overflow: hidden;
  border: 1px solid rgba(139, 180, 215, 0.19);
  border-radius: clamp(16px, 2vw, 26px);
  background:
    radial-gradient(ellipse at 4% 0%, rgba(39, 112, 154, 0.13), transparent 36%),
    radial-gradient(ellipse at 100% 100%, rgba(245, 100, 63, 0.08), transparent 35%),
    linear-gradient(145deg, rgba(13, 25, 42, 0.98), rgba(6, 14, 26, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
#photos .cricinfo-gallery:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #54d9ed, #7c91ff 48%, #ff784e);
  opacity: 0.85;
  pointer-events: none;
}
#photos .gallery-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(146, 174, 206, 0.17);
}
#photos .gallery-heading .eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  color: #75e6f5;
}
#photos .gallery-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
#photos .gallery-heading h3 em {
  font-style: normal;
  color: #ff8058;
}
#cricinfo-gallery-updated {
  flex: 0 0 auto;
  color: #91a7c1;
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}
#cricinfo-photo-grid {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
#cricinfo-photo-grid .tv-album-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.5vw, 22px) !important;
  align-items: stretch;
  width: 100%;
  margin: 0;
}
#cricinfo-photo-grid .tv-album-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(119, 210, 235, 0.18) !important;
  border-radius: 17px !important;
  background: linear-gradient(155deg, #13263d, #0a1525 75%) !important;
  color: #f1f6ff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-align: left;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
#cricinfo-photo-grid .tv-album-card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 227, 246, 0.75) !important;
  box-shadow:
    0 0 0 1px rgba(90, 220, 244, 0.12),
    0 0 28px rgba(41, 190, 232, 0.12),
    0 20px 36px rgba(0, 0, 0, 0.3);
}
#cricinfo-photo-grid .tv-album-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3 !important;
  min-height: 0;
  overflow: hidden;
  background: #101e31;
}
#cricinfo-photo-grid .tv-album-cover:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(3, 9, 17, 0.5));
  pointer-events: none;
}
#cricinfo-photo-grid .tv-album-cover > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 25%;
  transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.2, 1);
}
#cricinfo-photo-grid .tv-album-card:hover .tv-album-cover > img {
  transform: scale(1.055);
}
#cricinfo-photo-grid .tv-album-count {
  z-index: 1;
  top: 11px;
  left: 11px;
  padding: 7px 10px;
  border: 1px solid rgba(145, 231, 249, 0.25);
  border-radius: 999px;
  background: rgba(4, 13, 25, 0.82);
  color: #a8f2ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}
#cricinfo-photo-grid .tv-album-open {
  z-index: 1;
  right: 11px;
  bottom: 11px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(120deg, #ff8b59, #ff6245);
  color: #1d0b08;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.035em;
  box-shadow: 0 5px 18px rgba(255, 97, 65, 0.24);
}
#cricinfo-photo-grid .tv-album-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 16px !important;
  min-height: 88px;
}
#cricinfo-photo-grid .tv-album-info strong {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#cricinfo-photo-grid .tv-album-info small {
  display: block !important;
  color: #9eb0c7;
  font-size: 12px;
  line-height: 1.5;
}
#cricinfo-photo-grid .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(6px, 1vw, 14px) !important;
  width: 100%;
  margin: 0;
}
#cricinfo-photo-grid .tv-album-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1/1 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(125, 208, 233, 0.18) !important;
  border-radius: 12px !important;
  background: #0d1b2b;
}
#cricinfo-photo-grid .tv-album-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#cricinfo-photo-grid .tv-album-photo:hover img {
  transform: scale(1.055);
}
#cricinfo-photo-grid .tv-album-back-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(123, 222, 240, 0.18);
  border-radius: 15px;
  background: linear-gradient(120deg, #10253b, #0a1627);
}
#cricinfo-photo-grid .tv-album-back {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(124, 229, 242, 0.35);
  border-radius: 10px;
  background: #0c1b2d;
  color: #a5f4ff;
  font-weight: 800;
  cursor: pointer;
}
#photos .gallery-attribution {
  margin: 18px 0 0;
  color: #7f93ab;
  font-size: 9px;
  letter-spacing: 0.11em;
  line-height: 1.6;
}
#cricinfo-photo-grid .bcci-photo-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px dashed rgba(124, 229, 242, 0.25);
  border-radius: 14px;
  background: rgba(9, 22, 37, 0.55);
}
@media (min-width: 1200px) {
  #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #cricinfo-photo-grid .tv-album-cover {
    aspect-ratio: 1.28/1 !important;
  }
}
@media (max-width: 760px) {
  #photos.tilak-photos-section {
    padding: 38px 12px !important;
    scroll-margin-top: 72px;
  }
  #photos.tilak-photos-section > .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }
  #photos.tilak-photos-section > .section-heading h2 {
    font-size: clamp(29px, 8vw, 39px);
  }
  #photos.tilak-photos-section > .section-heading > p {
    font-size: 12px;
    line-height: 1.6;
  }
  #photos .cricinfo-gallery {
    padding: 14px !important;
    border-radius: 17px;
  }
  #photos .gallery-heading {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  #photos .gallery-heading h3 {
    font-size: clamp(21px, 6vw, 29px);
    line-height: 1.08;
  }
  #photos .gallery-heading .eyebrow {
    font-size: 9px;
  }
  #cricinfo-gallery-updated {
    max-width: 112px;
    font-size: 9px;
  }
  #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #cricinfo-photo-grid .tv-album-card {
    border-radius: 12px !important;
  }
  #cricinfo-photo-grid .tv-album-cover {
    aspect-ratio: 4/3 !important;
  }
  #cricinfo-photo-grid .tv-album-info {
    min-height: 0;
    padding: 10px !important;
    gap: 4px;
  }
  #cricinfo-photo-grid .tv-album-info strong {
    font-size: 13px;
    line-height: 1.3;
  }
  #cricinfo-photo-grid .tv-album-info small {
    display: block !important;
    font-size: 10px;
    line-height: 1.4;
  }
  #cricinfo-photo-grid .tv-album-count {
    left: 6px;
    top: 6px;
    padding: 5px 6px;
    font-size: 7px;
  }
  #cricinfo-photo-grid .tv-album-open {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 7px 5px;
    text-align: center;
    font-size: 8px;
  }
  #cricinfo-photo-grid .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  #cricinfo-photo-grid .tv-album-photo {
    border-radius: 6px !important;
  }
  #cricinfo-photo-grid .tv-album-back-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  #photos .gallery-attribution {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 380px) {
  #photos .cricinfo-gallery {
    padding: 10px !important;
  }
  #cricinfo-photo-grid .tv-album-grid {
    gap: 7px !important;
  }
  #cricinfo-photo-grid .tv-album-info {
    padding: 8px !important;
  }
  #cricinfo-photo-grid .tv-album-info small {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #cricinfo-photo-grid .tv-album-card,
  #cricinfo-photo-grid .tv-album-cover > img,
  #cricinfo-photo-grid .tv-album-photo img {
    transition: none !important;
  }
}

/* Album card width hotfix: override inherited compact button sizing */
#photos #cricinfo-photo-grid .tv-album-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
}
#photos #cricinfo-photo-grid .tv-album-grid > .tv-album-card {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  grid-column: auto !important;
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-cover {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 4/3 !important;
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-info {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-info strong {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
@media (min-width: 761px) {
  #photos #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  #photos #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-card .tv-album-info strong {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}
@media (max-width: 380px) {
  #photos #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
}

/* Final album-card polish: compact natural height and refined Explore Photos action */
#photos #cricinfo-photo-grid .tv-album-grid {
  align-items: start !important;
  grid-auto-rows: max-content !important;
}
#photos #cricinfo-photo-grid .tv-album-grid > .tv-album-card {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  justify-content: flex-start !important;
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-cover {
  aspect-ratio: 4/3 !important;
  flex: none !important;
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-info {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 15px 16px 17px !important;
  background: linear-gradient(180deg, rgba(15, 29, 47, 0.96), rgba(8, 18, 31, 0.98));
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-info strong {
  font-size: clamp(15px, 1.35vw, 19px) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
}
#photos #cricinfo-photo-grid .tv-album-card .tv-album-info small {
  font-size: 12px !important;
  color: #9eafc5 !important;
}
#photos #cricinfo-photo-grid .tv-album-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 10px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #ff9467, #ff6948) !important;
  color: #1b0d09 !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: 0.075em !important;
  box-shadow: 0 5px 20px rgba(255, 105, 72, 0.28) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}
#photos #cricinfo-photo-grid .tv-album-card:hover .tv-album-open {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 105, 72, 0.4) !important;
}
@media (max-width: 760px) {
  #photos #cricinfo-photo-grid .tv-album-card .tv-album-info {
    padding: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-open {
    min-height: 32px;
    padding: 7px 6px !important;
    font-size: 8px !important;
    letter-spacing: 0.035em !important;
  }
}

/* Mobile-first album/folder gallery: readable cards, inline folder contents */
#photos #cricinfo-photo-grid {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
#photos #cricinfo-photo-grid .tv-album-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}
#photos #cricinfo-photo-grid .tv-album-card {
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}
#photos #cricinfo-photo-grid .tv-album-cover {
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
}
#photos #cricinfo-photo-grid .tv-album-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#photos #cricinfo-photo-grid .tv-album-info {
  padding: 14px !important;
  gap: 6px !important;
}
#photos #cricinfo-photo-grid .tv-album-info strong {
  font-size: clamp(14px, 1.4vw, 18px) !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}
#photos #cricinfo-photo-grid .tv-album-info small {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
#photos #cricinfo-photo-grid .tv-album-open {
  max-width: calc(100% - 16px) !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.25 !important;
}
#photos #cricinfo-photo-grid .tv-album-back-row {
  min-width: 0;
  box-sizing: border-box;
}
#photos #cricinfo-photo-grid .tv-album-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
@media (max-width: 760px) {
  #photos.tilak-photos-section {
    padding: 32px 12px !important;
  }
  #photos .cricinfo-gallery {
    padding: 13px !important;
    border-radius: 16px !important;
  }
  #photos .gallery-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-bottom: 13px !important;
    margin-bottom: 14px !important;
  }
  #photos .gallery-heading h3 {
    font-size: clamp(22px, 6.4vw, 30px) !important;
    line-height: 1.08 !important;
  }
  #cricinfo-gallery-updated {
    max-width: none !important;
    text-align: left !important;
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-card {
    border-radius: 12px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-cover {
    aspect-ratio: 4/3 !important;
  }
  #photos #cricinfo-photo-grid .tv-album-count {
    top: 6px !important;
    left: 6px !important;
    padding: 5px 7px !important;
    font-size: 8px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-open {
    left: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
    min-height: 32px !important;
    padding: 7px 5px !important;
    font-size: 8px !important;
    letter-spacing: 0.025em !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info {
    padding: 10px !important;
    gap: 4px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info strong {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info small {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
  }
  #photos #cricinfo-photo-grid .tv-album-back-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-back {
    width: 100% !important;
    min-height: 42px !important;
    text-align: left;
  }
  #photos #cricinfo-photo-grid .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-photo {
    aspect-ratio: 1/1 !important;
    border-radius: 6px !important;
  }
}
@media (max-width: 380px) {
  #photos #cricinfo-photo-grid .tv-album-grid {
    gap: 7px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info {
    padding: 8px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info strong {
    font-size: 12px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info small {
    font-size: 9px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-open {
    font-size: 7px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-photo-grid {
    gap: 4px !important;
  }
}

/* Album detail view: compact back row + balanced 3-column photo gallery */
#photos #cricinfo-photo-grid .tv-album-back-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(146, 174, 206, 0.17) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#photos #cricinfo-photo-grid .tv-album-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
#photos #cricinfo-photo-grid .tv-album-heading {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  min-width: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-heading h3 {
  margin: 0 !important;
  font-size: clamp(18px, 2vw, 25px) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}
#photos #cricinfo-photo-grid .tv-album-heading p {
  margin: 0 !important;
  color: #9eb1c8 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}
#photos #cricinfo-photo-grid .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: clamp(7px, 1vw, 13px) !important;
  width: 100% !important;
  margin: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-photo {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 1/1 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 11px !important;
}
#photos #cricinfo-photo-grid .tv-album-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#photos #cricinfo-photo-grid .tv-album-photo .tv-photo-open-icon {
  right: 7px !important;
  bottom: 7px !important;
  width: 27px !important;
  height: 27px !important;
}
@media (max-width: 760px) {
  #photos #cricinfo-photo-grid .tv-album-back-row {
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    margin-bottom: 12px !important;
    padding-bottom: 11px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-back {
    min-height: 32px !important;
    padding: 7px 9px !important;
    font-size: 11px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-heading {
    gap: 6px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-heading h3 {
    font-size: clamp(16px, 4.8vw, 21px) !important;
  }
  #photos #cricinfo-photo-grid .tv-album-heading p {
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-photo {
    border-radius: 6px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-photo .tv-photo-open-icon {
    right: 4px !important;
    bottom: 4px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 360px) {
  #photos #cricinfo-photo-grid .tv-album-back-row {
    gap: 7px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-back {
    padding: 6px 7px !important;
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-photo-grid {
    gap: 4px !important;
  }
}

/* Definitive album-detail layout: header above a full-width 3x3 photo grid */
#photos #cricinfo-photo-grid .tv-album-detail {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  grid-column: 1/-1 !important;
  align-self: stretch !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-back-row {
  display: flex !important;
  position: relative !important;
  float: none !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 0 16px !important;
  padding: 0 0 13px !important;
  gap: 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(146, 174, 206, 0.17) !important;
  background: transparent !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading h3 {
  margin: 0 !important;
  font-size: clamp(18px, 2vw, 25px) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading p {
  margin: 0 !important;
  font-size: 11px !important;
  color: #9eb1c8 !important;
  white-space: nowrap !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-back {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 7px 10px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo-grid {
  display: grid !important;
  position: relative !important;
  float: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: clamp(6px, 1vw, 12px) !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1/1 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
@media (max-width: 760px) {
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-back-row {
    gap: 8px !important;
    margin-bottom: 11px !important;
    padding-bottom: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-back {
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading {
    gap: 5px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading h3 {
    font-size: clamp(16px, 4.6vw, 21px) !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading p {
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo {
    border-radius: 6px !important;
  }
}

/* BCCI-inspired photo gallery redesign: light editorial canvas, wide image cards */
#photos.tilak-photos-section {
  background: #f2f4fb !important;
  color: #071b52 !important;
  padding: clamp(30px, 4vw, 58px) clamp(14px, 3vw, 48px) !important;
}
#photos.tilak-photos-section > .section-heading {
  color: #071b52 !important;
  max-width: 1500px;
  margin: 0 auto 24px !important;
}
#photos.tilak-photos-section > .section-heading h2 {
  color: #071b52 !important;
}
#photos.tilak-photos-section > .section-heading h2 span,
#photos.tilak-photos-section > .section-heading h2 em {
  color: #ff754d !important;
}
#photos.tilak-photos-section > .section-heading > p {
  color: #56627c !important;
}
#photos .cricinfo-gallery {
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: clamp(16px, 2vw, 28px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f2f4fb !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#photos .cricinfo-gallery:before {
  display: none !important;
}
#photos .gallery-heading {
  align-items: center !important;
  padding: 0 0 18px !important;
  margin: 0 0 22px !important;
  border-bottom: 1px solid #dce2ef !important;
}
#photos .gallery-heading .eyebrow {
  color: #2452a1 !important;
  font-size: 11px !important;
  letter-spacing: 0.13em !important;
}
#photos .gallery-heading h3 {
  color: #071b52 !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  letter-spacing: -0.035em !important;
}
#photos .gallery-heading h3 em {
  color: #ff754d !important;
}
#cricinfo-gallery-updated {
  color: #69738a !important;
}
#photos #cricinfo-photo-grid {
  width: 100% !important;
  min-width: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.2vw, 20px) !important;
  align-items: start !important;
  width: 100% !important;
}
#photos #cricinfo-photo-grid .tv-album-card {
  display: flex !important;
  flex-direction: column !important;
  justify-self: stretch !important;
  align-self: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dce2ed !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #071b52 !important;
  box-shadow: 0 2px 8px rgba(20, 42, 86, 0.06) !important;
  text-align: left !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}
#photos #cricinfo-photo-grid .tv-album-card:hover {
  transform: translateY(-3px) !important;
  border-color: #c3cde1 !important;
  box-shadow: 0 10px 24px rgba(20, 42, 86, 0.13) !important;
}
#photos #cricinfo-photo-grid .tv-album-cover {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16/10 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #dce4f1 !important;
}
#photos #cricinfo-photo-grid .tv-album-cover > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 28% !important;
  transition: transform 0.35s ease !important;
}
#photos #cricinfo-photo-grid .tv-album-card:hover .tv-album-cover > img {
  transform: scale(1.035) !important;
}
#photos #cricinfo-photo-grid .tv-album-count {
  top: auto !important;
  left: auto !important;
  right: 9px !important;
  bottom: 9px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: rgba(5, 15, 38, 0.84) !important;
  color: #fff !important;
  font-size: 10px !important;
  letter-spacing: 0.02em !important;
  backdrop-filter: blur(8px) !important;
}
#photos #cricinfo-photo-grid .tv-album-open {
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  top: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: #071b52 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 12px rgba(4, 15, 54, 0.2) !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease !important;
}
#photos #cricinfo-photo-grid .tv-album-card:hover .tv-album-open,
#photos #cricinfo-photo-grid .tv-album-card:focus-visible .tv-album-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
#photos #cricinfo-photo-grid .tv-album-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 12px 0 13px !important;
  background: #fff !important;
}
#photos #cricinfo-photo-grid .tv-album-info strong {
  display: block !important;
  padding: 0 12px !important;
  color: #071b52 !important;
  font-size: clamp(13px, 1.1vw, 16px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}
#photos #cricinfo-photo-grid .tv-album-info small {
  display: block !important;
  padding: 0 12px !important;
  color: #667085 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-column: 1/-1 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-back-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce2ef !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 32px !important;
  padding: 7px 11px !important;
  border: 1px solid #cbd5e7 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #071b52 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  min-width: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading h3 {
  margin: 0 !important;
  color: #071b52 !important;
  font-size: clamp(18px, 2vw, 25px) !important;
  line-height: 1.2 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading p {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 11px !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(5px, 0.6vw, 9px) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1/1 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #dce4f1 !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.25s ease !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo:hover img {
  transform: scale(1.025) !important;
}
#photos #cricinfo-photo-grid .tv-album-detail .tv-photo-open-icon {
  right: 7px !important;
  bottom: 7px !important;
  width: 25px !important;
  height: 25px !important;
  background: rgba(4, 17, 50, 0.78) !important;
  color: #fff !important;
}
#photos .gallery-attribution {
  color: #778197 !important;
}
@media (max-width: 1000px) {
  #photos #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  #photos.tilak-photos-section {
    padding: 25px 10px !important;
  }
  #photos .cricinfo-gallery {
    padding: 12px !important;
  }
  #photos .gallery-heading {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding-bottom: 13px !important;
    margin-bottom: 14px !important;
  }
  #photos .gallery-heading h3 {
    font-size: 25px !important;
  }
  #cricinfo-gallery-updated {
    font-size: 10px !important;
    text-align: left !important;
  }
  #photos #cricinfo-photo-grid .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-cover {
    aspect-ratio: 4/3 !important;
  }
  #photos #cricinfo-photo-grid .tv-album-open {
    left: 6px !important;
    top: 6px !important;
    min-height: 29px !important;
    padding: 7px 9px !important;
    font-size: 9px !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #photos #cricinfo-photo-grid .tv-album-count {
    right: 6px !important;
    bottom: 6px !important;
    font-size: 8px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info {
    padding: 9px 0 10px !important;
    gap: 4px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info strong {
    padding: 0 9px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  #photos #cricinfo-photo-grid .tv-album-info small {
    padding: 0 9px !important;
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-back-row {
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-back {
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading {
    gap: 5px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading h3 {
    font-size: 18px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-heading p {
    font-size: 10px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo {
    border-radius: 2px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #photos #cricinfo-photo-grid .tv-album-card,
  #photos #cricinfo-photo-grid .tv-album-cover > img,
  #photos #cricinfo-photo-grid .tv-album-detail .tv-album-photo img {
    transition: none !important;
  }
}

/* Hotfix: neutralize legacy narrow album-card rules that caused vertical text */
#photos .cricinfo-gallery #cricinfo-photo-grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
  display: grid !important;
  position: static !important;
  float: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card {
  display: flex !important;
  position: relative !important;
  float: none !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  justify-self: stretch !important;
  align-self: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  overflow: hidden !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card > .tv-album-cover {
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16/10 !important;
  box-sizing: border-box !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-cover
  > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card > .tv-album-info {
  display: flex !important;
  position: static !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  overflow: visible !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  > strong,
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  > small {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}
@media (max-width: 1000px) {
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
@media (max-width: 640px) {
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-cover {
    aspect-ratio: 4/3 !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-info {
    padding: 9px 0 !important;
  }
}

/* Album-open state: preserve the gallery's original listing palette; use BCCI-style series page only inside an opened album */
#photos.tv-album-view-active > .section-heading {
  display: none !important;
}
#photos.tv-album-view-active .cricinfo-gallery {
  background: #f1f3fa !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: none !important;
}
#photos.tv-album-view-active .gallery-heading {
  display: none !important;
}
#photos.tv-album-view-active .gallery-attribution {
  display: none !important;
}
#photos.tv-album-view-active #cricinfo-gallery-updated {
  display: none !important;
}
#photos.tv-album-view-active #cricinfo-photo-grid {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#photos.tv-album-view-active .tv-album-detail {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f1f3fa !important;
  color: #071b52 !important;
}
#photos.tv-album-view-active .tv-album-hero {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 14px !important;
  min-height: 190px !important;
  margin: 0 0 26px !important;
  padding: clamp(24px, 4vw, 48px) !important;
  overflow: hidden !important;
  background: #071b59 !important;
  color: #fff !important;
}
#photos.tv-album-view-active .tv-album-hero:after {
  content: "" !important;
  position: absolute !important;
  right: -55px !important;
  top: -150px !important;
  width: 340px !important;
  height: 340px !important;
  border: 38px solid rgba(27, 86, 190, 0.22) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}
#photos.tv-album-view-active .tv-album-hero h2 {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(26px, 3.5vw, 44px) !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
}
#photos.tv-album-view-active .tv-album-hero p {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
  color: #dce6ff !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
#photos.tv-album-view-active .tv-album-hero .tv-album-back {
  position: relative !important;
  z-index: 2 !important;
  order: 3 !important;
  min-height: 32px !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}
#photos.tv-album-view-active .tv-album-back-row {
  display: none !important;
}
#photos.tv-album-view-active .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
#photos.tv-album-view-active .tv-album-photo {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1.12/1 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #dbe3f2 !important;
}
#photos.tv-album-view-active .tv-album-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.25s ease !important;
}
#photos.tv-album-view-active .tv-album-photo:hover img {
  transform: scale(1.025) !important;
}
#photos.tv-album-view-active .tv-photo-open-icon {
  right: 10px !important;
  bottom: 10px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(5, 20, 61, 0.78) !important;
  color: #fff !important;
}
@media (max-width: 900px) {
  #photos.tv-album-view-active .tv-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  #photos.tv-album-view-active {
    padding: 12px 0 !important;
  }
  #photos.tv-album-view-active .cricinfo-gallery {
    padding: 0 !important;
  }
  #photos.tv-album-view-active .tv-album-hero {
    min-height: 155px !important;
    gap: 11px !important;
    margin-bottom: 14px !important;
    padding: 22px 16px !important;
  }
  #photos.tv-album-view-active .tv-album-hero h2 {
    font-size: 25px !important;
    overflow-wrap: anywhere !important;
  }
  #photos.tv-album-view-active .tv-album-hero p {
    font-size: 11px !important;
  }
  #photos.tv-album-view-active .tv-album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }
  #photos.tv-album-view-active .tv-album-photo {
    aspect-ratio: 1/1 !important;
  }
  #photos.tv-album-view-active .tv-photo-open-icon {
    right: 5px !important;
    bottom: 5px !important;
    width: 24px !important;
    height: 24px !important;
  }
}

/* Preserve the fan club's original navy, cyan and orange palette in album view */
#photos.tv-album-view-active,
#photos.tv-album-view-active .cricinfo-gallery,
#photos.tv-album-view-active .tv-album-detail {
  background: #070b14 !important;
  color: #f7f9ff !important;
}
#photos.tv-album-view-active .tv-album-hero {
  background: linear-gradient(135deg, #0d1422, #0b1422 65%, #171421) !important;
  color: #f7f9ff !important;
  border-top: 2px solid transparent !important;
  border-image: linear-gradient(90deg, #75e3ff, #8b7dff, #ff6a35) 1 !important;
}
#photos.tv-album-view-active .tv-album-hero h2 {
  color: #f7f9ff !important;
}
#photos.tv-album-view-active .tv-album-hero p {
  color: #a3b0c4 !important;
}
#photos.tv-album-view-active .tv-album-hero .tv-album-back {
  border: 1px solid rgba(117, 227, 255, 0.38) !important;
  background: rgba(117, 227, 255, 0.08) !important;
  color: #75e3ff !important;
  box-shadow: 0 0 18px rgba(117, 227, 255, 0.08) !important;
}
#photos.tv-album-view-active .tv-album-photo-grid {
  background: #0d1422 !important;
}
#photos.tv-album-view-active .tv-album-photo {
  background: #111d30 !important;
}
#photos.tv-album-view-active .tv-photo-open-icon {
  border: 1px solid rgba(117, 227, 255, 0.3) !important;
  background: rgba(7, 11, 20, 0.86) !important;
  color: #75e3ff !important;
  box-shadow: 0 0 14px rgba(117, 227, 255, 0.12) !important;
}
#photos.tv-album-view-active .tv-album-photo:hover .tv-photo-open-icon {
  border-color: #ff6a35 !important;
  color: #ff8a52 !important;
}
@media (max-width: 600px) {
  #photos.tv-album-view-active .tv-album-hero {
    background: linear-gradient(145deg, #0d2238, #091525 72%, #171421) !important;
  }
}

/* Final photo gallery listing fix: retain original dark navy/cyan/orange theme and remove empty oversized panel */
#photos .cricinfo-gallery {
  background: linear-gradient(145deg, #0d1c2e 0%, #091321 72%, #12111d 100%) !important;
  color: #f7f9ff !important;
  border: 1px solid rgba(160, 190, 230, 0.16) !important;
  border-radius: 22px !important;
  padding: clamp(18px, 2.4vw, 30px) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18) !important;
}
#photos .cricinfo-gallery .gallery-heading h3 {
  color: #f7f9ff !important;
}
#photos .cricinfo-gallery .gallery-heading h3 em {
  color: #ff6a35 !important;
}
#photos .cricinfo-gallery .gallery-heading .eyebrow {
  color: #75e3ff !important;
}
#photos .cricinfo-gallery #cricinfo-gallery-updated {
  color: #a3b0c4 !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #111d30, #0a1422) !important;
  border: 1px solid rgba(117, 227, 255, 0.2) !important;
  border-radius: 15px !important;
  color: #f7f9ff !important;
  writing-mode: horizontal-tb !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card > .tv-album-cover {
  position: relative !important;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/3 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-cover
  img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card > .tv-album-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 13px !important;
  background: transparent !important;
  color: #f7f9ff !important;
  writing-mode: horizontal-tb !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  strong {
  display: block !important;
  color: #f7f9ff !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  small {
  display: block !important;
  color: #a3b0c4 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card:hover {
  border-color: rgba(117, 227, 255, 0.48) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(117, 227, 255, 0.06) !important;
  transform: translateY(-3px) !important;
}
@media (max-width: 1000px) {
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 13px !important;
  }
}
@media (max-width: 640px) {
  #photos .cricinfo-gallery {
    padding: 14px !important;
  }
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-info {
    padding: 10px !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-info
    strong {
    font-size: 14px !important;
  }
}

/* Image visibility recovery: keep real image elements visible in both album cards and opened albums */
#photos #cricinfo-photo-grid .tv-album-cover {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  background: #111d30 !important;
}
#photos #cricinfo-photo-grid .tv-album-cover img,
#photos #cricinfo-photo-grid .tv-album-photo img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: none !important;
  max-height: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}
#photos #cricinfo-photo-grid .tv-album-cover img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
}
#photos #cricinfo-photo-grid .tv-album-photo img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#photos #cricinfo-photo-grid .tv-album-cover .tv-album-count,
#photos #cricinfo-photo-grid .tv-album-cover .tv-album-open {
  position: absolute !important;
  z-index: 2 !important;
}
#photos #cricinfo-photo-grid .tv-album-card {
  background: #0d1727 !important;
}

/* Photo gallery: unified full-page royal-blue fan-club layout */
#photos.tilak-photos-section {
  background: linear-gradient(180deg, #071a35 0%, #06152b 48%, #050f20 100%) !important;
  color: #f5f8ff !important;
  padding: clamp(28px, 4vw, 54px) clamp(12px, 3vw, 46px) !important;
}
#photos.tilak-photos-section > .section-heading {
  max-width: 1500px !important;
  margin: 0 auto 26px !important;
}
#photos.tilak-photos-section > .section-heading .eyebrow,
#photos.tilak-photos-section > .section-heading .section-kicker {
  color: #71e5ff !important;
}
#photos.tilak-photos-section > .section-heading h2 {
  color: #f5f8ff !important;
}
#photos.tilak-photos-section > .section-heading h2 span,
#photos.tilak-photos-section > .section-heading h2 em {
  color: #ff7048 !important;
}
#photos.tilak-photos-section > .section-heading > p {
  color: #b7c8e2 !important;
}
#photos .cricinfo-gallery {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: clamp(16px, 2.2vw, 30px) !important;
  border: 1px solid rgba(105, 190, 255, 0.22) !important;
  border-radius: 22px !important;
  background: linear-gradient(
    145deg,
    rgba(12, 39, 73, 0.98),
    rgba(5, 19, 39, 0.99) 68%,
    rgba(13, 20, 43, 0.99)
  ) !important;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
  color: #f5f8ff !important;
  overflow: hidden !important;
}
#photos .cricinfo-gallery:before {
  opacity: 0.7 !important;
}
#photos .cricinfo-gallery .gallery-heading {
  border-bottom: 1px solid rgba(142, 187, 230, 0.2) !important;
  padding-bottom: 18px !important;
  margin-bottom: 22px !important;
}
#photos .cricinfo-gallery .gallery-heading h3 {
  color: #f5f8ff !important;
}
#photos .cricinfo-gallery .gallery-heading h3 em {
  color: #ff7048 !important;
}
#photos .cricinfo-gallery .gallery-heading .eyebrow {
  color: #71e5ff !important;
}
#photos .cricinfo-gallery #cricinfo-gallery-updated {
  color: #a9bfd9 !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid {
  display: block !important;
  box-sizing: border-box !important;
  position: relative !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
  display: grid !important;
  position: static !important;
  float: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card {
  box-sizing: border-box !important;
  display: flex !important;
  position: relative !important;
  float: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  border: 1px solid rgba(111, 198, 255, 0.24) !important;
  border-radius: 15px !important;
  background: linear-gradient(155deg, #102b4d, #091b33) !important;
  color: #f5f8ff !important;
  text-align: left !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(113, 229, 255, 0.6) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(53, 190, 255, 0.08) !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card > .tv-album-cover {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 4/3 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #102b4d !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-cover
  img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-cover
  .tv-album-count {
  position: absolute !important;
  right: 9px !important;
  bottom: 9px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2 !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  background: rgba(3, 14, 31, 0.88) !important;
  color: #f5f8ff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-cover
  .tv-album-open {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(113, 229, 255, 0.25) !important;
  border-radius: 20px !important;
  background: #0c3155 !important;
  color: #a9f0ff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card > .tv-album-info {
  box-sizing: border-box !important;
  display: flex !important;
  position: static !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  gap: 5px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 13px !important;
  background: transparent !important;
  color: #f5f8ff !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  strong {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #f5f8ff !important;
  font-size: clamp(14px, 1.15vw, 17px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  small {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #a9bfd9 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}
#photos .cricinfo-gallery .gallery-attribution {
  color: #839ab9 !important;
}
@media (max-width: 1050px) {
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 13px !important;
  }
}
@media (max-width: 650px) {
  #photos.tilak-photos-section {
    padding: 24px 10px !important;
  }
  #photos .cricinfo-gallery {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  #photos .cricinfo-gallery .gallery-heading {
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 13px !important;
  }
  #photos .cricinfo-gallery .gallery-heading h3 {
    font-size: 24px !important;
  }
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card {
    border-radius: 11px !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-cover {
    aspect-ratio: 4/3 !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-info {
    padding: 10px !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-info
    strong {
    font-size: 13px !important;
  }
  #photos
    .cricinfo-gallery
    #cricinfo-photo-grid
    > .tv-album-grid
    > .tv-album-card
    > .tv-album-info
    small {
    font-size: 10px !important;
  }
}

/* BCCI-inspired all-blue photo album detail page */
#photos .tv-photo-album-view,
#photos .tv-album-detail,
#photos .tv-gallery-detail,
#photos .cricinfo-gallery .tv-album-detail,
#photos .cricinfo-gallery .tv-photo-detail {
  background: linear-gradient(135deg, #073b8f 0%, #0646a8 45%, #082d70 100%) !important;
  color: #fff !important;
  border-color: rgba(126, 203, 255, 0.42) !important;
  box-shadow:
    0 18px 44px rgba(0, 35, 105, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.08) !important;
}
#photos .cricinfo-gallery:has(.tv-album-detail),
#photos .cricinfo-gallery:has(.tv-photo-detail),
#photos .cricinfo-gallery:has(.tv-photo-grid) {
  background: linear-gradient(145deg, #0645a3 0%, #07377f 55%, #06275e 100%) !important;
}
#photos .cricinfo-gallery .tv-album-detail h1,
#photos .cricinfo-gallery .tv-album-detail h2,
#photos .cricinfo-gallery .tv-photo-detail h1,
#photos .cricinfo-gallery .tv-photo-detail h2 {
  color: #fff !important;
}
#photos .cricinfo-gallery .tv-album-detail p,
#photos .cricinfo-gallery .tv-photo-detail p {
  color: #d5e9ff !important;
}
#photos .cricinfo-gallery .tv-album-detail button,
#photos .cricinfo-gallery .tv-photo-detail button,
#photos .cricinfo-gallery .tv-album-detail a,
#photos .cricinfo-gallery .tv-photo-detail a {
  border-color: rgba(255, 255, 255, 0.34) !important;
}
#photos .cricinfo-gallery .tv-album-detail .tv-back,
#photos .cricinfo-gallery .tv-photo-detail .tv-back {
  background: #fff !important;
  color: #07377f !important;
  border-radius: 9px !important;
}
#photos .cricinfo-gallery .tv-album-detail .tv-photo-grid,
#photos .cricinfo-gallery .tv-photo-detail .tv-photo-grid,
#photos .cricinfo-gallery .tv-photo-grid {
  background: transparent !important;
}
@media (max-width: 650px) {
  #photos .cricinfo-gallery .tv-album-detail,
  #photos .cricinfo-gallery .tv-photo-detail {
    border-radius: 15px !important;
  }
}

/* Fix album detail: blue the actual rendered hero, not unrelated selectors */
#photos.tv-album-view-active,
#photos.tv-album-view-active .cricinfo-gallery,
#photos.tv-album-view-active .cricinfo-gallery::before,
#photos.tv-album-view-active #cricinfo-photo-grid {
  background: #073b8f !important;
}
#photos.tv-album-view-active .cricinfo-gallery {
  background: linear-gradient(145deg, #0750b8 0%, #06439a 52%, #062f78 100%) !important;
}
#photos.tv-album-view-active .tv-album-detail {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(158, 213, 255, 0.34) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #0750b8 0%, #06439a 52%, #062f78 100%) !important;
  color: #fff !important;
  box-shadow: 0 18px 48px rgba(0, 25, 85, 0.28) !important;
}
#photos.tv-album-view-active .tv-album-hero {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: clamp(22px, 4vw, 48px) !important;
  margin: 0 !important;
  background: linear-gradient(125deg, #0750b8 0%, #06439a 58%, #07357e 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
}
#photos.tv-album-view-active .tv-album-hero::before,
#photos.tv-album-view-active .tv-album-hero::after {
  content: none !important;
  display: none !important;
}
#photos.tv-album-view-active .tv-album-hero h2 {
  order: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(26px, 3vw, 42px) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere !important;
}
#photos.tv-album-view-active .tv-album-hero p {
  order: 1 !important;
  margin: 0 !important;
  color: #dcecff !important;
  font-size: 14px !important;
}
#photos.tv-album-view-active .tv-album-hero .tv-album-back {
  order: 2 !important;
  margin-top: 5px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #07377f !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 20, 70, 0.16) !important;
}
#photos.tv-album-view-active .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: clamp(12px, 2vw, 24px) !important;
  margin: 0 !important;
  background: linear-gradient(145deg, #06439a, #062e70) !important;
}
#photos.tv-album-view-active .tv-album-photo {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 4/3 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(180, 220, 255, 0.4) !important;
  border-radius: 12px !important;
  background: #092d65 !important;
  box-shadow: 0 7px 20px rgba(0, 15, 55, 0.24) !important;
}
#photos.tv-album-view-active .tv-album-photo img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#photos.tv-album-view-active .tv-album-photo:hover {
  border-color: #8deaff !important;
  box-shadow:
    0 0 0 2px rgba(141, 234, 255, 0.2),
    0 10px 24px rgba(0, 15, 55, 0.3) !important;
}
@media (max-width: 650px) {
  #photos.tv-album-view-active .tv-album-detail {
    border-radius: 14px !important;
  }
  #photos.tv-album-view-active .tv-album-hero {
    padding: 20px 16px !important;
  }
  #photos.tv-album-view-active .tv-album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  #photos.tv-album-view-active .tv-album-photo {
    border-radius: 9px !important;
  }
}

/* Keep album photo area blue, make the upper album header white as requested */
#photos.tv-album-view-active .tv-album-detail .tv-album-hero {
  background: #ffffff !important;
  color: #10264a !important;
  border-bottom: 1px solid #d7e5f6 !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero h2 {
  color: #092c68 !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero p {
  color: #536985 !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero .tv-album-back {
  background: #073b8f !important;
  color: #ffffff !important;
  border-color: #073b8f !important;
}

/* Gallery overview polish: light page canvas, blue album cards */
#photos.tilak-photos-section {
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%) !important;
  color: #102b55 !important;
}
#photos.tilak-photos-section > .section-heading h2 {
  color: #092c68 !important;
}
#photos.tilak-photos-section > .section-heading h2 span,
#photos.tilak-photos-section > .section-heading h2 em {
  color: #ff7048 !important;
}
#photos.tilak-photos-section > .section-heading > p {
  color: #526987 !important;
}
#photos .cricinfo-gallery {
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%) !important;
  border: 1px solid #d6e4f6 !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 44px rgba(13, 55, 115, 0.1) !important;
  color: #102b55 !important;
}
#photos .cricinfo-gallery .gallery-heading {
  border-bottom: 1px solid #d9e5f5 !important;
}
#photos .cricinfo-gallery .gallery-heading h3 {
  color: #092c68 !important;
}
#photos .cricinfo-gallery .gallery-heading .eyebrow {
  color: #087ca7 !important;
}
#photos .cricinfo-gallery #cricinfo-gallery-updated {
  color: #607794 !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card {
  background: linear-gradient(155deg, #0a438f 0%, #082e68 100%) !important;
  border: 1px solid rgba(107, 177, 255, 0.55) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(5, 42, 98, 0.18) !important;
}
#photos .cricinfo-gallery #cricinfo-photo-grid > .tv-album-grid > .tv-album-card:hover {
  border-color: #4ddcff !important;
  box-shadow:
    0 14px 30px rgba(5, 42, 98, 0.25),
    0 0 0 2px rgba(77, 220, 255, 0.12) !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  strong {
  color: #fff !important;
}
#photos
  .cricinfo-gallery
  #cricinfo-photo-grid
  > .tv-album-grid
  > .tv-album-card
  > .tv-album-info
  small {
  color: #c4dcfa !important;
}
#photos .cricinfo-gallery .gallery-attribution {
  color: #7186a3 !important;
}
@media (max-width: 650px) {
  #photos.tilak-photos-section {
    padding: 22px 10px !important;
  }
  #photos .cricinfo-gallery {
    padding: 12px !important;
    border-radius: 16px !important;
  }
}

/* Requested: royal-blue background for the entire Photos page */
#photos.tilak-photos-section {
  background: linear-gradient(135deg, #063b86 0%, #0750a9 48%, #062b67 100%) !important;
  color: #f5f9ff !important;
}
#photos.tilak-photos-section .section-heading h2 {
  color: #f5f9ff !important;
}
#photos.tilak-photos-section .section-heading > p {
  color: #d4e5ff !important;
}
#photos .cricinfo-gallery {
  background: linear-gradient(145deg, #08448f 0%, #073675 100%) !important;
  border-color: rgba(151, 204, 255, 0.35) !important;
  box-shadow: 0 18px 46px rgba(0, 15, 50, 0.24) !important;
  color: #f5f9ff !important;
}
#photos .cricinfo-gallery .gallery-heading {
  border-color: rgba(190, 220, 255, 0.22) !important;
}
#photos .cricinfo-gallery .gallery-heading h3 {
  color: #f5f9ff !important;
}
#photos .cricinfo-gallery .gallery-heading .eyebrow {
  color: #7de8ff !important;
}
#photos .cricinfo-gallery #cricinfo-gallery-updated {
  color: #c4d9f7 !important;
}
#photos .cricinfo-gallery .gallery-attribution {
  color: #bdd2ef !important;
}

/* Mobile photo gallery: remove Explore Photos overlay and use a single-column layout */
@media (max-width: 650px) {
  #photos .tv-album-card .tv-album-cover .tv-album-explore,
  #photos .tv-album-card .tv-album-cover .tv-album-open,
  #photos .tv-album-card .tv-album-cover [class*="explore"],
  #photos .tv-album-card .tv-album-cover [class*="open"],
  #photos .tv-album-card .tv-album-cover .album-action,
  #photos .tv-album-card .tv-album-cover a:not(img) {
    display: none !important;
  }
  #photos .tv-album-grid,
  #photos .cricinfo-gallery #cricinfo-photo-grid .tv-album-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
  }
  #photos .tv-album-grid .tv-album-card,
  #photos .cricinfo-gallery #cricinfo-photo-grid .tv-album-grid .tv-album-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }
  #photos .tv-album-grid .tv-album-card .tv-album-cover,
  #photos .cricinfo-gallery #cricinfo-photo-grid .tv-album-grid .tv-album-card .tv-album-cover {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #photos .tv-album-grid .tv-album-card .tv-album-cover img,
  #photos .cricinfo-gallery #cricinfo-photo-grid .tv-album-grid .tv-album-card .tv-album-cover img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  #photos .tv-album-grid .tv-album-card .tv-album-info,
  #photos .cricinfo-gallery #cricinfo-photo-grid .tv-album-grid .tv-album-card .tv-album-info {
    padding: 13px 15px 16px !important;
  }
  #photos .tv-album-grid .tv-album-card .tv-album-info strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
  #photos .tv-album-grid .tv-album-card .tv-album-info small {
    font-size: 13px !important;
  }
  #photos .tv-album-grid .tv-album-card .tv-album-count {
    right: 12px !important;
    bottom: 12px !important;
  }
  #photos.tv-photos-section .cricinfo-gallery,
  #photos .cricinfo-gallery {
    padding: 14px !important;
  }
  #photos.tv-album-view-active .tv-album-photo-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  #photos.tv-album-view-active .tv-album-photo {
    aspect-ratio: 4/3 !important;
  }
}

/* Album detail: show two photos per row on phones */
@media (max-width: 650px) {
  #photos.tv-album-view-active .tv-album-photo-grid,
  #photos.tv-album-view-active .tv-album-photo-grid#cricinfo-photo-grid,
  #photos.tv-album-view-active #cricinfo-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 0 !important;
    width: 100% !important;
  }
  #photos.tv-album-view-active .tv-album-photo,
  #photos.tv-album-view-active .tv-album-photo-grid .tv-album-photo {
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 3/4 !important;
    margin: 0 !important;
    border-radius: 7px !important;
  }
  #photos.tv-album-view-active .tv-album-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Hide the redundant Photos page intro/header; retain the gallery itself */
#photos.tilak-photos-section > .section-heading,
#photos.tilak-photos-section .section-heading,
#photos .photos-page-heading,
#photos .photo-gallery-intro {
  display: none !important;
}

/* Gallery detail + footer polish (mobile and desktop) */
#photos.tv-album-view-active .cricinfo-gallery {
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(115, 190, 255, 0.34) !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, #0b397a 0%, #08418d 48%, #062e69 100%) !important;
  box-shadow: 0 18px 46px rgba(0, 18, 55, 0.2) !important;
}
#photos.tv-album-view-active .tv-album-detail {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero {
  position: relative !important;
  isolation: isolate !important;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 44px) 26px !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(120deg, #07306b 0%, #0b4ca5 58%, #0b3678 100%) !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  width: 260px !important;
  height: 260px !important;
  right: -85px !important;
  top: -155px !important;
  border: 38px solid rgba(106, 192, 255, 0.13) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero h2 {
  margin: 0 0 12px !important;
  max-width: 100% !important;
  color: #fff !important;
  font-size: clamp(25px, 4vw, 38px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
  overflow-wrap: anywhere !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero p {
  margin: 0 0 18px !important;
  color: #cfe6ff !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-hero .tv-album-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #082d66 !important;
  font-weight: 750 !important;
  box-shadow: 0 5px 16px rgba(0, 15, 48, 0.16) !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 12px !important;
  padding: 16px !important;
  background: linear-gradient(180deg, #0a4698, #073575) !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-photo {
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 3 / 4 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(176, 218, 255, 0.28) !important;
  border-radius: 13px !important;
  background: #092d60 !important;
  box-shadow: 0 8px 20px rgba(0, 15, 45, 0.18) !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#photos.tv-album-view-active .tv-album-detail .tv-album-photo:focus-visible,
#photos.tv-album-view-active .tv-album-detail .tv-album-back:focus-visible {
  outline: 3px solid #75ddff !important;
  outline-offset: 3px !important;
}

/* Compact, balanced site footer: no oversized blank strip on phones */
body > footer,
footer {
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px 24px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 24px clamp(18px, 4vw, 52px) !important;
  border-top: 1px solid rgba(105, 177, 255, 0.22) !important;
  background: #050d1b !important;
  color: #c5d8f1 !important;
}
footer .brand {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  color: #f3f7ff !important;
  text-decoration: none !important;
}
footer > span {
  color: #a9bed9 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.08em !important;
  text-align: right !important;
}
footer > span:last-child {
  flex-basis: 100% !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(105, 177, 255, 0.13) !important;
  text-align: center !important;
}
@media (max-width: 650px) {
  #photos.tv-album-view-active .cricinfo-gallery {
    border-radius: 17px !important;
  }
  #photos.tv-album-view-active .tv-album-detail .tv-album-hero {
    padding: 23px 18px 20px !important;
  }
  #photos.tv-album-view-active .tv-album-detail .tv-album-hero h2 {
    font-size: clamp(24px, 7vw, 31px) !important;
    line-height: 1.12 !important;
  }
  #photos.tv-album-view-active .tv-album-detail .tv-album-hero p {
    font-size: 14px !important;
    margin-bottom: 15px !important;
  }
  #photos.tv-album-view-active .tv-album-detail .tv-album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px !important;
  }
  #photos.tv-album-view-active .tv-album-detail .tv-album-photo {
    aspect-ratio: 3 / 4 !important;
    border-radius: 9px !important;
  }
  footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: 20px 18px !important;
  }
  footer .brand {
    max-width: 100% !important;
  }
  footer > span {
    max-width: 150px !important;
    font-size: 10px !important;
    letter-spacing: 0.045em !important;
    overflow-wrap: anywhere !important;
  }
  footer > span:last-child {
    grid-column: 1 / -1 !important;
    padding-top: 12px !important;
    text-align: left !important;
  }
}

/* Photo gallery: static presentation, no motion or hover animation. */
#photos,
#photos *,
#photos *::before,
#photos *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
#photos .tv-album-card:hover,
#photos .tv-album-card:focus-visible,
#photos .tv-album-photo:hover,
#photos .tv-album-photo:focus-visible,
#photos .tv-album-card:hover .tv-album-cover > img,
#photos .tv-album-photo:hover img,
#photos .tv-album-card:hover .tv-album-open,
#photos .tv-album-card:focus-visible .tv-album-open,
#photos .tv-album-detail .tv-album-photo:hover {
  transform: none !important;
  filter: none !important;
}
#photos .tv-photo-lightbox.is-open {
  animation: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  #photos,
  #photos * {
    scroll-behavior: auto !important;
  }
}

/* FIX: Stats format choices must wrap into rows on mobile; never make a horizontal scroller. */
#stats #statsguru .statsguru-format-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  white-space: normal !important;
  max-width: 100% !important;
  scrollbar-width: none !important;
  overscroll-behavior-x: auto !important;
  -webkit-overflow-scrolling: auto !important;
}
#stats #statsguru .statsguru-format-tabs::-webkit-scrollbar {
  display: none !important;
}
#stats #statsguru .statsguru-format-tabs button {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 760px) {
  #stats #statsguru .statsguru-format-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 7px !important;
    padding: 8px !important;
    margin-inline: 0 !important;
  }
  #stats #statsguru .statsguru-format-tabs button {
    flex: 0 1 auto !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  #stats #statsguru .statsguru-format-tabs button[data-sg-format="T20"] {
    flex: 1 1 145px !important;
  }
}

/* Graceful fallback for external image hosts that deny hotlinking. */
#photos .tv-photo-source-fallback {
  display: grid;
  place-items: center;
  min-height: 110px;
  width: 100%;
  height: 100%;
  padding: 14px;
  color: #b8c8df;
  background: radial-gradient(ellipse at top, rgba(117, 227, 255, 0.1), transparent 70%), #0a1423;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
#tv-photo-lightbox figcaption a {
  display: inline-block;
  margin-left: 8px;
  color: var(--cyan, #75e3ff);
  text-decoration: underline;
  text-underline-offset: 3px;
}
