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

:root {
    --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #f0f0f0;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-card: rgba(30, 30, 50, 0.95);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow: 0 5px 20px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    background: #667eea;
    color: white;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: left;
    color: #333;
    margin-bottom: 0;
    background: #ffffff !important;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: none;
    color: #333;
}

.hero-section p {
    font-size: 1rem;
    opacity: 1;
    color: #666;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: space-between;
    align-items: center;
}

.date-navigation {
    display: flex;
    gap: 0.5rem;
}

.date-nav-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.date-filter,
.league-filter,
.search-filter {
    position: relative;
}

.date-filter i,
.search-filter i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
}

.date-input,
.league-select,
.search-input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: none;
    border-radius: 25px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1rem;
    min-width: 200px;
}

.league-select {
    padding-left: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.ad-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border: 2px dashed #ddd;
}

.header-ad {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border: 2px dashed #ddd;
}

.main-section {
    min-width: 0;
}

.matches-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.sidebar-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: #667eea;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-count {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.matches-grid {
    display: grid;
    gap: 1.5rem;
}

.match-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.match-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.prediction-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px !important;
    overflow: hidden;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.badge {
    border-radius: 20px;
    font-weight: 600;
}

.progress {
    border-radius: 10px;
    background-color: rgba(255,255,255,0.3);
}

.progress-bar {
    border-radius: 10px;
}

.input-group-text {
    border-radius: 25px 0 0 25px;
    font-weight: 600;
}

.form-control {
    border-radius: 0 25px 25px 0;
}

.form-control:first-child {
    border-radius: 25px;
}

.navbar-brand {
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.league-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.match-time {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.teams-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.team-name {
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.team-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-top: 0.3rem;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.vs-text {
    background: #f8f9fa;
    color: #667eea;
    padding: 0.5rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prediction-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.prediction-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.prediction-result {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.3rem;
}

.prediction-confidence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.confidence-bar {
    width: 100px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    border-radius: 15px;
    margin: 20px;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
    color: #667eea;
}

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

.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.error i {
    font-size: 2rem;
    color: #f5576c;
}

.league-table {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
}

.team-position {
    font-weight: bold;
    color: #667eea;
    width: 30px;
}

.team-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-logo-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.team-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.news-container {
    max-height: 500px;
    overflow-y: auto;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.news-meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-card {
    cursor: pointer;
}

.click-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-card:hover .click-hint {
    opacity: 1;
}

.news-item {
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    color: #667eea;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #667eea;
}

.modal-body {
    padding: 1.5rem;
}

.details-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.h2h-matches {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.h2h-match {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: monospace;
}

.form-section {
    margin-bottom: 1rem;
}

.form-section h4 {
    margin-bottom: 0.5rem;
    color: #667eea;
}

.form-results {
    display: flex;
    gap: 0.5rem;
    font-family: monospace;
    font-weight: bold;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* News Page Styles */
.news-page {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card h3 {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card-meta {
    color: #666;
    font-size: 0.9rem;
}

.news-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
}

.article-content h1 {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.article-text {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

/* Match Page Styles */
.match-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.match-header-page {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.teams-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.team-display {
    text-align: center;
}

.team-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-display h2 {
    color: #333;
    margin: 0;
}

.vs-large {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.match-prediction-large {
    text-align: center;
}

.match-prediction-large h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.prediction-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.confidence-large {
    color: #666;
    font-size: 1.1rem;
}

.match-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.details-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.details-section h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.h2h-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.h2h-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.h2h-date {
    color: #666;
    font-weight: 500;
}

.h2h-result {
    font-family: monospace;
    font-weight: bold;
}

.form-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-form h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-badges {
    display: flex;
    gap: 0.5rem;
}

.form-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.form-badge.win {
    background: #28a745;
}

.form-badge.draw {
    background: #ffc107;
}

.form-badge.loss {
    background: #dc3545;
}

.stats-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.stat-label {
    font-weight: 500;
    color: #333;
}

.stat-home, .stat-away {
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.key-players {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-section h4 {
    color: #333;
    margin-bottom: 1rem;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.player-name {
    color: #333;
}

.player-stats {
    font-weight: bold;
    color: #667eea;
}

/* Leagues Page Styles */
.leagues-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.league-section {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.league-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.league-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.league-header h2 {
    flex: 1;
    margin: 0;
}

.country-flag {
    font-size: 2rem;
}

.league-table-full {
    padding: 1rem;
}

.table-header {
    display: grid;
    grid-template-columns: 50px 1fr 40px 40px 40px 40px 50px;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #f8f9fa;
    font-weight: bold;
    color: #667eea;
    border-bottom: 2px solid #e9ecef;
}

.table-row-full {
    display: grid;
    grid-template-columns: 50px 1fr 40px 40px 40px 40px 50px;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.table-row-full:hover {
    background: #f8f9fa;
}

.pos {
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.team-name {
    font-weight: 500;
}

.points {
    font-weight: bold;
    color: #28a745;
    text-align: center;
}

/* Statistics Page Styles */
.stats-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.stat-header i {
    font-size: 1.2rem;
}

.stat-header h3 {
    margin: 0;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rank {
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 600;
    color: #333;
}

.team-name {
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #667eea;
}

.accuracy-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accuracy-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accuracy-label {
    font-weight: 500;
    color: #333;
}

.accuracy-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.accuracy-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.form-guide {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-team {
    min-width: 150px;
    font-weight: 500;
    color: #333;
}

.form-results {
    display: flex;
    gap: 0.3rem;
    flex: 1;
}

.form-points {
    font-weight: bold;
    color: #667eea;
    min-width: 50px;
    text-align: right;
}

/* Dark Mode Bootstrap Overrides */
[data-theme="dark"] .card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table-dark {
    background-color: #2c3e50 !important;
}

[data-theme="dark"] .form-control {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-card) !important;
    border-color: #667eea !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

[data-theme="dark"] .input-group-text {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar {
        order: 2;
    }
    
    .main-section {
        order: 1;
    }
    
    .sidebar {
        order: 3;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-teams .vs {
        margin: 0;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .teams-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-divider {
        transform: rotate(90deg);
    }
    
    .teams-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-large {
        transform: rotate(90deg);
    }
    
    .match-details-grid {
        grid-template-columns: 1fr;
    }
    
    .leagues-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row-full {
        grid-template-columns: 30px 1fr 30px 30px 30px 30px 40px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-team {
        min-width: auto;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-brand i {
    font-size: 2rem;
    color: #667eea;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-container p {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
}

/* Live Scores Page Styles */
.livescores-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.live-matches-section,
.finished-matches-section,
.upcoming-matches-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
    font-weight: bold;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.live-match {
    border-left: 4px solid #dc3545;
}

.finished-match {
    border-left: 4px solid #28a745;
}

.upcoming-match {
    border-left: 4px solid #667eea;
}

.match-status {
    text-align: center;
    margin-bottom: 1rem;
}

.finished-status {
    background: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.upcoming-time {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

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

.match-teams .team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.match-teams .vs {
    margin: 0 1rem;
    font-weight: bold;
    color: #667eea;
}

.score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    min-width: 30px;
    text-align: center;
}