/* ==============================================
   Chance Liga Prediktor — Dark Theme CSS
   ============================================== */

/* --- CSS Variables --- */
:root {
    --bg: #0f1923;
    --bg-lighter: #152230;
    --card: #1a2836;
    --card-hover: #243447;
    --card-border: #2a3a4a;
    --accent: #00e676;
    --accent-dim: #00c853;
    --accent-bg: rgba(0, 230, 118, 0.1);
    --text: #e0e0e0;
    --text-muted: #8899aa;
    --text-heading: #ffffff;
    --positive: #00e676;
    --negative: #ff5252;
    --warning: #ffab00;
    --link: #4fc3f7;
    --link-hover: #81d4fa;
    --ucl-green: rgba(0, 230, 118, 0.15);
    --ucl-border: #00e676;
    --relegation-red: rgba(255, 82, 82, 0.15);
    --relegation-border: #ff5252;
    --win: #00e676;
    --draw: #ffab00;
    --loss: #ff5252;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.3;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading) !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: -0.3px;
}
.nav-brand-icon {
    font-size: 1.1rem;
}
.nav-brand-text {
    letter-spacing: -0.5px;
}
.nav-brand-gol {
    color: #fff !important;
}
.nav-brand-tip {
    color: var(--accent) !important;
}

/* League selector */
.nav-league-selector {
    position: relative;
    margin-left: 6px;
}
.nav-league-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-lighter);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-league-btn:hover {
    border-color: var(--accent);
    background: var(--card-hover);
}
.nav-league-flag {
    font-size: 1rem;
}
.nav-league-arrow {
    font-size: .6rem;
    opacity: .5;
}
.nav-league-name-short { display: none; }
@media (max-width: 900px) {
    .nav-league-name-full { display: none; }
    .nav-league-name-short { display: inline; }
}
.nav-league-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    min-width: 180px;
    z-index: 1000;
    list-style: none;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.nav-league-menu.open {
    display: block;
}
.nav-league-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text) !important;
    transition: background var(--transition);
}
.nav-league-link:hover {
    background: var(--bg-lighter);
}
.nav-league-link.active {
    color: var(--accent) !important;
    font-weight: 600;
}
.nav-league-link.disabled {
    opacity: .4;
    pointer-events: none;
}
.nav-league-link small {
    margin-left: auto;
    font-size: .65rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text) !important;
    background: var(--bg-lighter);
}

.nav-link.active {
    color: var(--accent) !important;
    background: var(--accent-bg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    min-width: 200px;
    padding: 6px 0;
    box-shadow: var(--shadow);
    z-index: 200;
    list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-dropdown-link:hover {
    color: var(--text) !important;
    background: var(--bg-lighter);
}

.nav-dropdown-link.active {
    color: var(--accent) !important;
    background: var(--accent-bg);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 32px 20px;
    overflow-x: hidden;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 48px 0 32px;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-update {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Sections --- */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--card-border);
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Dashboard Grid --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.dashboard-sidebar .section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--card-border);
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.stat-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Team Logos --- */
.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.team-logo-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

.team-logo-xs {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.team-logo-lg {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.team-badge-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.team-with-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-team-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.team-card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.team-card-identity .team-logo {
    flex-shrink: 0;
}

.team-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-header-title .team-logo-lg {
    flex-shrink: 0;
}

/* --- Match Cards --- */
.match-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.match-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.match-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.match-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading) !important;
}

.team-name:hover {
    color: var(--accent) !important;
}

.match-vs {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

/* --- Probability Bars --- */
.prob-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.prob-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prob-label {
    width: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.prob-track {
    flex: 1;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.prob-value {
    width: 48px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

/* Wide probability bars (predictions page) */
.prediction-probs {
    margin: 16px 0 12px;
}

.prob-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.prob-label-wide {
    width: 140px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.prob-track-wide {
    flex: 1;
    height: 12px;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
}

.prob-value-wide {
    width: 56px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
}

.predicted-score {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
}

.predicted-score strong {
    color: var(--text-heading);
    font-size: 1.1rem;
}

.no-prediction {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 0;
}

/* --- Predictions Grid --- */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.prediction-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.prediction-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

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

.match-round {
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.prediction-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.prediction-team {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.prediction-team .team-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-heading) !important;
}

.prediction-team .team-link:hover {
    color: var(--accent) !important;
}

.prediction-vs {
    flex-shrink: 0;
    text-align: center;
    min-width: 60px;
}

.prediction-vs-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.predicted-score-big {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.prediction-tip {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.tip-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 4px;
}

.tip-value {
    font-weight: 700;
    font-size: 0.95rem;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.filter-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    background: var(--bg);
    border: 1px solid var(--card-border);
    transition: all var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--text) !important;
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent-bg);
    color: var(--accent) !important;
    border-color: var(--accent);
}

/* --- Tables --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.results-table,
.standings-table,
.accuracy-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}

.results-table th,
.standings-table th,
.accuracy-table th {
    background: var(--bg-lighter);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--card-border);
}

.results-table td,
.standings-table td,
.accuracy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
}

.results-table tbody tr:hover,
.standings-table tbody tr:hover,
.accuracy-table tbody tr:hover {
    background: var(--card-hover);
}

.results-table tbody tr:last-child td,
.standings-table tbody tr:last-child td,
.accuracy-table tbody tr:last-child td {
    border-bottom: none;
}

.col-pos { width: 50px; text-align: center; }
.col-num { text-align: center; width: 50px; }
.col-points { font-size: 1rem !important; }
.col-team { min-width: 160px; }

.score {
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    white-space: nowrap;
}

/* --- Standings Colors --- */
.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.position-badge.pos-ucl {
    background: var(--ucl-green);
    color: var(--ucl-border);
}

.position-badge.pos-relegation {
    background: var(--relegation-red);
    color: var(--relegation-border);
}

tr.pos-ucl {
    background: var(--ucl-green);
}

tr.pos-relegation {
    background: var(--relegation-red);
}

.standings-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.ucl { background: var(--ucl-border); }
.legend-dot.relegation { background: var(--relegation-border); }

.standings-notes {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.table-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); font-weight: 600; }

/* --- Result Icons --- */
.result-icon {
    font-weight: 700;
    font-size: 1.1rem;
}

.result-icon.correct { color: var(--positive); }
.result-icon.wrong { color: var(--negative); }
.result-icon.unknown { color: var(--text-muted); }

/* --- Form Dots --- */
.form-display {
    display: flex;
    gap: 8px;
}

.form-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.form-dot.win { background: var(--win); }
.form-dot.draw { background: var(--draw); color: #1a1a1a; }
.form-dot.loss { background: var(--loss); }

/* --- Team Cards Grid --- */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.team-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
    color: var(--text) !important;
    text-decoration: none !important;
}

.team-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-elo-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.team-elo-badge {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.team-card-name {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-card-city {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.team-card-meta {
    margin-bottom: 12px;
}

.team-position {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.team-card-form {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.team-card-form .form-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.team-card-form .form-dot {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
}

/* --- Team Detail --- */
.team-header-content {
    margin-bottom: 8px;
}

.team-header-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.team-stat {
    display: flex;
    flex-direction: column;
    background: var(--card);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

.team-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.team-highlight {
    font-weight: 700 !important;
}

/* --- Strength Bars --- */
.strength-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-label {
    width: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.strength-track {
    flex: 1;
    height: 16px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s ease;
}

.strength-fill.attack {
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.strength-fill.defense {
    background: linear-gradient(90deg, var(--warning), #ff6d00);
}

.strength-value {
    width: 60px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.strength-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- ELO Mini Ranking --- */
.elo-ranking-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.elo-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elo-position {
    font-weight: 700;
    color: var(--text-muted);
    width: 24px;
    font-size: 0.9rem;
}

.elo-team-name {
    flex: 1;
    font-weight: 500;
    color: var(--text) !important;
}

.elo-team-name:hover {
    color: var(--accent) !important;
}

.elo-value {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

/* --- About Card --- */
.about-card {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-list {
    list-style: none;
    margin-top: 12px;
}

.about-list li {
    padding: 4px 0;
}

/* --- Model Cards --- */
.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.model-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--card-border);
}

.model-card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.model-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.model-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.model-pros h4,
.model-cons h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-pros ul,
.model-cons ul {
    list-style: none;
    font-size: 0.85rem;
}

.model-pros li {
    color: var(--positive);
    padding: 2px 0;
}

.model-cons li {
    color: var(--text-muted);
    padding: 2px 0;
}

/* --- Chart Container --- */
.chart-container {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--card-border);
    position: relative;
    height: 400px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none !important;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted) !important;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: var(--accent-bg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 16px;
}

/* --- Back Link --- */
.back-link {
    margin-top: 32px;
    margin-bottom: 16px;
}

/* --- Footer --- */
.footer {
    background: var(--card);
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.footer-desc,
.footer-update {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-disclaimer {
    background: rgba(255, 171, 0, 0.1);
    border: 1px solid rgba(255, 171, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--warning);
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--card);
    border-top: 1px solid var(--card-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-inner p {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-more {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-more:hover {
    color: var(--accent);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* Prediction History Grid */
.prediction-history-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: stretch;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.legal-page h2 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-page p,
.legal-page li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.legal-page ul {
    padding-left: 24px;
    margin: 12px 0;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    text-align: left;
}

.legal-table th {
    background: var(--bg-lighter);
    color: var(--text-heading);
    font-weight: 600;
}

.legal-table td {
    color: var(--text);
}

.legal-table code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.disclaimer-age-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.age-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--negative);
    color: var(--negative);
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.disclaimer-help {
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 16px 0;
}

/* ========================
   Admin Subnav
   ======================== */
.admin-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.admin-subnav a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    background: var(--card);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: all var(--transition);
}
.admin-subnav a:hover {
    color: var(--text) !important;
    border-color: var(--accent);
}
.admin-subnav a.active {
    color: var(--bg) !important;
    background: var(--accent);
    border-color: var(--accent);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        padding: 8px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 20px;
        border-radius: 0;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-lighter);
        min-width: 100%;
        display: none;
        border-radius: 0;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-link {
        padding: 10px 32px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .match-cards {
        grid-template-columns: 1fr;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }

    .model-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-disclaimer {
        max-width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .cookie-banner-inner p {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .prediction-history-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        overflow-x: visible !important;
    }



    .legal-page {
        padding: 24px 0;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .disclaimer-age-badge {
        flex-direction: column;
        text-align: center;
    }

    .team-header-stats {
        flex-wrap: wrap;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .prob-label-wide {
        width: 100px;
        font-size: 0.75rem;
    }

    .prediction-teams {
        flex-direction: column;
        gap: 8px;
    }

    .prediction-vs {
        min-width: auto;
    }

    .model-pros-cons {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }

    .filter-bar {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .main-content {
        padding: 20px 12px;
    }

    .match-teams {
        flex-direction: column;
        gap: 4px;
    }

    .team-with-logo {
        justify-content: center;
    }

    .team-logo { width: 36px; height: 36px; }
    .team-logo-lg { width: 48px; height: 48px; }
    .team-logo-sm { width: 20px; height: 20px; }

    .team-header-title {
        gap: 12px;
    }

    .team-card-identity {
        gap: 8px;
    }

    .team-card-identity .team-logo {
        width: 36px;
        height: 36px;
    }

    .standings-legend {
        flex-direction: column;
        gap: 8px;
    }

    .results-table-wrapper {
        margin: 0 -12px;
    }

    .prediction-history-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MATCH DETAIL PAGE
   ============================================================ */

.match-detail {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Breadcrumb --- */
.match-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.match-breadcrumb a {
    color: var(--text-muted);
}

.match-breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* --- Match Section --- */
.match-section {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 28px;
}

.match-section .section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

/* --- Match Hero --- */
.match-hero {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 32px 28px;
    margin-bottom: 24px;
    text-align: center;
}

.match-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.match-hero-round {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-hero-season {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status-badge.status-played {
    background: rgba(0, 230, 118, 0.15);
    color: var(--positive);
}

.match-status-badge.status-scheduled {
    background: rgba(79, 195, 247, 0.15);
    color: var(--link);
}

.match-status-badge.status-postponed {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

/* --- Hero Teams Layout --- */
.match-hero-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.match-hero-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 250px;
}

.team-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition);
}

.team-badge:hover {
    transform: scale(1.08);
    color: #fff !important;
}

.match-hero-team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading) !important;
    text-align: center;
    line-height: 1.3;
}

.match-hero-team-name:hover {
    color: var(--accent) !important;
}

.match-hero-team-city {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Score Display --- */
.match-hero-score {
    flex-shrink: 0;
    text-align: center;
    min-width: 140px;
}

.score-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}

.score-separator {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
}

.score-line.upcoming {
    padding: 16px 0;
}

.score-vs {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.score-halftime {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.match-hero-datetime {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* --- Hero Info (stadium, attendance, referee) --- */
.match-hero-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.match-info-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   AI PREDICTION BOX
   ============================================ */

.prediction-main-box {
    background: var(--bg-lighter);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

/* Big 1/X/2 probabilities */
.prediction-big-probs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.big-prob {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 20px 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 2px solid var(--card-border);
    transition: all var(--transition);
}

.big-prob.is-favorite {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.big-prob-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.big-prob-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.big-prob.is-favorite .big-prob-value {
    color: var(--accent);
}

.big-prob-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Expected score */
.prediction-expected-score {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.expected-score-label {
    margin-right: 8px;
}

.expected-score-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Tip box */
.prediction-tip-box {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.tip-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-headline {
    font-size: 1rem;
    color: var(--text);
}

.tip-headline strong {
    color: var(--text-heading);
}

.tip-result {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.tip-result.tip-correct {
    color: var(--positive);
}

.tip-result.tip-wrong {
    color: var(--negative);
}

/* Confidence meter */
.confidence-meter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confidence-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.confidence-track {
    flex: 1;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.confidence-fill.confidence-high {
    background: var(--positive);
}

.confidence-fill.confidence-medium {
    background: var(--warning);
}

.confidence-fill.confidence-low {
    background: var(--negative);
}

.confidence-value {
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}

.confidence-value.confidence-high { color: var(--positive); }
.confidence-value.confidence-medium { color: var(--warning); }
.confidence-value.confidence-low { color: var(--negative); }

/* Analysis text */
.prediction-analysis {
    padding: 12px 16px;
    background: var(--card);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

/* --- Models Comparison --- */
.subsection-title {
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.model-prediction-card {
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.model-prediction-card.model-correct {
    border-color: var(--positive);
    box-shadow: inset 0 0 0 1px rgba(0, 230, 118, 0.1);
}

.model-prediction-card.model-wrong {
    border-color: var(--negative);
    box-shadow: inset 0 0 0 1px rgba(255, 82, 82, 0.1);
}

.model-pred-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.model-pred-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.model-pred-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
}

.model-pred-result {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.model-pred-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.model-prob-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-prob-label {
    width: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.model-prob-track {
    flex: 1;
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.model-prob-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.model-prob-value {
    width: 44px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
    color: var(--text);
}

.model-pred-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
}

.model-pred-score strong {
    color: var(--text-heading);
}

/* ============================================
   MATCH TIMELINE
   ============================================ */

.match-timeline {
    position: relative;
    padding: 8px 0;
}

.match-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
    transform: translateX(-50%);
}

.timeline-event {
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.timeline-event.side-home {
    flex-direction: row;
    padding-right: 52%;
}

.timeline-event.side-away {
    flex-direction: row-reverse;
    padding-left: 52%;
}

.timeline-minute {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--card);
    z-index: 1;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 6px 12px;
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
}

.side-home .timeline-content {
    justify-content: flex-end;
}

.side-away .timeline-content {
    justify-content: flex-start;
}

.timeline-icon {
    font-size: 1rem;
}

.timeline-player {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
}

.timeline-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   CSS PITCH VISUALIZATION
   ============================================ */

.pitch-container {
    overflow-x: auto;
    padding: 8px;
}

.pitch {
    position: relative;
    width: 100%;
    min-width: 500px;
    padding-top: 60%;
    background: linear-gradient(180deg,
        #2d6b30 0%, #2f7033 5%,
        #327535 10%, #2f7033 15%,
        #2d6b30 20%, #2f7033 25%,
        #327535 30%, #2f7033 35%,
        #2d6b30 40%, #2f7033 45%,
        #327535 50%, #2f7033 55%,
        #2d6b30 60%, #2f7033 65%,
        #327535 70%, #2f7033 75%,
        #2d6b30 80%, #2f7033 85%,
        #327535 90%, #2f7033 95%,
        #2d6b30 100%
    );
    border-radius: var(--radius);
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.pitch-half {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
}

.pitch-half.left { left: 0; }
.pitch-half.right { right: 0; }

.pitch-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(-50%);
}

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

.pitch-center-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
}

.pitch-penalty-area {
    position: absolute;
    top: 20%;
    bottom: 20%;
    width: 16%;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.pitch-penalty-area.left { left: 0; border-left: none; }
.pitch-penalty-area.right { right: 0; border-right: none; }

.pitch-goal-area {
    position: absolute;
    top: 35%;
    bottom: 35%;
    width: 6%;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.pitch-goal-area.left { left: 0; border-left: none; }
.pitch-goal-area.right { right: 0; border-right: none; }

.pitch-goal {
    position: absolute;
    top: 42%;
    bottom: 42%;
    width: 2%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pitch-goal.left { left: -2%; border-left: none; }
.pitch-goal.right { right: -2%; border-right: none; }

.pitch-team-label {
    position: absolute;
    top: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pitch-team-label.left { left: 8px; }
.pitch-team-label.right { right: 8px; }

.pitch-player {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.pitch-player.home {
    background: #1565c0;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.pitch-player.away {
    background: #c62828;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.pitch-player-number {
    font-size: 0.7rem;
}

/* ============================================
   LINEUPS
   ============================================ */

.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lineup-column {
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.lineup-team-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.lineup-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.lineup-section {
    margin-bottom: 16px;
}

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

.lineup-section-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.lineup-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(42, 58, 74, 0.3);
}

.lineup-player:last-child {
    border-bottom: none;
}

.lineup-player.sub {
    opacity: 0.7;
}

.lineup-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.lineup-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.lineup-position {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   MATCH STATISTICS
   ============================================ */

.match-stats-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-value-left,
.stat-value-right {
    width: 48px;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.stat-value-left {
    text-align: right;
    color: var(--link);
}

.stat-value-right {
    text-align: left;
    color: var(--warning);
}

.stat-bar-container {
    flex: 1;
}

.stat-bar-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-bar-track {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg);
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.8s ease;
}

.stat-bar-fill.home {
    background: var(--link);
    border-radius: 5px 0 0 5px;
}

.stat-bar-fill.away {
    background: var(--warning);
    border-radius: 0 5px 5px 0;
}

/* ============================================
   HEAD TO HEAD
   ============================================ */

.h2h-summary {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 16px;
}

.h2h-stat {
    text-align: center;
}

.h2h-stat-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.h2h-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.h2h-goals-summary {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ============================================
   FORM COMPARISON
   ============================================ */

.form-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-team-block {
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.form-team-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.form-team-title a {
    color: var(--text-heading) !important;
}

.form-team-title a:hover {
    color: var(--accent) !important;
}

.form-dots-row {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.form-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.form-detail-row .form-dot {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
}

.form-detail-score {
    font-weight: 700;
    color: var(--text-heading);
    min-width: 32px;
}

.form-detail-venue {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-detail-opponent {
    color: var(--text) !important;
    font-size: 0.8rem;
}

.form-detail-opponent:hover {
    color: var(--accent) !important;
}

/* ============================================
   ELO COMPARISON
   ============================================ */

.elo-comparison {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.elo-compare-team {
    flex: 1;
    text-align: center;
}

.elo-compare-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading) !important;
    margin-bottom: 8px;
}

.elo-compare-name:hover {
    color: var(--accent) !important;
}

.elo-compare-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.elo-compare-bar {
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
}

.elo-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
}

.elo-compare-vs {
    flex-shrink: 0;
    text-align: center;
    min-width: 60px;
}

.elo-diff {
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- Dixon-Coles Comparison --- */
.dc-comparison {
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.dc-params-grid {
    display: flex;
    gap: 24px;
}

.dc-param {
    flex: 1;
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.dc-param-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dc-param-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.dc-param-vs {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

/* --- Clickable match rows --- */
.match-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.match-card-link .match-card {
    cursor: pointer;
}

tr.match-row-link {
    cursor: pointer;
    transition: background var(--transition);
}

tr.match-row-link:hover {
    background: var(--card-hover) !important;
}

/* ============================================
   MATCH DETAIL RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .match-hero-teams {
        flex-direction: column;
        gap: 16px;
    }

    .match-hero-team {
        max-width: 100%;
    }

    .match-hero-score {
        min-width: auto;
    }

    .score-number {
        font-size: 2.5rem;
    }

    .score-separator {
        font-size: 2rem;
    }

    .prediction-big-probs {
        flex-direction: column;
        align-items: center;
    }

    .big-prob {
        max-width: 100%;
        width: 100%;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .lineups-grid {
        grid-template-columns: 1fr;
    }

    .form-comparison {
        grid-template-columns: 1fr;
    }

    .elo-comparison {
        flex-direction: column;
        gap: 16px;
    }

    .elo-compare-value {
        font-size: 2rem;
    }

    .dc-params-grid {
        flex-direction: column;
    }

    .h2h-summary {
        gap: 24px;
    }

    .timeline-event.side-home {
        padding-right: 54%;
    }

    .timeline-event.side-away {
        padding-left: 54%;
    }

    .match-section {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .match-hero {
        padding: 20px 16px;
    }

    .team-badge {
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }

    .team-badge-fallback {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .match-hero-team-name {
        font-size: 1rem;
    }

    .score-number {
        font-size: 2rem;
    }

    .confidence-meter {
        flex-wrap: wrap;
    }

    .confidence-value {
        min-width: auto;
        text-align: left;
    }

    .match-timeline::before {
        left: 20px;
    }

    .timeline-event.side-home,
    .timeline-event.side-away {
        padding-right: 0;
        padding-left: 44px;
        flex-direction: row;
    }

    .timeline-dot {
        left: 20px;
    }

    .big-prob-value {
        font-size: 1.4rem;
    }
}

/* ============================================================
   AUTH, ACCOUNT, PAYMENT & PRICING PAGES
   ============================================================ */

/* --- Auth Container --- */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--card-border);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a {
    font-weight: 600;
}

/* --- Form Elements --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Buttons (new) --- */
.btn-primary {
    background: var(--accent);
    color: var(--bg) !important;
    border: 1px solid var(--accent);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
    color: var(--bg) !important;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
}

.btn-accent.btn-nav {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
}

.btn-accent.btn-nav:hover {
    background: var(--accent-dim);
    color: var(--bg) !important;
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: var(--negative);
}

.alert-success {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--accent);
}

.alert-info {
    background: rgba(79, 195, 247, 0.12);
    border: 1px solid rgba(79, 195, 247, 0.3);
    color: var(--link);
}

/* --- Nav User --- */
.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--card-border);
    margin: 0 4px;
    align-self: center;
}

.nav-user-link {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.nav-user-icon {
    color: var(--accent);
    font-size: 0.6rem;
}

/* --- Pricing Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--card-border);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    border-color: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.1);
}

.pricing-card-featured:hover {
    border-color: var(--accent);
}

.pricing-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pricing-badge-accent {
    color: var(--accent);
    background: var(--accent-bg);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--card-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* --- Match Select List --- */
.match-select-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.match-select-item:hover {
    border-color: var(--accent);
    background: var(--bg-lighter);
}

.match-select-teams {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.match-select-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Payment Page --- */
.payment-summary {
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
}

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

.payment-detail-row span {
    color: var(--text-muted);
}

.payment-manual {
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

.payment-status-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

/* --- Spinner --- */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--card-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* --- Account Page --- */
.account-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.account-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--card-border);
}

.account-section .section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

/* --- Subscription Status --- */
.subscription-active {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.subscription-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: var(--bg);
    flex-shrink: 0;
}

.subscription-inactive {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-paid {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent);
}

.status-pending {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

.status-expired {
    background: rgba(136, 153, 170, 0.15);
    color: var(--text-muted);
}

.status-cancelled {
    background: rgba(255, 82, 82, 0.15);
    color: var(--negative);
}

/* --- Auth & Account Responsive --- */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .match-select-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-divider {
        display: none;
    }

    .subscription-active {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0 -8px;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: var(--radius-sm);
    }

    .pricing-price {
        font-size: 2rem;
    }

    .payment-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============================
   Tip Badges (1/X/2)
   ============================ */
.tip-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}
.tip-badge.tip-1 { background: var(--positive, #00e676); }
.tip-badge.tip-x { background: var(--warning, #ffab00); }
.tip-badge.tip-2 { background: var(--link, #4fc3f7); }
.tip-prob {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--text-muted, #8899aa);
    font-weight: 500;
}

/* ==============================================
   LAYOUT A: Zapasovy den (Match Day Hero)
   ============================================== */
.la-hero-match {
    position: relative;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg-lighter) 50%, var(--card) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px 32px;
    margin-bottom: 32px;
    overflow: hidden;
    text-align: center;
}

.la-hero-match::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.la-hero-badge {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.la-hero-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.la-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.la-hero-team img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.la-hero-team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
}

.la-hero-vs {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0.5;
}

.la-hero-tip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px 24px;
    margin-bottom: 20px;
}

.la-hero-tip-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.la-hero-tip-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.la-hero-tip-badge {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.la-hero-tip-badge.tip-1 { background: var(--positive); }
.la-hero-tip-badge.tip-x { background: var(--warning); }
.la-hero-tip-badge.tip-2 { background: var(--link); }

.la-hero-tip-pct {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
}

.la-hero-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.la-hero-meta span {
    margin: 0 8px;
    opacity: 0.4;
}

.la-hero-xg {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.la-hero-xg strong {
    color: var(--text-heading);
    font-size: 1rem;
}

/* Layout A match grid */
.la-match-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.la-mini-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all var(--transition);
    text-decoration: none !important;
    display: block;
    color: inherit !important;
}

.la-mini-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.la-mini-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.la-mini-card-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.la-mini-team img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.la-mini-team span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
}

.la-mini-vs {
    color: var(--text-muted);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.la-mini-tip {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Layout A results row */
.la-results-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
}

.la-result-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition);
    text-decoration: none !important;
    color: inherit !important;
}

.la-result-chip:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.la-result-teams {
    font-size: 0.85rem;
    color: var(--text);
}

.la-result-score {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.la-result-check {
    font-size: 0.9rem;
}

/* Shared: Inline tip badges */
.tip-badge-inline {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.tip-badge-inline.tip-1 { background: var(--positive); }
.tip-badge-inline.tip-x { background: var(--warning); }
.tip-badge-inline.tip-2 { background: var(--link); }

/* Layout A responsive */
@media (max-width: 900px) {
    .la-match-grid { grid-template-columns: 1fr; }
    .la-hero-teams { gap: 20px; }
    .la-hero-team-name { font-size: 1.1rem; }
    .la-hero-team img { width: 48px; height: 48px; }
}

@media (max-width: 640px) {
    .la-hero-match { padding: 28px 16px; }
    .la-hero-teams { flex-direction: column; gap: 12px; }
    .la-hero-vs { display: none; }
    .la-mini-card-teams { flex-direction: column; gap: 4px; }
    .la-mini-vs { display: none; }
}

/* ==============================================
   THEME: Light (Svetly)
   ============================================== */
[data-theme="light"] {
    --bg: #f5f7fa;
    --bg-lighter: #ffffff;
    --card: #ffffff;
    --card-hover: #f0f2f5;
    --card-border: #e0e4e8;
    --accent: #00c853;
    --accent-dim: #00a844;
    --accent-bg: rgba(0, 200, 83, 0.1);
    --text: #2c3e50;
    --text-muted: #6b7b8d;
    --text-heading: #0f1923;
    --positive: #00c853;
    --negative: #e53935;
    --warning: #f57f17;
    --link: #1976d2;
    --link-hover: #1565c0;
    --ucl-green: rgba(0, 200, 83, 0.12);
    --ucl-border: #00c853;
    --relegation-red: rgba(229, 57, 53, 0.12);
    --relegation-border: #e53935;
    --win: #00c853;
    --draw: #f57f17;
    --loss: #e53935;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .team-logo,
[data-theme="light"] .team-logo-sm,
[data-theme="light"] .team-logo-xs,
[data-theme="light"] .team-logo-lg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .footer-disclaimer {
    background: rgba(245, 127, 23, 0.08);
    border-color: rgba(245, 127, 23, 0.25);
}

[data-theme="light"] .form-dot.draw {
    color: #ffffff;
}

[data-theme="light"] .tip-badge,
[data-theme="light"] .tip-badge-inline,
[data-theme="light"] .la-hero-tip-badge {
    color: #ffffff;
}

[data-theme="light"] .nav-brand-gol {
    color: #1a1a2e !important;
}

/* Hero block: always white text (dark overlay over stadium image) */
.hp-hero .hp-hero-team-name,
.hp-hero .hp-hero-vs,
.hp-hero .hp-hero-tip-pct,
.hp-hero .hp-hero-tip-label,
.hp-hero .hp-hero-meta,
.hp-hero .hp-hero-xg {
    color: #fff !important;
}
.hp-hero .hp-hero-xg strong {
    color: #fff !important;
}
.hp-hero .hp-hero-meta span {
    color: rgba(255,255,255,.4) !important;
}

/* ==============================================
   THEME: Blue (Modry / Champions League)
   ============================================== */
[data-theme="blue"] {
    --bg: #0a1628;
    --bg-lighter: #0f2040;
    --card: #142850;
    --card-hover: #1a3468;
    --card-border: #1e3a6a;
    --accent: #00b0ff;
    --accent-dim: #0091ea;
    --accent-bg: rgba(0, 176, 255, 0.12);
    --text: #c8d6e5;
    --text-muted: #7b96b8;
    --text-heading: #ffffff;
    --positive: #69f0ae;
    --negative: #ff5252;
    --warning: #ffd740;
    --link: #40c4ff;
    --link-hover: #80d8ff;
    --ucl-green: rgba(105, 240, 174, 0.15);
    --ucl-border: #69f0ae;
    --relegation-red: rgba(255, 82, 82, 0.15);
    --relegation-border: #ff5252;
    --win: #69f0ae;
    --draw: #ffd740;
    --loss: #ff5252;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="blue"] .la-hero-match::before {
    background: radial-gradient(ellipse at center, rgba(0, 176, 255, 0.06) 0%, transparent 70%);
}

[data-theme="blue"] .form-dot.draw {
    color: #1a1a1a;
}

/* ==============================================
   THEME: Green (Fotbalovy / Football Pitch)
   ============================================== */
[data-theme="green"] {
    --bg: #0d2818;
    --bg-lighter: #143820;
    --card: #1a4528;
    --card-hover: #225a34;
    --card-border: #2a5a3a;
    --accent: #ffd700;
    --accent-dim: #ffab00;
    --accent-bg: rgba(255, 215, 0, 0.12);
    --text: #d4e8d4;
    --text-muted: #8aab8a;
    --text-heading: #ffffff;
    --positive: #ffd700;
    --negative: #ff6b6b;
    --warning: #ffa726;
    --link: #76ff03;
    --link-hover: #b2ff59;
    --ucl-green: rgba(255, 215, 0, 0.15);
    --ucl-border: #ffd700;
    --relegation-red: rgba(255, 107, 107, 0.15);
    --relegation-border: #ff6b6b;
    --win: #ffd700;
    --draw: #ffa726;
    --loss: #ff6b6b;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="green"] .la-hero-match::before {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

[data-theme="green"] .form-dot.draw {
    color: #1a1a1a;
}

[data-theme="green"] .footer-disclaimer {
    background: rgba(255, 167, 38, 0.1);
    border-color: rgba(255, 167, 38, 0.3);
}

/* ==============================================
   THEME: Retro (Vintage / Warm)
   ============================================== */
[data-theme="retro"] {
    --bg: #1a1410;
    --bg-lighter: #2a2018;
    --card: #302820;
    --card-hover: #3d3428;
    --card-border: #4a3a2a;
    --accent: #ff8f00;
    --accent-dim: #ff6f00;
    --accent-bg: rgba(255, 143, 0, 0.12);
    --text: #d4c4a8;
    --text-muted: #9a8a6e;
    --text-heading: #f5e6c8;
    --positive: #66bb6a;
    --negative: #ef5350;
    --warning: #ffb74d;
    --link: #ffb74d;
    --link-hover: #ffcc80;
    --ucl-green: rgba(102, 187, 106, 0.15);
    --ucl-border: #66bb6a;
    --relegation-red: rgba(239, 83, 80, 0.15);
    --relegation-border: #ef5350;
    --win: #66bb6a;
    --draw: #ffb74d;
    --loss: #ef5350;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="retro"] .la-hero-match::before {
    background: radial-gradient(ellipse at center, rgba(255, 143, 0, 0.05) 0%, transparent 70%);
}

[data-theme="retro"] .form-dot.draw {
    color: #1a1a1a;
}

[data-theme="retro"] .footer-disclaimer {
    background: rgba(255, 183, 77, 0.1);
    border-color: rgba(255, 183, 77, 0.3);
}

/* ==============================================
   Theme Switcher Widget
   ============================================== */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.theme-switcher-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0 4px;
    white-space: nowrap;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--bg-lighter);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.theme-btn:hover {
    transform: scale(1.15);
    border-color: var(--card-border);
}

.theme-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-bg);
}

@media (max-width: 640px) {
    .theme-switcher {
        bottom: 12px;
        right: 12px;
        padding: 6px 8px;
        gap: 4px;
    }
    .theme-switcher-label {
        display: none;
    }
    .theme-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

/* ==============================================
   THEME: Neon (Cyberpunk)
   ============================================== */
[data-theme="neon"] {
    --bg: #0a0a14;
    --bg-lighter: #12122a;
    --card: #16163a;
    --card-hover: #1e1e50;
    --card-border: #2a2a5a;
    --accent: #ff0080;
    --accent-dim: #cc0066;
    --accent-bg: rgba(255, 0, 128, 0.12);
    --text: #d0d0e8;
    --text-muted: #8888bb;
    --text-heading: #ffffff;
    --positive: #00ff88;
    --negative: #ff3355;
    --warning: #ffee00;
    --link: #00eeff;
    --link-hover: #66f5ff;
    --ucl-green: rgba(0, 255, 136, 0.15);
    --ucl-border: #00ff88;
    --relegation-red: rgba(255, 51, 85, 0.15);
    --relegation-border: #ff3355;
    --win: #00ff88;
    --draw: #ffee00;
    --loss: #ff3355;
    --shadow: 0 4px 24px rgba(255, 0, 128, 0.15);
    --shadow-sm: 0 2px 12px rgba(255, 0, 128, 0.1);
}

[data-theme="neon"] .navbar {
    border-bottom: 1px solid rgba(255, 0, 128, 0.3);
    box-shadow: 0 2px 20px rgba(255, 0, 128, 0.1);
}

[data-theme="neon"] .form-dot.draw {
    color: #1a1a1a;
}

/* ==============================================
   THEME: Gold (Zlaty / Premium)
   ============================================== */
[data-theme="gold"] {
    --bg: #111008;
    --bg-lighter: #1c1a10;
    --card: #252218;
    --card-hover: #332e20;
    --card-border: #3d3828;
    --accent: #d4af37;
    --accent-dim: #b8962e;
    --accent-bg: rgba(212, 175, 55, 0.12);
    --text: #d4c8a0;
    --text-muted: #9a8e6e;
    --text-heading: #f5e6b8;
    --positive: #66bb6a;
    --negative: #ef5350;
    --warning: #d4af37;
    --link: #d4af37;
    --link-hover: #e8c84a;
    --ucl-green: rgba(102, 187, 106, 0.15);
    --ucl-border: #66bb6a;
    --relegation-red: rgba(239, 83, 80, 0.15);
    --relegation-border: #ef5350;
    --win: #66bb6a;
    --draw: #d4af37;
    --loss: #ef5350;
    --shadow: 0 4px 24px rgba(212, 175, 55, 0.1);
    --shadow-sm: 0 2px 12px rgba(212, 175, 55, 0.05);
}

[data-theme="gold"] .navbar {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

[data-theme="gold"] .form-dot.draw {
    color: #1a1a1a;
}

/* ==============================================
   THEME: Midnight (Pulnocni / Deep Purple)
   ============================================== */
[data-theme="midnight"] {
    --bg: #0d0b1a;
    --bg-lighter: #161230;
    --card: #1c1840;
    --card-hover: #252058;
    --card-border: #2a2560;
    --accent: #bb86fc;
    --accent-dim: #9c64e8;
    --accent-bg: rgba(187, 134, 252, 0.12);
    --text: #d0c8e8;
    --text-muted: #8a80b0;
    --text-heading: #f0e8ff;
    --positive: #69f0ae;
    --negative: #ff5277;
    --warning: #ffb74d;
    --link: #bb86fc;
    --link-hover: #d0a6ff;
    --ucl-green: rgba(105, 240, 174, 0.15);
    --ucl-border: #69f0ae;
    --relegation-red: rgba(255, 82, 119, 0.15);
    --relegation-border: #ff5277;
    --win: #69f0ae;
    --draw: #ffb74d;
    --loss: #ff5277;
    --shadow: 0 4px 24px rgba(187, 134, 252, 0.1);
    --shadow-sm: 0 2px 12px rgba(187, 134, 252, 0.05);
}

[data-theme="midnight"] .navbar {
    border-bottom: 1px solid rgba(187, 134, 252, 0.2);
}

[data-theme="midnight"] .form-dot.draw {
    color: #1a1a1a;
}
