/* Admin Studio-inspired visual system for the public fan site.
   Styling-only layer: preserves section IDs, data hooks, and existing interactions. */
:root {
  --admin-orange: #ff8748;
  --admin-cyan: #78e4ef;
  --admin-line: rgba(120, 174, 225, 0.18);
  --admin-surface: rgba(12, 22, 37, 0.94);
  --admin-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 78% -8%, rgba(20, 90, 150, 0.2), transparent 34rem),
    radial-gradient(ellipse at 4% 18%, rgba(255, 135, 72, 0.07), transparent 30rem), #07101f;
}
.topbar {
  background: rgba(7, 16, 31, 0.88) !important;
  border-bottom: 1px solid var(--admin-line) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand-mark {
  border: 1px solid rgba(255, 135, 72, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 135, 72, 0.055);
}
.topbar nav a {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: rgba(120, 228, 239, 0.07) !important;
  border-color: rgba(120, 228, 239, 0.14);
}
.section {
  position: relative;
  min-width: 0;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(13, 27, 45, 0.98), rgba(9, 20, 35, 0.98));
  box-shadow: var(--admin-shadow);
  scroll-margin-top: 96px;
}
.section::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #ff8748, #78e4ef 48%, transparent);
  opacity: 0.72;
}
.section-heading {
  gap: 14px;
}
.section-heading h2,
.section-heading h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-heading > p {
  max-width: 760px;
  line-height: 1.7;
}
.eyebrow {
  color: #78e4ef;
  letter-spacing: 0.12em;
}
.stat-card,
.home-snapshot-block,
.home-bowling-card,
.match-history-summary,
.profile-teams-panel,
.icc-ranking-card,
.statsguru-panel,
.player-analysis-filter,
.fan-card,
.upcoming-match-card,
.home-format-card,
.format-card,
.settings-card,
.cricinfo-gallery,
.tilak-news-content,
.upcoming-matches-panel {
  border-color: var(--admin-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.stat-card,
.home-snapshot-block,
.home-bowling-card,
.match-history-summary,
.statsguru-panel,
.player-analysis-filter,
.settings-card {
  background: linear-gradient(155deg, rgba(17, 36, 58, 0.96), rgba(10, 23, 40, 0.96));
}
.stat-card,
.home-format-card,
.format-card,
.fan-card,
.upcoming-match-card,
.tv-album-card,
.icc-ranking-card {
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.stat-card:hover,
.home-format-card:hover,
.format-card:hover,
.fan-card:hover,
.upcoming-match-card:hover,
.tv-album-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 228, 239, 0.3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}
.button,
button,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
.button,
button {
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.button:hover,
button:hover {
  filter: brightness(1.06);
}
.button:active,
button:active {
  transform: translateY(1px);
}
.button.primary,
button.primary {
  border-color: rgba(255, 190, 126, 0.65);
  background: linear-gradient(135deg, #ffad58, #ff6a35 75%);
  color: #17111a;
  box-shadow: 0 7px 20px rgba(255, 106, 53, 0.16);
}
input,
select,
textarea {
  border-color: rgba(137, 171, 210, 0.25);
  border-radius: 10px;
}
input:hover,
select:hover,
textarea:hover {
  border-color: rgba(120, 228, 239, 0.4);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #78e4ef;
  outline-offset: 3px;
}
.table-wrap,
.statsguru-table-wrap,
.match-history-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
img,
video,
iframe,
canvas {
  max-width: 100%;
}
@media (min-width: 1100px) {
  .section {
    margin-bottom: 24px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }
  .topbar {
    border-bottom-color: rgba(120, 174, 225, 0.2) !important;
  }
  .section {
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading > p {
    font-size: 13px;
  }
  .button,
  button {
    min-height: 40px;
  }
}
@media (max-width: 420px) {
  .section {
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* Respect the existing user-selected light theme. */
:root[data-theme-resolved="light"] body {
  background:
    radial-gradient(ellipse at 78% -8%, rgba(20, 90, 150, 0.08), transparent 34rem), #f2f7ff;
}
:root[data-theme-resolved="light"] .section {
  border-color: #d4e2f4;
  background: linear-gradient(155deg, #fff, #edf4ff);
  box-shadow: 0 12px 30px rgba(29, 71, 122, 0.08);
}
:root[data-theme-resolved="light"] .stat-card,
:root[data-theme-resolved="light"] .home-snapshot-block,
:root[data-theme-resolved="light"] .home-bowling-card,
:root[data-theme-resolved="light"] .match-history-summary,
:root[data-theme-resolved="light"] .statsguru-panel,
:root[data-theme-resolved="light"] .player-analysis-filter,
:root[data-theme-resolved="light"] .settings-card {
  background: linear-gradient(145deg, #fff, #edf4ff);
  border-color: #d4e2f4;
}
