/* ==========================================================================
   FOX Sports & RUWT Excitement Heat Map Dashboard
   Flat, understated styling with standard RUWT Points levels
   ========================================================================== */

:root {
  --color-background-primary: #f1f5f9;
  --color-background-secondary: #0e1726;
  --color-background-card: #ffffff;
  --color-background-card-hover: #ffffff;
  --color-background-surface: #f8fafc;

  --color-border-subtle: #e2e8f0;
  --color-border-medium: #cbd5e1;
  --color-border-accent: #0055b8;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;

  --color-fox-blue: #0055b8;
  --color-fox-blue-hover: #004494;
  --color-fox-gold: #f59e0b;

  /* Authoritative RUWT Points Colors from com.virgil.obj.Points */
  --ruwt-color-guarded: #729f00;   /* 0 - 74 */
  --ruwt-color-elevated: #ffcc00;  /* 75 - 174 */
  --ruwt-color-high: #ff6600;      /* 175 - 274 */
  --ruwt-color-severe: #cc0000;    /* 275+ */
  --ruwt-color-alert: #dc2626;     /* 200+ Threshold Alert */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body {
  background-color: var(--color-background-primary);
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   Header & App Navigation (Preserved Dark Theme)
   ========================================================================== */

.app-header {
  background-color: #0e1726;
  border-bottom: 1px solid #1e293b;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-ruwt-logo {
  display: flex;
  align-items: center;
}

.brand-ruwt-logo img,
.brand-ruwt-logo svg {
  height: 32px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background-color: #26354a;
}

.brand-fox-badge {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.fox-brand-text {
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--color-fox-blue);
}

.fox-sub-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #94a3b8;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  padding-left: 6px;
}

.dashboard-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.dashboard-subtitle {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   Toolbar Controls (Header Dark Theme)
   ========================================================================== */

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background-color: #172234;
  border: 1px solid #263852;
  border-radius: 4px;
  padding: 7px 12px 7px 32px;
  font-size: 12px;
  color: #f8fafc;
  width: 200px;
  outline: none;
  transition: border-color 0.15s ease, width 0.2s ease;
}

.search-input:focus {
  border-color: #3b82f6;
  width: 240px;
}

.search-input::placeholder {
  color: #64748b;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

/* Alert Filter Pill */
.alert-filter-button {
  background-color: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alert-filter-button:hover {
  background-color: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.7);
}

.alert-filter-button.active {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.alert-count-badge {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.alert-filter-button.active .alert-count-badge {
  background-color: #ffffff;
  color: #dc2626;
}

/* Sport Filter Tabs */
.sport-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #172234;
  border: 1px solid #263852;
  padding: 3px;
  border-radius: 4px;
  overflow-x: auto;
  max-width: 580px;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.sport-filter-group::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sport-filter-button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sport-filter-button:hover {
  color: #ffffff;
}

.sport-filter-button.active {
  background-color: var(--color-fox-blue);
  color: #ffffff;
}

/* View Switcher */
.view-switcher-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #172234;
  border: 1px solid #263852;
  padding: 3px;
  border-radius: 4px;
}

.view-switcher-button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.view-switcher-button:hover {
  color: #ffffff;
}

.view-switcher-button.active {
  background-color: #263852;
  color: #ffffff;
}

/* Sort & Refresh */
.sort-select {
  background-color: #172234;
  border: 1px solid #263852;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #f8fafc;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: #3b82f6;
}

.refresh-button {
  background-color: #172234;
  border: 1px solid #263852;
  border-radius: 4px;
  padding: 6px 10px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.refresh-button:hover {
  color: #ffffff;
  border-color: #3b82f6;
}

.refresh-button.spinning svg {
  animation: spinAnimation 0.8s linear infinite;
}

@keyframes spinAnimation {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Legend & Meta Bar
   ========================================================================== */

.meta-bar {
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(30, 42, 59, 0.4);
}

.legend-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-title {
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 500;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.alert-threshold-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fca5a5;
  font-weight: 600;
}

.meta-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Standard RUWT Excitement Classes (Light Theme Contrast)
   ========================================================================== */

.pts-guarded {
  background-color: rgba(114, 159, 0, 0.12);
  border-color: rgba(114, 159, 0, 0.35);
  color: #446100;
}

.pts-elevated {
  background-color: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.pts-high {
  background-color: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.35);
  color: #c2410c;
}

.pts-severe {
  background-color: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

/* ==========================================================================
   200+ Alert Trigger Special Styling
   ========================================================================== */

.game-tile.alert-tile {
  background: linear-gradient(145deg, #fef2f2 0%, #ffffff 100%) !important;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15) !important;
}

.alert-tag-badge {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: alertPulseAnimation 2s infinite ease-in-out;
}

@keyframes alertPulseAnimation {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.03); }
}

/* ==========================================================================
   Bucketed Sections (Live, Upcoming, Final)
   ========================================================================== */

.dashboard-content-container {
  width: 100%;
}

.bucket-section {
  margin-bottom: 28px;
}

.bucket-section:last-child {
  margin-bottom: 0;
}

.bucket-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.bucket-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}

.bucket-count {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background-color: #e2e8f0;
  padding: 1px 7px;
  border-radius: 10px;
}

.bucket-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
  display: inline-block;
  animation: livePulseAnimation 1.8s infinite ease-in-out;
}

@keyframes livePulseAnimation {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(22, 163, 74, 0.9); }
}

/* ==========================================================================
   Unified Heat Map Grid Layout
   ========================================================================== */

.main-content {
  padding: 20px 24px 40px 24px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

/* Card View Variation */
.heatmap-grid.view-cards {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 18px;
}

/* ==========================================================================
   Game Tile Component (Light Theme with Grayed Out Finals)
   ========================================================================== */

.game-tile {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.16s ease,
              opacity 0.2s ease,
              filter 0.2s ease;
}

.game-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Subtly grayed out final matches */
.game-tile.tile-final {
  opacity: 0.72;
  filter: grayscale(0.25);
  background-color: #fafbfc;
}

.game-tile.tile-final:hover {
  opacity: 1;
  filter: grayscale(0);
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tile-league-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.league-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 3px;
}

.broadcast-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.broadcast-badge.fox {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

/* Matchup Row */
.matchup-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin: 6px 0;
  gap: 8px;
}

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

.team-entry.team-right {
  justify-content: flex-end;
  text-align: right;
}

.team-logo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
  text-transform: uppercase;
  user-select: none;
}

.team-logo-avatar.has-logo {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
}

.team-logo-avatar .team-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  background-color: #ffffff;
  padding: 1px;
}

.team-logo-avatar .team-logo-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  text-align: center;
}

.team-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.team-ranking {
  font-size: 8.5px;
  font-weight: 700;
  color: inherit;
  vertical-align: super;
  line-height: 1;
  margin-right: 1.5px;
  letter-spacing: -0.3px;
}

.score-clock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  flex-shrink: 0;
}

.score-numbers {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.clock-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16a34a;
}

.clock-status.pregame {
  color: #64748b;
}

.clock-status.final {
  color: #475569;
}

/* Automated Headline Snippet */
.headline-snippet {
  font-size: 12px;
  font-style: italic;
  color: #334155;
  margin: 6px 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tile Footer */
.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding-top: 4px;
}

.points-gauge-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fox-score-metric {
  color: #64748b;
  font-size: 11px;
}

.fox-score-metric strong {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   Slide-Out Scoring Rationale Drawer
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border-left: 1px solid #e2e8f0;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 24px;
  overflow-y: auto;
}

.drawer-panel.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.drawer-close-button {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.15s ease;
}

.drawer-close-button:hover {
  color: #0f172a;
}

/* Drawer Matchup Header */
.drawer-matchup-header {
  padding: 16px 0 14px 0;
}

.drawer-matchup-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.drawer-headline-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.drawer-score-clock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Standardized Drawer Sections */
.drawer-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-loading-text {
  font-size: 12px;
  color: #64748b;
  padding: 10px 0;
}

.drawer-insights-list {
  list-style: disc inside;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}

.drawer-votes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px 0;
}

.vote-factor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 12px;
}

.vote-factor-label {
  color: #1e293b;
  font-weight: 500;
}

.vote-factor-points {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #059669;
}

.drawer-total-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
}

.drawer-footer-actions {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
}

.btn-primary {
  flex: 1;
  background-color: var(--color-fox-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--color-fox-blue-hover);
}

.btn-secondary {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  color: #0f172a;
  border-color: #94a3b8;
}

/* ==========================================================================
   Loading & Empty States
   ========================================================================== */

.state-message-container {
  padding: 60px 20px;
  text-align: center;
  color: #64748b;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-fox-blue);
  border-radius: 50%;
  animation: spinAnimation 0.9s linear infinite;
  margin: 0 auto 16px auto;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-header {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .brand-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .brand-titles {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .dashboard-title {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-subtitle {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toolbar-controls {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
  }

  .search-wrapper {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .search-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .search-input:focus {
    width: 100%;
  }

  .view-switcher-group {
    flex: 0 0 auto;
  }

  .view-switcher-button {
    padding: 5px 7px;
    font-size: 11px;
  }

  .sort-select {
    flex: 1 1 110px;
    min-width: 0;
    max-width: 100%;
    font-size: 11px;
    padding: 6px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .alert-filter-button {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .refresh-button {
    flex: 0 0 auto;
    padding: 6px 8px;
  }

  .sport-filter-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 10;
    margin-top: 2px;
    box-sizing: border-box;
  }

  .main-content {
    padding: 12px 10px 30px 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .dashboard-content-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .bucket-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 20px;
  }

  .bucket-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .heatmap-grid,
  .heatmap-grid.view-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .game-tile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 10px;
    overflow: hidden;
  }

  .tile-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .matchup-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    box-sizing: border-box;
  }

  .team-entry {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    gap: 6px;
  }

  .team-name-text {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
  }

  .score-clock-center {
    padding: 0 4px;
    flex-shrink: 0;
  }

  .score-numbers {
    font-size: 16px;
  }

  .clock-status {
    font-size: 9.5px;
  }

  .headline-snippet {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .tile-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
  }

  .drawer-panel {
    width: 100%;
    max-width: 100%;
    padding: 18px 14px;
    box-sizing: border-box;
  }
}
