/* Sports Hub CSS - Singles Tennis & Cruzeiro EC */
:root {
  --bg-color: #0b0f19;
  --card-bg: #131a2e;
  --card-hover: #19223c;
  --border-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #6699ff;
  --accent-blue-dark: #4d7ce5;
  --primary: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  --cruzeiro-blue: #003399;
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Header & Sub-Bar */
.topbarCls {
  height: 78px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background-color: white;
}

.logo {
  height: 78px;
  width: auto;
  display: block;
}

.menu-box {
  background: var(--accent-blue);
  height: 39px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.menu-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}

.menu-list a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.menu-list a:hover {
  text-decoration: underline;
}

/* Page Container */
.sports-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-title h1 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-title p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Live Status & Controls */
.live-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--accent-red);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.btn-action {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: var(--card-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-action.active {
  background: rgba(102, 153, 255, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Navigation Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.tab-text-desktop {
  display: inline;
}

.tab-text-mobile {
  display: none;
}

/* Filter Bar & Wrapper */
.filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  align-self: center;
  margin-right: 0.25rem;
}

.chip-sub {
  font-size: 0.75rem;
  opacity: 0.75;
  font-weight: normal;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.filter-chip:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.filter-chip.active {
  background: rgba(102, 153, 255, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 700;
}

/* Tennis Match Cards */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.match-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.match-card.is-live {
  border-color: rgba(239, 68, 68, 0.4);
}

.match-card.is-suspended {
  border-color: rgba(245, 158, 11, 0.5);
}

.match-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.match-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.match-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.match-tourney-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-tour-badge {
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.tour-atp { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tour-wta { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-live { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.status-suspended { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-final { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.status-scheduled { background: rgba(102, 153, 255, 0.15); color: #93c5fd; }

/* Weather / Suspension Alert Banner */
.suspension-banner {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.6rem 1.25rem;
  color: #fbbf24;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* Competitors & Scoreboard */
.scoreboard-body {
  padding: 1.25rem;
}

.competitor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.competitor-row:last-child {
  border-bottom: none;
}

.competitor-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.flag-img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.player-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.player-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-rank {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
  flex-shrink: 0;
}

.player-name.winner {
  color: #38bdf8;
}

.serving-ball {
  color: #a3e635;
  font-size: 0.85rem;
  animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.scores-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.set-score-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  position: relative;
}

.set-score-box.set-winner {
  background: rgba(102, 153, 255, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(102, 153, 255, 0.3);
}

.tiebreak-sub {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.6rem;
  color: var(--accent-amber);
}

.game-point-score {
  min-width: 36px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #a3e635;
  text-align: center;
}

/* Tracked Tags */
.tracked-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag-badge {
  background: rgba(102, 153, 255, 0.12);
  border: 1px solid rgba(102, 153, 255, 0.3);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Play-by-Play Accordion */
.pbp-toggle-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.pbp-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.pbp-content {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pbp-event {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  align-items: flex-start;
}

.pbp-time {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 50px;
}

.pbp-desc {
  flex: 1;
}

.pbp-event.type-break {
  color: #f87171;
  font-weight: 600;
}

.pbp-event.type-weather {
  color: #fbbf24;
  font-weight: 600;
}

.match-broadcast-footer {
  padding: 0.4rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Cruzeiro Section */
.cruzeiro-hero-card {
  background: linear-gradient(135deg, #001f5c 0%, var(--card-bg) 60%);
  border: 1px solid rgba(102, 153, 255, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cruzeiro-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cruzeiro-crest {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.cruzeiro-score-board {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1.5rem 0;
}

.team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 35%;
  text-align: center;
}

.team-box h3 {
  margin: 0;
  font-size: 1.25rem;
}

.score-display {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.1em;
  font-family: var(--font-main);
}

.match-clock-badge {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.cruzeiro-venue-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cruzeiro-events-container {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cruzeiro-events-header {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--accent-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cruzeiro-events-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

.cruzeiro-event-row {
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cruzeiro-event-row:last-child {
  border-bottom: none;
}

.cruzeiro-event-clock {
  color: #93c5fd;
  min-width: 42px;
}

.cruzeiro-event-text {
  flex: 1;
}

/* Formation & Pitch Lineup */
.lineup-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lineup-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
}

.lineup-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.player-table th {
  text-align: left;
  color: var(--text-muted);
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.player-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pos-pill {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

.pos-g { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pos-z { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.pos-l { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pos-v { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.pos-m { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.pos-a { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.player-lineup-name {
  margin-left: 0.4rem;
  font-weight: 600;
}

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

.card-icon {
  font-size: 0.75rem;
}

/* Standings Table */
.standings-card-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.standings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.standings-qualification-legend {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.standings-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.standings-table td {
  padding: 0.6rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.standings-table tr.cruzeiro-row {
  background: rgba(102, 153, 255, 0.15);
  font-weight: 700;
  color: white;
}

.standings-table tr.cruzeiro-row td {
  border-top: 1px solid rgba(102, 153, 255, 0.3);
  border-bottom: 1px solid rgba(102, 153, 255, 0.3);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left !important;
}

.team-name-label {
  white-space: nowrap;
}

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

/* Schedule & Recent Results */
.cruzeiro-schedule-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.schedule-col-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.empty-schedule-box {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.schedule-match-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.schedule-match-item:hover {
  border-color: var(--accent-blue);
}

.schedule-match-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.schedule-opponent-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.schedule-match-details {
  min-width: 0;
}

.schedule-match-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-match-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-match-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.schedule-score-badge.completed {
  font-weight: 800;
  font-size: 1.1rem;
  color: #93c5fd;
}

.schedule-score-badge.scheduled {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.schedule-venue {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Broadcasts Grid */
.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.broadcast-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.broadcast-card:hover {
  border-color: var(--accent-blue);
}

.broadcast-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.broadcast-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.broadcast-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.broadcast-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.broadcast-highlights li::before {
  content: "• ";
  color: var(--accent-blue);
}

.broadcast-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(102, 153, 255, 0.12);
  border: 1px solid rgba(102, 153, 255, 0.3);
  color: var(--accent-blue);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.broadcast-link:hover {
  background: var(--accent-blue);
  color: white;
}

.error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.error-banner i {
  font-size: 1.25rem;
  color: var(--accent-red);
  flex-shrink: 0;
}

/* ========================================================= */
/* MOBILE & RESPONSIVE DESIGN (< 768px)                      */
/* Optimized for readability on mobile phones and tablets    */
/* ========================================================= */
@media (max-width: 768px) {
  /* 1. Header & Top Navigation Bar */
  .topbarCls {
    height: auto;
    min-height: 52px;
    padding: 0.4rem 0.75rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    height: 42px;
    width: auto;
  }

  .menu-box {
    height: auto;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    flex-grow: 0;
  }

  .menu-list {
    gap: 8px;
    flex-wrap: wrap;
  }

  .menu-list a {
    font-size: 0.82rem;
  }

  /* 2. Page Container & Hero Section */
  .sports-container {
    padding: 0.85rem 0.65rem 2.5rem 0.65rem;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .hero-title h1 {
    font-size: 1.3rem;
    line-height: 1.25;
    gap: 0.35rem;
  }

  .hero-title p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .live-controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
  }

  .live-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }

  .btn-action {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  #last-update-time {
    width: 100%;
    text-align: right;
    font-size: 0.72rem;
  }

  /* 3. Main Navigation Tabs */
  .tabs-nav {
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    flex-shrink: 0;
    gap: 0.35rem;
  }

  .tab-text-desktop {
    display: none;
  }

  .tab-text-mobile {
    display: inline;
  }

  /* 4. Filter Chips (Horizontal Swipeable Row) */
  .filters-wrapper {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    gap: 0.4rem;
    margin-bottom: 0;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .chip-sub {
    display: none;
  }

  .filter-label {
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* 5. Tennis Match Cards */
  .matches-grid {
    gap: 0.85rem;
  }

  .match-card {
    border-radius: 12px;
  }

  .match-header {
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .match-tour-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .suspension-banner {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .scoreboard-body {
    padding: 0.7rem 0.75rem;
  }

  .competitor-row {
    padding: 0.45rem 0;
    gap: 0.4rem;
  }

  .competitor-info {
    gap: 0.4rem;
    min-width: 0;
  }

  .flag-img {
    width: 18px;
    height: 13px;
    flex-shrink: 0;
  }

  .player-name {
    font-size: 0.9rem;
    gap: 0.3rem;
    min-width: 0;
  }

  .player-name-text {
    max-width: 135px;
  }

  .player-rank {
    font-size: 0.72rem;
  }

  .serving-ball {
    font-size: 0.75rem;
  }

  .scores-container {
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .set-score-box {
    width: 25px;
    height: 25px;
    font-size: 0.82rem;
    border-radius: 4px;
  }

  .tiebreak-sub {
    font-size: 0.52rem;
    top: 0;
    right: 1px;
  }

  .game-point-score {
    min-width: 24px;
    font-size: 0.82rem;
  }

  .tracked-tags {
    margin-top: 0.5rem;
    gap: 0.3rem;
  }

  .tag-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.35rem;
  }

  .match-broadcast-footer {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .pbp-toggle-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
  }

  .pbp-content {
    padding: 0.65rem 0.75rem;
    gap: 0.45rem;
  }

  .pbp-event {
    font-size: 0.76rem;
    gap: 0.4rem;
  }

  .pbp-time {
    min-width: 38px;
    font-size: 0.7rem;
  }

  /* 6. Cruzeiro Live Hero Card */
  .cruzeiro-hero-card {
    padding: 0.85rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
  }

  .cruzeiro-match-header {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .cruzeiro-score-board {
    margin: 0.75rem 0;
  }

  .cruzeiro-crest {
    width: 40px;
    height: 40px;
  }

  .team-box {
    width: 38%;
    gap: 0.25rem;
  }

  .team-box h3 {
    font-size: 0.92rem;
    word-break: break-word;
  }

  .score-display {
    font-size: 2.1rem;
    letter-spacing: 0.05em;
  }

  .match-clock-badge {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
  }

  .cruzeiro-venue-info {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .cruzeiro-events-container {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }

  .cruzeiro-events-header {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .cruzeiro-event-row {
    font-size: 0.78rem;
    padding: 0.3rem 0;
  }

  .cruzeiro-event-clock {
    min-width: 36px;
    font-size: 0.75rem;
  }

  /* 7. Cruzeiro Lineup Section */
  .lineup-section {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.85rem;
  }

  .lineup-card {
    padding: 0.85rem 0.65rem;
    border-radius: 12px;
  }

  .lineup-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .player-table {
    font-size: 0.78rem;
    min-width: 280px;
  }

  .player-table th, .player-table td {
    padding: 0.4rem 0.25rem;
  }

  .pos-pill {
    font-size: 0.62rem;
    padding: 0.15rem 0.3rem;
  }

  .sub-tag {
    display: block;
    font-size: 0.68rem;
    margin-top: 1px;
  }

  /* 8. Standings Table */
  .standings-card-container {
    padding: 0.85rem 0.6rem;
    border-radius: 12px;
    margin-top: 1rem;
  }

  .standings-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
  }

  .standings-card-header h4 {
    font-size: 0.95rem;
  }

  .standings-qualification-legend {
    font-size: 0.72rem;
  }

  .standings-table {
    font-size: 0.78rem;
    min-width: 360px;
  }

  .standings-table th, .standings-table td {
    padding: 0.35rem 0.2rem;
  }

  .team-cell {
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  .team-logo-small {
    width: 15px;
    height: 15px;
  }

  .col-form {
    display: none; /* Hide recent form on mobile so all core points and stats fit cleanly */
  }

  /* 9. Schedule & Fixtures Grid */
  .cruzeiro-schedule-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .schedule-col-title {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .schedule-match-item {
    padding: 0.75rem 0.65rem;
    border-radius: 10px;
    gap: 0.4rem;
  }

  .schedule-match-left {
    gap: 0.6rem;
    min-width: 0;
  }

  .schedule-opponent-logo {
    width: 26px;
    height: 26px;
  }

  .schedule-match-name {
    font-size: 0.88rem;
  }

  .schedule-match-sub {
    font-size: 0.72rem;
  }

  .schedule-score-badge.completed {
    font-size: 0.95rem;
  }

  .schedule-score-badge.scheduled {
    font-size: 0.78rem;
  }

  .schedule-venue {
    font-size: 0.7rem;
  }

  /* 10. Broadcasts Section */
  .broadcast-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .broadcast-card {
    padding: 0.85rem 0.75rem;
    border-radius: 12px;
  }

  .broadcast-title {
    font-size: 0.98rem;
  }

  .broadcast-desc {
    font-size: 0.78rem;
  }

  .broadcast-link {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }
}

/* ========================================================= */
/* ULTRA-COMPACT MOBILE SCREENS (< 390px)                    */
/* (e.g. iPhone SE, Pixel 4a, narrow viewports)              */
/* ========================================================= */
@media (max-width: 390px) {
  .player-name-text {
    max-width: 105px;
  }

  .set-score-box {
    width: 23px;
    height: 23px;
    font-size: 0.78rem;
  }

  .game-point-score {
    min-width: 20px;
    font-size: 0.78rem;
  }

  .scores-container {
    gap: 0.2rem;
  }

  .team-box h3 {
    font-size: 0.85rem;
  }

  .score-display {
    font-size: 1.8rem;
  }
}
