/* ==========================================================================
   Main Football Stylesheet
   ========================================================================== */

/*
 * 1. Common Components
 * 2. Page: Livescore & League Archive
 * 3. Page: Team Archive
 * 4. Page: Single Fixture
 * 5. Responsive Styles
 */


/* ==========================================================================
   1. Common Components
   ========================================================================== */

/* --- Tournament Bracket Styles --- */
.bracket-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}
.bracket-container {
    display: flex;
    flex-direction: row;
    min-width: fit-content;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 250px;
    min-width: 250px;
    flex-grow: 1;
    flex-shrink: 0;
}
/* --- Standings Group Header --- */
.standings-group-header,
.league-group-header {
    background-color: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}
.league-group-header {
    background: linear-gradient(135deg, #3a476a 0%, #2c3e50 100%) !important;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2) !important;
    border: none !important;
    color: #fff;
}

/* --- Tab Styles --- */
.fixture-tabs-container {
    margin-top: 2rem;
}
#league-tabs .nav-link,
#team-tabs .nav-link,
#fixture-tabs .nav-link {
    color: #4a5a94;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}
#league-tabs .nav-link:hover,
#team-tabs .nav-link:hover,
#fixture-tabs .nav-link:hover {
    border-bottom-color: #a3bffa;
    background-color: #f8faff;
    color: #667eea;
}
#league-tabs .nav-link.active,
#team-tabs .nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #fff;
}
#fixture-tabs .nav-link {
    border-radius: 0 !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#fixture-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-color: transparent;
}

/* --- Standings Table Styles --- */
.standings-table {
    border-collapse: separate;
    border-spacing: 0;
}
.standings-table th {
    background-color: #2c3e50; /* Dark Slate Blue */
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    border-bottom: 2px solid #4a5a94 !important;
    text-shadow: none;
}
.standings-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}
.standings-table .points-col {
    background-color: #f0f5ff;
    font-size: 1rem;
    color: #4a5a94;
}
.standings-table .form-col {
    min-width: 140px;
}
/* Override Bootstrap highlight colors for a more modern feel */
.standings-table tr.table-primary, .standings-table tr.table-primary:hover { background-color: #e3e7fa !important; }
.standings-table tr.table-info, .standings-table tr.table-info:hover { background-color: #dbeafe !important; }
.standings-table tr.table-warning, .standings-table tr.table-warning:hover { background-color: #fff4d6 !important; }

.standings-table .team-name-cell {
    min-width: 120px;
    max-width: 200px;
}

.date-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.6rem 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.date-group-header-small {
    font-size: 0.9rem; font-weight: 600; color: #495057;
    background-color: #f8f9fa; padding: 0.4rem 0.8rem;
    border-radius: 8px; margin: 0.75rem 0 0.5rem 0; text-align: center;
}

.date-group-divider,
.fixture-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    border: 0;
    opacity: 0.75;
}

/* --- Badges --- */
.badge { font-size: 0.8em; padding: 0.5em 0.8em; font-weight: 600; letter-spacing: 0.3px; }
.badge.rounded-pill { padding: 0.5em 1em; }
.badge i { font-size: 0.9em; }
.badge.bg-success { background: linear-gradient(135deg, #198754, #20c997) !important; border: 1px solid rgba(255,255,255,0.2); }
.badge.bg-warning { background: linear-gradient(135deg, #ffc107, #ffda6a) !important; border: 1px solid rgba(0,0,0,0.1); }
.badge.bg-danger { background: linear-gradient(135deg, #dc3545, #e85d75) !important; border: 1px solid rgba(255,255,255,0.2); }
.badge.bg-info { background: linear-gradient(135deg, #0dcaf0, #6edff6) !important; border: 1px solid rgba(255,255,255,0.2); }
.badge.bg-light { background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important; border: 1px solid rgba(0,0,0,0.1); }
.rating-badge {
    display: inline-block;
    min-width: 38px;
    padding: 0.35em 0.7em;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.5rem;
    background-color: #6c757d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.rating-excellent { background-color: #198754; }
.rating-good { background-color: #0dcaf0; }
.rating-poor { background-color: #dc3545; }
.rating-badge-small {
    display: inline-block;
    padding: 0.1em 0.4em;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 0.35rem;
    background-color: #6c757d;
    margin-left: 4px;
}
.rating-badge-small.rating-excellent { background-color: #198754; }
.rating-badge-small.rating-good { background-color: #0dcaf0; }
.rating-badge-small.rating-poor { background-color: #dc3545; }

/* --- Card Icons --- */
.card-icon {
    display: inline-block;
    width: 12px;
    height: 16px;
    border-radius: 2px;
    margin: 0 2px;
    vertical-align: middle;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.card-icon.yellow { background-color: #ffc107; }
.card-icon.red { background-color: #dc3545; }
.card-icon.yellow-red {
    background: linear-gradient(to bottom right, #ffc107 49%, #dc3545 51%);
}
.card-icon.player-stat-icon { margin: 0px; }
.card-icon-stat { 
    display: inline-block; 
    width: 10px; 
    height: 14px; 
    border-radius: 2px; 
    vertical-align: middle; 
}
.card-icon-stat.yellow { background-color: #ffc107; }
.card-icon-stat.red { background-color: #dc3545; }

/* --- Live Animations --- */
.live-dot { 
    display:inline-block;
    width:6px;
    height:6px;
    margin-right:4px;
    border-radius:50%;
    background:#ff6b6b;
    vertical-align:middle;
    animation:live-pulse-modern 1.5s infinite;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
}
@keyframes live-pulse-modern {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(255, 107, 107, 0.6); }
    50% { opacity: 0.4; transform: scale(0.8); box-shadow: 0 0 4px rgba(255, 107, 107, 0.3); }
}
.blink-apos {
  display: inline-block;
  margin-left: 2px;
  color: inherit;
  opacity: 1;
  animation: blink-apos 1s steps(1,end) infinite;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
  -webkit-text-stroke: 0.25px rgba(0,0,0,0.28);
}
@keyframes blink-apos {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.blink { animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }


/* ==========================================================================
   2. Page: Livescore & League Archive
   ========================================================================== */

/* --- Squad List Styles (from taxonomy-football_team.php - used here for consistency) --- */
.squad-list-container { padding-top: 1.5rem; }
.squad-player-card { display: flex; align-items: center; padding: 0.75rem; background-color: #fff; border: 1px solid #e9ecef; border-radius: 0.75rem; margin-bottom: 0.5rem; transition: all 0.2s ease-in-out; }
.squad-player-card:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.07); border-color: #c5d9f1; }
.player-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 1rem; background-color: #e9ecef; }
.player-number { font-size: 1.5rem; font-weight: 700; color: #667eea; width: 40px; text-align: center; margin-right: 1rem; }
.player-info .player-name { font-weight: 600; font-size: 1.1rem; color: #2c3e50; }
.player-info .player-position { font-size: 0.9rem; color: #6c757d; }
.squad-table {
    margin-bottom: 0; /* Remove default table margin */
}
.squad-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    font-size: 0.9rem;
    color: #495057;
    border-top: none;
}
.squad-table td {
    font-size: 0.95rem;
}
.player-photo-table,
.player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
}
.player-name-table {
    color: #2c3e50;
}
.squad-list-container .table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
/* Player Row Clickable */
.player-row-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.player-row-clickable:hover {
    background-color: #f8faff;
}
.player-row-clickable[aria-expanded="true"] {
    background-color: #eef2ff;
    border-bottom: 2px solid #667eea;
}

/* Collapsible Row */
.player-stats-collapse-row td {
    padding: 0 !important;
    border: none !important;
}
.player-stats-details {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}
.stat-detail-title {
    font-weight: 700;
    color: #4a5a94;
}
.league-stat-header {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}
.stat-box {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
}
.stat-box div { font-weight: 700; font-size: 1.1rem; }
.stat-box small { font-size: 0.75rem; color: #6c757d; text-transform: uppercase; }
.card-icon-stat { display: inline-block; width: 10px; height: 14px; border-radius: 2px; vertical-align: middle; }
.squad-table th.sortable {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}
.squad-table th.sortable:hover {
    background-color: #e9ecef;
}
.squad-table th.sortable::after {
    content: '\\f0dc'; /* fa-sort */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: opacity 0.2s ease;
}
.squad-table th.sortable:hover::after {
    opacity: 0.6;
}

/* --- Fixture Card --- */

/* Enhanced fixture card styles - Modern Design */
.fixture-card {
    transition: all 0.25s ease-in-out;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.07);
    margin-bottom: 0.5rem;
    border: 1px solid transparent; /* Use border for hover effect */
    overflow: hidden;
    position: relative;
}
.fixture-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(44, 62, 80, 0.1);
    border-color: #e0e6ed;
}
.fixture-card::before {
    /* Removing the top gradient line on hover for a cleaner look */
    display: none;
}
.fixture-card:hover::before {
    opacity: 1;
}

/* League header styling - Modern Gradient */
/* The inline styles in livescore.php for .fixture-league should be removed. */
/* This is a fallback/override for a cleaner look. */
.fixture-league {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.fixture-league img {
    height: 20px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 2px;
}
.fixture-league span {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Modern Match Status Box - Vibrant Colors */
.match-status-box {
    font-size: 12px;
    letter-spacing: 0.5px;
    min-width: 60px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16,24,40,0.06);
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: none;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.match-status-box:hover {
    transform: scale(1.05) rotate(1deg);
}

/* New animation for live match glow effect */
@keyframes live-glow-effect {
    0%, 100% {
        box-shadow: 0 0 12px rgba(229, 57, 53, 0.2), inset 0 0 0 1px #ffcdd2;
    }
    50% {
        box-shadow: 0 0 20px rgba(229, 57, 53, 0.35), inset 0 0 0 1px #ef9a9a;
    }
}

/* Semantic status colors - REFINED for LIVE status */
.match-status-box.status-live {
  background: #ffffff !important; /* White background, no red */
  color: #c62828 !important; /* Red text */
  border: 1px solid transparent !important; /* Border is handled by shadow animation */
  animation: live-glow-effect 2s infinite ease-in-out;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 8px !important;
}

/* Center the live dot and time text vertically */
.match-status-box.status-live > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* All text inside a live box should be red */
.match-status-box.status-live > div, 
.match-status-box.status-live span, 
.match-status-box.status-live small {
  color: #c62828 !important;
  text-shadow: none;
  -webkit-text-stroke: 0; /* Reset stroke */
  text-rendering: optimizeLegibility;
}

.match-status-box.status-live::before {
  display: none;
}

/* Refined live dot - use red color */
.match-status-box.status-live .live-dot {
    background: #e53935;
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.7);
    animation: live-pulse-red 1.5s infinite;
}

/* Refined time text - use a strong red color */
.match-status-box.status-live .status-time-text {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  color: #b71c1c !important; /* Darker red for emphasis */
  text-shadow: none !important;
  line-height: 1;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  -webkit-text-stroke: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

@keyframes live-pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(229, 57, 53, 0.7); }
    50% { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 4px rgba(229, 57, 53, 0.4); }
}

@media (max-width: 767.98px) {
  .match-status-box.status-live .status-time-text {
    font-size: 14px !important;
    padding: 0 !important; /* Reset padding */
  }
}
.match-status-box.status-ht {
  background: linear-gradient(135deg, #ffd166 0%, #ffca69 100%) !important;
  color: #2c2c2c !important;
  box-shadow: 0 4px 12px rgba(255,193,7,0.1) !important;
  border: none !important;
}
.match-status-box.status-postponed {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(113, 128, 150, 0.15) !important;
}
.match-status-box.status-scheduled {
  background: linear-gradient(135deg, #fdfdff 0%, #f7f9fc 100%) !important;
  color: #4a5a94 !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}
.match-status-box.status-default {
  background: linear-gradient(135deg, #eef2ff 0%, #f6f8ff 100%) !important;
  color: #23304a !important;
}

.match-status-box .live-dot-small { 
  width: 8px; height:8px; display:inline-block; border-radius:50%; margin-bottom:2px; margin-right:6px;
  background: radial-gradient(circle at 40% 35%, #fff 0%, #ffdcdc 30%, #ff7b7b 60%);
  box-shadow: 0 0 10px rgba(255,120,120,0.6), inset 0 1px 2px rgba(255,255,255,0.5);
}

/* Team styling improvements - Better Typography */
.fixture-teams .team-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #2c3e50;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.fixture-teams a:hover .team-name {
    color: #e53935; /* Highlight with live color on hover */
}
.fixture-teams img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    object-position: center;
    margin-right: 10px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.fixture-teams a:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Enhanced scoreboard - clearer high-contrast numbers */
.scoreboard-vertical .score-box.modern-score {
  font-size: 16px;
  font-weight: 800;
  color: #2c3e50;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.22s ease;
  letter-spacing: 0.4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.scoreboard-vertical .score-box.modern-score:hover {
  transform: scale(1.1);
  color: #e53935;
}

/* Vertical divider between time/status and teams - SIMPLIFIED design */
.fixture-vertical-divider {
  width: 1px; /* Make it a simple line */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  margin: 0 16px; /* Give it some space */
}
.fixture-vertical-divider .divider-line {
  width: 100%;
  height: 50px; /* Set height of the line */
  background: #e0e6ed; /* Simple, clean color */
  border-radius: 1px;
}
.fixture-vertical-divider .divider-line.divider-live {
  background: linear-gradient(to bottom, #ff8a8a, #e53935, #ff8a8a); /* Red gradient for live */
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.3);
}

/* Live animation enhancement - Modern Glow */
.live-dot-small {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 4px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse-glow 1.5s infinite;
    box-shadow: 0 0 8px rgba(255,255,255,0.8), 0 0 12px rgba(255,255,255,0.6);
}
@keyframes live-pulse-glow {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255,255,255,0.8), 0 0 12px rgba(255,255,255,0.6);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(0.8);
        box-shadow: 0 0 4px rgba(255,255,255,0.4), 0 0 8px rgba(255,255,255,0.3);
    }
}

/* Modern Divider with Gradient */
.league-group-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #667eea 20%, #764ba2 80%, transparent 100%);
    margin: 25px 0 35px 0;
    opacity: 0.7;
    border-radius: 2px;
    position: relative;
}
.league-group-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 7px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    opacity: 0.3;
}

/* Container improvements */
#fixtures-container {
    font-size: 14px;
    padding: 0 8px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-radius: 12px;
}

.sort-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}
.sort-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}
.sort-btn:hover::before {
    left: 100%;
}
.sort-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.sort-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.sort-btn i {
    font-size: 13px;
    margin-right: 6px;
}
#sort-info {
    opacity: 0.8;
    font-style: italic;
    color: #667eea;
    font-weight: 500;
}

/* Better text truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SEO Content Area Styling */
.seo-content-revamp {
    background-color: #f8f9fa; /* Light gray background */
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}
.seo-content-revamp .feature-item {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
.seo-content-revamp .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.seo-content-revamp .feature-item i {
    transition: transform 0.3s ease;
}
.seo-content-revamp .feature-item:hover i {
    transform: scale(1.1) rotate(-5deg);
}
.seo-content-revamp .accordion-item {
    background-color: transparent;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
}
.seo-content-revamp .accordion-button {
    font-weight: 600;
    color: #212529;
}
.seo-content-revamp .accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
    box-shadow: none;
}
.seo-content-revamp .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Key Features Section Alt Styling */
.key-features-section-alt {
    background-color: #f8f9fa;
    border-radius: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.feature-item-alt {
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e9ecef;
}
.feature-item-alt:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15) !important;
}
.feature-icon-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 1rem; /* Softer, squircle shape */
    font-size: 1.6rem;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease-in-out;
}
.feature-item-alt:hover .feature-icon-alt {
    transform: scale(1.1) rotate(-8deg) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

/* --- Styles from single-football.php --- */

/* From id="match-goal-styles" */
.goal-badge{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-weight:600}
.goal-item{overflow:hidden}
.goal-item .fw-semibold{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.goal-row .col-6{min-height:46px}

/* From id="custom-rating-badge-styles" */
.player-position {
    position: relative; /* Ensure this is set for absolute positioning of children */
}
.on-pitch-rating {
    position: absolute;
    top: 50%;
    left: 50%;
    /* The player marker is 42px wide (radius 21px).
       Translate left by 100% of badge width + marker radius to place it to the left. */
    transform: translate(calc(-100% - 21px), -50%);
    z-index: 15;
}

/* From unnamed style block */
/* Enhanced animations and effects */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Custom gradient backgrounds */
.bg-gradient {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0)) !important;
}

/* Enhanced card hover effects */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Enhanced badges */
.badge {
    font-size: 0.8em;
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge.rounded-pill {
    padding: 0.5em 1em;
}

.badge i {
    font-size: 0.9em;
}

/* Enhanced badge colors */
.badge.bg-success {
    background: linear-gradient(135deg, #198754, #20c997) !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffda6a) !important;
    border: 1px solid rgba(0,0,0,0.1);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e85d75) !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #6edff6) !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Enhanced text styling */
.text-primary {
    color: #0d6efd !important;
    font-weight: 600;
}

.text-dark {
    color: #212529 !important;
    font-weight: 500;
}

.text-muted.small {
    font-size: 0.85em;
    font-style: italic;
}

/* Icon styling */
.fas.fa-home,
.fas.fa-plane {
    font-size: 1.2em;
}

/* Enhanced lineup styles for football pitch */
.lineups-container {
    font-size: 12px;
    padding: 0px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    margin-bottom: 30px;
}

.pitch-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: linear-gradient(180deg, #2a623d 0%, #3a8a53 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.football-pitch {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 170%;
    background: 
        linear-gradient(to bottom, 
            rgba(255,255,255,0.05) 0%, 
            rgba(255,255,255,0) 5%,
            rgba(255,255,255,0) 95%,
            rgba(255,255,255,0.05) 100%
        ),
        repeating-linear-gradient(to bottom, 
            #34a853 0, #34a853 10%, 
            #3cba54 10%, #3cba54 20%
        );
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

.pitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.halfway-line {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: rgba(255,255,255,0.6);
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20%;
    height: 0;
    padding-bottom: 20%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    transform: translate(-50%, -50%);
}

.penalty-area {
    position: absolute;
    left: 50%;
    width: 70%;
    height: 18%;
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    transform: translateX(-50%);
}
.penalty-area-top { top: 0; border-top: none; }
.penalty-area-bottom { bottom: 0; border-bottom: none; }

.goal-area {
    position: absolute;
    left: 50%;
    width: 35%;
    height: 6%;
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    transform: translateX(-50%);
}
.goal-area-top { top: 0; border-top: none; }
.goal-area-bottom { bottom: 0; border-bottom: none; }

.position-group {
    position: absolute;
    display: flex;
    justify-content: space-around;
    width: 100%;
    z-index: 10;
}
.position-group.away-team {
    flex-direction: row-reverse;
}
/* Use more specific selectors for goalkeepers to override general .player-position styles */
.player-position.goalkeeper {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Let it size to its content (the marker) */
    z-index: 15;
}
.defenders { top: 18%; }
.midfielders { top: 32%; }
.attacking-midfielders { top: 38%; }
.forwards { top: 44%; }

.player-position.goalkeeper-away {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Let it size to its content (the marker) */
    z-index: 15;
}
.forwards-away { bottom: 44%; }
.attacking-midfielders-away { bottom: 38%; }
.midfielders-away { bottom: 32%; }
.defenders-away { bottom: 18%; }

.formation-4-part .defenders { top: 15%; }
.formation-4-part .midfielders { top: 24%; }
.formation-4-part .attacking-midfielders { top: 34%; }
.formation-4-part .forwards { top: 44%; }

.formation-3-part .defenders { top: 15%; }
.formation-3-part .midfielders { top: 28%; }
.formation-3-part .forwards { top: 40%; }

.formation-4-part-away .defenders-away { bottom: 15%; }
.formation-4-part-away .midfielders-away { bottom: 24%; }
.formation-4-part-away .attacking-midfielders-away { bottom: 32%; }
.formation-4-part-away .forwards-away { bottom: 40%; }

.formation-3-part-away .defenders-away { bottom: 15%; }
.formation-3-part-away .midfielders-away { bottom: 28%; }
.formation-3-part-away .forwards-away { bottom: 40%; }

.player-position {
    text-align: center;
    width: 100%;
    max-width: 70px;
    margin: 0 auto;
    transition: transform 0.2s ease-in-out;
}
.player-position:hover {
    transform: scale(1.15);
    z-index: 15;
}

.player-marker {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.2);
    border: 2px solid #fff;
    background-color: #e9ecef; /* Fallback color for when photo fails to load */
}

.player-number {
    font-weight: 900;
    color: #fff;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    font-family: 'Arial Black', sans-serif;
}
.player-marker[style*="background-image"] .player-number { display: none; } /* Hide number if photo exists */

.player-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    width: max-content;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    opacity: 1; /* Always visible */
    z-index: 10;
    text-align: center;
}

.player-event-icons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    backdrop-filter: blur(2px);
}

/* --- Highlight Goal Scorer Icon on Pitch (Styled to match timeline goal animation) --- */
.player-event-icons .fa-futbol {
    /* Reset any previous badge/orb styling */
    display: inline-block; /* Required for transform animations */
    width: auto;
    height: auto;
    border: none;
    box-shadow: none;
    position: static;
    font-size: 1.5em; /* Make it larger to stand out */

    /* Make icon white and remove gradient for better visibility */
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;

    /* Use a new glowing animation for prominence */
    animation: goal-icon-glow 1.5s infinite ease-in-out;
    transform-origin: center;
}

.home-name { bottom: 100%; margin-bottom: 5px; top: auto; }
.home-events { top: 100%; margin-top: 4px; }
.away-name { top: 100%; margin-top: 5px; bottom: auto; }
.away-events { bottom: 100%; margin-bottom: 4px; }

.teams-info {
    position: relative;
    margin-bottom: 1rem;
}
.team-home, .team-away-bottom {
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}
.team-home .badge, .team-away-bottom .badge {
    font-size: 0.9rem;
}
.team-formation {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
    color: #fff;
    font-weight: 500;
    margin-top: 2px;
}
.team-away-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

.substitutes-list-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 20px;
}
.substitutes-list-container h5 {
    color: #0d6efd;
}
.substitutes-list-container .player-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.substitutes-list-container .player-name-list {
    font-size: 0.9em;
}

/* Fix masthead not flush to top (force all wrappers to be flush) */
.site-content,
.container,
.row,
.col-12,
.col-xl-10,
main.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove top padding from Bootscore content spacer if present */
.py-4, .pt-4 {
    padding-top: 0 !important;
}

/* Responsive: prevent pitch overflow on small screens */
@media (max-width: 767.98px) {
    /* --- General Adjustments for Tablets & Smaller --- */
    #fixture-header .card-body {
        padding: 1.5rem; /* Reduce padding */
    }
    #fixture-details .card-body {
        padding: 1.5rem;
    }
    .goal-item { padding: 10px; }
    .goal-item.goal-home { justify-content: flex-start !important; text-align: left !important; }
    .goal-item.goal-away { justify-content: flex-end !important; text-align: right !important; }
    .goal-minute-prefix { min-width: 34px; padding: 3px 6px; font-size: 0.82rem; }
    .goal-item > .flex-grow-1 { max-width: calc(100% - 100px); }
    .goal-player { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* --- Make Tabs Horizontally Scrollable --- */
    #fixture-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        scrollbar-width: none; /* Firefox */
    }
    #fixture-tabs::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    #fixture-tabs .nav-item {
        flex-shrink: 0;
    }
    #fixture-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    /* --- General Adjustments for Mobile Phones --- */
    #fixture-header .card-body,
    #fixture-details .card-body {
        padding: 1rem;
    }
    .btn-lg { /* Adjust back button size */
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* --- Mobile Team/Score Header --- */
    .team-mobile-logo { height: 50px; width: 50px; }
    .team-mobile-card h6 { font-size: 0.85rem; }
    .single-fixture-header .score-box { 
        min-width: 48px; 
        min-height: 40px; 
    }
    .single-fixture-header .score-number { 
        font-size: 1.8rem; 
    }
    #match-status-mobile .badge { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
    #fixture-tabs .nav-link {
        padding: 0.75rem 0.8rem;
        font-size: 0.85rem;
    }

    /* --- Lineups Pitch --- */
    .pitch-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #e9ecef;
        background: linear-gradient(135deg, #f0f9ff, #e9f2f9);
    }
    .football-pitch {
        min-width: 340px; /* Prevent squishing */
    }
    .player-marker { width: 40px; height: 40px; }
    .player-number { font-size: 10px; }
    .player-name { font-size: 9px; padding: 2px 4px; }

    /* --- Player Stats (Mobile) --- */
    .player-stats-grid-row { padding: 0.5rem; }
    .player-photo { width: 36px; height: 36px; }
    .player-name-stats { font-size: 0.9rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-value { font-size: 0.85rem; }
    .rating-badge { font-size: 0.8rem; padding: 0.3em 0.6em; }

    /* --- H2H Tab (Mobile) --- */
    .h2h-fixture-card { padding: 0.5rem; }
    .h2h-team-logo { height: 18px; width: 18px; }
    .h2h-fixture-card .team-name { font-size: 0.85rem; }
    .h2h-fixture-card .score-box { font-size: 0.9rem; }
    .h2h-fixture-card .match-status-box { min-width: 45px; min-height: 45px; }
}

/* From id="single-football-stats-styles" */
.full-width-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-top: 2.5rem;
}
.full-width-section + .full-width-section {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}
.stats-container {
    padding: 1rem;
}
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}
.stats-team-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}
.stats-team-badge img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}
.stat-item {
    margin-bottom: 1.25rem;
}
.stat-item:last-child {
    margin-bottom: 0;
}
.stat-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.stat-value-home, .stat-value-away {
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
    text-align: center;
    color: #343a40;
}
.stat-label {
    color: #495057;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    padding: 0 0.5rem;
}
.stat-bar-container {
    display: flex;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid transparent;
    border-image-source: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
    border-image-slice: 1;
    direction: ltr;
}
.stat-bar-home {
    border-radius: 4px 0 0 4px;
    transition: width 0.5s ease-in-out;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}
.stat-bar-away {
    border-radius: 0 4px 4px 0;
    transition: width 0.5s ease-in-out;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}
.stat-bar-home[style*="width: 100%"] { border-radius: 4px; }
.stat-bar-away[style*="width: 100%"] { border-radius: 4px; }
.stat-bar-home[style*="width: 0%"] + .stat-bar-away { border-radius: 4px; }
.player-stats-card {
    background-color: #ffffff;
    border: none;
}
.player-stats-card .card-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border-bottom: 1px solid #dee2e6;
}
.player-stats-grid-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #6c757d;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}
.player-stats-grid-row {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}
.player-stats-grid-row:last-child {
    border-bottom: none;
}
.player-stats-grid-row:hover {
    background-color: #f8faff;
}
.player-number-col {
    font-weight: 700;
    color: #6c757d;
    flex: 0 0 40px;
}
.player-info-col {
    flex-grow: 1;
    min-width: 0;
}
.player-stats-grid-row .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.player-stats-grid-row .stat-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
}
.player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.player-stat-icon {
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 2px;
}
.substitution-icon {
    font-size: 0.9em;
    vertical-align: middle;
    margin-left: 5px;
}
.player-stats-separator {
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    text-align: center;
    background-color: #f8faff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.player-stats-separator .separator-text {
    font-weight: 700;
    color: #667eea;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 991.98px) {
    .player-stats-grid-row {
        background-color: #fdfdff;
        border: 1px solid #e9ecef;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .player-info-wrapper {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px dashed #dee2e6;
    }
    .player-stat-item {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

/* From id="custom-tab-styles" */
#fixture-details .card-header {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
#fixture-tabs .nav-link {
    color: #4a5a94;
    font-weight: 600;
    border-radius: 0 !important;
    border: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
}
#fixture-tabs .nav-link:hover {
    color: #667eea;
    background-color: #f8f9fa;
}
#fixture-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-color: transparent;
}

/* From id="single-football-substitutes-styles" */
.substitutes-section {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
}
.substitute-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}
.substitute-card .card-header {
    border-width: 2px;
    border-style: solid;
    border-top: none;
    border-left: none;
    border-right: none;
}
.team-logo-sub {
    height: 28px;
    width: 28px;
    object-fit: contain;
}
.substitute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}
.substitute-item:hover {
    background-color: #f0f5ff;
}
.substitute-item.coach {
    background-color: #f8f9fa;
    font-weight: 600;
}
.sub-player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.sub-player-photo, .coach-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    background-color: #e9ecef;
}
.sub-player-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.sub-player-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-icon {
    width: 32px;
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    flex-shrink: 0;
}
.sub-player-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.sub-player-events {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.substitute-team-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.substitutes-divider .line {
    height: 2px;
    background-color: #adb5bd;
}
.substitutes-divider .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #adb5bd;
}

/* From id="timeline-event-styles" */
.timeline-container {
    position: relative;
    padding: 1rem 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #e9ecef;
    border-radius: 3px;
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 1rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-content {
    width: calc(50% - 30px);
}
.timeline-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.timeline-time {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #495057;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.timeline-content-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border-left: 4px solid var(--team-color, #6c757d);
}
.timeline-item.away .timeline-content-inner {
    border-left: none;
    border-right: 4px solid var(--team-color, #6c757d);
}
.timeline-item.home .timeline-content {
    text-align: right;
}
.timeline-item.home .timeline-content-inner {
    flex-direction: row-reverse;
}
.event-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--team-color, #6c757d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.event-details {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.event-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #fff;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.timeline-item.home .event-details {
    flex-direction: row-reverse;
}
.event-player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.event-player-photo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    flex-shrink: 0;
    border: 1px solid #ddd;
}
.event-player-name {
    font-weight: 600;
    color: #212529;
}
.timeline-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}
.timeline-divider span {
    background-color: #e9ecef;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}
.player-score-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}
.goal-timeline-score {
    font-weight: 700;
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
}
.timeline-content-inner.is-goal-event {
    background: linear-gradient(135deg, #e3e7fa, #e6e1f7);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    border-left-color: #667eea;
    transform: scale(1.03);
    animation: goal-card-pop 2s infinite alternate;
}
@keyframes goal-card-pop {
    from {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    }
}
.timeline-item.away .timeline-content-inner.is-goal-event {
    border-right-color: #667eea;
    border-left-color: transparent;
}
.timeline-content-inner.is-goal-event .event-icon {
    background: linear-gradient(135deg, #ffffff, #ffffff); /* Gold gradient */
    box-shadow: 0 0 25px rgba(137, 46, 255, 0.8), inset 0 1px 2px rgba(215, 191, 255, 0.7); /* Gold glow + inner highlight */
    transform: scale(1.2); /* Make it a bit larger */
    border: 2px solid #fff;
    color: #000000; /* Dark color for icon on gold background */
}
.goal-icon-animated {
    animation: goal-pulse 1.5s infinite ease-in-out;
}
@keyframes goal-pulse {
    0%, 100% { transform: scale(1) rotate(0); text-shadow: none; }
    50% { transform: scale(1.4) rotate(-20deg); text-shadow: 0 2px 4px rgba(0,0,0,0.4); }
}
@keyframes goal-icon-glow {
    0%, 100% {
        transform: scale(1.1);
        text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 12px #ffeb3b, 0 0 16px #ffeb3b;
    }
    50% {
        transform: scale(1.3);
        text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 24px #ffeb3b, 0 0 32px #ffeb3b;
    }
}
@media (max-width: 767.98px) {
    .timeline-container::before {
        left: 20px;
        transform: none;
    }
    .timeline-item {
        flex-direction: column; 
        align-items: flex-start;
        padding-left: 40px;
    }
    .timeline-marker {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .timeline-content {
        width: 100%;
    }
    .timeline-content:empty {
        display: none;
    }
    .timeline-item.home .timeline-content,
    .timeline-item.away .timeline-content {
        text-align: left;
    }
    .timeline-item.home .timeline-content-inner,
    .timeline-item.away .timeline-content-inner {
        flex-direction: row;
        border-left: 4px solid var(--team-color, #6c757d);
        border-right: none;
    }
    .timeline-item.home .event-details,
    .timeline-item.away .event-details {
        flex-direction: row;
    }
}

/* --- Additional Styles from livescore.php --- */
.score-box { background: #fff; border: 1px solid rgba(0,0,0,0.125); border-radius: 0.35em; min-width: 28px; min-height: 18px; margin: 0; font-size: 14px; font-weight: 500; color: #0d6efd; letter-spacing: 1px; display: inline-block; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.07); transition: color 0.3s;}
.score-box.goal-flash { color: #dc3545 !important; transform: scale(1.2); background-color: #fff3cd; }
.scoreboard-vertical[data-scoreboard="0"] { display: none !important; }
.scoreboard-vertical .score-box + .score-box { margin-top: 1px; }
.text-scores { display: block; }
.scoreboard-vertical[data-scoreboard="1"] + .text-scores { display: none; }
.event-list-custom { font-size: 12px; color: #333; }
.event-list-custom div { margin-bottom: 4px; }
.scoreboard-vertical.scoreboard-finished .score-box { color: #34495e !important; text-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.sort-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
}
.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}
.form-win { background-color: #28a745; }
.form-draw { background-color: #ffc107; color: #212529; }
.form-lose { background-color: #dc3545; }
.player-name-stats { font-weight: 600; color: #212529; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.single-fixture-header .score-box{min-width:72px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,0.06);box-shadow:0 4px 14px rgba(18,38,63,0.03)}
.single-fixture-header .score-number{font-size:2.2rem;line-height:1;color:#212529}
.single-fixture-header .match-score-center {
    gap: 1rem;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    border: 1px solid #e9ecef;
}
.single-fixture-header .score-box {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    min-width: 90px;
    min-height: 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.single-fixture-header .score-number {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
}
.single-fixture-header .score-vs {
    font-size: 2rem;
    font-weight: 700;
    color: #adb5bd;
}

/* --- Final Cleanup & Merging --- */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.bg-gradient {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0)) !important;
}
.fixture-card *, .kickoff-time-box, .fixture-time-box, .score-box {
    transition: all 0.2s ease;
}
.match-status-box.finished {
  background: #f2f2f2 !important;
  color: #6c6c6c !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06) !important;
}
.match-status-box.upcoming {
  background: #fbfbff !important;
  color: #2c3e50 !important;
  border: 1px solid rgba(44,62,80,0.06) !important;
  box-shadow: 0 2px 8px rgba(44,62,80,0.04) !important;
}
.match-status-box.status-finished {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%) !important;
  color: #495057 !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
}
.league-group {
  margin-top: 1.5rem;
}
.league-group .fixture-card.grouped {
  border-radius: 0 0 12px 12px;
  border-top: none;
  margin: 0;
  box-shadow: 0 8px 16px -4px rgba(44, 62, 80, 0.08); /* Shadow only downwards */
}
.league-group .fixture-card.grouped + .fixture-card.grouped {
  margin-top: 2px; /* Slightly more space between grouped cards */
}
.league-group-header {
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

/* ==========================================================================
   7. Debug Box Styles
   ========================================================================== */
#football-debug-container .accordion-button {
    background-color: #fffbe6;
    color: #664d03;
    font-weight: 600;
}
#football-debug-container .accordion-button:not(.collapsed) {
    background-color: #ffecb3;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
#football-debug-container .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}
#football-debug-container .accordion-body {
    font-size: 0.85rem;
    background-color: #fffcf2;
}
#football-debug-container .debug-section-title {
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.75rem;
}
#football-debug-container code {
    background-color: #e9ecef;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 90%;
    color: #212529;
    word-break: break-all;
}
.debug-dl dt {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}
.debug-dl dd {
    margin-left: 1rem;
    margin-bottom: 0.75rem;
}
.debug-dl-nested { font-size: 0.95em; }
}

/* Extra Score Info (Penalties, AET) */
.extra-score-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-top: 4px;
}


/* ==========================================================================
   Header Styles (Moved from header.php)
   ========================================================================== */

/* --- Premium Header Style --- */
.site-header.site-header-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    padding: 0.25rem 0; /* Add some vertical padding */
}

/* --- Logo with Icon --- */
.navbar-brand.logo-text {
  font-family: 'Prompt', sans-serif;
  font-size: 1.6rem; /* Slightly smaller to accommodate icon */
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}
.navbar-brand.logo-text:hover {
  transform: scale(1.03); /* More subtle hover */
}
.logo-text .logo-icon {
    font-size: 1.7rem; /* Slightly adjusted */
    margin-right: 0.75rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.navbar-brand.logo-text:hover .logo-icon {
    transform: rotate(360deg);
}
.logo-text .logo-string {
    /* Changed from gradient to solid white for better contrast */
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- Navigation Links (Pill Style) --- */
#nav-main .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    padding: 0.6rem 1.2rem; /* Padding for the pill shape */
    margin: 0 0.25rem;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    z-index: 1;
}
#nav-main .navbar-nav .nav-link:hover,
#nav-main .navbar-nav .nav-link.active,
#nav-main .navbar-nav .show > .nav-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
#nav-main .navbar-nav .nav-link::after {
    display: none; /* Remove old underline effect */
}

/* --- Header Actions & Toggler --- */
.header-actions .btn {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-width: 1px;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}
.header-actions .btn:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.15);
}
.header-actions .nav-toggler {
    color: #fff;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Offcanvas Menu --- */
.offcanvas.offcanvas-end {
    background-color: #2c2a3e; /* Dark purple, complementary to the header gradient */
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.offcanvas .offcanvas-title {
    color: #ffffff;
    font-weight: 800;
}
.offcanvas .offcanvas-body .navbar-nav .nav-link {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
}
.offcanvas .offcanvas-body .navbar-nav .nav-link:hover,
.offcanvas .offcanvas-body .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================================================
   6. Sidebar Styles
   ========================================================================== */
.widget-area {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}

.sidebar-widget {
    background-color: transparent;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sidebar-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to left, #667eea, #764ba2);
}

/* Search Widget */
.sidebar-search-widget {
    padding: 0;
    background: none;
    box-shadow: none;
}
.search-form {
    position: relative;
}
.search-field {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.search-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.search-submit:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Popular Leagues Widget */
.popular-leagues-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.league-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.league-link:hover {
    background-color: #f5f7ff;
    color: #667eea;
    border-color: #dbe1ff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}
.league-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: transparent;
    transform: translateY(-2px);
}
.league-link.active .league-icon-wrapper {
    color: #fff;
}
.league-link::before {
    content: attr(data-text);
    position: absolute;
    right: 0;
    bottom: -20px;
    font-size: 3rem;
    font-weight: 800;
    color: #f0f2f5;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
    white-space: nowrap;
}
.league-link:hover::before {
    opacity: 1;
    transform: translateX(5px);
}
.league-link > * {
    position: relative;
    z-index: 1;
}
.league-icon-wrapper { width: 32px; text-align: center; font-size: 1.2rem; margin-right: 0.75rem; }
.league-icon-img { height: 24px; width: 24px; object-fit: contain; }

/* Top Scorers Widget */
.scorer-item { display: flex; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #f1f3f5; }
.scorer-item:last-child { border-bottom: none; }
.scorer-rank { font-weight: 700; color: #adb5bd; width: 24px; text-align: center; }
.scorer-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin: 0 0.75rem; }
.scorer-info { flex-grow: 1; min-width: 0; }
.scorer-name { font-weight: 600; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer-team { font-size: 0.8rem; color: #6c757d; }
.scorer-goals { font-size: 1.2rem; font-weight: 800; color: #28a745; }

/* ==========================================================================
   8. Page: About Us
   ========================================================================== */

.our-mission-section .mission-icon-bg {
    position: relative;
    display: inline-block;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
}
.our-mission-section .mission-icon-bg::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    animation: pulse-ring 2.5s infinite ease-in-out;
}
.our-mission-section .mission-icon-bg i {
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

.about-feature-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}
.about-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.1);
    border-color: #c5d9f1;
}
.about-feature-card .feature-icon-alt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25);
}

.our-philosophy-section {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.cta-button {
    transition: all 0.3s ease-in-out;
    font-weight: 700;
}
.cta-button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

/* ==========================================================================
   9. Page: Fixtures
   ========================================================================== */
.fixture-date-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}
.fixture-date-header.is-today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.accordion-item {
    border: none;
    background-color: transparent;
}
.accordion-header .accordion-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border-radius: 12px !important;
}
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fbff 100%);
    color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15), inset 0 -2px 0 #667eea;
}
.accordion-body {
    padding: 0;
    margin-top: -10px; /* Pull content up slightly */
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
}

/* Top Scorers Tab Styles */
.top-scorers-list .scorer-item {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease-in-out;
}
.top-scorers-list .scorer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.scorer-photo-placeholder {
    width: 36px; height: 36px; border-radius: 50%; margin: 0 0.75rem;
    background-color: #e9ecef; display: flex; align-items: center; justify-content: center; color: #adb5bd;
}
.scorer-team-logo {
    height: 16px; width: 16px; object-fit: contain; margin-right: 4px; vertical-align: middle;
}
.scorer-stats {
    display: flex;
    gap: 1rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-align: center;
}
.scorer-stats i { color: #6c757d; }
.scorer-stats .scorer-goals { font-size: 1rem; color: #198754; font-weight: 700; }

/* --- Top Scorers Table Styles --- */
.topscorers-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.topscorers-table th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    border-bottom: 2px solid #4a5a94 !important;
}
.topscorers-table .player-photo-table {
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.topscorers-table .text-success {
    font-size: 1.1rem;
}

/* --- All Leagues/Teams Page Styles --- */
.league-grid, .team-grid {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.league-card, .team-card {
    transition: all 0.3s ease-in-out;
    border-radius: 1rem;
    overflow: hidden;
}

.league-card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15) !important;
}

.league-card .card, .team-card .card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    transition: border-color 0.3s ease;
}

.league-card:hover .card, .team-card:hover .card {
    border-color: #667eea;
}

.league-card-logo, .team-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}