* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  /* Sports TV Guide brand colors */
  --sports-gold: #a59d88;
  --sports-white: #ffffff;
  --sports-black: #000000;
  --sports-dark: #0d0d0d;
  --sports-accent: #a59d88;
  --sports-accent-glow: rgba(165, 157, 136, 0.4);
  
  /* Football colors */
  --football-green: #00ff41;
  --football-glow: rgba(0, 255, 65, 0.4);
  
  /* UFC colors */
  --ufc-red: #ff4444;
  --ufc-glow: rgba(255, 68, 68, 0.4);
  
  /* TV/Channel colors */
  --tv-blue: #00d4ff;
  --tv-glow: rgba(0, 212, 255, 0.3);
}

body {
  background-color: var(--sports-black);
  color: var(--sports-white);
  height: 100vh;
  overflow: auto;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.8 to 0.4 for more transparency */
  z-index: -1;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-content {
  max-width: 1200px;
}

.main-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--sports-white);
  text-shadow: 0 0 20px rgba(165, 157, 136, 0.6);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.time-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  color: var(--sports-gold);
  letter-spacing: 1px;
}

.clock-icon {
  font-size: 20px;
}

/* Sections */
.section {
  margin: 20px 0;
  padding: 25px;
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.7 to 0.4 for more transparency */
  border-radius: 20px;
  border: 2px solid rgba(165, 157, 136, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 1200px;
}

.football-section {
  border-left: 4px solid var(--football-green);
  border-right: 4px solid var(--football-green);
}

.ufc-section {
  border-left: 4px solid var(--ufc-red);
  border-right: 4px solid var(--ufc-red);
}

.section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.section-icon {
  font-size: 32px;
}

.football-section .section-icon {
  color: var(--football-green);
  text-shadow: 0 0 10px var(--football-glow);
}

.ufc-section .section-icon {
  color: var(--ufc-red);
  text-shadow: 0 0 10px var(--ufc-glow);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--sports-white);
  letter-spacing: 1px;
}

.date-scroller {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.date-nav-btn,
.date-selected-btn,
.date-today-btn {
  border: 1px solid rgba(165, 157, 136, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: var(--sports-white);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.date-nav-btn,
.date-today-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.date-selected-btn {
  min-width: 190px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.date-nav-btn {
  font-size: 22px;
  line-height: 1;
}

.date-nav-btn:hover,
.date-selected-btn:hover,
.date-today-btn:hover {
  transform: translateY(-1px);
  border-color: var(--sports-gold);
  box-shadow: 0 8px 20px rgba(165, 157, 136, 0.18);
}

.date-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.date-selected-btn.is-today,
.date-today-btn.is-active {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.28), rgba(76, 175, 80, 0.16));
  border-color: rgba(76, 175, 80, 0.7);
}

/* Football Matches */
.matches-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
}

.match-card {
  background: rgba(0, 0, 0, 0.3); /* Reduced from 0.6 to 0.3 for more transparency */
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  transition: all 0.3s ease;
  width: 350px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(165, 157, 136, 0.3);
  border-color: var(--sports-gold);
}

.match-card.traffic-light-green {
  background-color: rgba(0, 255, 0, 0.3);
  border-color: rgba(0, 255, 0, 0.5);
}

.match-card.traffic-light-red {
  background-color: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.5);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.match-time {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-display-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.match-day {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--sports-gold);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

.status-live { 
  background: #ff4444; 
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}
.status-soon { 
  background: #ff8800; 
  box-shadow: 0 0 10px rgba(255, 136, 0, 0.6);
}
.status-upcoming { 
  background: #888; 
}

.time-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--sports-white);
}

.timezone-selector-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(165, 157, 136, 0.35);
}

.timezone-selector-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sports-gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.timezone-selector {
  min-width: 130px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(165, 157, 136, 0.45);
  background: rgba(0, 0, 0, 0.6);
  color: var(--sports-white);
  font-size: 14px;
  font-weight: 600;
}

.timezone-selector:focus {
  outline: none;
  border-color: var(--sports-gold);
  box-shadow: 0 0 0 2px rgba(165, 157, 136, 0.2);
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--tv-blue);
}

.teams {
  margin-bottom: 15px;
}

.teams-text {
  font-size: 18px;
  font-weight: 600;
}

.team-a { 
  color: #4fc3f7; 
}
.vs { 
  color: rgba(255,255,255,0.6); 
  margin: 0 10px; 
}
.team-b { 
  color: #ff6b6b; 
}

.competition {
  text-align: center;
}

.competition-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.7 to 0.4 for more transparency */
  color: var(--sports-gold);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  letter-spacing: 1px;
}

.match-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.ignore-btn {
  background: rgba(165, 157, 136, 0.2);
  color: var(--sports-gold);
  border: 1px solid rgba(165, 157, 136, 0.4);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ignore-btn:hover {
  background: rgba(255, 68, 68, 0.4);
  color: white;
  border-color: rgba(255, 68, 68, 0.6);
  transform: scale(1.05);
}

.ignore-btn.confirming {
  background: rgba(255, 68, 68, 0.85);
  color: white;
  border-color: rgba(255, 68, 68, 0.95);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.35);
}

.ignore-btn.confirming:hover {
  background: rgba(255, 68, 68, 1);
  border-color: rgba(255, 68, 68, 1);
}

/* UFC Section */
.ufc-event-header {
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.7 to 0.4 for more transparency */
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 2px solid rgba(255, 68, 68, 0.3);
  text-align: center;
}

.ufc-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--sports-white);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.ufc-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.ufc-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sports-gold);
  font-size: 16px;
}

.detail-icon {
  font-size: 18px;
}

/* UK Times */
.uk-times {
  background: rgba(0, 0, 0, 0.3); /* Reduced from 0.6 to 0.3 for more transparency */
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid rgba(165, 157, 136, 0.3);
}

.times-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--sports-gold);
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

.times-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slot {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.7 to 0.4 for more transparency */
  border-radius: 10px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  flex: 1;
  min-width: 180px;
}

.time-label {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 16px;
  letter-spacing: 1px;
}

.early-prelims .time-label { 
  color: #fbbf24; 
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.prelims .time-label { 
  color: #fb923c; 
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.4);
}
.main-card .time-label { 
  color: var(--ufc-red); 
  text-shadow: 0 0 10px var(--ufc-glow);
}

.time-value {
  font-size: 14px;
  color: var(--sports-white);
  font-weight: 500;
}

/* Fight Cards */
.fight-card {
  margin-bottom: 25px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--sports-white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.card-icon {
  font-size: 24px;
  color: var(--sports-gold);
}

.fights-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fight-main {
  background: rgba(0, 0, 0, 0.3); /* Reduced from 0.6 to 0.3 for more transparency */
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 68, 68, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fight-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
  border-color: var(--ufc-red);
}

.fight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.fighters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  flex: 1;
}

.fighter {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.fighter-1 {
  color: #4fc3f7;
}

.fighter-2 {
  color: #ff6b6b;
}

.vs-separator {
  margin: 0 20px;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
}

.title-fight {
  background: #fbbf24;
  color: #000;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.weight-class {
  text-align: center;
}

.weight-badge {
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.7 to 0.4 for more transparency */
  color: var(--sports-gold);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 14px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  letter-spacing: 1px;
}

/* Preliminary Fights Grid */
.prelim-fights-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
}

.fight-prelim {
  background: rgba(0, 0, 0, 0.3); /* Reduced from 0.6 to 0.3 for more transparency */
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  width: 280px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fight-prelim:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(165, 157, 136, 0.3);
  border-color: var(--sports-gold);
}

.prelim-fighters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.prelim-fighter {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.prelim-weight {
  font-size: 12px;
  color: var(--sports-gold);
  letter-spacing: 1px;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

.footer p {
  font-size: 14px;
  color: var(--sports-gold);
  letter-spacing: 1px;
}

/* Animation for pulse effect */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Animation for border pulse */
@keyframes borderPulse {
  0% { border-color: rgba(165, 157, 136, 0.3); }
  50% { border-color: rgba(165, 157, 136, 0.6); }
  100% { border-color: rgba(165, 157, 136, 0.3); }
}

.section {
  animation: borderPulse 3s infinite ease-in-out;
}

/* Responsive design */
@media (max-width: 1200px) {
  .app-container {
    padding: 15px;
  }
  
  .section {
    padding: 20px;
  }
  
  .matches-grid {
    justify-content: center;
  }
  
  .prelim-fights-grid {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 32px;
  }

  .date-scroller {
    gap: 10px;
  }

  .date-selected-btn {
    min-width: 160px;
    width: 100%;
    order: -1;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .matches-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .match-card {
    width: 100%;
    max-width: 400px;
  }
  
  .times-grid {
    flex-direction: column;
  }
  
  .time-slot {
    min-width: auto;
  }
  
  .prelim-fights-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .fight-prelim {
    width: 100%;
    max-width: 350px;
  }
  
  .ufc-details {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .date-nav-btn,
  .date-today-btn,
  .date-selected-btn {
    width: 100%;
  }
}

/* Debug Section */
.debug-section {
  border-left: 4px solid #ff9800;
  border-right: 4px solid #ff9800;
  background: rgba(255, 152, 0, 0.1);
}

.debug-section .section-icon {
  color: #ff9800;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.debug-section.hidden {
  display: none;
}

.debug-content {
  margin-top: 15px;
}

.debug-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255, 152, 0, 0.3);
  margin-bottom: 15px;
  gap: 5px;
}

.debug-tab {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
  padding: 10px 15px;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: none;
}

.debug-tab:hover {
  background: rgba(255, 152, 0, 0.3);
  transform: translateY(-2px);
}

.debug-tab.active {
  background: #ff9800;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.debug-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.debug-panel.active {
  display: block;
}

.debug-panel h4 {
  color: #ff9800;
  margin-bottom: 10px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 152, 0, 0.3);
  padding-bottom: 5px;
}

.debug-log {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.debug-log::-webkit-scrollbar {
  width: 8px;
}

.debug-log::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.debug-log::-webkit-scrollbar-thumb {
  background: #ff9800;
  border-radius: 4px;
}

.debug-log::-webkit-scrollbar-thumb:hover {
  background: #ffa726;
}

.debug-entry {
  margin-bottom: 10px;
  padding: 8px;
  border-left: 3px solid #ff9800;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 4px;
}

.debug-timestamp {
  color: #ffa726;
  font-weight: bold;
  font-size: 11px;
}

.debug-type {
  color: #ffcc02;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
}

.debug-message {
  color: var(--sports-white);
  margin-top: 5px;
}

.debug-data {
  color: #81c784;
  font-size: 11px;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 3px;
}

.debug-error {
  border-left-color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.debug-error .debug-type {
  color: #f44336;
}

.debug-success {
  border-left-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.debug-success .debug-type {
  color: #4caf50;
}

.debug-warning {
  border-left-color: #ff9800;
  background: rgba(255, 152, 0, 0.1);
}

.debug-warning .debug-type {
  color: #ff9800;
}

.debug-btn {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid #ff9800;
}

.debug-btn:hover {
  background: rgba(255, 152, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

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

/* Channel Filter Section */
.channel-filter-section {
  border-left: 4px solid var(--tv-blue);
  border-right: 4px solid var(--tv-blue);
}

.channel-filter-section .section-icon {
  color: var(--tv-blue);
  text-shadow: 0 0 10px var(--tv-glow);
}

.filter-controls {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: rgba(0, 212, 255, 0.2);
  color: var(--tv-blue);
  border: 1px solid var(--tv-blue);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 10px var(--tv-glow);
  transform: translateY(-2px);
}

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

.channel-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.channel-checkbox {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.channel-checkbox:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--tv-blue);
  transform: translateY(-2px);
}

.channel-checkbox.checked {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--tv-blue);
  box-shadow: 0 0 10px var(--tv-glow);
}

.channel-checkbox input[type="checkbox"] {
  margin: 0;
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--tv-blue);
}

.channel-checkbox label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--sports-white);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.channel-checkbox.checked label {
  color: var(--tv-blue);
  font-weight: 600;
}

.filter-info {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(165, 157, 136, 0.3);
}

.filter-info p {
  font-size: 16px;
  color: var(--sports-gold);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Hide filtered matches */
.match-card.filtered-out {
  display: none !important;
}

/* No matches state for filtering */
.no-filtered-matches {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(165, 157, 136, 0.3);
  margin: 20px 0;
}

.no-filtered-matches-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--tv-blue);
}

.no-filtered-matches-text {
  font-size: 18px;
  color: var(--sports-white);
  margin-bottom: 10px;
  font-weight: 600;
}

.no-filtered-matches-subtext {
  font-size: 14px;
  color: var(--sports-gold);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .filter-controls {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .timezone-selector-container {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .match-time {
    align-items: flex-start;
  }
  
  .channel-checkboxes {
    grid-template-columns: 1fr;
  }
}

/* Fetch notification styles */
.fetch-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  font-weight: 600;
  z-index: 1000;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s;
  max-width: 400px;
  word-wrap: break-word;
}

.startup-loading, .startup-result {
  background: rgba(255, 152, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.startup-result {
  background: rgba(76, 175, 80, 0.9);
  border-color: rgba(76, 175, 80, 0.3);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Fetch controls styling */
.fetch-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.fetch-btn, .cleanup-btn {
  background: rgba(165, 157, 136, 0.2);
  color: var(--sports-gold);
  border: 1px solid var(--sports-gold);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.fetch-btn:hover, .cleanup-btn:hover {
  background: rgba(165, 157, 136, 0.3);
  box-shadow: 0 0 10px var(--sports-accent-glow);
  transform: translateY(-2px);
}

.fetch-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auto-fetch-indicator {
  background: rgba(0, 255, 65, 0.2);
  color: var(--football-green);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .filter-controls {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .channel-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .debug-tabs {
    flex-wrap: wrap;
  }
  
  .debug-tab {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-height: 900px) {
  .section {
    margin: 15px 0;
    padding: 15px;
  }
  
  .header {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .main-title {
    font-size: 36px;
  }
}

/* Live Score Features */

/* Enhanced live score display */
.match-current-score {
  text-align: center;
  color: #f5f7fa;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: -4px auto 14px;
  width: fit-content;
  min-width: 82px;
  font-size: 18px;
  letter-spacing: 0.8px;
}

.match-current-score.live-score {
  color: #ff4444 !important;
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid rgba(255, 68, 68, 0.3);
  animation: livePulse 2s infinite;
}

.match-current-score.score-pending {
  color: var(--sports-gold) !important;
  font-size: 13px;
  min-width: 120px;
}

/* Live match time display */
.live-time {
  text-align: center;
  color: #ff4444;
  font-weight: bold;
  background: rgba(255, 68, 68, 0.2);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 68, 68, 0.3);
  margin-top: 10px;
  font-size: 14px;
  animation: livePulse 2s infinite;
  letter-spacing: 1px;
}

.match-score-note {
  text-align: center;
  color: #f5f7fa;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.8px;
}

/* Live indicator badge */
.live-indicator {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid rgba(255, 68, 68, 0.3);
  animation: livePulse 2s infinite;
  margin-left: 10px;
  letter-spacing: 0.5px;
}

/* Live pulse animation */
@keyframes livePulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Enhanced status indicators for live matches */
.status-live {
  background: #ff4444 !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.8) !important;
  animation: livePulse 1.5s infinite;
}

/* Timezone indicator enhancement */
.time-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--sports-white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* App controls and notifications */
.fetch-controls {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.fetch-btn, .cleanup-btn {
  background: rgba(0, 168, 107, 0.2);
  color: #00a86b;
  border: 1px solid rgba(0, 168, 107, 0.3);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.fetch-btn:hover, .cleanup-btn:hover {
  background: rgba(0, 168, 107, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.fetch-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auto-fetch-indicator {
  background: rgba(0, 212, 255, 0.2);
  color: var(--tv-blue);
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.startup-loading, .startup-result {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 107, 0.2);
  color: #00a86b;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 168, 107, 0.3);
  font-size: 14px;
  margin-top: 10px;
}

.startup-result {
  background: rgba(0, 212, 255, 0.2);
  color: var(--tv-blue);
  border-color: rgba(0, 212, 255, 0.3);
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

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

.fetch-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 168, 107, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Match source indicators */
.match-source {
  font-size: 12px;
  margin-left: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(165, 157, 136, 0.3);
}

/* Mobile responsiveness for live features */
@media (max-width: 768px) {
  .live-time {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .live-indicator {
    font-size: 10px;
    padding: 3px 6px;
    margin-left: 5px;
  }
  
  .match-current-score {
    font-size: 16px;
    padding: 3px 8px;
  }
  
  .fetch-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .fetch-btn, .cleanup-btn {
    width: 100%;
    max-width: 250px;
  }
}
/* ============================================================================ */
/* UFC 321 SCRAPER CONTROLS STYLING */
/* Append these styles to the end of styles.css */
/* ============================================================================ */

/* UFC Scraper Controls Container */
.ufc-scraper-controls {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 107, 53, 0.3);
}

/* Input Group Layout */
.scraper-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scraper-input-group label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Tapology URL Input Field */
.tapology-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.2s;
}

.tapology-input:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(0, 0, 0, 0.4);
}

.tapology-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Get UFC Event Button */
.fetch-ufc-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #FF6B35, #F5512F);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.fetch-ufc-btn:hover {
  background: linear-gradient(135deg, #F5512F, #E63946);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.fetch-ufc-btn:active {
  transform: translateY(0);
}

.fetch-ufc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status Display Area */
.scraper-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

.scraper-status.loading {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  animation: pulse 2s infinite;
}

.scraper-status.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.scraper-status.error {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ============================================================================ */
/* MOBILE RESPONSIVENESS FOR UFC SCRAPER */
/* ============================================================================ */

@media (max-width: 768px) {
  .ufc-scraper-controls {
    padding: 15px;
  }
  
  .scraper-input-group {
    gap: 8px;
  }
  
  .tapology-input {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .fetch-ufc-btn {
    width: 100%;
    padding: 12px 16px;
  }
}

/* Desktop Layout - Horizontal */
@media (min-width: 769px) {
  .scraper-input-group {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }
  
  .scraper-input-group label {
    min-width: 150px;
    margin-bottom: 0;
    align-self: center;
  }
  
  .fetch-ufc-btn {
    white-space: nowrap;
  }
}

/* ============================================================================ */
/* END OF UFC 321 SCRAPER STYLES */
/* ============================================================================ */

/* ============================================================================ */
/* IGNORED MATCHES FEATURE STYLES */
/* ============================================================================ */

/* View Ignored Matches Button */
.view-ignored-btn {
  background: rgba(165, 157, 136, 0.2);
  color: var(--sports-gold);
  border: 1px solid var(--sports-gold);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.view-ignored-btn:hover {
  background: rgba(165, 157, 136, 0.3);
  box-shadow: 0 0 10px var(--sports-accent-glow);
  transform: translateY(-2px);
}

/* Ignored Matches Section */
.ignored-matches-section {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid rgba(165, 157, 136, 0.4);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ignored-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(165, 157, 136, 0.3);
}

.ignored-header h3 {
  font-size: 22px;
  color: var(--sports-gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.close-ignored-btn {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.close-ignored-btn:hover {
  background: rgba(255, 68, 68, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

#ignored-matches-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
}

.ignored-match-card {
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(165, 157, 136, 0.4);
}

.ignored-match-card:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.restore-btn {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.restore-btn:hover {
  background: rgba(76, 175, 80, 0.4);
  color: white;
  border-color: rgba(76, 175, 80, 0.6);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.no-ignored-matches {
  text-align: center;
  padding: 30px;
  color: var(--sports-gold);
  font-size: 16px;
  font-style: italic;
}

/* Mobile Responsiveness for Ignored Matches */
@media (max-width: 768px) {
  .ignored-matches-section {
    padding: 15px;
  }
  
  .ignored-header h3 {
    font-size: 18px;
  }
  
  #ignored-matches-list {
    flex-direction: column;
    align-items: center;
  }
  
  .ignored-match-card {
    width: 100%;
    max-width: 400px;
  }
}

/* ============================================================================ */
/* END OF IGNORED MATCHES FEATURE STYLES */
/* ============================================================================ */

/* ============================================================================ */
/* LIVE SCORES + MMA RESULTS STYLES */
/* ============================================================================ */

/* ---- section wrappers ---- */
.scores-section,
.mma-results-section {
  background: var(--card-bg, #1e293b);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ---- Competition grouping ---- */
.scores-competition {
  margin-bottom: 14px;
}
.scores-comp-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 4px 0 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

/* ---- Individual score row ---- */
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.score-row:hover { background: rgba(255,255,255,0.07); }

.score-row.score-live {
  border-left-color: #22c55e;
  background: rgba(34,197,94,0.06);
}
.score-row.score-ft {
  border-left-color: #64748b;
}

.score-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.score-team {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38%;
}
.score-result {
  font-size: 15px;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  min-width: 52px;
  text-align: center;
}
.score-result-live {
  color: #22c55e;
  animation: scorePulse 1.8s ease-in-out infinite;
}
@keyframes scorePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.score-status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.score-status-badge.score-live {
  background: #22c55e;
  color: #000;
  animation: scorePulse 1.8s ease-in-out infinite;
}
.score-status-badge.score-ft {
  background: #334155;
  color: #94a3b8;
}

/* ---- Empty / error ---- */
.scores-empty {
  text-align: center;
  padding: 32px 20px;
  color: #64748b;
}
.scores-empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}
.scores-empty-sub {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}
.scores-error {
  text-align: center;
  padding: 20px;
  color: #f87171;
  font-size: 13px;
}

/* ---- Meta line ---- */
.scores-meta {
  font-size: 10px;
  color: #475569;
  margin-top: 8px;
  text-align: right;
}

/* ============================================================ */
/* MMA RESULTS                                                  */
/* ============================================================ */

.mma-event-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.mma-event-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mma-event-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}
.mma-event-date {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.mma-fights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mma-fight-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #334155;
}
.mma-fight-row.mma-main-event {
  border-left-color: #f59e0b;
  background: rgba(245,158,11,0.05);
}

.mma-fighter {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mma-fighter.winner {
  color: #22c55e;
  font-weight: 700;
}
.mma-fighter.loser {
  color: #64748b;
}
.mma-fighter:last-child {
  text-align: right;
}

.mma-vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mma-vs {
  font-size: 10px;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
}
.mma-result {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .score-team { max-width: 35%; font-size: 12px; }
  .score-result { font-size: 13px; min-width: 44px; }
  .mma-fighter { font-size: 11px; }
  .mma-result  { font-size: 9px; }
}
/* ============================================================================ */
/* END LIVE SCORES + MMA RESULTS STYLES */
/* ============================================================================ */
