* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-page: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-alt: #f8f9fa;
  --bg-top-bar: #1a1a2e;
  --bg-nav: #16213e;
  --primary: #00875a;
  --primary-light: #e8f5e9;
  --accent: #ffd700;
  --accent-bg: rgba(255, 215, 0, 0.12);
  --text-dark: #1a1a1a;
  --text-body: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-white: #ffffff;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --odds-bg: #f5f5f5;
  --odds-hover: #e8e8e8;
  --live-red: #e53935;
  --win-green: #43a047;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --sidebar-width: 260px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #006644; }

img { max-width: 100%; }

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--bg-top-bar);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
}

.top-bar-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.top-bar-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.top-bar-links a:hover { color: var(--text-white); }

.top-bar-right {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

/* ========== NAV BAR ========== */
.nav-bar {
  background: var(--bg-nav);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
  white-space: nowrap;
  margin-right: 12px;
  flex-shrink: 0;
}

.nav-logo-icon { font-size: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text-white);
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-icon { font-size: 14px; }

.nav-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ========== MAIN LAYOUT ========== */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  align-items: start;
}

/* ========== SIDEBAR ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-nav);
  color: var(--text-white);
}

.module-header h3 {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-header .view-all {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 0.2s;
}

.module-header .view-all:hover { color: var(--accent); }

.module-body { padding: 0; }

/* Team Track */
.team-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  cursor: pointer;
}

.team-item:last-child { border-bottom: none; }
.team-item:hover { background: var(--primary-light); }

.team-item .flag-img { width: 24px; height: auto; border-radius: 2px; flex-shrink: 0; }

.team-item-info { flex: 1; min-width: 0; }

.team-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-item-record {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.team-item-record .win { color: var(--win-green); font-weight: 600; }
.team-item-record .draw { color: var(--text-secondary); }
.team-item-record .loss { color: var(--live-red); }

/* Star Track */
.star-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.star-item:last-child { border-bottom: none; }
.star-item:hover { background: var(--primary-light); }

.star-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #005c3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.star-info { flex: 1; min-width: 0; }

.star-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.star-team {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.star-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.stat-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: #b8860b;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-badge.goals { background: var(--primary-light); color: var(--primary); border-color: rgba(0, 135, 90, 0.2); }

/* Live Match Sidebar */
.live-match-card {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  cursor: pointer;
}

.live-match-card:last-child { border-bottom: none; }
.live-match-card:hover { background: var(--primary-light); }

.live-match-card .match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.live-badge-sm {
  display: inline-block;
  background: var(--live-red);
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.live-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.live-team-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.live-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.live-score.vs {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0;
}

/* ========== CONTENT AREA ========== */
.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Featured News */
.featured-news {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.featured-news-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 280px;
}

.featured-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-nav);
}

.featured-main-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.featured-main-img.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.featured-main-overlay.fade-in {
  animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.featured-main:hover .featured-main-img { transform: scale(1.03); }

.featured-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.featured-main-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

.featured-main-cat {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.featured-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-light);
}

.featured-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-list-item:last-child { border-bottom: none; }
.featured-list-item:hover { background: var(--primary-light); }

.featured-list-item.active {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.featured-list-item .item-cat {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.featured-list-item .item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.featured-nav-btn:hover { background: var(--primary); }
.featured-nav-prev { left: 10px; }
.featured-nav-next { right: 290px; }

/* Dual Column (legacy) */
.dual-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Quad Grid - 四格布局：左列宽+右列窄，上下紧密衔接 */
.quad-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
}

.quad-left-top  { grid-column: 1; grid-row: 1; }
.quad-right-top { grid-column: 2; grid-row: 1; }
.quad-left-bottom  { grid-column: 1; grid-row: 2; }
.quad-right-bottom { grid-column: 2; grid-row: 2; }

.section-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--primary);
}

.section-card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-card-header .badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.section-card-header .badge.live { background: var(--live-red); }

.section-card-body { padding: 0; }

/* Match Center Cards */
.match-center-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.match-center-card {
  background: var(--bg-card);
  padding: 14px;
  transition: background 0.15s;
  cursor: pointer;
}

.match-center-card:hover { background: var(--primary-light); }

.match-center-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.match-center-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.mc-team-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.mc-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.mc-score.pending {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0;
}

/* Calendar Widget */
.calendar-widget { padding: 0; }

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-light);
}

.calendar-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.calendar-month-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 10px 4px;
  gap: 2px;
}

.calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.calendar-weekday.active {
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 10px 10px;
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.calendar-day:hover { background: var(--primary-light); }

.calendar-day.other-month { color: var(--text-muted); opacity: 0.4; }

.calendar-day.today {
  background: var(--accent-bg);
  color: #b8860b;
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.calendar-day.has-match::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.calendar-day.selected.has-match::after { background: white; }

.calendar-matches {
  border-top: 1px solid var(--border-light);
  max-height: 200px;
  overflow-y: auto;
}

.calendar-match-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  transition: background 0.15s;
  cursor: pointer;
}

.calendar-match-item:last-child { border-bottom: none; }
.calendar-match-item:hover { background: var(--primary-light); }

.calendar-match-time {
  font-size: 11px;
  color: var(--text-muted);
  width: 40px;
  flex-shrink: 0;
}

.calendar-match-teams {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.calendar-match-teams span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Latest News */
.news-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}

.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: var(--primary-light); }

.news-list-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--border);
  width: 24px;
  flex-shrink: 0;
  line-height: 1.2;
}

.news-list-item:nth-child(-n+3) .news-list-num { color: var(--live-red); }

.news-list-content { flex: 1; min-width: 0; }

.news-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.news-list-meta .cat {
  color: var(--primary);
  font-weight: 600;
  margin-right: 8px;
}

/* ========== ODDS SECTION ========== */
.odds-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.odds-header {
  background: var(--bg-top-bar);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.odds-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

.group-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card-alt);
  overflow-x: auto;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.group-tab {
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.group-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.group-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
}

.odds-table th {
  background: var(--bg-card-alt);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.odds-table td {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.odds-table tr:hover td { background: var(--primary-light); }

.odds-val {
  display: inline-block;
  background: var(--odds-bg);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 44px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 12px;
}

.odds-val:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.group-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.status-live { color: var(--live-red); font-weight: 700; }
.status-finished { color: var(--text-muted); }
.status-upcoming { color: var(--primary); font-weight: 600; }

.analysis-link {
  display: inline-block;
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.analysis-link:hover {
  background: var(--primary);
  color: white;
}

.flag-img { border-radius: 2px; vertical-align: middle; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-top-bar);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

/* ========== UTILITIES ========== */
.loading {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.no-data {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Anchor offset for sticky nav */
#live, #odds { scroll-margin-top: 70px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .featured-news-inner { grid-template-columns: 1fr 220px; }
  .featured-nav-next { right: 230px; }
  .match-center-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    box-shadow: var(--shadow-md);
    z-index: 200;
    padding: 4px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 20px;
    border-bottom: none;
    border-left: 3px solid transparent;
    width: 100%;
  }

  .nav-links a.active {
    border-bottom: none;
    border-left-color: var(--primary);
  }

  .nav-clock { display: none; }

  .main-layout {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .sidebar { display: none; }

  .featured-news-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .featured-main-img { min-height: 200px; }

  .featured-list {
    border-left: none;
    border-top: 1px solid var(--border-light);
    flex-direction: row;
    overflow-x: auto;
  }

  .featured-list-item {
    min-width: 200px;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
  }

  .featured-nav-btn { display: none; }

  .dual-col { grid-template-columns: 1fr; }

  .quad-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .quad-left-top,
  .quad-right-top,
  .quad-left-bottom,
  .quad-right-bottom {
    grid-column: 1;
    grid-row: auto;
  }

  .odds-table { display: block; overflow-x: auto; }

  .top-bar { padding: 0 12px; }
  .top-bar-links { gap: 10px; font-size: 10px; }

  .nav-bar { padding: 0 12px; }
  .nav-logo { font-size: 14px; }
}
