* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.main-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBARS */
.sidebar {
  width: 250px;
  background: #1e293b;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #334155;
}

.right-sidebar {
  border-right: none;
  border-left: 1px solid #334155;
  font-size: 14px;
}

.left-sidebar {
  border-right: 1px solid #334155;
}

/* SIDEBAR SORT (Integrated) */
.sidebar-sort {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #334155;
}

.sidebar-sort h3 {
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.sort-btn-compact {
  width: 100%;
  background: #334155;
  border: 2px solid #475569;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: left;
  margin-bottom: 8px;
}

.sort-btn-compact:hover {
  background: #475569;
  transform: translateX(2px);
}

.sort-btn-compact.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.league-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-button {
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  border: 2px solid;
}

.filter-button:hover {
  transform: translateX(2px);
  opacity: 0.9;
}

.filter-button.active {
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* MAIN CONTENT */
.content {
  flex: 1;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* INLINE CONTROLS BAR (Search + Date) */
.controls-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.search-inline {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-inline {
  width: 100%;
  background: #1e293b;
  border: 2px solid #334155;
  color: #e2e8f0;
  padding: 10px 35px 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.search-input-inline:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-input-inline::placeholder {
  color: #64748b;
}

.clear-search-inline {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #475569;
  border: none;
  color: #e2e8f0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-inline:hover {
  background: #64748b;
}

.date-controls-inline {
  display: flex;
  gap: 6px;
  align-items: center;
}

.date-input-inline {
  background: #1e293b;
  border: 2px solid #334155;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.date-input-inline:hover,
.date-input-inline:focus {
  outline: none;
  border-color: #667eea;
}

.date-input-inline::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.nav-btn-inline {
  background: #1e293b;
  border: 2px solid #334155;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn-inline:hover {
  background: #334155;
  border-color: #667eea;
}

.nav-btn-inline.all-btn {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.nav-btn-inline.all-btn:hover {
  background: #5568d3;
}

.search-results-inline {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
}

.matches-count-inline {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
}

/* COMPACT WEEKLY HIGHLIGHTS */
.weekly-highlights-compact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.highlights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: white;
  font-size: 14px;
}

.toggle-highlights-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-highlights-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.highlights-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.highlight-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.highlight-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.highlight-teams {
  color: white;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.highlight-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.highlight-league {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-score {
  background: rgba(255, 255, 255, 0.9);
  color: #667eea;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* COMPACT HEADER */
.compact-header {
  text-align: center;
  margin-bottom: 20px;
}

.compact-header h1 {
  font-size: clamp(24px, 5vw, 32px);
  color: white;
  margin: 0;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.sidebar h3 {
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.date-selector {
  /* REMOVED - Now inline */
  display: none;
}

.sort-controls {
  /* REMOVED - Now in sidebar */
  display: none;
}

/* MATCH CARDS */
.match-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  border-left: 4px solid transparent;
}

.match-card[data-league="Premier League"] {
  border-left-color: #7b2cbf;
  background: linear-gradient(to right, rgba(123, 44, 191, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league="La Liga"] {
  border-left-color: #f97316;
  background: linear-gradient(to right, rgba(249, 115, 22, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league="Serie A"] {
  border-left-color: #3b82f6;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league="Bundesliga"] {
  border-left-color: #dc2626;
  background: linear-gradient(to right, rgba(220, 38, 38, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league="Ligue 1"] {
  border-left-color: #10b981;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league*="Champions League"] {
  border-left-color: #3562a6;
  background: linear-gradient(to right, rgba(53, 98, 166, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league*="Europa League"] {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.1) 0%, #1e293b 10%);
}

.match-card[data-league*="Conference League"] {
  border-left-color: #06b6d4;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.1) 0%, #1e293b 10%);
}

.match-card:hover {
  transform: translateY(-4px);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.teams {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: bold;
  color: #f1f5f9;
  flex: 1;
}

.team-name {
  font-weight: 600;
  display: inline-block;
}

.vs {
  color: #64748b;
  font-size: 14px;
  font-weight: normal;
}

.scores-container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.rating-buttons-compact {
  display: flex;
  gap: 8px;
}

.vote-btn {
  background: #334155;
  border: 2px solid transparent;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-btn:hover {
  transform: scale(1.1);
}

.vote-btn.upvote:hover,
.vote-btn.upvote.selected {
  background: #15803d;
  border-color: #16a34a;
}

.vote-btn.downvote:hover,
.vote-btn.downvote.selected {
  background: #991b1b;
  border-color: #dc2626;
}

.vote-btn.selected {
  border-width: 3px;
}

.vote-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.vote-btn.disabled:hover {
  transform: none;
  background: #334155;
}

.user-rating {
  background: #334155;
  padding: 8px 12px;
  border-radius: 24px;
  font-size: 14px;
}

.user-rating.positive {
  background: #15803d;
  color: white;
}

.user-rating.negative {
  background: #991b1b;
  color: white;
}

.prediction-score {
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 18px;
  min-width: 60px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.match-info {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 12px;
}

.reveal-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  transition: background 0.2s;
}

.reveal-btn:hover {
  background: #2563eb;
}

.final-score {
  display: none;
  font-size: 32px;
  font-weight: bold;
  color: #ef4444;
  text-align: center;
  margin-top: 12px;
}

.highlights-container {
  margin-top: 12px;
}

.highlights-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.highlights-btn:hover {
  background: #dc2626;
}

.highlights-warning {
  color: #fbbf24;
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
}

.upcoming-badge {
  background: #334155;
  color: #94a3b8;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.no-data-message {
  text-align: center;
  padding: 60px 20px;
  background: #1e293b;
  border-radius: 16px;
  margin: 20px 0;
}

.no-data-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-data-message h3 {
  font-size: 24px;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.no-data-message p {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.loading, .error {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

/* MATCH DETAILS BUTTONS */
.details-btn {
  background: #334155;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: background 0.2s;
}

.details-btn:hover {
  background: #475569;
}

.lineup-btn {
  background: #0891b2;
}

.lineup-btn:hover {
  background: #0e7490;
}

/* STATISTICS SECTION */
.match-details {
  margin-top: 16px;
  padding: 16px;
  background: #0f172a;
  border-radius: 8px;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #334155;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span:first-child {
  text-align: right;
  font-weight: bold;
  color: #3b82f6;
}

.stat-row span:last-child {
  text-align: left;
  font-weight: bold;
  color: #ef4444;
}

.stat-label {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* LINEUPS SECTION */
.lineups-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lineup-team {
  background: #1e293b;
  padding: 16px;
  border-radius: 8px;
}

.lineup-team h4 {
  color: #f1f5f9;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.formation {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-item {
  display: grid;
  grid-template-columns: 40px 1fr 50px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #0f172a;
  border-radius: 6px;
  transition: all 0.2s;
}

.player-item:hover {
  background: #334155;
}

.player-number {
  color: #667eea;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.player-name {
  color: #e2e8f0;
  font-size: 14px;
}

.player-position {
  color: #94a3b8;
  font-size: 12px;
  text-align: right;
  font-weight: 600;
}

.no-stats {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
}

/* INFO SECTIONS */
.info-section, .donation-section, .stats-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #334155;
}

.info-section:last-child, .donation-section:last-child, .stats-section:last-child {
  border-bottom: none;
}

.info-section h3 {
  color: #f1f5f9;
  font-size: 15px;
  margin: 16px 0 8px 0;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.info-section li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #667eea;
}

.info-section p, .donation-section p, .stats-section p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.donate-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin: 12px 0;
  transition: all 0.2s;
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.donation-note {
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

/* BONUS: Quick Stats in Sidebar */
.sidebar-stats {
  margin-top: 30px;
  padding: 16px;
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid #334155;
}

.sidebar-stats h3 {
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #334155;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: #94a3b8;
  font-size: 13px;
}

.stat-value {
  color: #667eea;
  font-weight: 700;
  font-size: 14px;
}

/* BONUS: Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Fix massive top gap on mobile */
  body {
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-container {
    flex-direction: column;
    min-height: auto !important; /* Remove 100vh constraint */
    padding: 0 !important;
    margin: 0 !important;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .league-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    grid-template-columns: 1fr 1fr;
  }

  .filter-button {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
  
  .lineups-container {
    grid-template-columns: 1fr;
  }
  
  .match-card {
    padding: 16px;
  }
  
  .vote-btn {
    padding: 6px 10px;
    font-size: 18px;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .date-picker-container {
    flex-direction: column;
  }
  
  .date-input {
    width: 100%;
  }
  
  .nav-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .match-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scores-container {
    width: 100%;
    justify-content: space-between;
  }
  
  .player-item {
    grid-template-columns: 35px 1fr 45px;
    font-size: 13px;
  }

}

.comments-btn {
    background: #8b5cf6;
    margin-top: 12px;
}

.comments-btn:hover {
    background: #7c3aed;
}

.comments-section {
    margin-top: 16px;
    padding: 16px;
    background: #0f172a;
    border-radius: 8px;
}

.comment-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.comment-input {
    width: 100%;
    background: #1e293b;
    border: 2px solid #334155;
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    background: #1e293b;
    border: 2px solid #334155;
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.comment-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.comment-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 18px;
}

.post-comment-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.post-comment-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    background: #1e293b;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-username {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 14px;
}

.comment-time {
    color: #64748b;
    font-size: 12px;
}

.comment-text {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.delete-comment-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-comment-btn:hover {
    background: #b91c1c;
}

.no-comments {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 20px;
    background: #1e293b;
    border-radius: 8px;
}

/* ============ SCORE REVEAL ============ */

.teams-with-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 12px;
}

.team-section {
  flex: 1;
  display: flex;
  align-items: center;
}

.match-score-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.match-score {
  font-size: 28px;
  font-weight: bold;
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 8px;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.match-score.blurred {
  filter: blur(8px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.match-score.blurred:hover {
  filter: blur(6px);
  transform: scale(1.05);
}

.match-score.warning {
  filter: none;
  background: #dc2626;
  animation: pulse 0.5s ease-in-out;
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
  color: white !important; /* ✅ WHITE TEXT */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* ✅ ADD SHADOW FOR READABILITY */
}

.match-score.warning small {
  color: rgba(255, 255, 255, 0.9); /* ✅ SLIGHTLY DIMMED WHITE FOR "CLICK AGAIN" */
  display: block;
  margin-top: 2px;
}

.match-score.upcoming {
  background: #475569;
  cursor: default;
  font-size: 20px;
  color: #94a3b8;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============ TABBED INTERFACE ============ */

.show-info-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all 0.2s;
}

.show-info-btn:hover {
  background: #5568d3;
  transform: translateY(-1px);
}

.match-info-panel {
  margin-top: 16px;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.info-tabs {
  display: flex;
  background: #1e293b;
  border-bottom: 2px solid #334155;
}

.info-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.info-tab:hover {
  background: #334155;
  color: #e2e8f0;
}

.info-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: #0f172a;
}

.tab-content {
  display: none;
  padding: 16px;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ RESPONSIVE UPDATES ============ */

@media (max-width: 768px) {
  .teams-with-score {
    flex-direction: column;
    gap: 12px;
  }
  
  .team-section {
    width: 100%;
    justify-content: center;
  }
  
  .match-score {
    font-size: 24px;
  }
  
  .info-tabs {
    flex-wrap: wrap;
  }
  
  .info-tab {
    flex: 1 1 50%;
    font-size: 12px;
    padding: 10px 8px;
  }
}
/* FAVORITES FILTER BUTTON */
#favorites-filter-btn {
  width: 100%;
  background: #334155;
  border: 2px solid #475569;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: left;
  margin-top: 12px;
}

#favorites-filter-btn:hover {
  background: #475569;
  transform: translateX(2px);
}

#favorites-filter-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Favorite Stars */
.favorite-star {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
  line-height: 1;
}

.favorite-star:hover {
  color: #f59e0b;
  transform: scale(1.2);
}

.favorite-star.active {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* FIXED: Team Spacing */
.teams-with-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 12px;
}

.team-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 150px;
}

.team-section:first-child {
  justify-content: flex-end;
}

.team-section:last-child {
  justify-content: flex-start;
}

.match-score-container {
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .teams-with-score {
    flex-direction: column;
    gap: 12px;
  }
  
  .team-section {
    width: 100%;
    justify-content: center !important;
  }
  
  .favorite-star {
    font-size: 18px;
  }
}

/* ========== COMPACT MATCH CARD REDESIGN ========== */

.match-card-compact {
  background: #1e293b;
  border-radius: 10px;
  padding: 10px 16px 8px 16px;  /* Reduced vertical padding */
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid transparent;
  overflow: hidden;
}

.match-card-compact[data-league="Premier League"] {
  border-left-color: #7b2cbf;
  background: linear-gradient(to right, rgba(123, 44, 191, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league="La Liga"] {
  border-left-color: #f97316;
  background: linear-gradient(to right, rgba(249, 115, 22, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league="Serie A"] {
  border-left-color: #3b82f6;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league="Bundesliga"] {
  border-left-color: #dc2626;
  background: linear-gradient(to right, rgba(220, 38, 38, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league="Ligue 1"] {
  border-left-color: #10b981;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league*="Champions League"] {
  border-left-color: #3562a6;
  background: linear-gradient(to right, rgba(53, 98, 166, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league*="Europa League"] {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.08) 0%, #1e293b 8%);
}

.match-card-compact[data-league*="Conference League"] {
  border-left-color: #06b6d4;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.08) 0%, #1e293b 8%);
}

.match-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.match-main-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 6px;  /* Reduced gap before tabs */
}

/* Left: Meta Info */
.match-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.match-time {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.match-league {
  color: #64748b;
  font-size: 11px;
}

.match-status-badge {
  background: #334155;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
}

/* Center: Teams Section */
.match-teams-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.team-name-compact {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  padding-left: 8px;
  min-width: 120px;
  text-align: center;
}

.favorite-star-compact {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
  line-height: 1;
}

.favorite-star-compact:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.favorite-star-compact.active {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.match-score {
  font-size: 24px;
  font-weight: bold;
  color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 8px;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  min-width: 80px;
  text-align: center;
}

.match-score.blurred {
  filter: blur(8px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.match-score.blurred:hover {
  filter: blur(6px);
  transform: scale(1.05);
}

.match-score.warning {
  filter: none;
  background: #dc2626;
  animation: pulse 0.5s ease-in-out;
  font-size: 12px;
  line-height: 1.3;
}

.match-score.upcoming {
  background: #475569;
  cursor: default;
  font-size: 18px;
  color: #94a3b8;
}

/* Right: Actions */
.match-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: flex-end;
}

.vote-btn-compact {
  background: #334155;
  border: 2px solid transparent;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-btn-compact:hover:not(.disabled) {
  transform: scale(1.1);
}

.vote-btn-compact.upvote:hover,
.vote-btn-compact.upvote.selected {
  background: #15803d;
  border-color: #16a34a;
}

.vote-btn-compact.downvote:hover,
.vote-btn-compact.downvote.selected {
  background: #991b1b;
  border-color: #dc2626;
}

.vote-btn-compact.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.user-rating-compact {
  background: #334155;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.user-rating-compact.positive {
  background: #15803d;
  color: white;
}

.user-rating-compact.negative {
  background: #991b1b;
  color: white;
}

.prediction-score-compact {
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  min-width: 50px;
}

/* Info Button */
.show-info-btn-compact {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all 0.2s;
}

.show-info-btn-compact:hover {
  background: #5568d3;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .match-main-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .match-meta {
    min-width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .match-time {
    font-size: 12px;
  }

  .match-league {
    font-size: 10px;
  }

  .match-teams-section {
    width: 100%;
    order: 2;
    gap: 10px;
  }

  .match-actions {
    width: 100%;
    justify-content: center;
    order: 3;
    gap: 10px;
  }

  .vote-btn-compact {
    font-size: 20px;
    padding: 6px 10px;
  }

  .vote-count-display {
    font-size: 11px;
    padding: 5px 8px;
  }
}

@media (max-width: 600px) {
  .team-name-compact {
    font-size: 13px;
    min-width: 80px;
    max-width: 100px;
  }

  .match-score {
    font-size: 18px;
    min-width: 65px;
    padding: 4px 10px;
  }

  .favorite-star-compact {
    font-size: 15px;
  }

  /* More compact spacing on small screens */
  .match-teams-section {
    gap: 8px;
  }

  .match-actions {
    gap: 8px;
  }

  .vote-btn-compact {
    font-size: 18px;
    padding: 5px 8px;
  }
}
/* ============ END NEW STYLES ============ */

/* Highlights Section */
.highlights-section {
    margin-top: 20px;
    padding: 16px;
    background: #0f172a;
    border-radius: 12px;
    border: 2px solid #334155;
}

.highlights-title {
    color: #f1f5f9;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.highlight-video-card {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.highlight-video-card:hover {
    transform: translateY(-4px);
}

.highlight-video-link {
    text-decoration: none;
    display: block;
}

.highlight-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.highlight-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-thumbnail.blurred {
    filter: blur(20px);
    transition: filter 0.3s;
}

.highlight-video-card:hover .highlight-thumbnail.blurred {
    filter: blur(5px);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.highlight-video-card:hover .play-overlay {
    opacity: 1;
}

.spoiler-warning {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.highlight-info {
    padding: 10px;
}

.highlight-video-title {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-channel {
    color: #94a3b8;
    font-size: 11px;
}

.no-highlights {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.no-highlights p {
    margin-bottom: 12px;
}
/* Highlights Section */
.highlights-section {
    padding: 20px;
    background: #0f172a;
    border-radius: 12px;
}

.highlights-title {
    color: #f1f5f9;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.highlights-source {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
}

.match-score {
    transition: none !important; /* Remove all animations */
}

.match-score.warning {
    animation: none !important; /* Remove pulse effect */
}

/* ============ SPOILER COVER FOR HIGHLIGHTS ============ */

.video-spoiler-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.cover-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
}

.cover-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cover-text {
    color: #ef4444;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cover-warning {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.play-video-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.play-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

/* Confidence Badges */
.confidence-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.confidence-badge.high {
    background: #15803d;
    color: white;
}

.confidence-badge.medium {
    background: #d97706;
    color: white;
}

.video-warning {
    color: #fbbf24;
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
}

.video-info {
    color: #10b981;
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cover-content {
        padding: 20px 16px;
    }
    
    .cover-icon {
        font-size: 48px;
    }
    
    .cover-text {
        font-size: 20px;
    }
    
    .cover-warning {
        font-size: 13px;
    }
    
    .play-video-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Vote Count Display */
.vote-count-display {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #334155;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.thumbs-up-count {
  color: #10b981;
}

.thumbs-down-count {
  color: #ef4444;
}

/* Hide old percentage display */
.user-rating-compact {
  display: none;
}

@media (max-width: 600px) {
  .vote-count-display {
    font-size: 11px;
    padding: 5px 8px;
    gap: 4px;
  }
}

/* Hamburger Button (Mobile Only) */
.hamburger-btn {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

/* Hamburger Animation (when open) */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
}

/* Mobile Sidebar Adjustments */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex; /* Show on mobile */
    top: 10px !important;
    left: 10px !important;
    position: fixed !important;
    z-index: 1001 !important;
  }

  .left-sidebar {
    position: fixed !important; /* Force fixed positioning */
    left: -100%; /* Hidden by default */
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  }

  .left-sidebar.active {
    left: 0; /* Slide in */
  }

  /* CRITICAL FIX: Eliminate top gap */
  .content {
    padding: 10px !important; /* Compact padding for mobile */
    padding-top: 55px !important; /* Just enough room for hamburger (50px + 5px) */
    margin: 0 !important;
  }

  /* Remove all header spacing */
  .compact-header {
    margin: 0 !important; /* Remove ALL margins */
    margin-bottom: 6px !important;
    padding: 0 !important;
  }

  .compact-header h1 {
    font-size: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  /* Optimize search and controls */
  .search-inline {
    min-width: 100%;
    margin-bottom: 6px;
  }

  .controls-bar {
    flex-direction: column;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .date-controls-inline {
    width: 100%;
    justify-content: space-between;
    gap: 3px;
  }

  .search-input-inline {
    font-size: 13px;
    padding: 8px 35px 8px 10px !important;
  }

  .nav-btn-inline {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  .date-input-inline {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  /* Compact weekly highlights */
  .weekly-highlights-compact {
    padding: 10px !important;
    margin-bottom: 10px !important;
  }

  .highlights-header {
    font-size: 12px !important;
  }

  .highlight-card {
    padding: 6px !important;
  }

  /* Compact match count */
  .matches-count-inline {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
}

/* Desktop: Keep sidebar visible */
@media (min-width: 769px) {
  .left-sidebar {
    position: sticky; /* Back to normal */
  }
}

/* ADD THESE TO style.css */

/* Completely hide the iframe until cover is removed */
.video-embed-container.covered .youtube-embed {
    pointer-events: none; /* Disable clicks */
    opacity: 0; /* Hide completely */
}

.video-embed-container.revealed .youtube-embed {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
/* ============ CLICK-THROUGH COVER - BLOCKS THUMBNAIL ============ */

/* ============ WORKING YOUTUBE COVER - COMPLETE STYLES ============ */

.video-wrapper-outer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 12px;
}

/* Video container (inside wrapper) */
.video-embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* YouTube player div (created dynamically) */
.video-embed-container > div {
    width: 100%;
    height: 100%;
}

/* Full cover - blocks everything */
.video-spoiler-cover-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
    transition: opacity 0.5s;
}

.cover-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 480px;
}

.cover-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cover-text {
    color: #ef4444;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cover-warning {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

/* Button */
.play-video-btn-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    width: fit-content;
}

.play-video-btn-new:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.play-video-btn-new:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* External link buttons (for non-embeddable videos) */
.external-link-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.external-link-btn:nth-child(2) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.external-link-btn:nth-child(2):hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Small loading spinner */
.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Title cover (visible by default, always on top) */
.title-spoiler-cover-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 70%, transparent 100%);
    z-index: 150; /* Above everything */
    pointer-events: none;
    border-radius: 8px 8px 0 0;
    opacity: 0; /* Hidden by default */
}

.title-spoiler-cover-new.visible {
    opacity: 1;
    transition: opacity 0.3s;
}

.title-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.title-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ef4444;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    z-index: 51;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Warnings below video */
.video-warning {
    color: #fbbf24;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.fullscreen-warning {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border: 2px solid #ef4444;
    font-weight: 600;
}

/* Highlights section */
.highlights-section {
    margin-top: 20px;
    padding: 16px;
    background: #0f172a;
    border-radius: 12px;
    border: 2px solid #334155;
}

.highlights-title {
    color: #f1f5f9;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.highlights-source {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
}

.no-highlights {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.highlights-note {
    font-size: 12px;
    color: #64748b;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cover-content {
        padding: 24px 16px;
    }
    
    .cover-icon {
        font-size: 48px;
    }
    
    .cover-text {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .cover-warning {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .play-video-btn-new {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .title-warning {
        font-size: 12px;
    }
}

/* ============ CSS FIXES FOR IMPROVED UI ============ */

/* Team with star container - keeps star and name together */
.team-with-star {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0; /* Allow flex shrinking */
}

/* Team name - adjusted for symmetric color bars */
.team-name-compact {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Favorite star - attached to team name */
.favorite-star-compact {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0; /* Don't shrink the star */
}

.favorite-star-compact:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.favorite-star-compact.active {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Match teams section - ensure proper spacing */
.match-teams-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  min-width: 0; /* Allow flex children to shrink */
}

/* Comment form - MOVED TO BOTTOM */
.comment-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #334155;
  order: 2; /* Ensures it's after comments list */
}

/* Comments list - NOW APPEARS FIRST */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
  order: 1; /* Ensures it's before comment form */
}

/* Tab content for comments - use flexbox for ordering */
#tab-comments-${match.id} {
  display: flex;
  flex-direction: column;
}

/* Ensure comment form inputs are full width */
.comment-input,
.comment-textarea {
  width: 100%;
}

/* Comment form heading (optional - add if you want) */
.comment-form::before {
  content: "✍️ Write a Comment";
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}

/* Comments section heading (optional - add if you want) */
.comments-list::before {
  content: "💬 Comments";
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}

/* Remove the heading if there's a "no comments" message */
.comments-list:has(.no-comments)::before,
.comments-list:has(.loading)::before {
  display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
  .match-teams-section {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .team-with-star {
    gap: 4px;
  }
  
  .team-name-compact {
    font-size: 14px;
    min-width: 90px;
  }
  
  .favorite-star-compact {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .team-name-compact {
    font-size: 13px;
    min-width: 80px;
  }
  
  .match-teams-section {
    gap: 6px;
  }
}

                /* ============ FIX LONG TEAM NAMES ============ */

/* Team name - allow wrapping for long names */
.team-name-compact {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  min-width: 120px;
  max-width: 150px; /* Prevent it from getting too wide */
  text-align: center;
  white-space: normal; /* Allow wrapping */
  word-wrap: break-word;
  line-height: 1.3;
  padding: 4px 0;
}

/* Team with star container - align to top when text wraps */
.team-with-star {
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start */
  gap: 6px;
  min-width: 0;
}

/* Favorite star - align to top */
.favorite-star-compact {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px; /* Align with first line of text */
}

/* Match score - ensure consistent height */
.match-score {
  font-size: 24px;
  font-weight: bold;
  color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 8px;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  min-width: 80px;
  text-align: center;
  align-self: center; /* Center vertically even when team names wrap */
}

/* ============ FIX SIDEBAR HEIGHT ============ */

/* Sidebar - adjust height to content */
.sidebar {
  width: 250px;
  background: #1e293b;
  padding: 20px;
  position: sticky;
  top: 0;
  height: fit-content; /* Changed from 100vh */
  max-height: 100vh; /* Don't exceed viewport */
  overflow-y: auto;
  border-right: 1px solid #334155;
}

/* Left sidebar specific */
.left-sidebar {
  border-right: 1px solid #334155;
  height: fit-content; /* Match content height */
  min-height: 400px; /* Minimum height to look good */
}

/* ============ FIX SEARCH FUNCTION ============ */

/* Search input should be visible and working */
.search-inline {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: block; /* Ensure it's visible */
}

.search-input-inline {
  width: 100%;
  background: #1e293b;
  border: 2px solid #334155;
  color: #e2e8f0;
  padding: 10px 35px 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  display: block; /* Ensure it's visible */
}

.search-input-inline:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Clear search button */
.clear-search-inline {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #475569;
  border: none;
  color: #e2e8f0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ MOBILE RESPONSIVE ============ */

@media (max-width: 900px) {
  .team-name-compact {
    font-size: 14px;
    min-width: 90px;
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  /* Sidebar full width on mobile */
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    max-height: none;
  }
  
  .left-sidebar {
    min-height: auto;
  }
  
  /* Team names on mobile */
  .team-name-compact {
    font-size: 13px;
    min-width: 80px;
    max-width: 100px;
  }
  
  /* Match teams section - stack on very small screens */
  .match-teams-section {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .team-name-compact {
    font-size: 12px;
    max-width: 90px;
  }
}

/* ============================================ */
/* NON-EMBEDDABLE VIDEO WARNING STYLES */
/* Add this to your style.css file */
/* ============================================ */

.non-embeddable-warning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.non-embeddable-warning .warning-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.non-embeddable-warning h3 {
    margin: 15px 0;
    font-size: 28px;
    font-weight: 700;
}

.non-embeddable-warning p {
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
}

.non-embeddable-warning .spoiler-warning {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #ff6b6b;
}

.non-embeddable-warning .spoiler-warning strong {
    color: #ff6b6b;
    font-size: 18px;
    display: block;
    margin-bottom: 12px;
}

.non-embeddable-warning .spoiler-list {
    text-align: left;
    margin: 15px auto;
    max-width: 400px;
    list-style: none;
    padding: 0;
}

.non-embeddable-warning .spoiler-list li {
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.non-embeddable-warning .spoiler-list li:last-child {
    border-bottom: none;
}

.non-embeddable-warning .score-revealed {
    background: rgba(16, 185, 129, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #10b981;
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
}

.non-embeddable-warning .score-warning {
    background: rgba(239, 68, 68, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ef4444;
    color: #fca5a5;
    font-weight: 600;
    font-size: 16px;
}

.youtube-button {
    display: inline-block;
    background: #FF0000;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 20px;
    margin: 20px 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.youtube-button:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.youtube-button:active {
    transform: translateY(0);
}

.non-embeddable-warning .video-info {
    font-size: 13px;
    margin-top: 20px;
    opacity: 0.7;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .non-embeddable-warning {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .non-embeddable-warning .warning-icon {
        font-size: 48px;
    }
    
    .non-embeddable-warning h3 {
        font-size: 22px;
    }
    
    .youtube-button {
        padding: 15px 30px;
        font-size: 18px;
    }
}

                /* Fix overlapping text in highlights tab */
.highlights-section {
    position: relative;
    z-index: 1;
}

.non-embeddable-warning {
    margin-top: 20px;
}

/* Remove the title and source when showing non-embeddable warning */
.highlights-section:has(.non-embeddable-warning) .highlights-title,
.highlights-section:has(.non-embeddable-warning) .highlights-source {
    display: none;
}

                /* ============================================ */
/* REDESIGNED MATCH CARD STYLES */
/* Add these to your style.css */
/* ============================================ */

.match-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;  /* Reduced vertical padding for compact look */
    gap: 15px;
    margin-bottom: 0;
}
/* Tabs container - make it stretch to align with thumbs down */
.info-tabs-always-visible {
    display: flex;
    gap: 8px;
    flex: 1;
    margin-right: 0;  /* ✅ No extra margin */
}


/* Ensure buttons and rating are EXACTLY the same height */
.info-tabs-always-visible .info-tab {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;  /* ✅ Buttons grow to fill space */
}
                
.info-tabs-always-visible .info-tab:hover {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.info-tabs-always-visible .info-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Algorithm rating on the right (inline with tabs) */
.prediction-score-inline {
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    min-width: 70px;  /* ✅ Match the width of vote section */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;  /* ✅ Small gap from tabs */
}

/* Mobile rating badge - shown next to thumbs buttons on mobile */
.prediction-score-mobile {
    display: none; /* Hidden on desktop */
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    min-width: 55px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    flex-shrink: 0;
}

/* Tab content panels - remove old show/hide button styles */
.match-info-panel {
    /* No padding at top since tabs are always visible */
}

/* Remove border from tab content */
.match-info-panel .tab-content {
    display: none;
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border-top: none;  /* ✅ No border */
}

.match-info-panel .tab-content.active {
    display: block;
}

/* Remove the old show match info button completely */
.show-info-btn-compact,
.details-btn {
    display: none !important;
}

/* Make vote buttons more prominent */
.match-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-btn-compact {
    font-size: 24px;
    padding: 8px 12px;
    background: rgba(100, 116, 139, 0.2);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.vote-btn-compact:hover:not(.disabled) {
    transform: scale(1.1);
    background: rgba(100, 116, 139, 0.3);
}

.vote-btn-compact.upvote.selected {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.vote-btn-compact.downvote.selected {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.vote-count-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.thumbs-up-count {
    color: #10b981;
}

.thumbs-down-count {
    color: #ef4444;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .match-info-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 4px 0;
    }

    .info-tabs-always-visible {
        width: 100%;
        gap: 6px;
        display: flex;
        flex-wrap: wrap; /* Allow tabs to wrap if needed */
    }

    .info-tabs-always-visible .info-tab {
        flex: 1 1 40%; /* Allow tabs to be flexible */
        text-align: center;
        font-size: 11px !important;
        padding: 6px 8px !important;
        height: auto !important;
        min-height: 32px;
        white-space: nowrap;
    }

    /* Hide desktop rating on mobile */
    .prediction-score-inline {
        display: none !important;
    }

    /* Show mobile rating next to thumbs buttons */
    .prediction-score-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 15px !important;
        min-width: 50px !important;
        padding: 5px 10px !important;
    }

    /* Compact match cards on mobile */
    .match-card-compact {
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
        border-radius: 8px;
    }

    .match-main-row {
        padding-bottom: 2px !important;
        gap: 8px !important;
    }

    /* Make match teams more compact */
    .match-teams-section {
        gap: 8px !important;
    }

    .team-name-compact {
        font-size: 14px !important;
        line-height: 1.2;
    }

    .match-score {
        font-size: 20px !important;
        padding: 4px 12px !important;
    }

    /* Fix cramped highlights tab on mobile */
    .tab-content {
        padding: 10px !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .highlights-section {
        padding: 10px !important;
        margin-top: 0 !important;
    }

    .highlights-title {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .highlights-source {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    .non-embeddable-warning {
        padding: 20px 15px !important;
        margin: 10px 0 !important;
    }

    .non-embeddable-warning h3 {
        font-size: 18px !important;
    }

    .non-embeddable-warning p {
        font-size: 13px !important;
    }

    .non-embeddable-warning .spoiler-list {
        font-size: 12px !important;
    }

    .youtube-button {
        padding: 14px 30px !important;
        font-size: 16px !important;
    }

    /* Make video wrapper more spacious */
    .video-wrapper-outer {
        margin-bottom: 15px !important;
    }

    /* Make title cover much shorter on mobile */
    .title-spoiler-cover-new {
        height: 40px !important;
    }

    .title-warning {
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    /* COMPACT spoiler cover on mobile so play button is visible */
    .cover-content {
        padding: 12px 10px !important;
        max-width: 100% !important;
    }

    .cover-icon {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }

    .cover-text {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }

    .cover-warning {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .play-video-btn-new {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    /* Make video wrapper fit better on mobile */
    .video-spoiler-cover-full {
        border-radius: 8px !important;
    }

    /* Ensure the cover doesn't overflow */
    .video-wrapper-outer {
        margin-bottom: 12px !important;
    }
}

/* Reduce match card height */
.match-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;  /* Compact vertical padding */
    gap: 15px;
}

/* Make buttons more compact */
.info-tabs-always-visible .info-tab {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 5px 12px;  /* Even more compact */
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

/* Match algorithm rating height to button height */
.prediction-score-inline {
    padding: 5px 16px;  /* Match tab button padding */
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 15px;  /* Slightly smaller */
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    line-height: 1.4;
}

.right-sidebar {
    display: none;
}
