/* Generated by npm run build:css. Edit public/styles/*.css, not this file. */

/* styles/base.css */
:root {
  --font-sans: ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4fb;
  --surface-strong: #eff3fa;
  --text: #111827;
  --text-muted: #6b7280;
  --text-soft: #475569;
  --border: #d1d5db;
  --accent: #0f8cff;
  --accent-soft: #dbeafe;
  --accent-dark: #0749b8;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1200px;
  --about-bg: #53617a;
  --about-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --about-bg: #1e293b;
    --about-fg: #e2e8f0;
  }
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: #eef2ff;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.schedule-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.btn-tertiary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ==========================================
   THEME TOGGLE BUTTON
   ========================================== */

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000000;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  opacity: 0.72;
  transform: scale(1.05);
}

.theme-toggle-btn .theme-icon {
  width: 22px;
  height: 22px;
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
}

.theme-toggle-btn.is-dark .theme-icon-moon {
  display: none;
}

.theme-toggle-btn.is-dark .theme-icon-sun {
  display: block;
}

/* ==========================================
   INFINITE HOVER MARQUEE FOR TRUNCATED TEXT
   ========================================== */

.marquee-overflow {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  cursor: default;
  position: relative;
}

.marquee-overflow .marquee-inner {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marquee-overflow .marquee-text {
  display: inline;
}

.marquee-overflow .marquee-copy {
  display: none;
}

.marquee-overflow:hover .marquee-inner,
.marquee-overflow.marquee-hovering .marquee-inner {
  display: inline-flex;
  align-items: center;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  animation: marquee-scroll var(--marquee-duration, 8s) linear infinite;
  will-change: transform;
}

.marquee-overflow:hover .marquee-copy,
.marquee-overflow.marquee-hovering .marquee-copy {
  display: inline;
  padding-left: var(--marquee-gap, 40px);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--marquee-shift, 120px)));
  }
}

/* ==========================================
   DARK THEME
   ========================================== */

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b1020;
  --surface: #141b2d;
  --surface-soft: #1a2238;
  --surface-strong: #202a42;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --border: #334155;
  --accent-soft: #1e3a5f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body {
  background: #0b1020;
  color: var(--text);
}

html[data-theme="dark"] .site-header {
  background: #111827;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .search-button,
html[data-theme="dark"] .theme-toggle-btn {
  color: #f8fafc;
}

html[data-theme="dark"] .search-button svg {
  stroke: #f8fafc;
}

html[data-theme="dark"] .menu-toggle .bar {
  background: #f8fafc;
}

html[data-theme="dark"] .main-nav {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .main-nav a:hover {
  background: #1f2937;
  color: #93c5fd;
}

html[data-theme="dark"] .home-hero,
html[data-theme="dark"] .today-hero,
html[data-theme="dark"] .match-hero {
  filter: brightness(0.82);
}

/* Dark chrome surfaces */
html[data-theme="dark"] .calendar-header,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .panel-head,
html[data-theme="dark"] .schedule-option-toggle,
html[data-theme="dark"] .week-strip,
html[data-theme="dark"] .league-card,
html[data-theme="dark"] .league-search-wrapper .search-input-container,
html[data-theme="dark"] .search-popup-panel,
html[data-theme="dark"] .search-popup-input-wrapper,
html[data-theme="dark"] .calendar-popup,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .terms-card,
html[data-theme="dark"] .sidebar-live-item,
html[data-theme="dark"] .schedule-page-header,
html[data-theme="dark"] .timeline-loading,
html[data-theme="dark"] .league-date-header {
  background: var(--surface);
  color: var(--text);
  border-color: #475569;
}

/* Calendar day cells */
html[data-theme="dark"] .calendar-card {
  background-color: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .calendar-empty {
  background-color: #1e293b;
}

html[data-theme="dark"] .calendar-empty .calendar-number {
  color: #64748b;
}

html[data-theme="dark"] .calendar-number,
html[data-theme="dark"] .event-item,
html[data-theme="dark"] .event-text,
html[data-theme="dark"] .view-more {
  color: var(--text);
}

html[data-theme="dark"] .view-more {
  color: var(--text-muted);
}

html[data-theme="dark"] .calendar-today {
  background-color: #1e3a8a !important;
  border-color: #60a5fa !important;
}

html[data-theme="dark"] .calendar-today .calendar-number,
html[data-theme="dark"] .calendar-today .event-item,
html[data-theme="dark"] .calendar-today .event-text {
  color: #ffffff;
}

html[data-theme="dark"] .today-label {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

html[data-theme="dark"] .weekday-row span,
html[data-theme="dark"] .panel-head,
html[data-theme="dark"] .sidebar-card-title,
html[data-theme="dark"] .calendar-month-label,
html[data-theme="dark"] .live-main-title,
html[data-theme="dark"] .live-section-subtitle,
html[data-theme="dark"] .schedule-week-label,
html[data-theme="dark"] .search-popup-title,
html[data-theme="dark"] .popup-league-title,
html[data-theme="dark"] .popup-date,
html[data-theme="dark"] .hero-eyebrow,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] .about-title,
html[data-theme="dark"] .terms-title,
html[data-theme="dark"] .about-text,
html[data-theme="dark"] .terms-text,
html[data-theme="dark"] .detail-section-title,
html[data-theme="dark"] .match-detail-title,
html[data-theme="dark"] .match-hero-title,
html[data-theme="dark"] .match-hero-subtitle {
  color: var(--text);
}

html[data-theme="dark"] .week-day-card {
  background: var(--surface);
  color: var(--text);
  border-color: #475569;
}

html[data-theme="dark"] .week-day-card:hover {
  background-color: #1f2937;
}

html[data-theme="dark"] .week-day-card.today-card:not(.active) {
  background-color: #422006;
  color: #fde68a;
}

html[data-theme="dark"] .week-day-name,
html[data-theme="dark"] .week-day-number,
html[data-theme="dark"] .week-day-month,
html[data-theme="dark"] .week-match-count,
html[data-theme="dark"] .timeline-time-marker,
html[data-theme="dark"] .timeline-time-label,
html[data-theme="dark"] .match-bar-league,
html[data-theme="dark"] .match-bar-teams,
html[data-theme="dark"] .league-card-sport,
html[data-theme="dark"] .sidebar-label,
html[data-theme="dark"] .search-result-league,
html[data-theme="dark"] .detail-card-label,
html[data-theme="dark"] .detail-card-sub,
html[data-theme="dark"] .lb-gap {
  color: var(--text-muted);
}

html[data-theme="dark"] .week-day-card.active,
html[data-theme="dark"] .week-day-card.active .week-day-name,
html[data-theme="dark"] .week-day-card.active .week-day-number,
html[data-theme="dark"] .week-day-card.active .week-day-month,
html[data-theme="dark"] .week-day-card.active .week-match-count {
  color: #ffffff;
}

html[data-theme="dark"] .league-card-name {
  color: var(--text);
}

html[data-theme="dark"] .sidebar-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

html[data-theme="dark"] .sidebar-item.active {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .sidebar-item.active .sidebar-label {
  color: #ffffff;
}

html[data-theme="dark"] .filter-pill.active {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .filter-pill.active .pill-name {
  color: #ffffff;
}

html[data-theme="dark"] .schedule-option-toggle .toggle-btn {
  color: var(--text-muted);
}

html[data-theme="dark"] .schedule-option-toggle .toggle-btn:hover {
  background-color: #1f2937;
  color: var(--text);
}

html[data-theme="dark"] .schedule-option-toggle .toggle-btn.active,
html[data-theme="dark"] .schedule-option-toggle .toggle-btn.active:hover {
  background-color: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .schedule-page-header {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .schedule-week-label,
html[data-theme="dark"] .schedule-option-toggle,
html[data-theme="dark"] .league-search-wrapper .search-input-container {
  background: rgba(20, 27, 45, 0.88);
  border-color: #334155;
}

html[data-theme="dark"] .schedule-option-toggle,
html[data-theme="dark"] .league-search-wrapper .search-input-container {
  box-shadow: none;
}

html[data-theme="dark"] .schedule-week-label {
  box-shadow: none;
}

html[data-theme="dark"] .search-popup-input-wrapper input,
html[data-theme="dark"] .league-search-wrapper input {
  color: var(--text);
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .search-popup-input-wrapper input:focus,
html[data-theme="dark"] .league-search-wrapper input:focus {
  background-color: transparent;
  border-color: var(--accent);
  box-shadow: none;
}

html[data-theme="dark"] .search-popup-header {
  background-color: var(--surface);
  border-bottom-color: #475569;
}

html[data-theme="dark"] .search-popup-back-btn {
  background-color: var(--surface-strong);
  border-color: #475569;
  color: var(--text);
  box-shadow: 2px 2px 0px #475569;
}

html[data-theme="dark"] .search-popup-back-btn:hover {
  background-color: var(--surface-soft);
}

html[data-theme="dark"] .search-popup-back-btn:active {
  box-shadow: 1px 1px 0px #475569;
}

html[data-theme="dark"] #search-popup-clear-btn {
  color: var(--text);
}

html[data-theme="dark"] .search-popup-input-wrapper input::placeholder,
html[data-theme="dark"] .league-search-wrapper input::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .btn-go-back,
html[data-theme="dark"] .btn-league-back,
html[data-theme="dark"] .btn-today-outline,
html[data-theme="dark"] .btn-calendar-trigger,
html[data-theme="dark"] .schedule-nav-btn,
html[data-theme="dark"] .schedule-today-btn {
  background: var(--surface-strong);
  color: var(--text);
  border-color: #64748b;
}

html[data-theme="dark"] .btn-go-back:hover,
html[data-theme="dark"] .btn-league-back:hover,
html[data-theme="dark"] .btn-today-outline:hover {
  color: #ffffff;
  border-color: #93c5fd;
}

html[data-theme="dark"] .active-date-badge {
  background: #2563eb;
  color: #ffffff;
}

/* Keep light surfaces readable (dark text on light cards) */
html[data-theme="dark"] .popup-match-card,
html[data-theme="dark"] .search-result-row,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .leaderboard-row,
html[data-theme="dark"] .stream-link-card,
html[data-theme="dark"] .match-info-card,
html[data-theme="dark"] .match-detail-card,
html[data-theme="dark"] .today-match-card,
html[data-theme="dark"] .timeline-match-bar,
html[data-theme="dark"] .filter-pill:not(.active) {
  background-color: var(--surface-strong);
  color: var(--text);
  border-color: #475569;
}

/* Live cards switch to a real dark surface in dark mode */
html[data-theme="dark"] .live-card {
  background: linear-gradient(180deg, #1b2436 0%, #131b2d 100%);
  color: var(--text);
  border-color: #334155;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .live-card .team-abbr,
html[data-theme="dark"] .live-card .player-name,
html[data-theme="dark"] .live-card .main-score,
html[data-theme="dark"] .live-card .score-league-badge,
html[data-theme="dark"] .live-card .individual-player .player-name,
html[data-theme="dark"] .leaderboard-row .lb-pos {
  color: var(--text);
}

html[data-theme="dark"] .live-card .vs-text,
html[data-theme="dark"] .live-card .venue-text,
html[data-theme="dark"] .live-card .sub-score-overs,
html[data-theme="dark"] .live-card .match-half-text,
html[data-theme="dark"] .live-card .card-group-match-details {
  color: var(--text-soft);
}

html[data-theme="dark"] .live-card .score-league-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .live-card .badge:not(.live-badge) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .popup-match-card .popup-team-name,
html[data-theme="dark"] .search-result-row .search-result-team-name,
html[data-theme="dark"] .detail-card .detail-card-value,
html[data-theme="dark"] .leaderboard-row .lb-name {
  color: var(--text);
}

html[data-theme="dark"] .search-result-row .search-result-league,
html[data-theme="dark"] .search-result-row .search-result-date,
html[data-theme="dark"] .search-result-row .search-result-time,
html[data-theme="dark"] .detail-card .detail-card-label,
html[data-theme="dark"] .detail-card .detail-card-sub,
html[data-theme="dark"] .leaderboard-row .lb-gap {
  color: var(--text-muted);
}

/* Timeline schedule page fixes */
html[data-theme="dark"] .timeline-match-bar .match-bar-league {
  color: var(--text-muted);
}
html[data-theme="dark"] .timeline-match-bar .match-bar-teams {
  color: #ffffff;
}
html[data-theme="dark"] .timeline-match-bar .match-bar-time {
  color: var(--text-muted);
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #000000 !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-league,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-teams,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-time,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-score,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-sport-icon,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-countdown,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-score.live-score,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-teams .vs-text {
  color: #000000 !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-score,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-countdown.countdown-completed {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
}

html[data-theme="dark"] .filter-pill:not(.active) .pill-name {
  color: var(--text) !important;
}

html[data-theme="dark"] .sports-sidebar,
html[data-theme="dark"] .leagues-sidebar {
  background: var(--surface);
  border-color: #334155;
}

html[data-theme="dark"] .search-result-date-cell {
  background: #f1f5f9;
  color: #111827;
}

html[data-theme="dark"] .search-popup-results-list,
html[data-theme="dark"] .search-popup-default-state {
  background-color: var(--surface);
}

html[data-theme="dark"] .search-popup-default-title {
  color: var(--text);
}

html[data-theme="dark"] .search-popup-suggestion-chip {
  background: var(--surface-strong);
  border-color: #64748b;
  box-shadow: 3px 3px 0px #475569;
  color: var(--text);
}

html[data-theme="dark"] .search-popup-suggestion-chip:hover {
  background-color: var(--surface-soft);
}

html[data-theme="dark"] .search-result-info-cell span.highlight-query,
html[data-theme="dark"] .search-result-team-name.highlight-query {
  color: #000000;
  background-color: #dbeafe;
}

html[data-theme="dark"] .site-footer {
  background: #020617;
}

html[data-theme="dark"] .scroll-to-top-btn,
html[data-theme="dark"] .search-popup-scroll-to-top-btn {
  background: #1e293b;
  color: #f8fafc;
  border-color: #475569;
}

html[data-theme="dark"] .marquee-overflow:hover .marquee-inner,
html[data-theme="dark"] .marquee-overflow:hover .marquee-text {
  color: inherit;
}

/* ==========================================
   DARK MODE — MISSING OVERRIDES
   ========================================== */

/* --- Calendar header controls (home page) --- */
html[data-theme="dark"] .calendar-month-title {
  color: var(--text);
}

html[data-theme="dark"] .btn-nav-arrow {
  color: var(--text);
}

html[data-theme="dark"] .btn-today {
  background-color: var(--surface-strong);
  border-color: #475569;
  color: var(--text);
}

html[data-theme="dark"] .btn-today:hover {
  background-color: var(--surface-soft);
  border-color: #64748b;
}

/* --- Weekday header row (calendar grid) --- */
html[data-theme="dark"] .weekday-row {
  background-color: var(--surface);
  border-color: #334155;
  color: var(--text-muted);
}

html[data-theme="dark"] .weekday-row span {
  border-right-color: #334155;
}

/* --- Status space sticky title (today page) --- */
html[data-theme="dark"] .status-space-title {
  background: var(--background);
  color: var(--text);
}

html[data-theme="dark"] .status-space-title::after {
  background: #334155;
}

/* --- No-matches placeholder (today page & league matches) --- */
html[data-theme="dark"] .no-matches-placeholder {
  background: var(--surface);
  border-color: #334155;
  color: var(--text-muted);
}

html[data-theme="dark"] .league-matches-results .no-matches-placeholder {
  background: var(--surface);
  border-color: #475569;
  color: var(--text);
  box-shadow: 4px 4px 0px #475569;
}

/* --- Timeline empty state text (schedule page) --- */
html[data-theme="dark"] .timeline-empty-title {
  color: var(--text);
}

html[data-theme="dark"] .timeline-empty-subtitle {
  color: var(--text-muted);
}

html[data-theme="dark"] .timeline-empty-available-label {
  color: var(--text-muted);
}

/* --- Week match count badge (inactive state) --- */
html[data-theme="dark"] .week-match-count {
  background: #1e293b;
  color: var(--text-muted);
  border-color: #334155;
}

html[data-theme="dark"] .week-day-card:hover {
  background-color: #1a2640;
}

html[data-theme="dark"] .week-day-card.today-card:not(.active) .week-match-count {
  background: #422006;
  color: #fde68a;
  border-color: #92400e;
}

/* --- Match bar countdown badges --- */
html[data-theme="dark"] .match-bar-countdown.countdown-upcoming {
  background: #1e3a5f;
  color: #93c5fd;
  border-color: #1d4ed8;
}

html[data-theme="dark"] .match-bar-countdown.countdown-live {
  background: transparent;
  border: none;
  padding: 0;
}

html[data-theme="dark"] .match-bar-countdown.countdown-completed {
  background: #1e293b;
  color: #64748b;
  border-color: #334155;
}

/* --- Match bar score badge --- */
html[data-theme="dark"] .timeline-match-bar .match-bar-score {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .timeline-match-bar .match-bar-score.live-score {
  background: #14532d;
  border-color: #166534;
  color: #86efac;
}

/* --- Status indicator badges (summary row) --- */
html[data-theme="dark"] .status-indicator-badge.ongoing.available {
  background-color: #14532d;
  color: #86efac;
  border-color: #166534;
}

html[data-theme="dark"] .status-indicator-badge.ongoing.available::before {
  background-color: #86efac;
}

html[data-theme="dark"] .status-indicator-badge.upcoming.available {
  background-color: #1e3a5f;
  color: #93c5fd;
  border-color: #1d4ed8;
}

html[data-theme="dark"] .status-indicator-badge.upcoming.available::before {
  background-color: #93c5fd;
}

html[data-theme="dark"] .status-indicator-badge.past.available {
  background-color: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

html[data-theme="dark"] .status-indicator-badge.past.available::before {
  background-color: #64748b;
}

html[data-theme="dark"] .status-indicator-badge.empty {
  background-color: #1e293b;
  color: #64748b;
  border-color: #334155;
}

html[data-theme="dark"] .status-indicator-badge.empty::before {
  background-color: #475569;
}

/* --- Double-month calendar date picker (today page) --- */
html[data-theme="dark"] .calendar-picker-dropdown {
  background: var(--surface);
  border-color: #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .picker-sidebar {
  background: var(--surface-soft);
  border-right-color: #334155;
}

html[data-theme="dark"] .sidebar-item-link {
  color: var(--text-muted);
}

html[data-theme="dark"] .sidebar-item-link:hover {
  background: #1e293b;
  color: var(--text);
}

html[data-theme="dark"] .picker-calendars-row {
  background: var(--surface);
}

html[data-theme="dark"] .month-container {
  background: var(--surface);
}

html[data-theme="dark"] .month-nav-btn {
  background: var(--surface-strong);
  border-color: #334155;
  color: var(--text);
}

html[data-theme="dark"] .month-nav-btn:hover {
  background: #1e293b;
  border-color: #475569;
}

html[data-theme="dark"] .calendar-month-select,
html[data-theme="dark"] .calendar-year-select {
  color: var(--text);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .calendar-month-select:hover,
html[data-theme="dark"] .calendar-year-select:hover {
  background-color: #1e293b;
}

html[data-theme="dark"] .calendar-table-header {
  color: var(--text-muted);
}

html[data-theme="dark"] .calendar-picker-day {
  color: var(--text);
}

html[data-theme="dark"] .calendar-picker-day:hover:not(.empty) {
  background: #1e293b;
}

html[data-theme="dark"] .calendar-picker-day.empty {
  color: #475569;
}

html[data-theme="dark"] .calendar-picker-day.today-cell {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #ffffff;
}

html[data-theme="dark"] .calendar-picker-day.active-day {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .calendar-picker-day.range-mid {
  background: #1e3a5f;
  color: #93c5fd;
}

html[data-theme="dark"] .calendar-picker-day.range-edge {
  background: #1d4ed8;
  color: #ffffff;
}

html[data-theme="dark"] .today-text {
  color: #60a5fa;
}

html[data-theme="dark"] .calendar-picker-day.today-cell .today-text {
  color: #bfdbfe;
}

/* ==========================================
   DARK THEME ADAPTATIONS
   ========================================== */

html[data-theme="dark"] .dashboard-back-btn,
html[data-theme="dark"] .dashboard-info-card,
html[data-theme="dark"] .tab-btn,
html[data-theme="dark"] .dashboard-card-wrap,
html[data-theme="dark"] .h2h-match-row,
html[data-theme="dark"] .court-player-card,
html[data-theme="dark"] .list-table-row {
  border-color: var(--border);
  box-shadow: 4px 4px 0px var(--border);
}

html[data-theme="dark"] .tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--border);
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .dashboard-back-btn {
  box-shadow: 2px 2px 0px var(--border);
  color: var(--text);
  background: var(--surface);
}

html[data-theme="dark"] .dashboard-back-btn:hover {
  box-shadow: 3px 3px 0px var(--border);
}

html[data-theme="dark"] .events-half-header {
  background: var(--surface-strong);
}

html[data-theme="dark"] .events-half-title,
html[data-theme="dark"] .events-half-score,
html[data-theme="dark"] .events-minute,
html[data-theme="dark"] .events-primary {
  color: var(--text);
}

html[data-theme="dark"] .events-secondary,
html[data-theme="dark"] .events-note {
  color: var(--text-muted);
}

html[data-theme="dark"] .events-icon-box {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
}

html[data-theme="dark"] .events-score-chip {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
}

html[data-theme="dark"] .events-icon-box.goal .events-icon-symbol {
  color: #e2e8f0;
}

html[data-theme="dark"] .events-icon-box.substitution .events-icon-symbol {
  color: inherit;
}

html[data-theme="dark"] .substitution-icon-svg .sub-head,
html[data-theme="dark"] .substitution-icon-svg .sub-body {
  stroke: #0f172a;
}

html[data-theme="dark"] .substitution-icon-svg .sub-head-top,
html[data-theme="dark"] .substitution-icon-svg .sub-head-bottom {
  fill: #fed7c2;
}

html[data-theme="dark"] .substitution-icon-svg .sub-body {
  fill: #f87171;
}

html[data-theme="dark"] .substitution-icon-svg .sub-arrow-out {
  stroke: #4ade80;
}

html[data-theme="dark"] .substitution-icon-svg .sub-arrow-in {
  stroke: #fb7185;
}

html[data-theme="dark"] .events-icon-box.neutral .events-icon-symbol {
  color: var(--text-muted);
}

html[data-theme="dark"] .tab-btn {
  box-shadow: 2px 2px 0px var(--border);
  color: var(--text);
  background: var(--surface);
}

html[data-theme="dark"] .tab-btn:hover {
  box-shadow: 3px 3px 0px var(--border);
}

html[data-theme="dark"] .timeline-node .event-details-card {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .timeline-node .time-circle,
html[data-theme="dark"] .kickoff-node .time-circle,
html[data-theme="dark"] .fulltime-node .time-circle {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .court-player-card {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .info-icon,
html[data-theme="dark"] .dashboard-card-header-bar,
html[data-theme="dark"] .coach-row-list,
html[data-theme="dark"] .h2h-score-box {
  border-color: var(--border);
}

html[data-theme="dark"] .odds-probability-bar,
html[data-theme="dark"] .comparison-dual-bar {
  border-color: var(--border);
  background: #334155;
}

html[data-theme="dark"] .timeline-axis-line,
html[data-theme="dark"] .timeline-node .time-circle,
html[data-theme="dark"] .timeline-node .node-connector,
html[data-theme="dark"] .timeline-node .event-details-card,
html[data-theme="dark"] .timeline-logo-wrap,
html[data-theme="dark"] .sports-pitch,
html[data-theme="dark"] .racket-court,
html[data-theme="dark"] .player-jersey,
html[data-theme="dark"] .court-net,
html[data-theme="dark"] .lineup-formation-tag {
  border-color: var(--border);
}

html[data-theme="dark"] .timeline-node .event-details-card,
html[data-theme="dark"] .timeline-logo-wrap {
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .sports-pitch,
html[data-theme="dark"] .racket-court {
  box-shadow: 4px 4px 0px var(--border);
}

html[data-theme="dark"] .player-jersey {
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .dashboard-tabs-row {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .dashboard-info-card h3 {
  border-bottom-color: var(--border);
}


html[data-theme="dark"] .tab-btn {
  box-shadow: 2px 2px 0px var(--border);
  color: var(--text);
  background: var(--surface);
}

html[data-theme="dark"] .tab-btn:hover {
  box-shadow: 3px 3px 0px var(--border);
}

html[data-theme="dark"] .timeline-node .event-details-card {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .timeline-node .time-circle,
html[data-theme="dark"] .kickoff-node .time-circle,
html[data-theme="dark"] .fulltime-node .time-circle {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .court-player-card {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .info-icon,
html[data-theme="dark"] .dashboard-card-header-bar,
html[data-theme="dark"] .coach-row-list,
html[data-theme="dark"] .h2h-score-box {
  border-color: var(--border);
}

html[data-theme="dark"] .odds-probability-bar,
html[data-theme="dark"] .comparison-dual-bar {
  border-color: var(--border);
  background: #334155;
}

html[data-theme="dark"] .timeline-axis-line,
html[data-theme="dark"] .timeline-node .time-circle,
html[data-theme="dark"] .timeline-node .node-connector,
html[data-theme="dark"] .timeline-node .event-details-card,
html[data-theme="dark"] .timeline-logo-wrap,
html[data-theme="dark"] .sports-pitch,
html[data-theme="dark"] .racket-court,
html[data-theme="dark"] .player-jersey,
html[data-theme="dark"] .court-net,
html[data-theme="dark"] .lineup-formation-tag {
  border-color: var(--border);
}

html[data-theme="dark"] .timeline-node .event-details-card,
html[data-theme="dark"] .timeline-logo-wrap {
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .sports-pitch,
html[data-theme="dark"] .racket-court {
  box-shadow: 4px 4px 0px var(--border);
}

html[data-theme="dark"] .player-jersey {
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .dashboard-tabs-row {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .dashboard-info-card h3 {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .starting-xi-list h5,
html[data-theme="dark"] .substitutes-list h5 {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .detail-footer-actions {
  border-top-color: var(--border);
}

/* styles/header.css */
.site-header {
  position: relative;
  z-index: 110;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 28px;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.search-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000000;
  transition: opacity 0.2s ease;
}

.search-button:hover {
  opacity: 0.7;
}

.search-button svg {
  width: 38px;
  height: 38px;
  stroke: #000000;
  stroke-width: 2.8;
  fill: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #050505;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand sup {
  position: relative;
  top: -0.72em;
  margin-right: 2px;
  font-size: 0.42em;
  line-height: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-left: auto;
}

.main-nav a {
  color: #000000;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #141a28;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.site-header .theme-toggle-btn {
  color: #475569;
}

.site-header .theme-toggle-btn .theme-icon {
  width: 26px;
  height: 26px;
}

.site-mark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-mark {
  display: block;
  width: 108px;
  height: auto;
  object-fit: contain;
}

/* Menu Toggle Button styling */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
}

.menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: #000000;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .header-inner {
    padding: 10px 20px;
    gap: 24px;
  }

  .main-nav {
    gap: 30px;
  }

  .brand {
    font-size: 20px;
  }

  .header-left {
    gap: 16px;
  }

  .site-mark {
    width: 96px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    position: relative;
    min-height: 72px;
    padding: 9px 16px;
    gap: 14px;
  }

  .header-left {
    min-width: 0;
    gap: 12px;
  }

  .site-mark {
    width: 88px;
  }

  .brand {
    font-size: 18px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-left: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
  }

  .main-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a:hover {
    background: #f8fafc;
    color: var(--accent);
  }

  .menu-toggle {
    display: flex;
    margin-left: 10px;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding-inline: 12px;
  }

  .site-mark {
    width: 78px;
  }

  .brand {
    font-size: 16px;
    letter-spacing: -0.045em;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    margin-left: 4px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 14px;
  }
}

/* ==========================================
   SEARCH POPUP — DYNAMIC ELEMENTS
   ========================================== */

.search-popup-jump-row {
  padding: 8px 18px;
  display: flex;
  justify-content: flex-end;
  background-color: #f8fafc;
  border-bottom: 2px solid #000;
}

.search-popup-jump-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  color: #475569;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}

.search-popup-jump-btn:hover {
  color: #000000;
}

.search-popup-empty-msg {
  padding: 16px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #64748b;
  font-size: 13px;
  border-bottom: 2px solid #000;
}

.past-matches-header {
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  background-color: #f1f5f9;
  border-bottom: 2px solid #000;
  color: #475569;
  letter-spacing: 0.8px;
}

.show-past-container {
  padding: 20px;
  text-align: center;
  background-color: #fafafa;
  border-bottom: 2px solid #000;
}

.show-past-btn {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 2.5px solid #000000;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000000;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  color: #0f172a;
}

.show-past-btn:hover {
  background-color: #f1f5f9;
}

/* Dark mode overrides for search popup dynamic elements */
html[data-theme="dark"] .search-popup-jump-row {
  background-color: var(--surface-soft);
  border-bottom-color: #334155;
}

html[data-theme="dark"] .search-popup-jump-btn {
  color: var(--text-muted);
}

html[data-theme="dark"] .search-popup-jump-btn:hover {
  color: var(--text);
}

html[data-theme="dark"] .search-popup-empty-msg {
  color: var(--text-muted);
  border-bottom-color: #334155;
}

html[data-theme="dark"] .past-matches-header {
  background-color: var(--surface-strong);
  border-bottom-color: #334155;
  color: var(--text-muted);
}

html[data-theme="dark"] .show-past-container {
  background-color: var(--surface);
  border-bottom-color: #334155;
}

html[data-theme="dark"] .show-past-btn {
  background: var(--surface-strong);
  border-color: #475569;
  color: var(--text);
  box-shadow: 4px 4px 0px #475569;
}

html[data-theme="dark"] .show-past-btn:hover {
  background-color: var(--surface-soft);
}

/* styles/footer.css */
.site-footer {
  background-color: #00074A;
  color: #ffffff;
  padding: 18px 0;
  border-top: none;
  font-family: var(--font-sans);
}

.footer-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-links a {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copyright {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  opacity: 0.8;
  text-transform: uppercase;
  text-align: center;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  height: 38px;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.store-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.store-badge.app-store img {
  filter: invert(1);
  border: 1.5px solid #000000;
  border-radius: 6px;
  box-sizing: border-box;
}

.store-badge.google-play img {
  border-radius: 6px;
  box-sizing: border-box;
}

/* styles/home.css */
.home-hero {
  background: #141a28;
  color: #ffffff;
  padding: 0;
}

.home-hero-inner {
  max-width: 100%;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 7fr 3fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.hero-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: 462px;
  min-height: 120px;
  background: #0b1320;
}

.slideshow-track {
  display: flex;
  height: 100%;
  animation: scrollSlides 40s linear infinite;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
  border-radius: 0;
}

@keyframes scrollSlides {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% * var(--slides-count, 9)));
  }
}

.hero-copy {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 462px;
  padding: 40px;
}

.hero-copy>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 36px;
  line-height: 46px;
  font-weight: 800;
  color: #ffffff;
  word-wrap: break-word;
}

.hero-text {
  font-family: var(--font-sans);
  width: min(100%, 360px);
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  word-wrap: break-word;
}

.hero-cta-decor {
  width: 100%;
  max-width: 160px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}


.hero-arrows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-arrow {
  background: rgba(255, 255, 255, 0.22);
  transform: skewX(-12deg);
}

.hero-arrow-large {
  width: 24px;
  height: 40px;
}

.hero-arrow-small {
  width: 16px;
  height: 28px;
  opacity: 0.35;
}

.home-content {
  padding: 48px 24px 64px;
}

.home-ad-banner-section {
  padding: 24px 24px 0;
  background: transparent;
}

.home-ad-banner-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-ad-banner-shell::-webkit-scrollbar {
  display: none;
}

.home-ad-banner-block {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 auto;
  padding-right: 30px;
}

.home-ad-banner-slot {
  position: relative;
  width: 728px;
  min-width: 728px;
  min-height: 90px;
  display: block;
  margin: 0 auto;
  border: 1px dashed rgba(15, 23, 42, 0.24);
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

.home-ad-banner-slot:empty::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
  text-align: center;
}

.page-ad-wrapper {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 20px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  align-items: start;
}

.home-page-ad-wrapper {
  padding: 0 24px;
}

.ad-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
}

.main-content-center {
  width: 100%;
  min-width: 0;
}

.ad-sidebar-slot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ad-sidebar-slot {
  position: relative;
  width: 300px;
  min-width: 300px;
  min-height: 250px;
  display: block;
  border: 1px dashed rgba(15, 23, 42, 0.24);
  background: #ffffff;
  overflow: hidden;
}

.ad-sidebar-slot:empty::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
  text-align: center;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ad-label-vertical {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  padding: 0;
  background: transparent;
  border-left: none;
  overflow: hidden;
}

.ad-label-vertical > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.04em;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}

.ad-label-bottom {
  white-space: nowrap;
}

.home-ad-banner-section-below-calendar {
  padding-top: 50px;
  padding-bottom: 12px;
}

.sport-inline-ad {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sport-inline-ad-mid {
  grid-column: 1 / -1;
  margin-top: 8px;
  margin-bottom: 0;
  padding-bottom: 24px;
}

.sport-inline-ad-mid .home-ad-banner-block {
  margin: 0 auto;
}

.sport-inline-ad::-webkit-scrollbar {
  display: none;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.calendar-container {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
}

.calendar-layout-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.calendar-main-area {
  flex: 1;
  min-width: 0;
}

.sports-sidebar {
  flex-shrink: 0;
  width: 50px;
  margin-right: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  z-index: 10;
  overflow: visible;
  height: auto;
  align-self: flex-start;
}

.leagues-sidebar {
  flex-shrink: 0;
  width: 50px;
  margin-right: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 10;
  overflow: visible;
  height: auto;
  align-self: stretch;
}

/* Horizontal sports sidebar - hidden by default, shown only on mobile (<=500px) */
.sports-sidebar-horizontal {
  display: none;
}


.sidebar-item,
.league-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 36px;
  max-height: 36px;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s ease;
  margin: 0 auto;
  flex: 1 1 0%;
  min-height: 0;
}

.sidebar-item:hover,
.league-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.sidebar-item.active,
.league-item.active {
  background: #0f8cff;
  color: #ffffff !important;
}

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  height: 70%;
  flex-shrink: 0;
}

.sidebar-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.sidebar-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-label {
  position: absolute;
  left: 48px;
  /* sits right next to the item */
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
  z-index: 1000;
}

/* Tooltip arrow shape */
.sidebar-label::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}

.sidebar-label::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent #e5e7eb transparent transparent;
  z-index: -1;
}

.sidebar-item:hover .sidebar-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.new-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
  padding-left: 74px;
  box-sizing: border-box;
}

.calendar-title-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.calendar-month-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.calendar-nav-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-nav-arrow {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.btn-nav-arrow:hover {
  opacity: 0.6;
}

.btn-today {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-today:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.calendar-grid-wrapper {
  background-color: transparent;
  border-top: none;
  min-width: 1050px;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  color: #4b5563;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  text-align: center;
}

.weekday-row span {
  padding: 12px 0;
  border-right: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.weekday-row span:last-child {
  border-right: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background-color: transparent;
  gap: 0;
  border: none;
}

.calendar-card {
  min-height: 180px;
  background-color: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  border-radius: 0;
  min-width: 0;
  overflow: hidden;
  position: relative; /* enable absolute positioning for today-label */
}

.calendar-empty {
  background-color: #f1f5f9;
}

.calendar-today {
  background-color: #dbeafe !important; /* soft accent blue background for current day */
  border: 2px solid #000000 !important; /* solid black border to stand out */
  position: relative;
  z-index: 2; /* raise slightly so shadow displays on top of adjacent cells */
}

.calendar-number {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.today-label {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 8.5px;
  font-weight: 800;
  color: #000000;
  background-color: #ffffff; /* crisp white background */
  border: 1.5px solid #000000;
  padding: 3px 6px;
  border-radius: 3.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  box-shadow: 1.5px 1.5px 0 #000000; /* small dropshadow on badge */
  z-index: 3;
}

.calendar-empty .calendar-number {
  color: #9ca3af;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.event-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.event-item:hover {
  color: #000000;
  transform: translateX(4px);
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-text {
  display: block;
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.view-more {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  text-align: right;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: color 0.2s ease;
}

.view-more:hover {
  color: #4b5563;
}

.sidebar-panel {
  display: grid;
  gap: 24px;
}

.sidebar-card {
  padding: 26px;
}

.sidebar-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.sidebar-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sidebar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-weight: 600;
}

.sidebar-live-list {
  display: grid;
  gap: 16px;
}

.sidebar-live-item {
  border-radius: 5px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.sidebar-live-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 10px;
}

.match-type {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.match-status-pill {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-live-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
}

.sidebar-live-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.live-section {
  margin-top: 40px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 24px;
}

.live-head h2,
.panel h2 {
  margin: 0;
  font-size: 1.95rem;
}

.panel-pretitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0 0 8px;
}

/* Live Matches Dashboard Styles */
.live-matches-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.live-matches-header {
  margin-bottom: 32px;
}

.live-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-pretitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}

.live-main-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  color: #111827;
}

/* Container for the filter pills row and navigation arrows */
.filter-pills-row-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 0;
}

.filter-pills-row-container--pending .filter-pills-row,
.filter-pills-row-container--pending .scroll-arrow {
  visibility: hidden;
}

/* Horizontal pills layout with scroll support, no wrapping, hidden scrollbar */
.filter-pills-row {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
}

.filter-pills-row::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari/Opera */
}

/* Floating Navigation Arrows */
.scroll-arrow {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: #111827;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  align-self: center;
}

.scroll-arrow:hover {
  background: #f8fafc;
  color: #0f8cff;
  border-color: #0f8cff;
  box-shadow: 0 6px 20px rgba(15, 140, 255, 0.2);
  transform: scale(1.08);
}

.scroll-arrow:active {
  transform: scale(0.95);
}

.scroll-arrow.left-arrow {
  margin-right: 8px;
}

.scroll-arrow.right-arrow {
  margin-left: 8px;
}

.filter-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 90px; /* reduced base size */
  min-width: 90px;
  height: 130px; /* Restored original height */
  padding: 12px 4px;
  background: #D9D9D9;
  /* Solid light gray */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  /* Corner radius 5 */
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  color: #000000;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.filter-pill:hover {
  background: #CFCFCF;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: #a5dbff;
  color: #000000;
  border-color: #00074A;
  outline: 2px solid #00074A;
  outline-offset: -2px;
  box-shadow: 0 4px 12px rgba(15, 140, 255, 0.2);
}

.pill-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  width: 100%;
}

.pill-image {
  max-width: 44px;
  width: 100%;
  /* Scale width responsively */
  max-height: 44px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.filter-pill:hover .pill-image {
  transform: scale(1.1);
}

.pill-name {
  line-height: 1.2;
  display: block;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Responsive Scaling for Narrow Screens (No Wrapping) */
@media (max-width: 1200px) {
  .page-ad-wrapper {
    grid-template-columns: 1fr;
  }

  .home-page-ad-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .ad-sidebar,
  [id="gpt-passback-scoretab.in.Banner0.1783512063"],
  #div-gpt-ad-subwayrev-bottom-728x90 {
    display: none !important;
  }

  .home-ad-banner-shell {
    justify-content: flex-start;
  }

  .filter-pill {
    flex: 0 0 80px;
    min-width: 80px;
    height: 120px; /* Restored original height scale */
    padding: 10px 3px;
    font-size: 9px;
  }

  .pill-image {
    max-width: 40px;
    max-height: 40px;
  }
}

@media (max-width: 900px) {
  .filter-pills-row {
    gap: 6px;
  }

  .filter-pill {
    flex: 0 0 70px;
    min-width: 70px;
    height: 95px; /* Restored original height scale */
    padding: 8px 2px;
    font-size: 7.5px;
  }

  .pill-image {
    max-width: 32px;
    max-height: 32px;
  }
}

@media (max-width: 600px) {
  .home-ad-banner-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .filter-pills-row {
    gap: 4px;
  }

  .filter-pill {
    flex: 0 0 60px;
    min-width: 60px;
    height: 80px; /* Restored original height scale */
    padding: 6px 1px;
    font-size: 6.5px;
  }

  .pill-image {
    max-width: 24px;
    max-height: 24px;
  }

  /* Hide navigation arrows on touch/mobile screens */
  .scroll-arrow {
    display: none !important;
  }
}

/* Grid layout for Live Match Cards */
.live-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* 2 columns on desktop */
  gap: 24px;
}

.live-matches-grouped {
  display: block;
}

.live-matches-grouped .status-space-container {
  margin-bottom: 40px;
}

.live-matches-grouped .status-space-container:last-child {
  margin-bottom: 0;
}

.live-matches-grouped .sport-banner-tag {
  margin-top: 0;
}

.live-matches-grouped .today-matches-grid {
  margin-bottom: 0;
}

.live-matches-grouped .sport-badge {
  display: none !important;
}

#live-matches-placeholder {
  width: min(100%, 980px) !important;
  margin: 8px auto 36px;
  padding: 42px 28px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background:
    radial-gradient(circle at top, rgba(15, 140, 255, 0.1), transparent 52%),
    #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.home-live-empty-icon {
  position: relative;
  width: 66px;
  height: 66px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-live-empty-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.04));
}

.home-live-empty-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  box-shadow: 0 0 0 8px rgba(148, 163, 184, 0.18);
}

#live-matches-placeholder .timeline-empty-title {
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 10px;
}

#live-matches-placeholder .timeline-empty-subtitle {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #64748b;
}

#live-matches-placeholder .timeline-empty-available {
  margin-top: 22px;
}

#live-matches-placeholder .timeline-empty-available-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

#live-matches-placeholder .timeline-empty-sports-list {
  justify-content: center;
}

#live-matches-placeholder .timeline-empty-sport-chip {
  min-height: 48px;
}

html[data-theme="dark"] #live-matches-placeholder {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.36);
}

html[data-theme="dark"] #live-matches-placeholder .timeline-empty-title {
  color: #f8fafc;
}

html[data-theme="dark"] #live-matches-placeholder .timeline-empty-subtitle,
html[data-theme="dark"] #live-matches-placeholder .timeline-empty-available-label {
  color: #cbd5e1;
}

html[data-theme="dark"] .home-live-empty-pulse {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), rgba(59, 130, 246, 0.08));
}

html[data-theme="dark"] .home-live-empty-dot {
  background: linear-gradient(180deg, #cbd5e1, #64748b);
  box-shadow: 0 0 0 8px rgba(148, 163, 184, 0.18);
}

.home-comments-section {
  margin-top: 40px;
  border-top: none;
  background: transparent;
  padding-top: 20px;
  padding-bottom: 88px;
}

.home-comments-section .comments-header {
  margin-bottom: 28px;
}

/* Restrict sidebar height on Today and Schedule pages to size dynamically to content */
@media (min-width: 761px) {
  .today-sports-sidebar,
  .schedule-sports-sidebar {
    height: auto !important;
    align-self: flex-start !important;
  }
}

.btn-today-matches {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--accent, #0f8cff);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 140, 255, 0.2);
  margin-top: 15px;
}

.btn-today-matches:hover {
  background-color: var(--accent-dark, #0749b8);
  box-shadow: 0 6px 16px rgba(7, 73, 184, 0.3);
  transform: translateY(-1px);
}

.btn-today-matches:active {
  transform: translateY(0);
}

/* styles/card.css */
.match-card {
  padding: 24px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 20px;
}

.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.match-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.match-status {
  color: var(--accent-dark);
  font-weight: 700;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-logo {
  min-width: 62px;
  min-height: 62px;
  border-radius: 22px;
  background: #eef6ff;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-weight: 800;
}

.team-name {
  font-weight: 700;
}

.team-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.match-score {
  min-width: 130px;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.match-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Base styling for live card */
.live-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 5px;
  /* Minimized border radius */
  overflow: hidden;
  height: 265px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  /* Plain card surface with enough separation from page background */
  color: #000000;
  /* All card text color is black */
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-card.doubles-card {
  grid-column: span 2;
  /* 2v2 card spans 2 columns */
}

.live-card::before {
  display: none;
}

.live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
}

.match-card-detail-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  text-decoration: none;
}

.match-card-detail-link:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -4px;
}

.live-card-overlay {
  display: none;
  /* Removed dark color overlay gradient as requested */
}

.live-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px 20px;
  /* adjusted padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Header styles */
.card-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  position: relative;
}

.header-league-badge-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  min-width: 0;
  max-width: min(100%, 240px);
  justify-self: center;
  gap: 4px;
  padding: 0 4px; /* horizontal padding to prevent layout crowding */
}

.header-league-badge-wrapper .score-league-badge {
  pointer-events: auto;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-group-match-details {
  display: block;
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6573;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tennis-round-info {
  letter-spacing: 0.1em;
}

.left-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.right-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* Pulsing live dot */
.live-dot-pulse {
  display: none;
  /* Hidden as the dot is now integrated into the live badge box */
}

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  /* Minimized border radius */
  background: rgba(0, 0, 0, 0.65);
  /* background 000000 65% */
  color: #ffffff;
  /* White text */
  opacity: 1;
  /* opacity 100% */
  white-space: nowrap !important; /* prevent sport and live badges from wrapping */

  /* Glass effect */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ff3b30;
  /* Red dot */
  border-radius: 50%;
  animation: breatheRed 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes breatheRed {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
  }
}

.live-badge {
  /* Inherits glass style from .badge */
  white-space: nowrap !important; /* status badge must be single line */
}

.sport-badge {
  /* Inherits glass style from .badge */
  white-space: nowrap !important; /* sport badge must be single line */
}

.laps-badge {
  background-color: #ff0000 !important; /* solid red background */
  color: #000000 !important; /* solid black text */
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Glass channels box on top right */
.right-channels-box {
  position: relative;
  z-index: 4;
  display: none !important;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  /* Minimized border radius */
  background: rgba(0, 0, 0, 0.65);
  /* background 000000 65% */

  /* Glass effect */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.right-channels-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.right-channels-box a:hover {
  transform: scale(1.18);
  opacity: 0.85;
}

.channel-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.card-league {
  display: block;
  align-self: center;
  /* Center horizontally in flex layout */
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  background: transparent;
  border: none;
  padding: 0;
  margin: 6px 0 0 0;
  /* Spacing below the header container */
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.sub-score-overs {
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  margin-top: 2px;
}

.card-body-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Card footer styles */
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  /* Black border */
  width: 100%;
  padding-top: 10px;
}

.venue-text {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  /* slightly heavier font weight */
  opacity: 0.8;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Team vs Layout */
.team-vs-layout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.team-column {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.team-crest {
  width: 68px;
  /* Larger logo container */
  height: 68px;
  background: transparent !important;
  /* No background */
  border: none !important;
  /* No border */
  box-shadow: none !important;
  /* No box-shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.team-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-crest .initials {
  color: #000000;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.team-abbr {
  font-size: 20px;
  /* Larger and bold abbreviation */
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.score-column {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-score {
  font-size: 40px;
  /* Larger score text */
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap; /* Prevent line breaks */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-score.golf-score {
  font-size: 32px; /* Slightly smaller for golf to prevent overlap */
  gap: 4px;
}

.golf-score-separator {
  opacity: 0.4;
  font-weight: 400;
  margin: 0 4px;
}

.set-score {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
  color: #000000;
  /* Black text */
  margin-top: 4px;
}

.vs-text {
  font-size: 16px;
  /* Larger V/S */
  font-weight: 800;
  opacity: 0.6;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.card-tennis-live-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-top: 6px;
  padding: 4px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  opacity: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}

html[data-theme="dark"] .card-tennis-live-points {
  background: rgba(191, 219, 254, 0.12);
  border-color: rgba(191, 219, 254, 0.28);
  color: #dbeafe;
}

.innings-badge-wrapper {
  margin-top: 4px;
  display: block;
}

.innings-badge {
  font-size: 10px;
  /* Smaller font size */
  font-weight: 800;
  background: transparent;
  /* No box background */
  color: #000000;
  /* Black text */
  padding: 0;
  /* No box padding */
  border: none;
  box-shadow: none;
  /* No shadow */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Racing Layout */
.racing-layout {
  width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center the score-league-badge */
  gap: 6px;
}

.driver-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  /* Transparent black backdrop */
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 12px;
  border-radius: 4px;
  /* Minimized border radius */
  font-size: 14px;
  width: 100%;
  /* Force full width within centered flex parent */
}

.driver-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-num {
  font-weight: 800;
  color: #000000;
  /* Black */
  opacity: 0.95;
}

.driver-name {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.driver-right {
  font-weight: 700;
  opacity: 0.9;
}

/* Singles vs Layout */
.singles-vs-layout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.player-column {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-avatar-container {
  position: relative;
  width: 76px;
  height: 76px;
}

.player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000000;
  /* solid black border on avatar */
}

/* Tennis uses rectangular flags — no circle, no border */
.live-card[data-sport="tennis"] .player-avatar,
.live-card[data-sport="tennis"] .individual-player .player-avatar {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain !important;
  background: transparent;
  filter: brightness(0.92);
}

.live-card[data-sport="tennis"] .player-avatar-container,
.live-card[data-sport="tennis"] .individual-player .player-avatar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  overflow: visible;
  background: transparent;
  border: none;
}

.today-matches-grid .live-card[data-sport="tennis"] .player-avatar,
.today-matches-grid .live-card[data-sport="tennis"] .individual-player .player-avatar {
  border-radius: 0 !important;
}

.today-matches-grid .live-card[data-sport="tennis"] .player-avatar-container,
.today-matches-grid .live-card[data-sport="tennis"] .individual-player .player-avatar-container {
  border-radius: 0 !important;
}

.player-flag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 16px;
  border-radius: 0;
  border: none;
  object-fit: cover;
  box-shadow: none;
  outline: none;
  background: transparent;
  filter: brightness(0.92);
  box-sizing: border-box;
}

.live-card[data-sport="tennis"] .player-avatar-container {
  width: 84px;
  height: 56px;
}

.live-card.doubles-card[data-sport="tennis"] .individual-player .player-avatar-container {
  width: 84px;
  height: 56px;
}

.live-card.doubles-card[data-sport="tennis"] .individual-player .player-avatar {
  border-radius: 0 !important;
  border: none;
  box-shadow: none;
}

.player-name {
  font-size: 16px;
  /* increased from 14px */
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Doubles vs Layout */
.doubles-vs-layout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.doubles-vs-layout .player-column {
  width: 42%;
}

.doubles-vs-layout .score-column {
  width: 16%;
}

.doubles-players-row {
  display: flex;
  flex-direction: row;
  /* display side by side */
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  /* spacing between two players */
  width: 100%;
}

.individual-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  /* fixed size player column to ensure names align under images */
  flex-shrink: 0;
}

.individual-player .player-name {
  font-size: 16px;
  /* increased from 14px */
  font-weight: 800;
  /* bold font weight */
  color: #000000;
  text-align: center;
  margin-top: 6px;
  /* space below flag */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Tennis doubles — larger flags and names */
.live-card.doubles-card[data-sport="tennis"] .individual-player {
  width: 92px;
}

.live-card.doubles-card[data-sport="tennis"] .individual-player .player-name {
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

html[data-theme="dark"] .live-card.doubles-card[data-sport="tennis"] .individual-player .player-name {
  color: var(--text) !important;
}

.live-card[data-sport="tennis"]:not(.doubles-card) .player-name {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.18;
  max-width: 100%;
}

.live-card.doubles-card[data-sport="tennis"] .individual-player .player-flag {
  border: none;
  outline: none;
  box-shadow: none;
}

.score-league-badge {
  font-size: 10px; /* increased from 8px */
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  background: rgba(0, 0, 0, 0.15);
  /* matching the semi-transparent gray badge */
  padding: 3px 8px; /* slightly smaller padding */
  border-radius: 4px;
  margin-bottom: 0; /* no bottom margin in header */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
  white-space: normal; /* support wrapping if too long */
  line-height: 1.25;
  vertical-align: middle;
}

.live-card.centered-card {
  grid-column: span 2;
  max-width: calc(50% - 12px);
  /* matches a standard single-card column width */
  width: 100%;
  margin: 0 auto;
}

/* Calendar Matches Popup Styles */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: none;
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

.popup-overlay.show {
  display: block;
}

.calendar-popup {
  position: absolute;
  width: 100%;
  max-width: 295px;
  background: #fafaf9;
  background-color: #fafaf9;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  border-radius: 16px;
  padding: 24px 18px 18px 18px;
  z-index: 2001;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  isolation: isolate;
}

.calendar-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
}

.popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff0055;
  border: 2px solid #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 2px 2px 0px #000000;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  z-index: 10;
}

.popup-close-btn:hover {
  background-color: #e6004c;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.popup-close-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.popup-close-btn svg {
  width: 12px;
  height: 12px;
}

.popup-date {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  color: #1e293b;
  background: #e2e8f0;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0 auto 14px auto;
  width: fit-content;
  display: block;
  box-shadow: 2px 2px 0px #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 2px dashed #000000;
  padding-bottom: 12px;
  margin-top: 6px;
}

.popup-league-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
  letter-spacing: 0.5px;
  flex-grow: 1;
}

.popup-league-subheader {
  --popup-sport-color: #64748b;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 20px 0 12px;
  color: #1f2937;
  border-left: 3px solid var(--popup-sport-color);
  padding-left: 8px;
}

.popup-league-subheader-text {
  font-family: var(--font-sans);
  font-weight: 850;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  color: inherit;
}

.popup-league-nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.popup-nav-arrow {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 6px;
  color: #000000;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.1s ease;
}

.popup-nav-arrow:hover {
  background-color: #f1f5f9;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.popup-nav-arrow:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.popup-matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
}

/* Custom premium scrollbar for matches list */
.popup-matches-list::-webkit-scrollbar {
  width: 6px;
}

.popup-matches-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.popup-matches-list::-webkit-scrollbar-thumb {
  background: #000000;
  border: 1px solid #ffffff;
  border-radius: 3.5px;
}

.popup-match-card {
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  border: 2px solid #000000;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 3.5px 3.5px 0 #000000;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 69px;
}

.popup-match-card:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5px 5px 0 #000000;
}

.popup-match-card:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 2px 2px 0 #000000;
}

.popup-match-left {
  flex: 0 0 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1.5px dashed #000000;
  margin-right: 10px;
  padding-right: 6px;
}

.popup-match-date {
  font-size: 10.5px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2px;
}

.popup-match-time {
  font-size: 9.5px;
  font-weight: 700;
  color: #4b5563;
}

.popup-match-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.popup-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.popup-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.popup-country-flag {
  border: none;
  border-radius: 0;
  background: transparent;
  filter: brightness(0.92);
}

.popup-match-card--tennis {
  height: auto;
  min-height: 92px;
  align-items: stretch;
}

.popup-match-card--tennis-doubles {
  height: auto !important;
  min-height: 165px !important;
  align-items: center !important;
  padding: 12px 14px !important;
}

.popup-match-card--tennis-1v1 {
  height: 69px !important;
  align-items: center !important;
  padding: 12px 14px !important;
}

.popup-match-card--motorsport {
  height: 48px !important;
  min-height: 48px !important;
  align-items: center !important;
  padding: 8px 14px !important;
}

.popup-motorsport-content {
  padding-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
}

.popup-motorsport-team {
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-motorsport-flag {
  width: 26px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  filter: brightness(0.92);
  object-fit: contain;
  box-sizing: border-box;
  flex-shrink: 0;
}

.popup-tennis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
}

.popup-tennis-team {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.popup-tennis-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.popup-tennis-flag {
  width: 28px;
  height: 18px;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  border: none;
  background: transparent;
  filter: brightness(0.92);
  box-sizing: border-box;
  flex-shrink: 0;
}

.popup-tennis-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #0f172a;
}

.popup-tennis-meta {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: normal;
}

.popup-team-initial-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #000000;
  box-shadow: 1px 1px 0px #000000;
}

.popup-team-name {
  font-size: 11px;
  font-weight: 850;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Dark Mode Overrides for Popup */
html[data-theme="dark"] .calendar-popup {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  border-color: var(--border);
  box-shadow: 6px 6px 0px var(--border);
}

html[data-theme="dark"] .popup-close-btn {
  border-color: var(--border);
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .popup-date {
  background-color: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .popup-league-title {
  color: var(--text);
}

html[data-theme="dark"] .popup-header {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .popup-nav-arrow {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .popup-nav-arrow:hover {
  background-color: var(--surface-soft);
}

html[data-theme="dark"] .popup-match-card {
  background-color: var(--surface);
  border-color: var(--border);
  box-shadow: 3.5px 3.5px 0px var(--border);
}

html[data-theme="dark"] .popup-match-card:hover {
  box-shadow: 5px 5px 0px var(--border);
}

html[data-theme="dark"] .popup-match-card:active {
  box-shadow: 2px 2px 0px var(--border);
}

html[data-theme="dark"] .popup-team-name {
  color: var(--text);
}

html[data-theme="dark"] .popup-team-initial-logo {
  border-color: var(--border);
  box-shadow: 1px 1px 0px var(--border);
}

html[data-theme="dark"] .popup-league-subheader {
  color: var(--text);
}

/* Responsiveness overrides for Live Matches page */

@media (max-width: 760px) {
  .live-matches-container {
    padding: 24px 16px 60px;
  }

  .live-main-title {
    font-size: 28px;
  }

  .live-matches-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .live-card.doubles-card {
    grid-column: span 1;
  }

  .live-card.centered-card {
    grid-column: span 1;
    max-width: 100%;
    margin: 0;
  }

  .filter-pills-row-container {
    margin-bottom: 24px;
  }

  .filter-pills-row {
    margin-bottom: 0;
  }

  /* Responsive scaling for logo, avatar, and tournament text on mobile */
  .header-league-badge-wrapper .score-league-badge {
    font-size: 8px; /* mobile league badge font size */
    padding: 4px 8px; /* tighter padding on mobile */
    margin-bottom: 0;
    white-space: normal !important;
    overflow: visible;
    text-overflow: clip;
  }

  .header-league-badge-wrapper {
    width: auto !important;
    max-width: 105px !important;
  }

  /* Team Layout Mobile Tweak */
  .team-crest {
    width: 48px;
    height: 48px;
  }

  .team-crest .initials {
    font-size: 14px;
  }

  .team-abbr {
    font-size: 15px;
  }

  .main-score {
    font-size: 28px;
  }

  .main-score.golf-score {
    font-size: 20px;
  }

  .sub-score-overs {
    font-size: 10px;
  }

  .vs-text {
    font-size: 11px;
  }

  /* Singles (1v1) Layout Mobile Tweak */
  .player-avatar-container {
    width: 52px;
    height: 52px;
  }

  .player-avatar {
    border-width: 1.5px;
  }

  .live-card[data-sport="tennis"] .player-avatar-container {
    width: 72px;
    height: 48px;
    padding: 0;
    border-radius: 0 !important;
  }

  .player-flag {
    width: 18px;
    height: 12px;
  }

  .player-name {
    font-size: 13px;
  }

  .live-card[data-sport="tennis"]:not(.doubles-card) .singles-vs-layout {
    padding: 0 8px;
    gap: 8px;
  }

  .live-card[data-sport="tennis"]:not(.doubles-card) .player-column {
    width: 36%;
    gap: 10px;
  }

  .live-card[data-sport="tennis"]:not(.doubles-card) .score-column {
    width: 28%;
  }

  .live-card[data-sport="tennis"]:not(.doubles-card) .player-name {
    font-size: 12px;
    line-height: 1.2;
    min-height: 2.4em;
  }

  /* Doubles (2v2) Layout Mobile Tweak */
  .doubles-players-row {
    gap: 6px;
  }

  .individual-player {
    width: 48px;
  }

  .individual-player .player-avatar-container {
    width: 40px;
    height: 40px;
  }

  .live-card.doubles-card[data-sport="tennis"] {
    height: auto;
    min-height: 290px;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-vs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    padding: 0;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-team {
    width: 100%;
    min-width: 0;
    align-items: stretch !important;
    gap: 8px;
  }

  .live-card.doubles-card[data-sport="tennis"] .score-column {
    width: 64px;
    padding-top: 8px;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-players-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-player {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-player .player-avatar-container {
    width: 44px;
    height: 30px;
    padding: 0;
    justify-self: start;
    border-radius: 0 !important;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-player .player-name {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    text-align: left;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    visibility: visible;
    opacity: 1;
    color: #111827;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-team.right .doubles-player {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-team.right .doubles-player .player-avatar-container {
    grid-column: 2;
    justify-self: end;
  }

  .live-card.doubles-card[data-sport="tennis"] .doubles-team.right .doubles-player .player-name {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .individual-player .player-avatar {
    border-width: 1.5px;
  }

  .individual-player .player-flag {
    width: 14px;
    height: 10px;
    bottom: -1px;
    right: -1px;
    border-width: 1.5px;
  }

  .individual-player .player-name {
    font-size: 11px;
    margin-top: 4px;
  }

  /* Mobile modal popup logic */
  .calendar-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% - 24px);
    max-width: 290px;
    z-index: 2005 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

/* styles/match_details.css */
/* ========================================
   MATCH DETAIL PAGE
   ======================================== */

.match-dashboard-page,
.match-detail-page {
  min-height: 100vh;
}

.match-dashboard-page,
.match-dashboard-page *,
.match-dashboard-page *::before,
.match-dashboard-page *::after,
.match-detail-page,
.match-detail-page *,
.match-detail-page *::before,
.match-detail-page *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

.match-dashboard-page .media-play-overlay svg,
.match-detail-page .media-play-overlay svg {
  filter: none !important;
}

/* Hero Banner */
.match-hero {
  position: relative;
  min-height: 380px;
  background: var(--hero-bg, #0f172a) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.match-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

.match-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

/* Back Button */
.match-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin-bottom: 24px;
}

.match-back-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

/* Status Badge */
.match-hero-status {
  margin-bottom: 12px;
}

.match-status-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 2px solid;
}

.match-status-pill.live {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: #22c55e;
  animation: liveStatusPulse 2s infinite;
}

.match-status-pill.completed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border-color: #64748b;
}

.match-status-pill.upcoming {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: #3b82f6;
}

@keyframes liveStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* League Badge */
.match-hero-league {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.match-hero-sport-icon {
  font-size: 22px;
}

/* Matchup Display */
.match-hero-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.matchup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 250px;
}

.matchup-crest {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 3px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.matchup-crest img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.matchup-crest.player-crest {
  position: relative;
}

.matchup-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}

.matchup-flag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.5);
  object-fit: cover;
}

.matchup-initials {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
}

.matchup-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.matchup-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.matchup-vs {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
}

.matchup-score-big {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.matchup-score-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

/* Racing Hero */
.matchup-racing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.racing-gp-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  letter-spacing: 3px;
}

.racing-flag-hero {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.3);
}

.racing-flag-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.racing-country-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
}

.racing-hero-status {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Extra Info */
.match-hero-extra {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 1px;
  margin-top: 16px;
  text-transform: uppercase;
}

/* Detail Body */
.match-detail-body {
  padding-top: 32px;
  padding-bottom: 60px;
}

/* Info Cards Grid */
.detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.detail-card {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 4px 4px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-card-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.detail-card-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
}

.detail-card-value {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.detail-card-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* Detail Sections */
.detail-section {
  margin-bottom: 32px;
}

.detail-section-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid #000000;
}

/* Leaderboard Table */
.leaderboard-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 3px 3px 0px #000000;
}

.lb-pos {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  width: 36px;
  text-align: center;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px;
}

.leaderboard-row:first-child .lb-pos {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

.lb-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}

.lb-gap {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* Stream Links */
.stream-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stream-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 3px 3px 0px #000000;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.stream-link-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px #000000;
}

.stream-link-card:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.stream-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stream-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.stream-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

/* Footer Actions */
.detail-footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.detail-back-link:hover {
  background: #f8fafc;
}

.detail-back-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .match-hero {
    min-height: 320px;
  }

  .match-hero-matchup {
    gap: 16px;
  }

  .matchup-crest {
    width: 70px;
    height: 70px;
  }

  .matchup-crest img {
    width: 45px;
    height: 45px;
  }

  .matchup-avatar {
    width: 70px;
    height: 70px;
  }

  .matchup-name {
    font-size: 13px;
  }

  .matchup-score-big {
    font-size: 28px;
  }

  .matchup-vs {
    font-size: 22px;
  }

  .detail-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .match-hero-content {
    padding: 20px 16px 28px;
  }

  .matchup-crest {
    width: 56px;
    height: 56px;
  }

  .matchup-crest img {
    width: 36px;
    height: 36px;
  }

  .matchup-avatar {
    width: 56px;
    height: 56px;
  }

  .matchup-name {
    font-size: 11px;
  }

  .matchup-score-big {
    font-size: 22px;
  }

  .detail-cards-grid {
    grid-template-columns: 1fr;
  }

  .stream-links-grid {
    grid-template-columns: 1fr;
  }

  .detail-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Styling for 2v2 doubles matchup in match detail page */
.doubles-player-crest-pair {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.matchup-doubles-team .matchup-crest {
  width: 70px;
  height: 70px;
}

.matchup-doubles-team .matchup-avatar {
  width: 70px;
  height: 70px;
}

/* Make live cards clickable indicator */
.live-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   MATCH DETAILS DASHBOARD GRID STYLES
   ========================================== */
.match-dashboard-page {
  background-color: #c1c5cc;
  padding: 30px 0;
  min-height: calc(100vh - 70px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] .match-dashboard-page {
  background-color: #1e293b;
}

.dashboard-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #c8cbd0;
  color: #333333;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.dashboard-back-btn:hover {
  background: #f8fafc;
}

.dashboard-league-title {
  font-size: 17px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
}

/* TOP ROW LAYOUT */
.dashboard-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* HERO CARD */
.dashboard-hero-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  aspect-ratio: 2.2 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #ffffff;
  isolation: isolate;
}

.dashboard-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: contrast(1.22) saturate(1.08) brightness(0.74);
  transform: scale(1.04);
  z-index: 0;
}

.hero-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.78));
  z-index: 1;
}

.hero-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-status-pill {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  display: inline-block;
}

.hero-date-time {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero-matchup-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33%;
}

.hero-team-crest {
  width: 84px;
  height: 84px;
  background: transparent;
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: none;
  margin-bottom: 10px;
}

.hero-team-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-initials {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
}

.hero-team-name {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

.hero-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 34%;
}

.hero-score-val {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-vs {
  font-size: 32px;
  font-weight: 800;
}

/* MATCH INFO CARD */
.dashboard-info-card {
  background: #ffffff;
  border: 1px solid #c8cbd0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.dashboard-info-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  margin-top: 0;
  margin-bottom: 24px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f3f5;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-icon {
  width: 36px;
  height: 36px;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  color: #888888;
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  margin-top: 2px;
}

/* BOTTOM DUAL COLUMN GRID */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

.dashboard-left-col,
.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-card-wrap {
  background: #ffffff;
  border: 1px solid #c8cbd0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-card-header-bar {
  background: #e9ecef;
  border-bottom: 1px solid #c8cbd0;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  text-align: center;
}

.empty-dashboard-state {
  padding: 30px;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

/* TIMELINE SUMMARY */
.timeline-summary-body {
  display: flex;
  flex-direction: column;
}

.summary-half-header {
  display: flex;
  justify-content: space-between;
  background: #f1f3f5;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  color: #495057;
}

.summary-half-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.no-half-events {
  padding: 12px 20px;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

.summary-goal-row {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  gap: 16px;
}

.goal-time {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  width: 28px;
}

.goal-score-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ced4da;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.goal-scorer {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}

/* MATCH STATISTICS */
.statistics-body {
  padding: 20px;
}

.stats-possession-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.possession-team.home {
  color: #0057b8;
}

.possession-team.away {
  color: #da291c;
}

.possession-label {
  color: #888888;
}

.stats-possession-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #e9ecef;
}

.possession-fill.home {
  background-color: #0057b8;
}

.possession-fill.away {
  background-color: #da291c;
}

.stats-list-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f3f5;
}

.stats-table-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-table-val {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  width: 45px;
}

.stat-table-val.home { text-align: left; }
.stat-table-val.away { text-align: right; }

.stat-table-label {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  flex: 1;
}

/* KEY EVENTS */
.key-events-body {
  padding: 24px;
  background-color: #ffffff;
}

.key-events-spine-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 10px;
}

.key-events-spine-list::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ced4da;
  z-index: 1;
}

.halftime-middle-row {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 10px 0;
}

.halftime-middle-badge {
  background: #e9ecef;
  border: 1px solid #ced4da;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  color: #495057;
}

.key-event-item-row {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.event-time-col {
  width: 45px;
  font-size: 14px;
  font-weight: 800;
  color: #333333;
}

.event-icon-col {
  width: 32px;
  margin-right: 16px;
  display: flex;
  justify-content: center;
}

.event-icon-circle-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ced4da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #495057;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.event-icon-circle-badge.goal {
  color: #0057b8;
  border-color: #0057b8;
}

.event-icon-circle-badge.yellow {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
}

.event-icon-circle-badge.red {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.event-icon-circle-badge.subst {
  color: #10b981;
  border-color: #10b981;
}

.event-desc-col {
  flex: 1;
  min-width: 0;
}

.event-desc-box-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 13px;
  color: #333333;
  line-height: 1.5;
}

.event-desc-box-card strong {
  font-weight: 700;
  color: #333333;
}

.event-subtext {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

.score-tracking {
  float: right;
  font-weight: 800;
  color: #333333;
}

.event-desc-inline-text {
  font-size: 14px;
  color: #333333;
  padding-left: 4px;
}

.event-desc-inline-text.substitution {
  line-height: 1.6;
}

.sub-arrows {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-right: 12px;
}

.sub-arrows.text-green {
  color: #10b981;
}

.sub-arrows.text-red {
  color: #ef4444;
}

/* ODDS */
.odds-body-card {
  padding: 20px;
}

.odds-probability-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.odds-team.home {
  color: #0057b8;
}

.odds-team.away {
  color: #da291c;
}

.odds-probability-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #e9ecef;
}

.probability-fill.home {
  background-color: #0057b8;
}

.probability-fill.away {
  background-color: #da291c;
}

.detail-footer-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.5);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.detail-back-link:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .dashboard-top-row {
    grid-template-columns: 1fr;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .dashboard-hero-card {
    aspect-ratio: 1.6 / 1;
    padding: 16px;
  }
  .hero-team-crest {
    width: 60px;
    height: 60px;
  }
  .hero-team-name {
    font-size: 14px;
  }
  .hero-score-val {
    font-size: 36px;
  }
  .key-events-spine-list::before {
    left: 45px;
  }
  .event-time-col {
    width: 32px;
  }
}

/* DARK MODE OVERRIDES FOR MATCH DASHBOARD PANELS */
html[data-theme="dark"] .dashboard-nav-row .dashboard-back-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-league-title {
  color: #94a3b8;
}

html[data-theme="dark"] .dashboard-info-card {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .dashboard-info-card h3 {
  color: #94a3b8;
}

html[data-theme="dark"] .info-item {
  border-bottom-color: #334155;
}

html[data-theme="dark"] .info-icon {
  color: #94a3b8;
}

html[data-theme="dark"] .info-value {
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-card-wrap {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .dashboard-card-header-bar {
  background: #0f172a;
  border-bottom-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .timeline-flags-side {
  border-right-color: #334155;
}

html[data-theme="dark"] .timeline-axis-line {
  background: #475569;
}

html[data-theme="dark"] .time-circle {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

html[data-theme="dark"] .event-team-label {
  color: #64748b;
}

html[data-theme="dark"] .event-card-header strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .event-card-detail {
  color: #94a3b8;
}

html[data-theme="dark"] .timeline-node .event-details-card {
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
}

html[data-theme="dark"] .event-card-icon-sub,
html[data-theme="dark"] .event-card-icon-goal,
html[data-theme="dark"] .event-card-icon-neutral {
  color: #94a3b8;
}

html[data-theme="dark"] .summary-half-header {
  background: #1e293b;
  border-bottom-color: #334155;
  color: #cbd5e1;
}

html[data-theme="dark"] .goal-time {
  color: #94a3b8;
}

html[data-theme="dark"] .goal-score-box {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .goal-scorer {
  color: #e2e8f0;
}

html[data-theme="dark"] .stat-table-val {
  color: #e2e8f0;
}

html[data-theme="dark"] .stat-table-label {
  color: #94a3b8;
}

html[data-theme="dark"] .stats-table-row {
  border-bottom-color: #334155;
}

html[data-theme="dark"] .stats-possession-bar,
html[data-theme="dark"] .odds-probability-bar {
  background: #0f172a;
}

html[data-theme="dark"] .key-events-body {
  background-color: #1e293b;
}

html[data-theme="dark"] .key-events-spine-list::before {
  background-color: #334155;
}

html[data-theme="dark"] .halftime-middle-badge {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .event-time-col {
  color: #e2e8f0;
}

html[data-theme="dark"] .event-icon-circle-badge {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

html[data-theme="dark"] .event-desc-box-card {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .event-desc-box-card strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .event-desc-inline-text {
  color: #e2e8f0;
}

html[data-theme="dark"] .detail-back-link {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

html[data-theme="dark"] .detail-back-link:hover {
  background: rgba(30, 41, 59, 1);
  color: #e2e8f0;
}

html[data-theme="dark"] .panel {
  border-color: #475569 !important;
  box-shadow: 4px 4px 0px #475569 !important;
}

.court-player-name,
.player-name-cell {
  font-size: 15px;
}

@media (max-width: 768px) {
  .dashboard-league-title {
    font-size: 15px;
  }

  .hero-status-pill {
    font-size: 12px;
  }

  .hero-date-time {
    font-size: 13px;
  }

  .hero-team-name {
    font-size: 17px;
  }

  .hero-player-name {
    font-size: 13px;
    max-width: 76px;
  }

  .hero-team-subscore {
    font-size: 17px;
  }

  .hero-score-val {
    font-size: 46px;
  }

  .hero-score-val.hero-score-compact {
    font-size: 32px;
  }

  .hero-half-val,
  .hero-overs-val,
  .hero-vs-text {
    font-size: 14px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .dashboard-card-header-bar {
    font-size: 14px;
  }

  .info-value {
    font-size: 14px;
  }

  .events-minute {
    font-size: 16px;
  }

  .events-primary {
    font-size: 15px;
  }

  .events-secondary,
  .events-note {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-team-name {
    font-size: 14px;
  }

  .hero-player-name {
    font-size: 12px;
    max-width: 68px;
  }

  .hero-team-subscore {
    font-size: 15px;
  }

  .hero-score-val {
    font-size: 34px;
  }

  .hero-score-val.hero-score-compact {
    font-size: 24px;
  }

  .hero-half-val,
  .hero-overs-val,
  .hero-vs-text {
    font-size: 12px;
  }

  .events-minute {
    font-size: 14px;
  }

  .events-primary {
    font-size: 13px;
  }

  .events-secondary,
  .events-note {
    font-size: 12px;
  }
}

html[data-theme="dark"] .panel-head {
  border-bottom-color: #475569 !important;
}


/* Scroll to top button */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 9999; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #0f8cff; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#scrollTopBtn:hover {
  background-color: #0749b8; /* Darker background on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Optional: hide on smaller screens if desired, but well leave it visible */
@media (max-width: 500px) {
  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
    padding: 12px;
    font-size: 16px;
  }
}

/* Dark mode scroll arrows */
html[data-theme="dark"] .scroll-arrow {
  background: var(--surface-strong);
  border-color: #475569;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .scroll-arrow:hover {
  background: var(--surface-soft);
    font-size: 14px;
  }
  .hero-score-val {
    font-size: 36px;
  }
  .key-events-spine-list::before {
    left: 45px;
  }
  .event-time-col {
    width: 32px;
  }
}

/* DARK MODE OVERRIDES FOR MATCH DASHBOARD PANELS */
html[data-theme="dark"] .dashboard-nav-row .dashboard-back-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-league-title {
  color: #94a3b8;
}

html[data-theme="dark"] .dashboard-info-card {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .dashboard-info-card h3 {
  color: #94a3b8;
}

html[data-theme="dark"] .info-item {
  border-bottom-color: #334155;
}

html[data-theme="dark"] .info-icon {
  color: #94a3b8;
}

html[data-theme="dark"] .info-value {
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-card-wrap {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .dashboard-card-header-bar {
  background: #0f172a;
  border-bottom-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .summary-half-header {
  background: #1e293b;
  border-bottom-color: #334155;
  color: #cbd5e1;
}

html[data-theme="dark"] .goal-time {
  color: #94a3b8;
}

html[data-theme="dark"] .goal-score-box {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .goal-scorer {
  color: #e2e8f0;
}

html[data-theme="dark"] .stat-table-val {
  color: #e2e8f0;
}

html[data-theme="dark"] .stat-table-label {
  color: #94a3b8;
}

html[data-theme="dark"] .stats-table-row {
  border-bottom-color: #334155;
}

html[data-theme="dark"] .stats-possession-bar,
html[data-theme="dark"] .odds-probability-bar {
  background: #0f172a;
}

html[data-theme="dark"] .key-events-body {
  background-color: #1e293b;
}

html[data-theme="dark"] .key-events-spine-list::before {
  background-color: #334155;
}

html[data-theme="dark"] .halftime-middle-badge {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .event-time-col {
  color: #e2e8f0;
}

html[data-theme="dark"] .event-icon-circle-badge {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

html[data-theme="dark"] .event-desc-box-card {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .event-desc-box-card strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .event-desc-inline-text {
  color: #e2e8f0;
}

html[data-theme="dark"] .detail-back-link {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

html[data-theme="dark"] .detail-back-link:hover {
  background: rgba(30, 41, 59, 1);
  color: #e2e8f0;
}

html[data-theme="dark"] .panel {
  border-color: #475569 !important;
  box-shadow: 4px 4px 0px #475569 !important;
}

html[data-theme="dark"] .panel-head {
  border-bottom-color: #475569 !important;
}


/* Scroll to top button */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 9999; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #0f8cff; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#scrollTopBtn:hover {
  background-color: #0749b8; /* Darker background on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Optional: hide on smaller screens if desired, but well leave it visible */
@media (max-width: 500px) {
  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
    padding: 12px;
    font-size: 16px;
  }
}

/* Dark mode scroll arrows */
html[data-theme="dark"] .scroll-arrow {
  background: var(--surface-strong);
  border-color: #475569;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .scroll-arrow:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(15, 140, 255, 0.25);
}

html[data-theme="dark"] .live-matches-container {
  background: transparent;
}

/* Mobile schedule adjustments to prevent clipping and layout overflow */
@media (max-width: 500px) {
  .schedule-container {
    padding: 12px 10px !important;
  }

  .schedule-container .schedule-page-header {
    margin-bottom: 12px !important;
    gap: 8px !important;
  }

  .schedule-container .schedule-week-label {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-width: 2px !important;
    box-shadow: 2px 2px 0px #000000 !important;
  }

  .schedule-container .schedule-nav-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    border-width: 2px !important;
    box-shadow: 2px 2px 0px #000000 !important;
  }

  .schedule-container .schedule-today-btn {
    padding: 6px 12px !important;
    font-size: 10px !important;
    border-width: 2px !important;
    box-shadow: 2px 2px 0px #000000 !important;
  }

  .schedule-container .schedule-option-toggle {
    padding: 4px !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
    border-width: 2px !important;
    box-shadow: 2px 2px 0px #000000 !important;
  }

  .schedule-container .schedule-option-toggle .toggle-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
    letter-spacing: 0px !important;
    border-radius: 6px !important;
  }

  .match-dashboard-page .week-strip {
    border-width: 2px !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
    box-shadow: 2px 2px 0px #000000 !important;
  }

  .match-dashboard-page .week-day-card {
    padding: 6px 1px 4px !important;
    border-right-width: 1.5px !important;
  }

  .match-dashboard-page .week-day-name {
    font-size: 8px !important;
    letter-spacing: 0.2px !important;
    margin-bottom: 2px !important;
  }

  .match-dashboard-page .week-day-number {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .match-dashboard-page .week-match-count {
    width: 14px !important;
    height: 14px !important;
    font-size: 8px !important;
    border-width: 1px !important;
  }

  .match-dashboard-page .today-dot {
    top: 3px !important;
    right: 3px !important;
    width: 5px !important;
    height: 5px !important;
  }

  /* Timeline adjustments */
  .schedule-container .timeline-loading {
    padding: 10px 0 10px 42px !important;
  }

  .schedule-container .timeline-time-marker {
    width: 42px !important;
    font-size: 10px !important;
    padding-right: 6px !important;
  }

  .schedule-container .timeline-track-line {
    left: 39px !important;
  }

  .schedule-container .timeline-time-marker::after {
    right: -3px !important;
    top: 15px !important;
    width: 6px !important;
    height: 6px !important;
  }

  .schedule-container .timeline-matches-row {
    display: flex !important;
    flex-direction: column !important;
    padding: 6px 0 6px 12px !important;
    gap: 8px !important;
  }

  .schedule-container .timeline-match-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
}

@media (min-width: 761px) {
  .sports-sidebar [data-clone="true"],
  .leagues-sidebar [data-clone="true"] {
    display: none !important;
  }
}

/* ==========================================
   MATCH DETAILS OVERHAUL STYLES
   ========================================== */

.match-dashboard-page {
  background: var(--background);
  min-height: 100vh;
  padding-bottom: 60px;
}

.dashboard-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 10px;
}

.dashboard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-back-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.dashboard-back-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.match-home-btn {
  flex: 0 0 auto;
  margin-right: auto;
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
}

.match-home-btn svg {
  flex: 0 0 auto;
}

.dashboard-league-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.dashboard-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .dashboard-top-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-hero-card {
  position: relative;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #ffffff;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ef4444;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-status-pill.status-interrupted {
  background: #c2410c;
}

.hero-status-pill.status-not-live {
  background: #475569;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  animation: blinker 1.2s cubic-bezier(0.5, 0, 1, 0.5) infinite alternate;
}

@keyframes blinker {
  to { opacity: 0; }
}

.hero-date-time {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.hero-matchup-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 0;
  width: 100%;
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 35%;
}

.hero-team-crest {
  width: 84px;
  height: 84px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.hero-team-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-team:hover .hero-team-crest {
  transform: scale(1.05);
}

.hero-team-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-player-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-team-subscore {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-initials {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
}

.hero-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30%;
  text-align: center;
}

.hero-score-val {
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1;
}

.hero-score-val.hero-score-compact {
  font-size: 44px;
  letter-spacing: 0.08em;
}

.hero-vs {
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}

.hero-half-val,
.hero-overs-val,
.hero-vs-text {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.dashboard-info-card {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-info-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  border-bottom: 2px solid var(--text);
  padding-bottom: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-soft);
  border: 1.5px solid #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
}

.dashboard-tabs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #000000;
}

.dashboard-tabs-row::-webkit-scrollbar {
  height: 4px;
}

.dashboard-tabs-row::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

.tab-btn {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 2px 2px 0px #000000;
}

.tab-btn.active:hover {
  transform: none;
  box-shadow: 2px 2px 0px #000000;
}

.dashboard-tab-panels-wrapper {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.dashboard-card-wrap {
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.dashboard-card-header-bar {
  background: var(--surface-strong);
  border-bottom: 2px solid #000000;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}

.fixture-tab-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .fixture-tab-layout {
    grid-template-columns: 1fr;
  }
}

.odds-body-card {
  padding: 20px;
}

.odds-probability-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.odds-team.home {
  color: var(--accent);
}

.odds-team.away {
  color: #10b981;
}

.odds-probability-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1.5px solid #000000;
}

.probability-fill.home {
  background: var(--accent);
}

.probability-fill.away {
  background: #10b981;
}

.timeline-tab-body {
  padding: 20px 16px 28px;
  overflow-x: auto;
}

.events-feed-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.events-half-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.events-half-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f4f6;
}

.events-half-title,
.events-half-score {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.events-half-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.events-feed-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  column-gap: 10px;
  min-height: 34px;
}

.events-feed-row.home {
  justify-items: start;
}

.events-feed-row.away {
  justify-items: end;
}

.events-feed-row.home .events-minute {
  grid-column: 1;
}

.events-feed-row.home .events-row-main {
  grid-column: 2 / 4;
}

.events-feed-row.away .events-row-main {
  grid-column: 1 / 3;
}

.events-feed-row.away .events-minute {
  grid-column: 3;
}

.events-minute {
  font-size: 20px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.events-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(100%, 420px);
}

.events-feed-row.home .events-row-main {
  justify-self: start;
}

.events-feed-row.away .events-row-main {
  flex-direction: row;
  justify-content: flex-end;
  justify-self: end;
}

.events-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.events-feed-row.away .events-copy {
  align-items: flex-end;
  text-align: right;
}

.events-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.events-feed-row.away .events-line {
  justify-content: flex-end;
}

.events-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.events-icon-symbol {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.events-icon-box.goal .events-icon-symbol {
  color: #0f172a;
}

.events-icon-box.substitution .events-icon-symbol {
  width: 20px;
  height: 20px;
}

.substitution-icon-svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.substitution-icon-svg .sub-head {
  stroke: #111827;
  stroke-width: 0.85;
}

.substitution-icon-svg .sub-head-top,
.substitution-icon-svg .sub-head-bottom {
  fill: #fed7c2;
}

.substitution-icon-svg .sub-body {
  fill: #ef4444;
  stroke: #111827;
  stroke-width: 0.85;
  stroke-linejoin: round;
}

.substitution-icon-svg .sub-arrow-line,
.substitution-icon-svg .sub-arrow-tip {
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.substitution-icon-svg .sub-arrow-out {
  stroke: #22c55e;
}

.substitution-icon-svg .sub-arrow-in {
  stroke: #ef4444;
}

.events-icon-box.neutral .events-icon-symbol {
  color: #64748b;
}

.events-icon-box.yellow-card {
  background: #ffffff;
}

.events-icon-box.yellow-card::before {
  content: '';
  width: 10px;
  height: 16px;
  border-radius: 4px;
  background: #facc15;
  display: block;
}

.events-icon-box.red-card::before {
  content: '';
  width: 10px;
  height: 16px;
  border-radius: 4px;
  background: #ef4444;
  display: block;
}

.events-score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  min-height: 20px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.events-primary {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.events-secondary {
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
}

.events-note {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

.timeline-horizontal-container {
  display: flex;
  align-items: stretch;
  min-height: 250px;
  position: relative;
  padding-left: 64px;
}

.timeline-flags-side {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 0;
  border-right: none;
  z-index: 5;
}

.timeline-team-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.timeline-logo-wrap {
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.timeline-side-team-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #6b7280;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 64px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.timeline-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-initials {
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
}

.timeline-scrollable-axis {
  position: relative;
  flex: 1;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: visible;
  min-width: 0;
}

.timeline-scrollable-axis::-webkit-scrollbar {
  height: 6px;
}

.timeline-scrollable-axis::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.timeline-axis-shell {
  position: relative;
  width: var(--timeline-width);
  height: calc(var(--timeline-top-depth) + var(--timeline-bottom-depth) + 36px);
}

.timeline-axis-line {
  position: absolute;
  left: 26px;
  right: 26px;
  top: var(--timeline-top-depth);
  height: 2px;
  background: #d1d5db;
  z-index: 1;
}

.timeline-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: var(--timeline-top-depth);
  transform: translateX(-50%);
  z-index: 2;
}

.time-circle {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 2px solid #bfc5ce;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #111827;
  z-index: 3;
}

.kickoff-node .time-circle,
.fulltime-node .time-circle {
  background: #ffffff;
}

.home-team-node {
  margin-top: 0;
}

.home-team-node .event-details-card {
  position: absolute;
  left: 50%;
  bottom: calc(52px + (var(--stack-level, 0) * var(--stack-step, 42px)));
  transform: translateX(calc(-50% + var(--event-shift, 0px)));
}

.away-team-node {
  margin-top: 0;
}

.away-team-node .event-details-card {
  position: absolute;
  left: 50%;
  top: calc(52px + (var(--stack-level, 0) * var(--stack-step, 42px)));
  transform: translateX(calc(-50% + var(--event-shift, 0px)));
}

.event-details-card {
  width: 108px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: left;
  z-index: 4;
}

.event-team-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.event-card-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  margin-bottom: 2px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.1;
}

.event-card-icon {
  width: 14px;
  min-width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.event-card-icon-yellow,
.event-card-icon-red {
  border-radius: 2px;
  border: 1px solid rgba(17, 24, 39, 0.18);
}

.event-card-icon-yellow {
  background: #facc15;
}

.event-card-icon-red {
  background: #ef4444;
}

.event-card-icon-sub {
  color: #6b7280;
  font-size: 14px;
}

.event-card-icon-goal {
  color: #2563eb;
}

.event-card-icon-neutral {
  color: #9ca3af;
}

.event-card-header strong {
  display: block;
  font-weight: 800;
  color: #111827;
  word-break: break-word;
}

.event-card-detail {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  white-space: normal;
  line-height: 1.15;
  word-break: break-word;
}

@media (max-width: 768px) {
  .events-feed-row {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    column-gap: 8px;
  }

  .events-minute {
    font-size: 12px;
  }

  .events-row-main {
    gap: 8px;
  }

  .events-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .events-primary {
    font-size: 13px;
  }

  .events-secondary,
  .events-note {
    font-size: 12px;
  }

  .timeline-horizontal-container {
    min-height: 236px;
    padding-left: 82px;
  }

  .timeline-flags-side {
    width: 72px;
    padding: 42px 0;
  }

  .timeline-team-side {
    gap: 6px;
  }

  .timeline-logo-wrap {
    width: 20px;
    height: 15px;
  }

  .timeline-side-team-name {
    font-size: 8px;
    max-width: 42px;
  }

  .timeline-scrollable-axis {
    padding: 0 8px;
  }

  .event-details-card {
    width: 88px;
  }

  .event-card-header {
    font-size: 10px;
    gap: 4px;
  }

  .event-card-detail {
    font-size: 9px;
    line-height: 1.05;
  }
}

@media (max-width: 480px) {
  .events-half-header {
    padding: 9px 12px;
  }

  .events-feed-row {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    column-gap: 6px;
  }

  .events-line {
    gap: 4px;
  }

  .events-icon-box {
    width: 26px;
    height: 26px;
  }

  .events-score-chip {
    padding: 1px 5px;
    font-size: 11px;
  }

  .events-primary {
    font-size: 12px;
  }

  .events-secondary,
  .events-note,
  .events-half-title,
  .events-half-score {
    font-size: 11px;
  }

  .timeline-horizontal-container {
    padding-left: 72px;
  }

  .timeline-flags-side {
    width: 64px;
  }

  .timeline-side-team-name {
    max-width: 36px;
  }

  .event-details-card {
    width: 82px;
  }
}

.empty-dashboard-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.lineup-tab-body {
  padding: 24px;
}

.visual-pitch-wrapper,
.visual-court-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.sports-pitch {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3/4;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 4px 4px 0px #000000;
  overflow: hidden;
}

.sports-pitch.football {
  background: #15803d;
  background-image: radial-gradient(#166534 20%, transparent 20%),
                    radial-gradient(#166534 20%, transparent 20%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.pitch-halfway-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%);
}

.pitch-center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-penalty-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 15%;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.pitch-penalty-area.top {
  top: 0;
  border-top: none;
}

.pitch-penalty-area.bottom {
  bottom: 0;
  border-bottom: none;
}

.pitch-player-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  z-index: 5;
}

.player-jersey {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #000000;
  transition: transform 0.2s ease;
}

.home-player .player-jersey {
  background: var(--accent);
  color: #ffffff;
}

.away-player .player-jersey {
  background: #10b981;
  color: #ffffff;
}

.player-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  width: max-content;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 6;
}

.pitch-player-badge:hover .player-jersey {
  transform: none;
}

.racket-court {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/5;
  border: 2.5px solid #000000;
  border-radius: 12px;
  box-shadow: 4px 4px 0px #000000;
  background: #0284c7;
  display: flex;
  flex-direction: column;
}

.racket-court.tennis {
  background: #15803d;
  background-image: linear-gradient(rgba(255,255,255,0.15) 2px, transparent 2px),
                    linear-gradient(90deg, rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 20px 20px;
}

.racket-court.badminton {
  background: #0d9488;
}

.racket-court.table-tennis {
  background: #0369a1;
}

.court-net {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  background: repeating-linear-gradient(90deg, #ffffff, #ffffff 4px, #000000 4px, #000000 8px);
  border-top: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  transform: translateY(-50%);
  z-index: 4;
}

.court-half {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-players-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  width: 100%;
  padding: 0 20px;
}

.court-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 3px 3px 0px #000000;
  padding: 10px;
  width: 110px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.court-player-card:hover {
  transform: translateY(-4px);
}

.court-player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #000000;
  margin-bottom: 8px;
  background: #ffffff;
}

.court-player-name {
  font-size: 11px;
  font-weight: 800;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  margin-bottom: 4px;
}

.court-player-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border: 1px solid #d1d5db;
  border-radius: 1px;
}

.lineups-lists-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .lineups-lists-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.lineup-list-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lineup-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 12px;
  margin-bottom: 8px;
}

.lineup-list-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}

.lineup-formation-tag {
  background: var(--surface-soft);
  border: 1.5px solid #000000;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  box-shadow: 1px 1px 0px #000000;
}

.coach-row-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-soft);
  border: 1.5px solid #000000;
  border-radius: 8px;
  padding: 10px 14px;
}

.list-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.list-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.starting-xi-list h5,
.substitutes-list h5 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  border-bottom: 1.5px dashed var(--border);
  padding-bottom: 6px;
}

.list-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-table-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid #000000;
  border-radius: 8px;
  gap: 12px;
}

.player-num-cell {
  width: 24px;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
}

.player-name-cell {
  flex: 1;
  font-size: 13px;
  font-weight: 750;
  color: var(--text);
}

.player-pos-cell {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.comparison-val {
  font-size: 16px;
  font-weight: 850;
  width: 60px;
  flex-shrink: 0;
}

.comparison-val.home {
  text-align: right;
  color: var(--accent);
}

.comparison-val.away {
  text-align: left;
  color: #10b981;
}

.comparison-center-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comparison-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.comparison-dual-bar {
  display: flex;
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border: 1.5px solid #000000;
  border-radius: 6px;
  overflow: hidden;
}

.dual-bar-half {
  flex: 1;
  position: relative;
  height: 100%;
}

.dual-bar-half.home {
  border-right: 1px solid #000000;
}

.dual-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  border-radius: 4px;
}

.dual-bar-fill.home {
  right: 0;
  background: var(--accent);
}

.dual-bar-fill.away {
  left: 0;
  background: #10b981;
}

.h2h-tab-body {
  padding: 24px;
}

.h2h-matches-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.h2h-date-header {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 6px;
  padding-left: 4px;
  border-left: 3px solid var(--accent);
}

.h2h-match-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  align-items: center;
  background: var(--surface);
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  border-radius: 12px;
  padding: 14px 20px;
  gap: 16px;
}

.h2h-team-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h2h-team-col.home {
  justify-content: flex-end;
  text-align: right;
}

.h2h-team-col.away {
  justify-content: flex-start;
  text-align: left;
}

.h2h-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.h2h-team-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.h2h-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.h2h-score-box {
  background: var(--surface-strong);
  border: 1.5px solid #000000;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.winner-indicator {
  font-size: 10px;
  color: #ef4444;
}

.h2h-league-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  border-top: 1.5px solid var(--border);
  padding-top: 20px;
}

.detail-back-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.detail-back-link:hover {
  color: var(--accent);
}

/* ==========================================
   CHESSBOARD & DECALS STYLES
   ========================================== */

.chess-board-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.chess-board {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1/1;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  border-radius: 8px;
  overflow: hidden;
}

.chess-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
}

.chess-square {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  user-select: none;
}

.chess-square.light {
  background: #f0d9b5;
  color: #b58863;
}

.chess-square.dark {
  background: #b58863;
  color: #f0d9b5;
}

.chess-piece {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease;
}

.chess-piece:hover {
  transform: scale(1.2);
}

.chess-piece.white {
  color: #ffffff;
  text-shadow: 0px 0px 4px rgba(0,0,0,0.8), 0px 0px 2px rgba(0,0,0,0.9);
}

.chess-piece.black {
  color: #1e293b;
}

.chess-players-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.chess-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.chess-legend-item .legend-piece {
  font-size: 20px;
}

/* Cricket field */
.sports-pitch.cricket {
  background: #16a34a;
  background-image: radial-gradient(#15803d 15%, transparent 15%),
                    radial-gradient(#15803d 15%, transparent 15%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.cricket-boundary-oval {
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
}

.cricket-pitch-strip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 120px;
  background: #eab308;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.cricket-crease {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
}

.cricket-crease.top {
  top: 22px;
}

.cricket-crease.bottom {
  bottom: 22px;
}

.cricket-stumps {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  background: #b45309;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

.cricket-stumps.top {
  top: 10px;
}

.cricket-stumps.bottom {
  bottom: 10px;
}

/* Rugby Field */
.sports-pitch.rugby {
  background: #15803d;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 15px 100%;
}

.rugby-halfway-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-50%);
}

.rugby-line-22 {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.5);
}

.rugby-line-22.top {
  top: 22%;
}

.rugby-line-22.bottom {
  bottom: 22%;
}

.rugby-line-10 {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
}

.rugby-line-10.top {
  top: 38%;
}

.rugby-line-10.bottom {
  bottom: 38%;
}

.rugby-in-goal {
  position: absolute;
  left: 0;
  right: 0;
  height: 8%;
}

.rugby-in-goal.top {
  top: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.rugby-in-goal.bottom {
  bottom: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

/* Volleyball Court */
.sports-pitch.volleyball {
  background: #0284c7;
}

.volleyball-net {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  background: repeating-linear-gradient(90deg, #ffffff, #ffffff 4px, #000000 4px, #000000 8px);
  border-top: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  transform: translateY(-50%);
  z-index: 4;
}

.volleyball-attack-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
}

.volleyball-attack-line.top {
  top: 33%;
}

.volleyball-attack-line.bottom {
  bottom: 33%;
}

/* Hockey Field */
.sports-pitch.hockey {
  background: #065f46;
}

.hockey-center-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%);
}

.hockey-striking-circle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 65px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.hockey-striking-circle.top {
  top: 0;
  border-top: none;
  border-radius: 0 0 130px 130px;
}

.hockey-striking-circle.bottom {
  bottom: 0;
  border-bottom: none;
  border-radius: 130px 130px 0 0;
}

.hockey-23m-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.45);
}

.hockey-23m-line.top {
  top: 25%;
}

.hockey-23m-line.bottom {
  bottom: 25%;
}

/* Baseball Diamond */
.sports-pitch.baseball {
  background: #15803d;
}

.baseball-infield-diamond {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: #a16207;
  border-radius: 2px;
}

.baseball-pitchers-mound {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #b45309;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.baseball-bases {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.baseball-base {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 1px solid #000000;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 3;
}

.baseball-base.home {
  bottom: 30px;
  left: 50%;
  border-radius: 0 0 2px 2px;
}

.baseball-base.first {
  bottom: 100px;
  left: calc(50% + 70px);
}

.baseball-base.second {
  bottom: 170px;
  left: 50%;
}

.baseball-base.third {
  bottom: 100px;
  left: calc(50% - 70px);
}

/* Dark mode adjustments for Chess board */
html[data-theme="dark"] .chess-board {
  border-color: var(--border);
  box-shadow: 4px 4px 0px var(--border);
}

/* Responsive Overrides for Match Dashboard Page */
@media (max-width: 768px) {
  .dashboard-hero-card {
    min-height: auto !important;
    padding: 20px 16px !important;
  }
  .hero-team-crest {
    width: 68px !important;
    height: 68px !important;
  }
  .match-dashboard-page .player-avatar-container {
    width: 68px !important;
    height: 68px !important;
  }
  .hero-team-name {
    font-size: 14px !important;
  }
  .hero-score-val {
    font-size: 38px !important;
  }
}

@media (max-width: 576px) {
  .sports-pitch {
    aspect-ratio: 3 / 4.45;
  }

  .pitch-player-badge {
    width: 30px;
    height: 30px;
  }

  .player-jersey {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .player-label {
    top: calc(100% + 5px);
    max-width: min(21vw, 82px);
    font-size: 8px;
    padding: 2px 4px;
  }

  /* Prevent container padding from eating too much space */
  .match-dashboard-page .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Make hero card responsive */
  .dashboard-hero-card {
    padding: 16px 12px !important;
    min-height: auto !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important;
  }

  /* Adjust matchup layout for narrow screens */
  .hero-matchup-container {
    gap: 8px !important;
  }

  /* Shrink teams and avatar/crests */
  .hero-team {
    width: 35% !important;
  }

  .hero-team-crest {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 8px !important;
  }

  .match-dashboard-page .player-avatar-container {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 8px !important;
  }

  .hero-team-name {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .hero-player-name {
    font-size: 10px !important;
    max-width: 50px !important;
  }

  /* Shrink score and VS text */
  .hero-score-center {
    width: 30% !important;
  }

  .hero-score-val {
    font-size: 28px !important;
  }

  .hero-overs-val {
    font-size: 13px !important;
  }

  .hero-vs {
    font-size: 18px !important;
  }

  /* Handle doubles team vertical stacking on mobile */
  .dashboard-hero-card .doubles-team {
    flex-direction: column !important;
    gap: 8px !important;
    width: 35% !important;
  }

  .dashboard-hero-card .doubles-player {
    width: 100% !important;
  }

  /* Adjust hero card header display to prevent overlap */
  .hero-card-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .hero-date-time {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    text-align: center !important;
    order: 3 !important;
    margin-top: 4px !important;
  }

  .card-group-match-details-pill {
    margin-left: auto !important;
  }
}

/* Motorsports Starting Grid Visualizer */
.racing-grid-pitch {
  width: 100%;
  max-width: 500px;
  background: #334155; /* asphalt gray */
  border: 4px solid #000000;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 6px 6px 0px #000000;
  position: relative;
  margin: 0 auto;
  min-height: 520px;
  overflow: hidden;
}
.grid-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: repeating-linear-gradient(to bottom, #ffffff, #ffffff 15px, transparent 15px, transparent 30px);
  transform: translateX(-50%);
}
.starting-grid-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  position: relative;
  z-index: 2;
}
.grid-slot-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2.5px 2.5px 0px #000000;
}
.grid-slot-card.slot-left {
  justify-self: end;
  transform: translateY(-10px);
}
.grid-slot-card.slot-right {
  justify-self: start;
  transform: translateY(10px);
}
.slot-position {
  font-size: 14px;
  font-weight: 900;
  color: #ef4444; /* red position badge */
}
.slot-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slot-number {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}
.slot-driver-name {
  font-size: 12px;
  font-weight: 850;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-team-name {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* dark mode overrides */
html[data-theme="dark"] .grid-slot-card {
  background: #1e293b;
  border-color: #475569;
  box-shadow: 2px 2px 0px #475569;
}
html[data-theme="dark"] .slot-driver-name {
  color: #ffffff;
}

@media (max-width: 480px) {
  .racing-grid-pitch {
    padding: 15px 10px;
    min-height: auto;
  }
  .starting-grid-slots {
    gap: 12px 16px;
  }
  .grid-slot-card {
    padding: 6px 8px;
    gap: 4px;
  }
  .slot-position {
    font-size: 11px;
  }
  .slot-driver-name {
    font-size: 10px;
    max-width: 70px;
  }
  .slot-team-name {
    font-size: 8px;
    max-width: 70px;
  }
}

/* ==========================================
   TAB BUTTON ICON STYLES
   ========================================== */
.tab-btn-icon {
  font-size: 14px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Ensure scrollbar is minimal but still usable on mobile with many tabs */
.dashboard-tabs-row {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

/* ==========================================
   ODDS TAB PANEL STYLES
   ========================================== */
.odds-tab-body {
  padding: 24px;
}

.odds-section {
  margin-bottom: 28px;
}

.odds-section:last-child {
  margin-bottom: 0;
}

.odds-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary, #64748b);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

html[data-theme="dark"] .odds-section-title {
  color: #94a3b8;
  border-bottom-color: #334155;
}

/* Market Grid */
.odds-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.odds-market-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.odds-market-card {
  background: var(--surface, #ffffff);
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.2s ease;
  cursor: default;
}

.odds-market-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

html[data-theme="dark"] .odds-market-card {
  background: #1e293b;
  border-color: #475569;
  box-shadow: 2px 2px 0px #475569;
}

html[data-theme="dark"] .odds-market-card:hover {
  box-shadow: 3px 3px 0px #475569;
}

.odds-market-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #64748b);
  text-align: center;
  line-height: 1.3;
}

html[data-theme="dark"] .odds-market-label {
  color: #94a3b8;
}

.odds-market-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary, #0f172a);
  letter-spacing: -0.5px;
}

html[data-theme="dark"] .odds-market-value {
  color: #f1f5f9;
}

.odds-market-value.home-value {
  color: var(--accent, #2563eb);
}

.odds-market-value.draw-value {
  color: #f59e0b;
}

.odds-market-value.away-value {
  color: #10b981;
}

/* Advice Card */
.odds-advice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  border: 2px solid var(--accent, #2563eb);
  border-radius: 12px;
  padding: 18px 20px;
}

html[data-theme="dark"] .odds-advice-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.1));
  border-color: #3b82f6;
}

.odds-advice-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.odds-advice-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.odds-advice-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent, #2563eb);
}

.odds-advice-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.4;
}

html[data-theme="dark"] .odds-advice-text {
  color: #f1f5f9;
}

/* Bookmaker Badge */
.odds-bookmaker-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--surface, #f8fafc);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
}

html[data-theme="dark"] .odds-bookmaker-badge {
  background: #0f172a;
  border-color: #334155;
}

.bookmaker-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bookmaker-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  text-transform: uppercase;
  letter-spacing: 1px;
}

html[data-theme="dark"] .bookmaker-name {
  color: #f1f5f9;
}

/* Odds responsive */
@media (max-width: 640px) {
  .odds-market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .odds-market-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .odds-tab-body {
    padding: 16px;
  }

  .odds-market-value {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .odds-market-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   MEDIA TAB PANEL STYLES
   ========================================== */
.media-tab-body {
  padding: 24px;
}

.media-section {
  margin-bottom: 32px;
}

.media-section:last-child {
  margin-bottom: 0;
}

.media-section-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary, #0f172a);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

html[data-theme="dark"] .media-section-title {
  color: #f1f5f9;
  border-bottom-color: #334155;
}

/* Media Cards Grid */
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  border: 2px solid #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0px #000000;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.media-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

.media-card:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #000000;
}

html[data-theme="dark"] .media-card {
  background: #1e293b;
  border-color: #475569;
  box-shadow: 3px 3px 0px #475569;
}

html[data-theme="dark"] .media-card:hover {
  box-shadow: 5px 5px 0px #475569;
}

/* Thumbnail */
.media-card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.media-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.media-card:hover .media-card-thumbnail img {
  opacity: 1;
  transform: scale(1.05);
}

/* Play Button Overlay */
.media-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.media-card:hover .media-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.media-play-overlay svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.media-card:hover .media-play-overlay svg {
  transform: scale(1.15);
  opacity: 1;
}

/* Duration Badge */
.media-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Card Info */
.media-card-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  line-height: 1.3;
}

html[data-theme="dark"] .media-card-title {
  color: #f1f5f9;
}

.media-card-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

html[data-theme="dark"] .media-card-type {
  color: #94a3b8;
}

/* Media responsive */
@media (max-width: 640px) {
  .media-cards-grid {
    grid-template-columns: 1fr;
  }

  .media-tab-body {
    padding: 16px;
  }
}

/* ==========================================
   TAB ROW MOBILE SCROLL ENHANCEMENT
   ========================================== */
@media (max-width: 768px) {
  .dashboard-tabs-row {
    gap: 8px;
    padding-bottom: 6px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  .tab-btn-icon {
    font-size: 12px;
    margin-right: 2px;
  }
}

/* ==========================================
   MEDIA TAB PANEL STYLES
   ========================================== */
.media-tab-body {
  padding: 24px;
}

.media-section {
  margin-bottom: 32px;
}

.media-section:last-child {
  margin-bottom: 0;
}

.media-section-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary, #0f172a);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

html[data-theme="dark"] .media-section-title {
  color: #f1f5f9;
  border-bottom-color: #334155;
}

/* Media Cards Grid */
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  border: 2px solid #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0px #000000;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.media-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

.media-card:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #000000;
}

html[data-theme="dark"] .media-card {
  background: #1e293b;
  border-color: #475569;
  box-shadow: 3px 3px 0px #475569;
}

html[data-theme="dark"] .media-card:hover {
  box-shadow: 5px 5px 0px #475569;
}

/* Thumbnail */
.media-card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.media-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.media-card:hover .media-card-thumbnail img {
  opacity: 1;
  transform: scale(1.05);
}

/* Play Button Overlay */
.media-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.media-card:hover .media-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.media-play-overlay svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.media-card:hover .media-play-overlay svg {
  transform: scale(1.15);
  opacity: 1;
}

/* Duration Badge */
.media-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Card Info */
.media-card-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  line-height: 1.3;
}

html[data-theme="dark"] .media-card-title {
  color: #f1f5f9;
}

.h2h-tab-body {
  padding: 24px;
}

.h2h-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.h2h-filter-btn {
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  user-select: none;
}

.h2h-filter-btn:hover {
  background-color: #f8fafc;
}

.h2h-filter-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.h2h-filter-btn.active {
  background-color: #ff0055;
  color: #ffffff;
  box-shadow: 2px 2px 0px #000000;
}

.h2h-section-header {
  background: #f1f5f9;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 16px;
  box-shadow: 2px 2px 0px #000000;
}

.h2h-matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h2h-match-row-item {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 3px 3px 0px #000000;
  gap: 16px;
}

.h2h-row-date {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.h2h-row-competition {
  display: flex;
  align-items: center;
  gap: 6px;
}

.competition-icon {
  font-size: 14px;
}

.competition-code {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  background: #e2e8f0;
  border: 1.5px solid #000000;
  border-radius: 5px;
  padding: 2px 6px;
  color: #1e293b;
  text-transform: uppercase;
}

.h2h-row-teams-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h2h-row-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.h2h-row-team.active-team {
  font-weight: 800;
  color: #000000;
}

.h2h-row-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
}

.h2h-row-team-name-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.h2h-row-team-name {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  display: inline-block;
  transition: all 0.15s ease;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.h2h-row-team.active-team .h2h-row-team-name {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 850;
  border: 1.5px solid #000000;
  box-shadow: 1px 1px 0px #000000;
}

.h2h-row-score {
  font-weight: 900;
  font-size: 14px;
  color: #0f172a;
  width: 20px;
  text-align: right;
}

.h2h-row-result-col {
  display: flex;
  justify-content: flex-end;
}

.statistics-tab-body {
  padding: 24px;
}

.statistics-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 10px;
}

.statistics-header-team {
  font-size: 16px;
  font-weight: 800;
}

.comparison-bars-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comparison-val {
  font-size: 14px;
  font-weight: 800;
  width: 45px;
  flex-shrink: 0;
  color: #000000;
}

.comparison-val.home {
  text-align: left;
}

.comparison-val.away {
  text-align: right;
}

.comparison-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #555555;
  text-align: center;
  width: 150px;
  flex-shrink: 0;
  white-space: nowrap;
}

.stat-bar-container {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.stat-bar-container.home {
  justify-content: flex-end;
}

.stat-bar-container.away {
  justify-content: flex-start;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.stat-bar-fill.home {
  background: #3498db;
}

.stat-bar-fill.away {
  background: #a6d934;
}

html[data-theme="dark"] .comparison-val {
  color: #ffffff;
}

html[data-theme="dark"] .comparison-label {
  color: #cccccc;
}
html[data-theme="dark"] .stat-bar-container {
  background: #334155;
}

.h2h-result-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #000000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
}

.badge-W {
  background: #10b981;
}

.badge-L {
  background: #ef4444;
}

.badge-D {
  background: #94a3b8;
}

.h2h-show-more-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.h2h-show-more-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  color: #0f8cff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
  outline: none;
}

.h2h-show-more-btn:hover {
  color: #0070df;
  text-decoration: underline;
}

.h2h-show-more-btn svg {
  transition: transform 0.2s ease;
}

/* Dark theme overrides */
html[data-theme="dark"] .h2h-filter-btn {
  background-color: var(--surface-card);
  color: var(--text);
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
}

html[data-theme="dark"] .h2h-filter-btn:hover {
  background-color: var(--surface-soft);
}

html[data-theme="dark"] .h2h-filter-btn:active {
  box-shadow: 1px 1px 0px var(--border-color);
}

html[data-theme="dark"] .h2h-filter-btn.active {
  background-color: #ff0055;
  color: #ffffff;
  border-color: #000000;
}

html[data-theme="dark"] .h2h-section-header {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
}

html[data-theme="dark"] .h2h-match-row-item {
  background-color: var(--surface-card);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px var(--border-color);
}

html[data-theme="dark"] .h2h-row-date {
  color: var(--text-muted);
}

html[data-theme="dark"] .competition-code {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border-color);
}

html[data-theme="dark"] .h2h-row-team {
  color: var(--text-muted);
}

html[data-theme="dark"] .h2h-row-team.active-team {
  color: var(--text);
}

html[data-theme="dark"] .h2h-row-score {
  color: var(--text);
}

html[data-theme="dark"] .h2h-row-flag {
  border-color: var(--border-color);
}

/* Media responsive */
@media (max-width: 640px) {
  .media-cards-grid {
    grid-template-columns: 1fr;
  }

  .media-tab-body {
    padding: 16px;
  }
}

/* ==========================================
   TAB ROW MOBILE SCROLL ENHANCEMENT
   ========================================== */
@media (max-width: 768px) {
  .dashboard-tabs-row {
    gap: 8px;
    padding-bottom: 6px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  .tab-btn-icon {
    font-size: 12px;
    margin-right: 2px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  .tab-btn-icon {
    display: none;
  }
}

/* Single-column centered layout for Overview tab */
.fixture-tab-layout-single {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================
   FINAL MATCH DETAIL TYPOGRAPHY POLISH
   ========================================== */

.dashboard-hero-card {
  min-height: 248px;
  padding: 18px 20px;
  border-radius: 14px;
  isolation: isolate;
}

.dashboard-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: contrast(1.42) saturate(1.12) brightness(0.64);
  transform: scale(1.03);
  z-index: 0;
}

.hero-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-team {
  width: 34%;
}

.hero-team-crest {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
}

.hero-score-center {
  width: 28%;
}

.dashboard-league-title {
  font-size: 17px;
}

.hero-status-pill {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
}

.hero-date-time {
  font-size: 16px;
  font-weight: 700;
}

.hero-team-name {
  font-size: 22px;
}

.hero-player-name {
  font-size: 14px;
  max-width: 96px;
}

.hero-team-subscore {
  font-size: 21px;
}

.hero-score-val {
  font-size: 62px;
}

.hero-score-val.hero-score-compact {
  font-size: 44px;
}

.hero-half-val,
.hero-overs-val,
.hero-vs-text {
  font-size: 18px;
}

.dashboard-card-header-bar {
  padding: 16px 22px;
  font-size: 16px;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
}

.tab-btn-icon {
  font-size: 12px;
  margin-right: 3px;
}

.info-label {
  font-size: 12px;
}

.info-value {
  font-size: 16px;
}

.empty-dashboard-state {
  font-size: 16px;
}

.events-half-title,
.events-half-score {
  font-size: 12px;
}

.events-minute {
  font-size: 17px;
  font-weight: 900;
}

.events-primary {
  font-size: 15px;
}

.events-secondary {
  font-size: 13px;
}

.events-note {
  font-size: 12px;
}

.court-player-name,
.player-name-cell {
  font-size: 15px;
}

@media (max-width: 768px) {
  .dashboard-nav-row {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 12px 10px !important;
  }

  .dashboard-back-btn {
    flex: 0 0 auto !important;
  }

  .dashboard-hero-card {
    min-height: 220px !important;
    padding: 16px 14px !important;
  }

  .hero-team {
    width: 35% !important;
  }

  .hero-team-crest {
    width: 62px !important;
    height: 62px !important;
    margin-bottom: 8px !important;
  }

  .hero-score-center {
    width: 30% !important;
  }

  .dashboard-league-title {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
  }

  .match-league-standings-link {
    display: inline-flex !important;
    align-self: flex-end !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
    vertical-align: top !important;
  }

  .hero-status-pill {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }

  .hero-date-time {
    font-size: 13px !important;
  }

  .hero-team-name {
    font-size: 17px !important;
  }

  .hero-player-name {
    font-size: 13px !important;
    max-width: 76px !important;
  }

  .hero-team-subscore {
    font-size: 17px !important;
  }

  .hero-score-val {
    font-size: 46px !important;
  }

  .hero-score-val.hero-score-compact {
    font-size: 32px !important;
  }

  .hero-half-val,
  .hero-overs-val,
  .hero-vs-text {
    font-size: 14px !important;
  }

  .dashboard-card-header-bar {
    font-size: 14px !important;
    padding: 14px 18px !important;
  }

  .tab-btn {
    font-size: 12px !important;
    padding: 8px 14px !important;
  }

  .tab-btn-icon {
    font-size: 11px !important;
    margin-right: 2px !important;
  }

  .info-value {
    font-size: 14px !important;
  }

  .events-minute {
    font-size: 15px !important;
  }

  .events-primary {
    font-size: 14px !important;
  }

  .events-secondary,
  .events-note {
    font-size: 12px !important;
  }
}

@media (max-width: 576px) {
  .dashboard-nav-row {
    margin-bottom: 16px !important;
  }

  .dashboard-back-btn {
    padding: 8px 14px !important;
  }

  .dashboard-hero-card {
    min-height: 236px !important;
    padding: 14px 14px 16px !important;
    border-radius: 12px !important;
  }

  .hero-card-header {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    row-gap: 8px !important;
  }

  .hero-date-time {
    position: static !important;
    transform: none !important;
    order: 3 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.04em !important;
  }

  .hero-matchup-container {
    align-items: flex-end !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .hero-matchup-doubles {
    align-items: center !important;
  }

  .hero-matchup-doubles .hero-score-center {
    align-self: center !important;
    justify-content: center !important;
  }

  .hero-matchup-doubles .doubles-team {
    justify-content: center !important;
  }

  .hero-team {
    width: 32% !important;
    min-width: 0 !important;
  }

  .hero-team-crest {
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 4px !important;
  }

  .hero-score-center {
    width: 36% !important;
    gap: 4px !important;
  }

  .hero-team-name {
    font-size: 11px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .hero-player-name {
    font-size: 11px !important;
    max-width: 68px !important;
  }

  .hero-team-subscore {
    font-size: 15px !important;
  }

  .hero-score-val {
    font-size: 30px !important;
    line-height: 0.95 !important;
  }

  .hero-score-val.hero-score-compact {
    font-size: 24px !important;
  }

  .hero-half-val,
  .hero-overs-val,
  .hero-vs-text {
    font-size: 12px !important;
  }

  .hero-tennis-set-summary {
    font-size: 11px !important;
    line-height: 1.15 !important;
    margin-top: 2px !important;
    letter-spacing: 0.03em !important;
  }

  .hero-tennis-live-points {
    margin-top: 2px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
  }

  .hero-tennis-phase {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.03em !important;
  }

  .tab-btn {
    font-size: 10px !important;
    padding: 7px 10px !important;
  }

  .tab-btn-icon {
    font-size: 10px !important;
    margin-right: 2px !important;
  }

  .events-minute {
    font-size: 13px !important;
  }

  .events-primary {
    font-size: 12px !important;
  }

  .events-secondary,
  .events-note {
    font-size: 11px !important;
  }
}

@media (max-width: 420px) {
  .dashboard-league-title {
    font-size: 13px !important;
  }

  .match-league-standings-link {
    font-size: 9px !important;
    padding: 4px 7px !important;
  }

  .dashboard-hero-card {
    min-height: 244px !important;
    padding: 14px 12px 16px !important;
  }

  .hero-matchup-container {
    gap: 8px !important;
  }

  .hero-matchup-doubles .hero-score-center {
    width: 34% !important;
  }

  .hero-team {
    width: 31% !important;
  }

  .hero-team-crest {
    width: 42px !important;
    height: 42px !important;
  }

  .hero-score-center {
    width: 38% !important;
  }

  .hero-team-name {
    font-size: 10px !important;
  }

  .hero-score-val {
    font-size: 28px !important;
  }

  .hero-tennis-live-points {
    font-size: 9px !important;
    padding: 3px 7px !important;
  }

  .hero-tennis-set-summary,
  .hero-tennis-phase {
    font-size: 10px !important;
  }
}

/* ==========================================
   LINEUP TEXT OVERFLOW / MARQUEE SUPPORT
   ========================================== */

.lineup-list-header {
  gap: 12px;
  min-width: 0;
}

.lineup-list-header h4 {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-formation-tag {
  display: inline-block;
  min-width: 0;
  flex-shrink: 1;
  max-width: 48%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-row-list {
  gap: 12px;
  min-width: 0;
}

.list-val {
  flex: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-name-cell,
.court-player-name,
.player-label {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: max-content;
  max-width: min(22vw, 88px);
  text-align: center;
  line-height: 1.1;
  padding: 2px 4px;
  font-size: 9px;
}

.player-num-cell {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.player-name-cell {
  position: relative;
  z-index: 1;
}

.chess-legend-item {
  min-width: 0;
}

.legend-name {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Horizontal Head-to-Head Encounters Component Styling */
.h2h-match-row-item.h2h-match-group {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #ffffff !important;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.h2h-group-date-bar {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}

.h2h-group-match-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  padding: 16px 24px;
  background: transparent;
}

.h2h-team-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h2h-team-side.home {
  justify-content: flex-start;
  text-align: left;
}

.h2h-team-side.away {
  justify-content: flex-end;
  text-align: right;
}

.h2h-team-crest-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.h2h-team-name-lbl {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.h2h-score-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
}

.h2h-score-text {
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.h2h-win-indicator {
  color: #2563eb; /* Primary Blue color */
  font-size: 11px;
  display: inline-block;
}

.h2h-win-indicator.home {
  margin-right: 2px;
}

.h2h-win-indicator.away {
  margin-left: 2px;
}

/* Dark theme overrides for H2H match group */
html[data-theme="dark"] .h2h-match-row-item.h2h-match-group {
  border-color: #334155 !important;
  background: #1e293b !important;
}

html[data-theme="dark"] .h2h-group-date-bar {
  background: #0f172a;
  color: #94a3b8;
  border-bottom-color: #334155;
}

html[data-theme="dark"] .h2h-team-name-lbl {
  color: #f1f5f9;
}

html[data-theme="dark"] .h2h-score-side {
  color: #ffffff;
}

html[data-theme="dark"] .h2h-win-indicator {
  color: #60a5fa; /* Light blue color in dark mode */
}

/* View Standings Button/Link - Neo-brutalist theme */
.view-standings-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transition: background-color 0.1s ease;
  text-decoration: none !important;
}

.view-standings-link:hover {
  background-color: #f1f5f9;
}

.view-standings-link:active {
  background-color: #e2e8f0;
}

.match-league-standings-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: background-color 0.1s ease;
  text-decoration: none !important;
  margin-left: auto;
}

.dashboard-nav-row .dashboard-league-title {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-left: auto;
  text-align: right;
}

.match-league-standings-link:hover {
  background-color: #f1f5f9;
}

.match-league-standings-link:active {
  background-color: #e2e8f0;
}

/* Dark mode overrides for standings buttons */
html[data-theme="dark"] .view-standings-link {
  background: #1e293b;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .view-standings-link:hover {
  background-color: #0f172a;
}

html[data-theme="dark"] .view-standings-link:active {
  background-color: #020617;
}

html[data-theme="dark"] .match-league-standings-link {
  background: #1e293b;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .match-league-standings-link:hover {
  background-color: #0f172a;
}

html[data-theme="dark"] .match-league-standings-link:active {
  background-color: #020617;
}

@media (max-width: 576px) {
  .match-league-standings-link {
    font-size: 11px !important;
    padding: 7px 11px !important;
  }
}

/* Tennis Point-by-Point Styles (Image 1) */
.tennis-pbp-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tennis-set-group {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.tennis-set-header {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  border-left: 4px solid #00a3ff;
}

.tennis-games-list {
  display: flex;
  flex-direction: column;
}

.tennis-game-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.tennis-game-row:last-child {
  border-bottom: none;
}

.tennis-game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tennis-game-name {
  font-weight: 600;
  font-size: 14px;
  color: #334155;
}

.tennis-game-winner {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.tennis-game-winner.won-home {
  background-color: #e6f7ed;
  color: #2e7d32;
}

.tennis-game-winner.won-away {
  background-color: #e6f7ed;
  color: #2e7d32;
}

.tennis-points-progression {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tennis-point-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.tennis-point-arrow {
  color: #94a3b8;
  font-weight: 700;
}

.hero-tennis-set-summary {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-align: center;
}

.hero-tennis-phase {
  margin-top: 4px;
  color: #ff8a65;
  font-size: 15px;
  text-transform: uppercase;
}

.hero-tennis-live-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 4px 12px;
  min-height: 24px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  opacity: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}

html[data-theme="dark"] .hero-tennis-live-points {
  background: rgba(191, 219, 254, 0.12);
  border-color: rgba(191, 219, 254, 0.28);
  color: #dbeafe;
}

.hero-tennis-game {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* Tennis Statistics Period Styles (Image 2) */
.tennis-stats-periods-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.tennis-period-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tennis-period-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.tennis-period-btn.active {
  background: #64748b;
  color: #ffffff;
  border-color: #64748b;
}

.tennis-stats-panel.hidden {
  display: none;
}

.tennis-comparison-bars-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tennis-stat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tennis-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tennis-stat-val {
  font-weight: 700;
  font-size: 15px;
  width: 80px;
}

.tennis-stat-val.home {
  text-align: left;
  color: #00a3ff;
}

.tennis-stat-val.away {
  text-align: right;
  color: #e91e63;
}

.tennis-stat-label {
  font-weight: 700;
  font-size: 12px;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  flex-grow: 1;
}

.tennis-stat-bar-container {
  display: flex;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.tennis-stat-bar-fill {
  height: 100%;
}

.tennis-stat-bar-fill.home {
  background: #00a3ff;
}

.tennis-stat-bar-fill.away {
  background: #e91e63;
}

/* Dark mode adjustments for Tennis specific styles */
html[data-theme="dark"] .tennis-set-group {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .tennis-set-header {
  background: #1e293b;
  color: #f1f5f9;
}

html[data-theme="dark"] .tennis-game-row {
  border-bottom-color: #334155;
}

html[data-theme="dark"] .tennis-game-name {
  color: #cbd5e1;
}

html[data-theme="dark"] .tennis-point-pill {
  background: #0f172a;
  border-color: #475569;
  color: #cbd5e1;
}

html[data-theme="dark"] .tennis-period-btn {
  border-color: #475569;
  color: #94a3b8;
}

html[data-theme="dark"] .tennis-period-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

html[data-theme="dark"] .tennis-period-btn.active {
  background: #475569;
  color: #ffffff;
  border-color: #475569;
}

html[data-theme="dark"] .tennis-stat-label {
  color: #cbd5e1;
}

html[data-theme="dark"] .tennis-stat-bar-container {
  background: #334155;
}

/* Statistics Legend styling */
.tennis-stats-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-item.home {
  color: #00a3ff;
}

.legend-item.away {
  color: #e91e63;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-color-dot.home {
  background-color: #00a3ff;
  box-shadow: 0 0 6px rgba(0, 163, 255, 0.4);
}

.legend-color-dot.away {
  background-color: #e91e63;
  box-shadow: 0 0 6px rgba(233, 30, 99, 0.4);
}

html[data-theme="dark"] .tennis-stats-legend {
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
}

.match-main-content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin-top: 24px;
}

.match-ads-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 40px;
  width: 300px;
}

@media (max-width: 1024px) {
  .match-main-content-layout {
    grid-template-columns: 1fr;
  }
  .match-ads-sidebar {
    width: 100%;
    align-items: center;
    height: auto;
  }
}

.dashboard-tabs-row {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 0 0 auto;
}

@media (max-width: 576px) {
  .match-dashboard-page {
    padding: 20px 0;
  }

  .match-dashboard-page .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .dashboard-nav-row {
    margin-bottom: 14px;
    padding-top: 4px;
  }

  .match-home-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .dashboard-tabs-row {
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 6px;
  }

  .tab-btn {
    padding: 8px 12px !important;
    font-size: 11px !important;
  }

  .dashboard-card-wrap {
    border-radius: 12px;
  }
}

/* styles/today.css */
/* ==========================================================================
   Matches of the Day & Single-Month Picker Styles (Minimalistic & Premium)
   ========================================================================== */

.today-hero {
  width: 100%;
  background: #111827;
}

.today-hero-inner {
  max-width: 100%;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 7fr 3fr;
  align-items: stretch;
  gap: 0;
}

.today-hero-slideshow {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #0b1320;
}

.today-hero .hero-copy {
  min-height: 420px;
  padding: 40px;
  background: #141a28;
}

.today-ad-banner-section {
  padding-top: 18px;
  padding-bottom: 10px;
}

.today-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 12px 0;
  width: 100%;
  position: relative;
}

.btn-go-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  color: #4b5563;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-go-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  color: #111827;
  border-color: #d1d5db;
}

.btn-go-back:active {
  transform: translateY(0);
}

.header-left-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.today-week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.today-week-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-week-strip-container {
  margin-bottom: 32px;
}

/* Skeleton shimmer for week strip while data loads */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.week-day-skeleton {
  flex: 1;
  min-height: 70px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border: none !important;
  cursor: default !important;
}

html[data-theme="dark"] .week-day-skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

/* Thin animated loading bar for date navigation */
.today-loading-bar {
  height: 3px;
  width: 100%;
  margin-bottom: 8px;
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.today-loading-bar.active {
  background: #e0e7ff;
}

.today-loading-bar.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  border-radius: 2px;
  animation: loadingBarSweep 1.1s ease-in-out infinite;
}

@keyframes loadingBarSweep {
  0% { left: -40%; }
  100% { left: 100%; }
}

.date-navigation-wrap {
  display: none;
}

.active-date-badge {
  background: #1e293b;
  /* Premium slate gray/navy */
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-today-outline {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 13px;
  color: #4b5563;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-today-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  color: #111827;
  border-color: #d1d5db;
}

.btn-calendar-trigger {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-calendar-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
  color: #2563eb;
}

.btn-calendar-trigger svg {
  width: 18px;
  height: 18px;
}

/* Sports Filter Dropdown Styling */
.sports-dropdown-container {
  position: relative;
  display: inline-block;
}

.btn-sports-dropdown {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  color: #4b5563;
  /* slate gray */
  border-radius: 4px;
  /* minor 4px corner radius */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-sports-dropdown:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  color: #111827;
  border-color: #d1d5db;
}

.btn-sports-dropdown svg {
  color: #64748b;
  width: 14px;
  height: 14px;
  stroke-width: 3.5px;
}

.sports-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 500;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  /* minor 4px corner radius */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  /* toggled via JS class .show */
  flex-direction: column;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px 0;
}

.sports-dropdown-menu.show {
  display: flex;
}

.dropdown-menu-item {
  background: transparent;
  border: none;
  width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #4b5563;
  /* slate gray */
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.dropdown-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dropdown-menu-item.active {
  background: #e0f2fe;
  /* Light blue highlight matching calendar picker active state */
  color: #2563eb;
}

.dropdown-sport-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.dropdown-menu-item .check-icon {
  margin-left: auto;
  color: #2563eb;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dropdown-menu-item.active .check-icon {
  opacity: 1;
}

/* Single-Month Picker Dropdown */
.calendar-picker-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 500;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  /* toggled via JS */
  flex-direction: column;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  overflow: hidden;
  /* clip corners */
}

.calendar-picker-dropdown.show {
  display: flex;
}

.picker-sidebar {
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar-item-link {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: left;
  display: block;
}

.sidebar-item-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-item-link.active {
  background: #e0f2fe !important;
  color: #2563eb !important;
}

.picker-calendars-row {
  display: flex;
  flex: 1;
  gap: 0;
  background: #ffffff;
  padding: 24px;
}

.month-container {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 6px;
}

.month-nav-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.month-nav-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.month-title-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-month-select,
.calendar-year-select {
  border: 1px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 12px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
}

.calendar-month-select:hover,
.calendar-year-select:hover {
  background-color: #f1f5f9;
}

.calendar-table-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
}

.calendar-table-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex-grow: 1;
}

.calendar-picker-day {
  aspect-ratio: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
  padding: 4px 0;
}

.calendar-picker-day:hover:not(.empty) {
  background: #f1f5f9;
}

.calendar-picker-day.empty {
  color: #cbd5e1;
  cursor: default;
}

.calendar-picker-day.today-cell {
  border: 1px solid #2563eb;
}

.calendar-picker-day .today-text {
  font-size: 7.5px;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  margin-top: 1px;
  line-height: 1;
}

.calendar-picker-day.active-day {
  background: #2563eb !important;
  color: #ffffff !important;
}

.calendar-picker-day.active-day .today-text {
  color: #ffffff !important;
}

.calendar-picker-day.range-edge {
  background: #2563eb !important;
  color: #ffffff !important;
}

.calendar-picker-day.range-edge .today-text {
  color: #ffffff !important;
}

.calendar-picker-day.range-mid {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-radius: 0;
}

/* Spaces and headings */
.status-space-container {
  margin-bottom: 48px;
}

.status-space-title {
  position: -webkit-sticky;
  /* safari */
  position: sticky;
  top: 0px;
  /* stick to the top of the viewport */
  z-index: 90;
  background: #eef2ff;
  /* match body background to cover underlying cards when scrolling */
  padding: 16px 0;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-space-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: #e2e8f0;
}

.sport-banner-tag {
  background: #1e293b;
  /* Clean solid slate/navy */
  color: #ffffff;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 6px;
  margin-top: 16px;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.today-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.no-matches-placeholder {
  background: #ffffff;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 760px) {
  .today-hero-inner {
    grid-template-columns: 1fr;
  }

  .today-hero-slideshow {
    height: 280px;
  }

  .today-hero .hero-copy {
    min-height: auto;
    padding: 32px 20px;
  }

  .sports-sidebar {
    display: none !important;
  }

  .today-page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .header-left-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .today-week-nav {
    flex: 1 1 220px;
    justify-content: center;
  }

  .today-week-label {
    flex: 1 1 220px;
    min-width: 0;
    text-align: center;
  }

  .header-right-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .btn-go-back {
    justify-self: start;
  }

  .calendar-picker-dropdown {
    width: calc(100vw - 32px);
    max-width: 360px;
    flex-direction: column;
    padding: 16px;
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .picker-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1.5px dashed #9ca3af;
    padding-right: 0;
    padding-bottom: 12px;
    justify-content: space-around;
  }

  .picker-calendars-row {
    flex-direction: column;
    width: 100%;
  }

  .today-matches-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .today-week-strip-container {
    gap: 10px;
  }

  .sports-sidebar-horizontal {
    display: flex !important;
    width: 100%;
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 12px;
    box-shadow: 3px 3px 0px #000000;
    padding: 8px 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
  }

  html[data-theme="dark"] .sports-sidebar-horizontal {
    background: var(--surface-strong) !important;
    border-color: var(--border) !important;
    box-shadow: 3px 3px 0px var(--border) !important;
  }

  .sports-horizontal-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .sports-horizontal-row::-webkit-scrollbar {
    display: none;             /* Chrome/Safari/Opera */
  }
}

@media (max-width: 560px) {
  .today-hero-slideshow {
    height: 220px;
  }

  .today-hero .hero-copy {
    padding: 24px 16px;
  }

  .today-page-header {
    gap: 12px;
    margin-bottom: 18px;
    padding: 0;
  }

  .header-left-actions {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .header-left-actions .btn-go-back {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    border-color: #d8e0eb;
  }

  .today-week-nav {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 5px;
  }

  .today-week-nav .schedule-nav-btn {
    width: 32px;
    height: 32px;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 10px;
    font-size: 13px;
  }

  .today-week-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 7px 8px;
    background: #ffffff;
    border: 1px solid #d8e0eb;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
  }

  .header-right-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
  }

  .header-right-actions .btn-today-outline {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border-color: #d8e0eb;
  }

  .header-right-actions .btn-calendar-trigger {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
    border-color: #d8e0eb;
  }

  .today-week-strip-container.week-strip-container {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
    margin-bottom: 18px;
    align-items: center;
  }

  .today-week-strip-container .week-strip-nav-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 10px;
    font-size: 13px;
  }

  .today-week-strip-container .week-strip {
    min-width: 0;
    min-height: 70px;
    margin-bottom: 0;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 16px;
    background: #ffffff;
  }

  .today-week-strip-container .week-day-card {
    padding: 10px 2px 9px;
    border-right: 1px solid #e3e8f0;
  }

  .today-week-strip-container .week-day-name {
    font-size: 7px;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
  }

  .today-week-strip-container .week-day-number {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .today-week-strip-container .week-match-count {
    width: 17px;
    height: 17px;
    font-size: 8px;
  }

  .sports-sidebar-horizontal {
    padding: 6px;
    margin-bottom: 18px;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 16px;
    background: #ffffff;
  }

  .sports-horizontal-row {
    gap: 8px;
  }

  .sports-sidebar-horizontal .sidebar-item {
    width: auto;
    max-width: none;
    max-height: none;
    min-height: 40px;
    aspect-ratio: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f8fafc;
  }

  .sports-sidebar-horizontal .sidebar-item:hover {
    background: #eef2f7;
  }

  .sports-sidebar-horizontal .sidebar-item.active {
    background: #0f8cff;
    color: #ffffff !important;
  }

  .sports-sidebar-horizontal .sidebar-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .sports-sidebar-horizontal .sidebar-label {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: inherit !important;
    box-shadow: none;
  }

  .sports-sidebar-horizontal .sidebar-label::before,
  .sports-sidebar-horizontal .sidebar-label::after {
    display: none;
  }

  .sports-sidebar-horizontal .sidebar-item:hover .sidebar-label {
    transform: none;
  }

  html[data-theme="dark"] .header-left-actions .btn-go-back,
  html[data-theme="dark"] .today-week-label,
  html[data-theme="dark"] .header-right-actions .btn-today-outline,
  html[data-theme="dark"] .header-right-actions .btn-calendar-trigger,
  html[data-theme="dark"] .today-week-nav .schedule-nav-btn,
  html[data-theme="dark"] .today-week-strip-container .week-strip,
  html[data-theme="dark"] .today-week-strip-container .week-strip-nav-btn,
  html[data-theme="dark"] .sports-sidebar-horizontal {
    background: var(--surface-strong);
    border-color: var(--border);
    color: var(--text);
  }

  html[data-theme="dark"] .today-week-strip-container .week-day-card {
    border-right-color: #334155;
  }

  html[data-theme="dark"] .sports-sidebar-horizontal .sidebar-item {
    background: var(--surface);
    color: var(--text);
  }

  html[data-theme="dark"] .sports-sidebar-horizontal .sidebar-item:hover {
    background: var(--surface-soft);
  }

  html[data-theme="dark"] .sports-sidebar-horizontal .sidebar-item.active {
    background: #0f8cff;
    color: #ffffff !important;
  }

  .status-space-title {
    font-size: 16px;
    padding: 12px 0;
    margin-bottom: 16px;
  }
}


/* Motorsport layout for /today page */
.racing-layout-today {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0 10px;
}

.racing-stage-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4b5563;
  /* slate gray */
  margin-bottom: 2px;
}

.racing-gp-name {
  font-size: 18px;
  /* smaller for clean replication */
  font-weight: 900;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.racing-session-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 4px;
}

.racing-flag-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0;
}

.racing-country-flag {
  width: 60px;
  height: 36px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.racing-country-name {
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Home page calendar grid date redirect button styles */
.calendar-number {
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  user-select: none;
}

.calendar-number:hover {
  background-color: #dbeafe !important;
  /* light blue highlight circle */
  color: #2563eb !important;
  /* blue text highlight */
  transform: scale(1.15);
  /* clean micro-zoom */
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
}

.calendar-number:active {
  transform: scale(0.95);
}

/* Today page status summary indicator row and tags */
.today-status-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.status-indicator-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

/* Available states */
.status-indicator-badge.ongoing.available {
  background-color: #f0fdf4;
  /* green background */
  color: #16a34a;
  border-color: #bbf7d0;
}

.status-indicator-badge.ongoing.available::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
  animation: breatheGreenBadge 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

.status-indicator-badge.upcoming.available {
  background-color: #eff6ff;
  /* blue background */
  color: #2563eb;
  border-color: #bfdbfe;
}

.status-indicator-badge.upcoming.available::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #2563eb;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-indicator-badge.past.available {
  background-color: #f8fafc;
  /* gray background */
  color: #64748b;
  border-color: #cbd5e1;
}

.status-indicator-badge.past.available::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #64748b;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Empty states */
.status-indicator-badge.empty {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  opacity: 0.6;
}

.status-indicator-badge.empty::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #94a3b8;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes breatheGreenBadge {

  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
  }
}

/* Deep-link highlight for match cards scrolled to from Schedule page */
.live-card.highlight-match {
  animation: highlightPulse 2.5s ease;
  z-index: 10;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 140, 255, 0.7);
  }

  20% {
    box-shadow: 0 0 0 8px rgba(15, 140, 255, 0.4);
  }

  40% {
    box-shadow: 0 0 0 4px rgba(15, 140, 255, 0.3);
  }

  60% {
    box-shadow: 0 0 0 8px rgba(15, 140, 255, 0.2);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(15, 140, 255, 0);
  }
}

/* Floating Scroll-to-Top Button Styling */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: #1e293b;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index: 9999;
  transform: translateY(20px);
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: #0f172a;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.scroll-to-top-btn:active {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* Highlight effect for anchor-scrolled match cards */
.live-card.highlight-match {
  animation: highlightGlow 2.5s ease;
}

@keyframes highlightGlow {
  0% {
    box-shadow: 0 0 0 6px #0f8cff;
    transform: scale(1.02);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(15, 140, 255, 0.4);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: scale(1);
  }
}

/* Highlight styling for the next upcoming match based on device time */
.live-card.next-upcoming-highlight {
  position: relative;
  border: 2px solid #ea580c !important;
  /* Premium safety orange / amber border */
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.4) !important;
}

.live-card.next-upcoming-highlight::after {
  content: "NEXT UP";
  position: absolute;
  top: 10px;
  right: 12px;
  background: #ea580c;
  /* Matching safety orange */
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Hide sport name badges inside the card for all cards on the matches of the day page */
#matches-container .sport-badge {
  display: none !important;
}

/* Search Popup Drawer Styles */
.search-popup-panel {
  position: fixed;
  top: 86px;
  /* Sits right under header */
  right: -360px;
  /* Hidden initially */
  bottom: 0;
  width: 340px;
  background-color: #fafafa;
  border-left: 2.5px solid #000000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 10005 !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-popup-panel.show {
  right: 0;
}

.search-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 14px 18px;
  border-bottom: 2px solid #000000;
  background-color: #fafafa;
}

.search-popup-back-btn {
  background: #ffffff;
  border: 2px solid #000000;
  cursor: pointer;
  padding: 0;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 2px 2px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.search-popup-back-btn:hover {
  background-color: #f1f5f9;
}

.search-popup-back-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.search-popup-back-btn svg {
  width: 16px;
  height: 16px;
}

.search-popup-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 850;
  color: #000000;
  margin: 0 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-popup-input-wrapper {
  position: relative;
  padding: 16px 18px;
  border-bottom: 2px solid #000000;
  background-color: #ffffff;
}

#search-popup-input {
  width: 100%;
  height: 42px;
  padding: 8px 36px 8px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  background-color: #f2f2f2;
  border: 2px solid #000000;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#search-popup-input:focus {
  background-color: #ffffff;
  border-color: #000000;
}

#search-popup-clear-btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #000000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.1s ease;
}

#search-popup-clear-btn:hover {
  transform: translateY(-50%) scale(1.15);
}

.search-popup-results-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #ffffff;
  position: relative;
  /* Crucial for child offsetTop calculations to be relative to this container */
}

.search-popup-default-state {
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background-color: #ffffff;
}

.search-popup-default-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 850;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-popup-suggestion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-popup-suggestion-chip {
  border: 2px solid #000000;
  border-radius: 7px;
  background-color: #ffffff;
  box-shadow: 3px 3px 0px #000000;
  color: #000000;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.search-popup-suggestion-chip:hover {
  background-color: #eef6ff;
}

.search-popup-suggestion-chip:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.search-result-row {
  display: flex;
  border-bottom: 2px solid #000000;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}

.search-result-row:last-child {
  border-bottom: none;
}

.search-result-row:hover {
  background-color: #f1f5f9;
}

.search-result-date-cell {
  width: 90px;
  min-width: 90px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid #000000;
  background-color: #fafafa;
  box-sizing: border-box;
}

.search-result-date {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #555555;
  margin-bottom: 2px;
  text-align: center;
}

.search-result-time {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 850;
  color: #000000;
  text-align: center;
}

.search-result-info-cell {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.search-result-league {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 850;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.search-result-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-result-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border: 1.5px solid #000000;
  border-radius: 4px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.search-result-team-initial-logo {
  width: 20px;
  height: 20px;
  border: 1.5px solid #000000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 850;
  color: #ffffff;
  text-transform: uppercase;
  flex-shrink: 0;
}

.search-result-team-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specific styling for highlighted matches and matches matching the query */
.search-result-team-name.highlight-query {
  font-weight: 850;
  color: #000000;
}

.search-result-info-cell span.highlight-query {
  font-weight: 850;
  color: #000000;
  background-color: #dbeafe;
  /* Soft blue highlight box */
  padding: 0px 2px;
  border-radius: 2px;
}

.search-popup-end-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px 32px 10px;
  text-align: center;
  background-color: #ffffff;
  border-top: 2px solid #eaeaea;
}

.search-popup-end-icon {
  color: #000000;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-popup-end-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 850;
  color: #000000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsiveness for search drawer popup */
@media (max-width: 480px) {
  .search-popup-panel {
    top: 0;
    width: 100%;
    right: -100%;
  }

  .search-popup-panel.show {
    right: 0;
  }

  .search-popup-header {
    padding: 16px 14px;
  }

  .search-popup-title {
    font-size: 18px;
  }

  .search-result-date-cell {
    width: 80px;
    min-width: 80px;
    padding: 10px 4px;
  }

  .search-result-date {
    font-size: 10px;
  }

  .search-result-time {
    font-size: 12px;
  }

  .search-result-team-name {
    font-size: 13px;
  }
}

/* Disable body scrolling when search drawer is open */
html.search-open,
body.search-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* Floating scroll to top inside search drawer */
.search-popup-scroll-to-top-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 50%;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px #000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
  z-index: 210;
}

.search-popup-scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.search-popup-scroll-to-top-btn:hover {
  background-color: #f1f5f9;
}

.search-popup-scroll-to-top-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.date-navigation-wrap {
  display: none !important;
}

.date-nav-btn {
  display: none !important;
}

.date-nav-btn:hover {
  background-color: #f1f5f9;
}

.date-nav-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

/* Dark mode styling */
html[data-theme="dark"] .date-nav-btn {
  background: var(--surface-strong);
  border-color: var(--border);
  box-shadow: 2.5px 2.5px 0px var(--border);
  color: var(--text);
}

html[data-theme="dark"] .date-nav-btn:hover {
  background-color: #1e293b;
}

html[data-theme="dark"] .date-nav-btn:active {
  box-shadow: 1px 1px 0px var(--border);
}

/* Calendar modal backdrop overlay */
.calendar-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 450; /* below calendar dropdown (500) but above everything else */
}

.calendar-modal-backdrop.show {
  display: block;
}

/* Hide sport selection bar elements when calendar modal is active */
body.calendar-open .sports-sidebar,
body.calendar-open .sports-sidebar-horizontal {
  display: none !important;
}

/* styles/upcoming.css */
/* ========================================
   SCHEDULE PAGE — 7-Day Timeline Styles
   ======================================== */

/* Schedule Page Header */
.schedule-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.schedule-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.week-label-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-week-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 3px 3px 0px #000000;
}

.schedule-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-header-right .schedule-nav-btn {
  display: none;
}

.schedule-nav-btn {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  color: #000;
  font-family: var(--font-sans);
}

.schedule-nav-btn:hover {
  background-color: #f8fafc;
}

.schedule-nav-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.schedule-today-btn {
  background: #ffffff;
  border: 2.5px solid #000000;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.schedule-today-btn:hover {
  background-color: #f0f9ff;
}

.schedule-today-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

/* Week Strip */
.week-strip {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 2.5px solid #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0px #000000;
  background: #ffffff;
}

.week-day-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px 12px;
  cursor: pointer;
  border-right: 2px solid #000000;
  transition: background-color 0.15s ease;
  position: relative;
  min-width: 0;
}

.week-day-card:last-child {
  border-right: none;
}

.week-day-card:hover {
  background-color: #f0f9ff;
}

.week-day-card.active {
  background-color: #0f8cff;
  color: #ffffff;
}

.week-day-card.today-card:not(.active) {
  background-color: #fffbeb;
}

.week-day-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  opacity: 0.6;
}

.week-day-card.active .week-day-name {
  opacity: 1;
  color: #ffffff;
}

.week-day-number {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.week-day-card.active .week-day-number {
  color: #ffffff;
}

.week-day-month {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-bottom: 6px;
}

.week-day-card.active .week-day-month {
  opacity: 0.85;
  color: #ffffff;
}

.week-match-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  color: #475569;
  border: 1.5px solid #cbd5e1;
}

.week-day-card.active .week-match-count {
  background: rgba(255,255,255,0.3);
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}

.week-day-card.today-card:not(.active) .week-match-count {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

.today-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  border: 1.5px solid #ffffff;
  animation: pulseDot 2s infinite;
}

.week-day-card.active .today-dot {
  background: #ffffff;
  border-color: #0f8cff;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Timeline Layout */
.schedule-layout-wrapper {
  display: flex;
  flex: 1;
  gap: 0;
  align-items: stretch;
  position: relative;
  min-height: 860px;
}

.schedule-body-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: stretch;
  min-height: 860px;
}

.schedule-body-main {
  min-width: 0;
}

.schedule-ads-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 24px;
  align-items: center;
  align-self: stretch;
}

.schedule-sidebar-ad {
  width: 100%;
}

.schedule-ad-banner-section-bottom {
  padding-top: 36px;
  padding-bottom: 8px;
}

.timeline-container {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Timeline Loading Skeleton */
.timeline-loading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0 20px 72px;
}

.timeline-skeleton-slot {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-skeleton-time {
  width: 56px;
  height: 20px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.timeline-skeleton-bar {
  flex: 1;
  height: 72px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Time Slot Row */
.timeline-slot {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-height: 56px;
  margin-bottom: 4px;
}

.timeline-time-marker {
  width: 64px;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  text-align: right;
  padding-right: 16px;
  padding-top: 14px;
  letter-spacing: 0.5px;
  position: relative;
}

.timeline-time-marker::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #ffffff;
  z-index: 2;
}

.timeline-track-line {
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-matches-row {
  flex: 1;
  min-width: 0;
  padding: 6px 0 6px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Match Bar */
.timeline-match-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 3px 3px 0px #000000;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  flex: 1;
  min-width: 450px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.timeline-match-bar:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px #000000;
}

.timeline-match-bar:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.timeline-match-bar.status-live {
  border-color: #16a34a;
  box-shadow: 3px 3px 0px #16a34a;
  animation: livePulse 2.5s infinite;
}

.timeline-match-bar.status-live:hover {
  box-shadow: 5px 5px 0px #16a34a;
}

.timeline-match-bar.status-completed {
  opacity: 0.55;
  background: #f8fafc;
}

.timeline-match-bar.status-completed:hover {
  opacity: 0.8;
}

@keyframes livePulse {
  0%, 100% { border-color: #16a34a; }
  50% { border-color: #22c55e; }
}

/* Sport accent stripe */
.match-bar-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
}

.match-bar-sport-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-left: 4px;
}

.match-bar-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-bar-league {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  white-space: normal;
  word-break: break-word;
}

.match-bar-teams {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: normal;
  word-break: normal;
  line-height: 1.3;
}

.match-bar-versus {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.match-bar-side {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.match-bar-side.away {
  text-align: left;
}

.match-bar-teams .vs-text {
  font-weight: 600;
  color: #94a3b8;
  margin: 0 16px;
  font-size: 11px;
}

/* Inline advertisements are breaks in the schedule, not timeline events. */
.timeline-slot.is-ad-slot .timeline-track-line,
.timeline-slot.is-ad-slot .timeline-time-marker {
  display: none;
}

.timeline-slot.is-ad-slot .timeline-matches-row {
  padding-left: 0;
}

.match-bar-doubles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 3px;
}

.match-bar-doubles-team {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.match-bar-doubles-team.away {
  text-align: right;
}

.match-bar-doubles-team span {
  display: block;
  min-width: 0;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.match-bar-doubles-vs {
  color: #64748b;
  background: #eef2f7;
  border-radius: 999px;
  padding: 2px 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@media (min-width: 561px) {
  .schedule-container .match-bar-doubles {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    gap: 9px;
  }

  .schedule-container .match-bar-doubles-team {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    text-align: left;
  }

  .schedule-container .match-bar-doubles-team span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .schedule-container .match-bar-doubles-team span + span::before {
    content: '/';
    margin-right: 5px;
    color: #94a3b8;
    font-weight: 700;
  }

  .schedule-container .match-bar-doubles-team.away {
    text-align: left;
  }

  .schedule-container .timeline-match-bar.match-type-2v2 .match-bar-league {
    width: auto;
    text-align: left;
  }
}

.match-bar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.match-bar-time {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Countdown Badge */
.match-bar-countdown {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-align: center;
  min-width: 52px;
}

.match-bar-countdown.countdown-upcoming {
  background: #eff6ff;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
}

.match-bar-countdown.countdown-live {
  background: transparent;
  border: none;
  padding: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-red-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ef4444; /* bright red */
  border-radius: 50%;
  animation: pulseRedDot 1.5s infinite ease-in-out;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}

@keyframes pulseRedDot {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.live-status-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  color: #ef4444; /* matching red */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-left: 4px;
}

.match-bar-countdown.countdown-completed {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1.5px solid #e2e8f0;
}

.match-bar-countdown.countdown-canceled {
  background: #fff7ed;
  color: #c2410c;
  border: 1.5px solid #fdba74;
}

@keyframes liveCountdown {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* NOW Indicator Line */
.timeline-now-indicator {
  position: relative;
  display: flex;
  align-items: center;
  margin: 8px 0;
  z-index: 5;
}

.now-line {
  flex: 1;
  height: 2.5px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #ef4444 100%);
  position: relative;
  border-radius: 2px;
}

.now-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(239,68,68,0.15) 0%, rgba(249,115,22,0.08) 50%, rgba(239,68,68,0.15) 100%);
  border-radius: 4px;
}

.now-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
  animation: nowPulse 2s infinite;
  z-index: 2;
}

.now-badge {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  white-space: nowrap;
  z-index: 3;
}

@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1); }
}

/* No Matches Placeholder for Timeline */
.timeline-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 24px;
  text-align: center;
  flex: 1;
}

.timeline-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.timeline-empty-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.timeline-empty-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.timeline-empty-available {
  margin-top: 24px;
  width: 100%;
}

.timeline-empty-available-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 12px;
  text-align: center;
}

.timeline-empty-sports-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.timeline-empty-sport-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.timeline-empty-sport-chip:hover {
  background: #0f8cff;
  border-color: #0f8cff;
  color: #ffffff;
}

.timeline-empty-sport-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

html[data-theme="dark"] .timeline-empty-sport-chip {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

html[data-theme="dark"] .timeline-empty-sport-chip:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Score badge inside timeline bar */
.match-bar-score {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  flex-shrink: 0;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  white-space: nowrap;
}

.match-bar-score.live-score {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .schedule-container [id="gpt-passback-scoretab.in.Banner0.1783512063"] {
    display: block !important;
  }

  .schedule-container .home-ad-banner-shell {
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .schedule-body-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .schedule-ads-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .schedule-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-header-left {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .schedule-header-right {
    justify-content: flex-end;
  }

  .week-label-nav {
    flex: 1 1 220px;
    justify-content: center;
  }

  .week-strip {
    border-radius: 10px;
  }

  .schedule-container .home-ad-banner-shell {
    justify-content: flex-start;
  }

  .week-day-card {
    padding: 10px 4px 8px;
  }

  .week-day-name {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .week-day-number {
    font-size: 17px;
  }

  .week-day-month {
    font-size: 8px;
    display: none;
  }

  .week-match-count {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .schedule-layout-wrapper {
    flex-direction: column;
  }

  .timeline-match-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 12px 14px;
    align-items: center;
    min-width: 200px;
    max-width: 100%;
  }

  .match-bar-sport-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .match-bar-details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .match-bar-countdown {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .match-bar-score {
    grid-column: 2 / span 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .timeline-time-marker {
    width: 50px;
    font-size: 11px;
    padding-right: 12px;
  }

  .timeline-track-line {
    left: 46px;
  }

  .timeline-time-marker::after {
    top: 18px;
  }
}

@media (max-width: 480px) {
  .week-day-card {
    padding: 8px 2px 6px;
  }

  .week-day-name {
    font-size: 8px;
  }

  .week-day-number {
    font-size: 15px;
  }

  .timeline-matches-row {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .timeline-match-bar {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    gap: 8px;
  }

  .match-bar-sport-icon {
    font-size: 20px;
    width: 28px;
  }

  .match-bar-teams {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .schedule-container .match-bar-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 3px;
  }

  .schedule-container .match-bar-doubles {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 3px;
  }

  .schedule-container .match-bar-side.away,
  .schedule-container .match-bar-doubles-team.away {
    text-align: left;
  }

  .schedule-container .match-bar-versus .vs-text,
  .schedule-container .match-bar-doubles-vs {
    margin: 0 !important;
    padding: 0 4px;
  }

  .schedule-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .schedule-page-header {
    gap: 12px;
    margin-bottom: 18px;
  }

  .schedule-header-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
  }

  .schedule-header-left .btn-go-back,
  .schedule-header-left .btn-league-back {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    border-width: 1px;
    border-color: #d8e0eb;
  }

  .week-label-nav {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 5px;
  }

  .schedule-week-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 7px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 14px;
  }

  .schedule-nav-btn,
  .week-strip-nav-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 15px;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 12px;
  }

  .schedule-header-right {
    width: 100%;
  }

  .schedule-today-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    text-align: center;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 12px;
  }

  .schedule-container .week-strip-container {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
    margin-bottom: 18px;
    align-items: center;
  }

  .schedule-container .week-strip-container .week-strip-nav-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    font-size: 13px;
  }

  .week-strip {
    min-width: 0;
    margin-bottom: 0;
    border-width: 1px;
    border-color: #d8e0eb;
    border-radius: 16px;
  }

  .schedule-container .week-strip {
    min-height: 70px;
  }

  .schedule-container .week-day-card {
    padding: 10px 2px 9px;
    border-right: 1px solid #e3e8f0;
  }

  .week-day-name {
    font-size: 7px;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
  }

  .week-day-number {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .week-match-count {
    width: 17px;
    height: 17px;
    font-size: 8px;
  }

  .today-dot {
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
  }

  .schedule-container .timeline-match-bar.match-type-2v2 {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    min-height: 118px;
  }

  .schedule-container .timeline-match-bar.match-type-2v2 .match-bar-sport-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .schedule-container .timeline-match-bar.match-type-2v2 .match-bar-details {
    grid-column: 2 / 4;
    grid-row: 1;
    padding-right: 62px;
  }

  .schedule-container .timeline-match-bar.match-type-2v2 .match-bar-countdown {
    position: absolute;
    top: 10px;
    right: 12px;
  }

  .schedule-container .timeline-match-bar.match-type-2v2 .match-bar-score {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: start;
    margin-top: 5px;
  }

  .schedule-container .match-bar-doubles {
    gap: 7px;
    margin-top: 5px;
  }

  .schedule-container .match-bar-doubles-team {
    gap: 4px;
    font-size: 11px;
  }

  .sports-sidebar-horizontal {
    background: #ffffff;
    border: 1px solid #d8e0eb;
    padding: 6px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .sports-horizontal-row {
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .sports-sidebar-horizontal .sidebar-item {
    width: auto;
    max-width: none;
    max-height: none;
    min-height: 40px;
    aspect-ratio: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f8fafc;
  }

  .sports-sidebar-horizontal .sidebar-label {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: inherit !important;
    box-shadow: none;
  }

  .sports-sidebar-horizontal .sidebar-item:hover {
    background: #eef2f7;
  }

  .sports-sidebar-horizontal .sidebar-item.active {
    background: #0f8cff;
    color: #ffffff !important;
  }

  .sports-sidebar-horizontal .sidebar-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .sports-sidebar-horizontal .sidebar-label::before,
  .sports-sidebar-horizontal .sidebar-label::after {
    display: none;
  }

  .sports-sidebar-horizontal .sidebar-item:hover .sidebar-label {
    transform: none;
  }

  html[data-theme="dark"] .sports-sidebar-horizontal {
    background: var(--surface-strong);
    border-color: var(--border);
  }

  html[data-theme="dark"] .sports-sidebar-horizontal .sidebar-item {
    background: var(--surface);
    color: var(--text);
  }

  html[data-theme="dark"] .sports-sidebar-horizontal .sidebar-item:hover {
    background: var(--surface-soft);
  }

  html[data-theme="dark"] .sports-sidebar-horizontal .sidebar-item.active {
    background: #0f8cff;
    color: #ffffff !important;
  }
}

/* ==========================================
   SCHEDULE OPTION: SEARCH BY LEAGUE
   ========================================== */

/* Schedule option toggle styles */
.schedule-option-toggle {
  display: flex;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  margin-bottom: 28px;
  box-sizing: border-box;
}
.schedule-option-toggle .toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  line-height: 1.35;
}
.schedule-option-toggle .toggle-btn:hover {
  color: #111827;
  background-color: #f1f5f9;
}
.schedule-option-toggle .toggle-btn.active {
  background-color: #0f8cff;
  color: #ffffff;
  box-shadow: none;
}
.schedule-option-toggle .toggle-btn.active:hover {
  background-color: #0f8cff;
  color: #ffffff;
}

/* League search input styles */
.league-search-wrapper {
  margin-bottom: 24px;
  width: 100%;
}
.league-search-wrapper .search-input-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 14px;
  padding: 0 16px;
  height: 52px;
  box-shadow: 4px 4px 0px #000000;
  position: relative;
}
.league-search-wrapper .search-input-container .search-icon {
  color: #000000;
  margin-right: 12px;
  flex-shrink: 0;
}
.league-search-wrapper .search-input-container input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  outline: none;
}
.league-search-wrapper .search-input-container input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}
.league-search-wrapper .search-input-container .clear-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: #000000;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Leagues Grid styles */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: min-content;
  align-items: start;
  gap: 16px;
  margin-bottom: 32px;
}
.league-card {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 0px #000000;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.league-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000, 0 0 12px var(--league-accent);
}
.league-card:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #000000;
}
.league-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: var(--league-accent);
}
.league-card-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.league-card-info {
  flex: 1;
  min-width: 0;
}
.league-card-sport {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.league-card-name {
  font-size: 15px;
  font-weight: 950;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-card-arrow {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}
.league-card:hover .league-card-arrow {
  color: #000000;
  transform: translateX(3px);
}

/* League matches view styles */
.league-matches-view {
  width: 100%;
}
.league-matches-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.btn-league-back {
  background: #ffffff;
  border: 2.5px solid #000000;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  flex-shrink: 0;
}
.btn-league-back:hover {
  background-color: #f1f5f9;
}
.btn-league-back:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}
.selected-league-title {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.league-matches-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #cbd5e1;
  border-top-color: #0f8cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.league-matches-results {
  width: 100%;
  max-width: 850px;
}
.league-matches-results .no-matches-placeholder {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #475569;
  box-shadow: 4px 4px 0px #000000;
}

.league-date-section {
  margin-bottom: 24px;
  scroll-margin-top: 110px;
}
.league-date-header {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  background-color: #f1f5f9;
  border: 2.5px solid #000000;
  border-radius: 8px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 2.5px 2.5px 0px #000000;
}

.timeline-slot.is-current-time-anchor {
  scroll-margin-top: 140px;
}

.timeline-slot.is-current-time-anchor .timeline-time-marker {
  position: relative;
}

.league-time-pointer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  transform: translateY(-50%);
  white-space: nowrap;
}

.league-time-pointer::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #2563eb;
}

/* Stretch containers for sticky footer */
#timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.league-schedule-container {
  display: flex;
  flex: 1;
  gap: 0;
  align-items: stretch;
  position: relative;
  min-height: 860px;
  flex-direction: row;
}
.league-schedule-container.is-viewing-league-matches .sports-sidebar,
.league-schedule-container.is-viewing-league-matches .sports-sidebar-horizontal {
  display: none !important;
}
.league-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.leagues-grid {
  flex: 1;
}
.league-matches-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.league-matches-results {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 760px) {
  .calendar-layout-wrapper,
  .schedule-layout-wrapper,
  .league-schedule-container {
    flex-direction: column;
    padding-left: 0;
    min-height: auto;
  }

  /* Calendar header — shrink title and reduce gaps */
  .new-calendar-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .calendar-month-title {
    font-size: 22px !important;
  }
  .calendar-title-nav {
    gap: 10px;
  }
  .btn-nav-arrow {
    font-size: 22px;
    padding: 2px 6px;
  }
  .btn-today {
    padding: 8px 14px;
    font-size: 10px;
  }

  /* Home content — tighten padding to reclaim width */
  .home-content {
    padding: 24px 12px 40px !important;
  }

  /* Reset calendar horizontal scroll and fit to screen */
  .calendar-container {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }
  .calendar-grid-wrapper {
    min-width: 0;
    width: 100%;
  }
  .home-grid {
    max-width: 100%;
  }

  /* Hide the TODAY badge on mobile — the blue highlight is sufficient */
  .today-label {
    display: none !important;
  }

  /* Compact calendar cards for mobile — taller to fit league names */
  .calendar-card {
    min-height: 120px !important;
    padding: 6px 3px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .calendar-number {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  /* Weekday row — shrink for narrow cells */
  .weekday-row {
    font-size: 8px !important;
    letter-spacing: 0 !important;
  }
  .weekday-row span {
    padding: 6px 0 !important;
  }

  /* Show league names in a compact vertical list */
  .event-list {
    margin-top: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    overflow: hidden !important;
  }
  .event-items {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .event-item {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .event-dot {
    width: 4px !important;
    height: 4px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .event-text {
    display: block !important;
    font-size: 7px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  .view-more {
    display: block !important;
    font-size: 8px !important;
    margin-top: 2px !important;
  }

  /* Calendar popup — compact on small screens */
  .calendar-popup {
    width: min(280px, calc(100vw - 32px)) !important;
    max-width: 280px !important;
    padding: 20px 14px 16px !important;
  }

  /* ---- Live Match Cards responsiveness ---- */
  .live-matches-container {
    padding: 24px 12px 48px !important;
  }
  .live-main-title {
    font-size: 24px !important;
  }
  .live-matches-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .live-card {
    height: 220px !important;
  }
  .live-card.doubles-card {
    grid-column: span 1 !important;
    height: 240px !important;
  }
  .live-card.centered-card {
    grid-column: span 1 !important;
    max-width: 100% !important;
  }
  .live-card-content {
    padding: 12px 14px !important;
  }
  .badge {
    font-size: 8px !important;
    padding: 3px 6px !important;
  }
  .score-league-badge {
    font-size: 8px !important;
    padding: 4px 8px !important;
  }
  .header-league-badge-wrapper {
    width: auto !important;
    max-width: 105px !important;
  }
  .team-crest {
    width: 48px !important;
    height: 48px !important;
  }
  .team-abbr {
    font-size: 13px !important;
  }
  .main-score {
    font-size: 24px !important;
  }
  .main-score.golf-score {
    font-size: 18px !important;
  }
  .vs-text {
    font-size: 12px !important;
  }
  .venue-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px !important;
  }
  .card-footer-row {
    gap: 6px !important;
  }
  .channel-icon {
    width: 14px !important;
    height: 14px !important;
  }

  /* Player cards (1v1, 2v2) on mobile */
  .schedule-container .player-avatar-container {
    width: 50px !important;
    height: 50px !important;
  }
  .schedule-container .player-name {
    font-size: 12px !important;
  }
  .schedule-container .individual-player {
    width: 44px !important;
  }
  .schedule-container .individual-avatar-wrapper {
    width: 36px !important;
    height: 36px !important;
  }

  /* Filter pills row — swipe-scroll on mobile, no scrollbar, no buttons */
  .filter-pills-row-container {
    max-width: 100%;
    overflow: visible; /* don't clip inner scrollable row */
    position: relative;
  }
  .filter-pills-row {
    max-width: 100%;
    overflow-x: auto;  /* scroll stays here — already has scrollbar hidden in base CSS */
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
  /* Scroll arrows — hide on mobile */
  .scroll-arrow {
    display: none !important;
  }
}

@media (max-width: 500px) {
  /* Calendar card height responsive */
  .calendar-card {
    min-height: calc(120px + 0.4vw) !important;
    padding: 6px 3px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  /* Show View More link */
  .view-more {
    display: block !important;
    font-size: 9px;
    margin-top: 4px;
  }
  /* Hide vertical sidebar, show horizontal wrapper */
  .sports-sidebar { display: none !important; }
  .sports-sidebar-horizontal {
    display: flex !important;
    width: 100%;
    overflow: hidden;
  }
  .sports-horizontal-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
  }
  .sports-horizontal-row::-webkit-scrollbar {
    display: none;             /* Chrome/Safari/Opera */
  }
}

/* ==========================================
   DARK MODE — SCHEDULE PAGE FIXES
   ========================================== */

/* --- Schedule header buttons (week label, nav, today) --- */
html[data-theme="dark"] .schedule-week-label {
  background: var(--surface-strong);
  border-color: #475569;
  box-shadow: 3px 3px 0px #475569;
  color: var(--text);
}

html[data-theme="dark"] .schedule-nav-btn:hover {
  background-color: #1a2640;
}

html[data-theme="dark"] .schedule-today-btn:hover {
  background-color: #1a2640;
}

html[data-theme="dark"] .btn-league-back:hover {
  background-color: #1a2640;
}

/* --- Loading skeleton shimmer (dark shimmer) --- */
html[data-theme="dark"] .timeline-skeleton-time,
html[data-theme="dark"] .timeline-skeleton-bar {
  background: linear-gradient(90deg, #1e293b 25%, #263348 50%, #1e293b 75%);
  background-size: 200% 100%;
  border-color: #334155;
}

/* --- Timeline track line & time marker dot --- */
html[data-theme="dark"] .timeline-track-line {
  background: #334155;
}

html[data-theme="dark"] .timeline-time-marker::after {
  background: #475569;
  border-color: var(--background);
}

/* --- Sport chip text color (was missing from earlier fix) --- */
html[data-theme="dark"] .timeline-empty-sport-chip {
  color: #94a3b8;
}

/* --- NOW indicator badge & dot --- */
html[data-theme="dark"] .now-dot {
  border-color: var(--background);
}

html[data-theme="dark"] .now-badge {
  border-color: #475569;
  box-shadow: 2px 2px 0px #475569;
}

/* --- League card icon container --- */
html[data-theme="dark"] .league-card-icon {
  background: #1e293b;
  border-color: #334155;
}

/* --- League card arrow --- */
html[data-theme="dark"] .league-card-arrow {
  color: #475569;
}

html[data-theme="dark"] .league-card:hover .league-card-arrow {
  color: var(--text);
}

/* --- Selected league title --- */
html[data-theme="dark"] .selected-league-title {
  color: var(--text);
}

html[data-theme="dark"] .league-time-pointer {
  background-color: #60a5fa;
  color: #08111f;
}

html[data-theme="dark"] .league-time-pointer::before {
  border-right-color: #60a5fa;
}

/* --- League matches loading text & spinner --- */
html[data-theme="dark"] .league-matches-loading {
  color: var(--text-muted);
}

html[data-theme="dark"] .loading-spinner {
  border-color: #334155;
  border-top-color: #60a5fa;
}

/* --- Sidebar tooltip label (desktop hover popup) --- */
html[data-theme="dark"] .sidebar-label {
  background: var(--surface-strong);
  color: var(--text);
  border-color: #475569;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .sidebar-label::before {
  border-color: transparent var(--surface-strong) transparent transparent;
}

html[data-theme="dark"] .sidebar-label::after {
  border-color: transparent #475569 transparent transparent;
}

@media (max-width: 400px) {
  .hero-slideshow {
    height: 180px;
    background-size: contain;
  }
}

/* Horizontal Week Strip with Navigation Arrows */
.week-strip-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.week-strip-nav-btn {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  color: #000;
  font-family: var(--font-sans);
  flex-shrink: 0;
  user-select: none;
}

.week-strip-nav-btn:hover {
  background-color: #f8fafc;
}

.week-strip-nav-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

/* Dark theme overrides */
html[data-theme="dark"] .week-strip-nav-btn {
  background: var(--surface-card);
  color: var(--text);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px var(--border-color);
}

html[data-theme="dark"] .week-strip-nav-btn:hover {
  background-color: var(--surface-soft);
}

html[data-theme="dark"] .week-strip-nav-btn:active {
  box-shadow: 1px 1px 0px var(--border-color);
}

/* ==========================================
   SCHEDULE PAGE TIDY-UP
   ========================================== */

.schedule-container .timeline-match-bar.status-completed,
.schedule-container .timeline-match-bar.status-completed:hover,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.schedule-container .timeline-match-bar.status-completed .match-bar-league,
.schedule-container .timeline-match-bar.status-completed .match-bar-teams,
.schedule-container .timeline-match-bar.status-completed .match-bar-time,
.schedule-container .timeline-match-bar.status-completed .match-bar-score,
.schedule-container .timeline-match-bar.status-completed .match-bar-sport-icon,
.schedule-container .timeline-match-bar.status-completed .match-bar-countdown,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-league,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-teams,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-time,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-score,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-sport-icon,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-countdown {
  color: #000000 !important;
}

.schedule-container .timeline-match-bar.status-completed .match-bar-score,
.schedule-container .match-bar-countdown.countdown-completed,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-completed .match-bar-score,
html[data-theme="dark"] .schedule-container .match-bar-countdown.countdown-completed {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
}

.schedule-container .timeline-match-bar.status-canceled,
.schedule-container .timeline-match-bar.status-canceled:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}

.schedule-container .timeline-match-bar.status-canceled .match-bar-countdown {
  color: #c2410c !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled:hover {
  background: #3b2418 !important;
  border-color: #fb923c !important;
  color: #ffedd5 !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-teams,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-doubles-team span {
  color: #fff7ed !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-league,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-teams .vs-text,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-doubles-vs,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-meta {
  color: #fed7aa !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.status-canceled .match-bar-countdown {
  background: #7c2d12 !important;
  border-color: #fb923c !important;
  color: #ffedd5 !important;
}

.schedule-container .schedule-week-label,
.schedule-container .schedule-nav-btn,
.schedule-container .schedule-today-btn,
.schedule-container .btn-go-back,
.schedule-container .week-strip,
.schedule-container .timeline-match-bar,
.schedule-container .timeline-container,
.schedule-container .timeline-loading,
.schedule-container .timeline-skeleton-time,
.schedule-container .timeline-skeleton-bar,
.schedule-container .schedule-option-toggle,
.schedule-container .league-search-wrapper .search-input-container,
.schedule-container .league-card,
.schedule-container .league-card-icon,
.schedule-container .btn-league-back,
.schedule-container .league-matches-results .no-matches-placeholder,
.schedule-container .league-date-header,
.schedule-container .week-strip-nav-btn,
.schedule-container .now-badge,
.schedule-container .sports-sidebar,
.schedule-container .leagues-sidebar,
.schedule-container .sidebar-item,
.schedule-container .sidebar-icon,
.schedule-container .filter-pill,
.schedule-container .sidebar-label,
.schedule-container .match-bar-score,
.schedule-container .match-bar-countdown,
.schedule-container .match-bar-sport-icon {
  box-shadow: none !important;
}

.schedule-container .timeline-match-bar:hover,
.schedule-container .timeline-match-bar:active,
.schedule-container .timeline-match-bar.status-live,
.schedule-container .timeline-match-bar.status-live:hover,
.schedule-container .league-card:hover,
.schedule-container .league-card:active,
.schedule-container .schedule-nav-btn:active,
.schedule-container .schedule-today-btn:active,
.schedule-container .btn-league-back:active,
.schedule-container .week-strip-nav-btn:active,
html[data-theme="dark"] .schedule-container .timeline-match-bar:hover,
html[data-theme="dark"] .schedule-container .timeline-match-bar:active,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-live,
html[data-theme="dark"] .schedule-container .timeline-match-bar.status-live:hover,
html[data-theme="dark"] .schedule-container .league-card:hover,
html[data-theme="dark"] .schedule-container .league-card:active,
html[data-theme="dark"] .schedule-container .schedule-nav-btn:active,
html[data-theme="dark"] .schedule-container .schedule-today-btn:active,
html[data-theme="dark"] .schedule-container .btn-league-back:active,
html[data-theme="dark"] .schedule-container .week-strip-nav-btn:active {
  box-shadow: none !important;
}

.schedule-container .live-red-dot,
.schedule-container .now-dot {
  box-shadow: none !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.match-type-2v2:not(.status-completed) .match-bar-doubles-team span {
  color: var(--text) !important;
}

html[data-theme="dark"] .schedule-container .timeline-match-bar.match-type-2v2:not(.status-completed) .match-bar-doubles-vs {
  color: #cbd5e1;
  background: #334155;
}

/* Expand match bars when viewing tournament leagues to utilize the page space and fix empty gap on the right */
.league-matches-results .timeline-match-bar {
  max-width: 850px !important;
}



/* Shared standings action used by schedule league rows. */
.view-standings-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transition: background-color 0.1s ease;
  text-decoration: none !important;
}

.view-standings-link:hover {
  background-color: #f1f5f9;
}

.view-standings-link:active {
  background-color: #e2e8f0;
}

/* styles/about.css */
/* About page */
.about-page {
  background: var(--background);
  color: var(--text);
  min-height: calc(100vh - 74px);
  font-family: var(--font-sans);
}

.about-hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 92px;
  align-items: center;
}

.about-hero-media {
  position: relative;
  width: min(520px, calc(100% - 64px));
  margin: 0 auto;
}

.about-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border: 2px solid var(--border);
}

.about-image-frame::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 64%;
  height: 34%;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  pointer-events: none;
}

.about-image-frame .hero-slideshow {
  position: absolute;
  left: 28px;
  top: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-stadium-image {
  position: absolute;
  left: 28px;
  top: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.about-download-card {
  position: absolute;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 3;
  padding: 18px 22px;
  width: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.about-download-card {
  top: 110px;
  right: -32px;
}

.about-download-card span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-soft);
}

.about-download-card strong {
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 850;
}

.about-dot-pattern {
  position: absolute;
  top: 38px;
  right: 18px;
  width: 118px;
  height: 72px;
  background-image: radial-gradient(circle, var(--accent) 2px, transparent 2.5px);
  background-size: 18px 18px;
  opacity: 0.35;
}

.about-hero-copy {
  max-width: 520px;
}

.about-hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-tagline {
  margin-bottom: 34px !important;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.about-hero-copy p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.about-contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 48px 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 110px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.about-contact-form-wrap h2 {
  margin: 0 0 32px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.about-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-contact-form input,
.about-contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-height: 48px;
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-contact-form input:focus,
.about-contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.about-contact-form textarea {
  min-height: 124px;
  padding-top: 14px;
  resize: vertical;
}

.about-contact-form input::placeholder,
.about-contact-form textarea::placeholder {
  color: var(--text-muted);
}

.about-contact-form button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  height: 50px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(15, 140, 255, 0.2);
}

.about-contact-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 140, 255, 0.3);
}

.about-map-wrap {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  aspect-ratio: 1 / 1.12;
  background: #e5e7eb;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-map-wrap::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230f8cff"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22l-6.15-1.92l-6.16 1.92L5.91 15.54l3.09-6.26L12 2z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.about-map-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.15);
}

.about-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 24px 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .footer-badges {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .about-hero-section {
    grid-template-columns: 1fr;
    gap: 92px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .about-contact-section {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .about-hero-media {
    min-height: auto;
  }

  .about-hero-copy {
    max-width: none;
  }

  .about-contact-section {
    padding-top: 72px;
    padding-bottom: 100px;
  }

  .about-map-wrap {
    max-width: 520px;
    justify-self: start;
    aspect-ratio: 1 / 0.86;
  }
}

@media (max-width: 600px) {
  .about-hero-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .about-hero-media {
    min-height: auto;
  }

  .about-image-frame {
    left: 0;
    top: 28px;
    width: 100%;
  }

  .about-image-frame .hero-slideshow {
    left: 18px;
    top: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
  }

  .about-dot-pattern {
    display: none;
  }

  .about-download-card {
    width: 130px;
    padding: 10px 12px;
    gap: 4px;
    border-radius: 12px;
  }

  .about-download-card {
    top: 72px;
    right: -10px;
  }

  .about-download-card span {
    font-size: 10px;
  }

  .about-download-card strong {
    font-size: 18px;
  }

  .about-hero-copy h1 {
    font-size: 42px;
    letter-spacing: 0.08em;
  }

  .about-hero-copy p {
    font-size: 15px;
  }

  .about-contact-section {
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .about-contact-form-wrap h2 {
    margin-bottom: 32px;
  }
}

@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .hero-slideshow {
    height: 400px;
  }

  .hero-copy {
    padding: 32px 24px;
    min-height: auto;
  }

  .hero-eyebrow {
    font-size: 32px;
    line-height: 40px;
  }

  /* Responsive live match card elements for medium screens */
  .score-league-badge {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 0;
  }

  .team-crest {
    width: 54px;
    height: 54px;
  }

  .team-crest .initials {
    font-size: 16px;
  }

  .team-abbr {
    font-size: 15px;
  }

  .main-score {
    font-size: 30px;
  }

  .player-avatar-container {
    width: 62px;
    height: 62px;
  }

  .player-name {
    font-size: 12px;
  }

  .sub-score-overs {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 20px;
  }

  .home-hero {
    padding: 0;
  }

  .hero-slideshow {
    height: 320px;
  }

  .hero-copy {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
  }

  .hero-copy>div {
    align-items: center;
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 28px;
    line-height: 36px;
  }

  .hero-text {
    width: 100%;
    max-width: 480px;
  }

  .hero-arrows {
    display: none;
  }

  .calendar-grid {
    gap: 1px;
  }

  .calendar-card {
    min-height: 200px;
    padding: 8px 4px;
    gap: 4px;
    align-items: flex-start;
    border-radius: 0;
    min-width: 0;
    overflow: hidden;
  }

  .calendar-number {
    font-size: 14px;
  }

  .weekday-row {
    font-size: 9px;
  }

  .weekday-row span {
    padding: 8px 0;
    border-right: 1px solid #e5e7eb;
  }

  .event-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 0;
    flex: 1;
    min-width: 0;
  }

  .event-item {
    justify-content: flex-start;
    font-size: 8px;
    line-height: 1.1;
    gap: 3px;
  }

  .event-items {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
  }

  .view-more {
    display: block;
    font-size: 8px;
    margin-top: 2px;
  }

}

@media (max-width: 560px) {
  .home-hero-inner {
    padding: 0;
  }

  .hero-slideshow {
    height: 240px;
  }

  .hero-eyebrow {
    font-size: 24px;
    line-height: 32px;
  }

  .calendar-card {
    min-height: 220px;
  }

  .panel-head,
  .calendar-header,
  .sidebar-card,
  .sidebar-live-item {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-icon,
  .today-label {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .calendar-layout-wrapper,
  .schedule-layout-wrapper,
  .league-schedule-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-left: 0;
  }

  .new-calendar-header {
    padding-left: 0;
  }

  .sports-sidebar {
    display: none !important;
  }

  .leagues-sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px;
    gap: 8px;
    border-radius: 12px;
    scrollbar-width: none;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .leagues-sidebar::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  .leagues-sidebar:hover {
    width: 100%;
    box-shadow: none;
  }

  .sidebar-item,
  .league-item {
    width: auto;
    height: 38px;
    padding: 0 12px;
    gap: 8px;
    margin: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    flex: 0 0 auto;
    min-height: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sidebar-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sidebar-label {
    position: static;
    display: inline-block;
    opacity: 1 !important;
    transform: none !important;
    font-size: 12px;
    pointer-events: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .sidebar-label::before,
  .sidebar-label::after {
    display: none !important;
  }
}

/* ==========================================
   INFINITE COMMENTS MARQUEE SECTION
   ========================================== */

.about-comments-section {
  width: 100%;
  padding: 80px 0;
  border-top: 1.5px solid var(--border);
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}

.comments-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 24px;
}

.comments-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.03em;
}

.comments-marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  /* Gradient masks to fade comments on left and right edges */
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.comments-marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  animation: marquee 70s linear infinite;
  padding: 10px 0;
  width: max-content;
}


.comment-card {
  flex-shrink: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 28px;
  border-radius: 20px;
  width: 340px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.comment-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.comment-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
}

.comment-star {
  font-size: 14px;
  color: #f59e0b;
  line-height: 1;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate by exactly 50% of track width + half of total gap */
    transform: translateX(calc(-50% - 12px));
  }
}

@media (max-width: 480px) {
  .comment-card {
    width: 280px;
    padding: 20px;
  }
}

/* styles/terms.css */
/* ==========================================
   TERMS & CONDITIONS PAGE STYLES
   ========================================== */

.terms-container {
  margin-top: 30px;
  margin-bottom: 50px;
  max-width: 800px;
  width: 100%;
}

.terms-panel {
  padding: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .terms-panel {
  border-color: var(--border);
  box-shadow: 4px 4px 0px var(--border);
}

.terms-panel-head {
  border-bottom: 2px solid #000000;
  padding-bottom: 15px;
  margin-bottom: 10px;
}

html[data-theme="dark"] .terms-panel-head {
  border-bottom-color: var(--border);
}

.terms-pretitle {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.5px;
  font-size: 12px;
  margin: 0 0 5px 0;
}

.terms-main-title {
  font-size: 28px;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.terms-content {
  font-family: inherit;
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terms-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 35px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2.5px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.terms-heading:first-of-type {
  margin-top: 10px;
}

.terms-subheading {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  margin: 24px 0 10px 0;
}

.terms-paragraph {
  margin: 0;
  text-align: left;
}

.terms-list {
  margin: 5px 0 15px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-list-item {
  line-height: 1.6;
}

/* Responsiveness for small screens */
@media (max-width: 768px) {
  .terms-container {
    margin-top: 15px;
    margin-bottom: 30px;
    padding: 16px;
  }
  .terms-panel {
    padding: 20px;
    gap: 15px;
    border-width: 2px;
  }
  .terms-main-title {
    font-size: 22px;
  }
  .terms-heading {
    font-size: 18px;
    margin-top: 25px;
  }
  .terms-subheading {
    font-size: 15px;
    margin-top: 18px;
  }
  .terms-list {
    padding-left: 18px;
    gap: 8px;
  }
}

/* Custom details added to match cards */
.header-league-badge-wrapper {
  flex-direction: column !important;
}

.card-group-match-details {
  font-size: 8px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  white-space: nowrap;
}

.match-half-text {
  font-size: 10px;
  font-weight: 800;
  color: #991b1b; /* Deep high-contrast red for readability */
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.minutes-badge {
  background: rgba(0, 0, 0, 0.65) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

/* styles/standings.css */
/* Standings Table Component Styles */
.standings-page-shell {
  margin-top: 24px;
  margin-bottom: 56px;
  max-width: 1280px;
}

.standings-header-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.standings-back-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 8px;
  padding: 6px 12px;
  transition: transform 0.15s ease;
}

.standings-league-details {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: none;
}

.standings-league-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.standings-league-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.standings-league-copy h1 {
  font-size: 20px;
  font-weight: 850;
  margin: 0;
  color: #0f172a;
  text-transform: uppercase;
}

.standings-league-meta {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.standings-meta-separator {
  color: #cbd5e1;
}

.standings-ad-banner-section {
  padding-top: 36px;
  padding-bottom: 28px;
}

.standings-ad-banner-section-bottom {
  padding-top: 48px;
  padding-bottom: 8px;
}

.standings-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 78px;
  align-items: stretch;
}

.standings-main-column {
  min-width: 0;
}

.standings-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: 208px;
  padding-bottom: 24px;
  align-items: center;
  align-self: stretch;
}

.standings-container {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.standings-group-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.standings-group-header {
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0f172a;
  padding-bottom: 4px;
  border-bottom: 2px solid #e2e8f0;
}

.standings-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  max-width: 100%;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  table-layout: fixed;
}

.standings-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.standings-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-row:hover {
  background: #f8fafc;
}

/* Rank column */
.col-rank {
  width: 48px;
  text-align: center !important;
  font-weight: 800;
  position: relative;
}

/* Promo and relegation rank indicators */
.col-rank.promo-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #2563eb; /* Blue for promo */
}

.col-rank.relegation-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ef4444; /* Red for relegation */
}

/* Team Column */
.col-team {
  font-weight: 750;
  color: #0f172a;
  width: auto;
}

.team-info-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.team-name-text {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: block;
}

/* Statistics columns */
.col-stat {
  width: 40px;
  text-align: center !important;
}

.standings-table th.col-stat {
  text-align: center !important;
}

.col-pts {
  width: 50px;
  font-weight: 850;
  color: #0f172a;
  text-align: center !important;
}

.standings-table th.col-pts {
  text-align: center !important;
}

/* Form indicators */
.col-form {
  width: 126px;
}

.form-indicators {
  display: flex;
  gap: 4px;
  align-items: center;
}

.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
}

.form-win {
  background: #10b981;
}

.form-loss {
  background: #ef4444;
}

.form-draw {
  background: #94a3b8;
}

/* Goal diff helper classes */
.text-green {
  color: #10b981 !important;
  font-weight: 700;
}

.text-red {
  color: #ef4444 !important;
  font-weight: 700;
}

.empty-standings-state {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

/* Dark mode support */
html[data-theme="dark"] .standings-group-header {
  color: #f1f5f9;
  border-bottom-color: #334155;
}

html[data-theme="dark"] .standings-league-details {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .standings-league-copy h1 {
  color: #ffffff;
}

html[data-theme="dark"] .standings-league-meta,
html[data-theme="dark"] .standings-meta-separator {
  color: #94a3b8;
}

html[data-theme="dark"] .standings-back-btn {
  background: #1e293b;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 2px 2px 0px #ffffff;
}

html[data-theme="dark"] .standings-table-wrapper {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .standings-table th {
  background: #0f172a;
  color: #94a3b8;
  border-bottom-color: #334155;
}

html[data-theme="dark"] .standings-table td {
  color: #cbd5e1;
  border-bottom-color: #334155;
}

html[data-theme="dark"] .standings-row:hover {
  background: #0f172a;
}

html[data-theme="dark"] .col-team {
  color: #ffffff;
}

html[data-theme="dark"] .col-pts {
  color: #ffffff;
}

@media (max-width: 1200px) {
  .standings-page-shell [id="gpt-passback-scoretab.in.Banner0.1783512063"],
  .standings-page-shell #div-gpt-ad-subwayrev-bottom-728x90 {
    display: block !important;
  }

  .standings-page-shell .home-ad-banner-shell {
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .standings-content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .standings-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .standings-page-shell {
    margin-top: 18px;
    margin-bottom: 44px;
  }

  .standings-league-details {
    padding: 16px;
  }

  .standings-league-copy h1 {
    font-size: 18px;
  }

  .standings-ad-banner-section {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .standings-page-shell .home-ad-banner-shell {
    justify-content: flex-start;
  }

  .standings-group-header {
    font-size: 14px;
  }

  .standings-table th,
  .standings-table td {
    padding: 12px 10px;
  }

  .team-info-cell {
    gap: 8px;
  }

  .team-name-text {
    font-size: 13px;
  }

  .col-form {
    width: 112px;
  }
}

/* styles.css */
/* Remove all hard shadow effects from every page */
* {
  box-shadow: none !important;
}
