@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800;900&family=JetBrains+Mono:wght@700;900&display=swap');

:root {
    /* Color Palette - Premium Slate/Charcoal with Cobalt and Amber Gold */
    --bg: #0b0f19;
    --panel: #131b2e;
    --panel-2: #1e2942;
    --panel-3: #2a3754;
    --border: #1f2e4d;
    --border-2: #2d3f66;
    
    --text: #f3f4f6;
    --text-2: #d1d5db;
    --muted: #6b7280;
    
    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.12);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.25);
    
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.25);
    
    --radius: 12px;
    --radius-sm: 8px;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Core styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 60px; /* Space for sticky header */
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

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

/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--panel-2);
}

.nav-link.active {
    border-left: 2px solid var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
}

/* Live score Ticker */
.ticker-bar {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: tickerScroll 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--text-2);
    border-right: 1px solid var(--border);
    font-weight: 500;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    margin-right: 6px;
    display: inline-block;
}

.ticker-dot.live {
    background-color: var(--danger);
    animation: pulse 1.5s infinite;
}

/* Page titles */
.page-title-section {
    padding: 32px 0 16px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

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

/* Grid & Cards */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

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

.match-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-card:hover {
    border-color: var(--border-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.match-league-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.match-time {
    font-family: var(--font-mono);
    color: var(--text-2);
}

.match-teams-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-logo-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.team-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.team-score-val {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-2);
}

/* Predictions Banner */
.pick-badge-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--border-2);
}

.pick-prediction {
    display: flex;
    flex-direction: column;
}

.pick-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.pick-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gold);
}

.pick-odds {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.odds-val {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text);
}

/* Confidence Bar */
.confidence-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confidence-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}

.confidence-bg {
    background: var(--panel-3);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

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

/* Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-landed {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status-missed {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.status-live {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.status-postponed {
    background: var(--panel-3);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* Accordions details/summary */
details.match-details-accordion {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 8px;
}

details.match-details-accordion summary {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-2);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: none;
}

details.match-details-accordion summary::-webkit-details-marker {
    display: none;
}

details.match-details-accordion summary::after {
    content: '▼';
    font-size: 8px;
    color: var(--muted);
    transition: transform 0.2s;
}

details.match-details-accordion[open] summary::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
}

/* Stats Row inside Accordion */
.accordion-stat-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-2);
    padding-bottom: 4px;
    color: var(--text-2);
}

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

.accordion-stat-label {
    color: var(--muted);
}

/* Form dots */
.form-dots {
    display: flex;
    gap: 4px;
}
.form-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 900;
    color: #fff;
}
.form-dot.w { background: var(--success); }
.form-dot.d { background: var(--muted); }
.form-dot.l { background: var(--danger); }

/* Advertisement Card */
.ad-card {
    background: var(--panel-2);
    border: 2px dashed var(--border-2);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    min-height: 120px;
    font-size: 0.85rem;
    gap: 6px;
}
.ad-card span {
    font-weight: 800;
    color: var(--text-2);
    text-transform: uppercase;
    font-size: 0.75rem;
}
.ad-card small a {
    text-decoration: underline;
}

/* Yesterday panel */
.yesterday-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.yesterday-panel summary {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.yesterday-panel summary::-webkit-details-marker { display: none; }
.yesterday-panel summary::after {
    content: '▼'; font-size: 10px; color: var(--muted);
    margin-left: auto; transition: transform 0.2s;
}
.yesterday-panel[open] summary::after { transform: rotate(180deg); }
.summary-sub {
    font-size: 12px; color: var(--muted); font-weight: 600;
}
.yesterday-list {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Alert Banner */
.alert-banner {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.alert-banner button {
    color: var(--text);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0 4px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: var(--transition);
}

.filter-tab.active, .filter-tab:hover {
    background: var(--panel-2);
    color: var(--text);
    border-color: var(--border-2);
}

.filter-tab.active {
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* Footer elements */
.premium-footer {
    background: #0b0f19;
    border-top: 1px solid var(--border);
    padding: 40px 16px 30px;
    margin-top: 40px;
    color: var(--text-2);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 15px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-column ul li a:hover {
    color: var(--accent-hover);
}
.footer-counter {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px;
    border-top: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
}
.counter-item {
    text-align: center;
}
.counter-num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}
.counter-lbl {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}
.counter-divider {
    height: 30px;
    width: 1px;
    background: var(--border-2);
}
.footer-disclaimer-box {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 15px 20px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}
.footer-disclaimer-box a {
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: bold;
}
.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 20px;
    border-top: 1px solid var(--border-2);
    padding-top: 20px;
}

/* Match Shell (Detail Page) */
.match-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.match-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.15s;
    margin-bottom: 12px;
}
.match-back:hover { color: var(--accent); text-decoration: none; }
.match-back-icon { width: 16px; height: 16px; flex-shrink: 0; }

.prediction-hero {
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.prediction-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}
.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.prediction-teams {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.01em;
}
.prediction-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    flex-wrap: wrap;
}
.prediction-league-tag {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
}
.prediction-pick-section {
    margin-top: 20px;
    padding: 16px;
    background: var(--panel-3);
    border-radius: 12px;
}
.prediction-pick-label {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent);
}
.prediction-pick-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.prediction-odds-display {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold);
    background: var(--gold-glow);
    padding: 6px 14px;
    border-radius: 8px;
}
.prediction-confidence-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}
.prediction-confidence-label {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}
.prediction-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: var(--panel-2);
}
.prediction-status.landed {
    background: var(--success-bg);
    color: var(--success);
}
.prediction-status.missed {
    background: var(--danger-bg);
    color: var(--danger);
}
.prediction-status.live {
    background: var(--danger-bg);
    color: var(--danger);
}

.match-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.match-section h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Statistics Comparison */
.stat-comparison { width: 100%; }
.stat-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-2);
    gap: 8px;
}
.stat-row:nth-child(even) { background: var(--panel-2); }
.stat-row:last-child { border-bottom: 0; }
.stat-home-val, .stat-away-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 900;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.stat-home-val { color: var(--accent); }
.stat-away-val { color: var(--gold); }
.stat-label-col {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    min-width: 80px;
}
.stat-bar-left, .stat-bar-right {
    flex: 1;
    height: 5px;
    background: var(--panel-2);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    min-width: 40px;
}
.stat-bar-left-fill {
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
    position: absolute;
    right: 0;
}
.stat-bar-right-fill {
    height: 100%;
    background: var(--gold);
    border-radius: inherit;
    position: absolute;
    left: 0;
}

/* Events Timeline */
.events-timeline {
    position: relative;
    padding-left: 28px;
}
.events-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.event-item {
    position: relative;
    padding: 10px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
}
.event-minute {
    font-family: var(--font-mono);
    font-weight: 900;
    color: var(--muted);
    min-width: 36px;
    flex-shrink: 0;
}
.event-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.event-desc {
    color: var(--text-2);
    min-width: 0;
}
.event-dot {
    position: absolute;
    left: -22px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--panel);
}
.event-dot.goal { background: var(--success); }
.event-dot.card { background: var(--gold); }
.event-dot.sub  { background: var(--muted); }

/* Lineups Grid */
.lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.lineup-col {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}
.lineup-formation {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.lineup-player-row {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    align-items: baseline;
}
.lineup-num {
    font-family: var(--font-mono);
    font-weight: 900;
    color: var(--muted);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}
.lineup-pos {
    font-size: 10px;
    color: var(--muted);
    width: 32px;
    text-transform: uppercase;
    flex-shrink: 0;
    font-weight: 700;
}
.lineup-name {
    color: var(--text);
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* H2H aggregates */
.h2h-aggregate {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--panel-2);
    border-radius: 12px;
    margin-bottom: 16px;
}
.h2h-stat {
    text-align: center;
    flex: 1;
    min-width: 64px;
}
.h2h-stat-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
}
.h2h-stat-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 700;
}
.h2h-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.h2h-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--border-2);
    vertical-align: middle;
}
.h2h-table tr:last-child td { border-bottom: 0; }
.h2h-table .h2h-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.h2h-table .h2h-comp {
    font-size: 11px;
    color: var(--muted);
}
.h2h-table .h2h-score {
    font-family: var(--font-mono);
    font-weight: 900;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}
.h2h-table .h2h-home { text-align: right; color: var(--text); font-weight: 600; }
.h2h-table .h2h-away { text-align: left;  color: var(--text); font-weight: 600; }

/* Bookmaker Odds */
.odds-bookmaker-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
    background: var(--panel-2);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 700;
}
.odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.odds-cell {
    text-align: center;
    padding: 10px 6px;
    background: var(--panel-2);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.odds-cell:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--panel-2));
}
.odds-cell.best {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--panel-2));
}
.odds-cell-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 700;
}
.odds-cell-value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--gold);
}

/* Team shell */
.team-shell { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
.team-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.team-logo-large { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--panel-2); }
.team-info { flex: 1; min-width: 200px; }
.team-name { font-size: 2rem; font-weight: 900; color: var(--text); margin: 0; }
.team-league { font-size: 14px; color: var(--muted); margin-top: 4px; }
.team-position {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
    background: var(--panel-2); color: var(--text-2); margin-top: 8px;
}

.form-row-display { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.form-match-dot {
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; flex-shrink: 0;
}
.form-match-dot.w { background: var(--success-bg); color: var(--success); }
.form-match-dot.d { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.form-match-dot.l { background: var(--danger-bg); color: var(--danger); }
.form-summary { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 900; color: var(--text); margin-left: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.stat-card-value { font-size: 1.5rem; font-weight: 900; color: var(--text); }
.stat-card-label { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-top: 4px; font-weight: 700; }

.form-matches-list { display: flex; flex-direction: column; gap: 8px; }
.form-match-row {
    display: flex; align-items: center; gap: 14px; padding: 12px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; font-size: 13px; flex-wrap: wrap;
}
.form-match-comp { font-size: 11px; color: var(--muted); min-width: 60px; }
.form-match-teams { flex: 1; min-width: 0; font-weight: 600; color: var(--text); }
.form-match-result {
    font-family: var(--font-mono); font-weight: 900; color: var(--text);
    min-width: 36px; text-align: center;
}
.form-match-badge {
    font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 999px;
    min-width: 32px; text-align: center;
}
.form-match-badge.w { background: var(--success-bg); color: var(--success); }
.form-match-badge.d { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.form-match-badge.l { background: var(--danger-bg); color: var(--danger); }

/* League hub additions */
.league-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    margin: 0 -4px;
    padding: 0 4px;
}
.league-table tr.top4 { border-left: 3px solid var(--success); }
.league-table tr.bottom3 { border-left: 3px solid var(--danger); }
.league-table tr.playoff { border-left: 3px solid var(--gold); }

.status-pill {
    font-size: 10px;
    font-weight: 900;
    border-radius: 999px;
    padding: 5px 8px;
    background: var(--panel-2);
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.status-pill.live {
    background: color-mix(in srgb, var(--danger) 16%, transparent);
    color: var(--danger);
}
.status-pill.upcoming {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.empty-note { color: var(--muted); font-size: 13px; padding: 12px 0; }

.calendar-list { display: grid; gap: 9px; }
.calendar-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}
.calendar-time { font-size: 11px; color: var(--muted); font-weight: 900; text-transform: uppercase; }
.calendar-teams { font-size: 13px; color: var(--text); font-weight: 900; }
.calendar-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.calendar-tag {
    font-size: 10px; font-weight: 900; border-radius: 999px; padding: 5px 8px;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
    white-space: nowrap;
}

.history-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.history-link {
    display: flex; flex-direction: column; gap: 3px; text-decoration: none;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px; color: inherit;
}
.history-link strong { font-size: 12px; color: var(--text); }
.history-link span { font-size: 11px; color: var(--muted); }
.history-link:hover { border-color: var(--accent); }

.perf-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-2);
}
.perf-row:last-child { border-bottom: 0; }
.perf-date { font-size: 12px; color: var(--text); font-weight: 800; }
.perf-meta { font-size: 11px; color: var(--muted); }
.perf-accuracy { font-size: 12px; font-weight: 900; color: var(--accent); }

/* Animations & Ticker Dot */
@keyframes livePulseBorder {
    0%, 100% { border-left-color: var(--danger); }
    50% { border-left-color: color-mix(in srgb, var(--danger) 30%, transparent); }
}
.match-card.live {
    border-left: 3px solid var(--danger);
    animation: livePulseBorder 2s infinite;
}

@keyframes tickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker-track.scrolling { animation: none; }
    .match-card.live { animation: none; }
    .ticker-dot { animation: none; }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .match-shell { padding: 12px 10px 32px; }
    .prediction-hero { padding: 16px; }
    .prediction-teams { font-size: 1.1rem; }
    .prediction-pick-label { font-size: 1.1rem; }
    .prediction-pick-details { flex-direction: column; align-items: flex-start; gap: 10px; }
    .stat-row { font-size: 12px; padding: 6px 8px; }
    .stat-label-col { font-size: 9px; min-width: 60px; }
    .stat-home-val, .stat-away-val { font-size: 11px; width: 28px; }
    .odds-grid { grid-template-columns: repeat(3, 1fr); }
    .h2h-table { font-size: 11px; }
    .lineup-grid { grid-template-columns: 1fr; }
    .lineup-player-row { font-size: 13px; }
    .h2h-aggregate { gap: 12px; }
    .h2h-stat-val { font-size: 1.1rem; }
    
    .team-shell { padding: 12px 10px 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .calendar-item { grid-template-columns: 1fr; }
    .calendar-time { margin-bottom: 2px; }
    .history-links { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .odds-grid { grid-template-columns: repeat(2, 1fr); }
    .match-section { padding: 12px; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        right: 0;
        bottom: 0;
        width: 260px;
        background: var(--panel);
        border-right: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
        transition: var(--transition);
        height: calc(100vh - 60px);
        z-index: 999;
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px;
    }
    
    .match-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UPGRADED V2 COMPONENT WIDGETS (Matching & Exceeding V1 Standards)
   ========================================================================== */

/* 1. Yesterday's Performance Stats Row */
.stats-row {
    display: flex;
    gap: 12px;
    margin: 16px 0 24px;
    flex-wrap: wrap;
}

.stats-row .stat-card {
    flex: 1;
    min-width: 130px;
    background: rgba(19, 27, 46, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stats-row .stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-2);
}

.stats-row .stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stats-row .stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
}

.stats-row .stat-card.success .stat-value {
    color: var(--success);
}

.stats-row .stat-card.danger .stat-value {
    color: var(--danger);
}

.stats-row .stat-card.highlight {
    border-color: var(--gold-glow);
    background: rgba(251, 191, 36, 0.03);
}

.stats-row .stat-card.highlight .stat-value {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

/* 2. Best Bet of the Day Featured Box */
.best-bet-featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(19, 27, 46, 0.8));
    border: 2px solid var(--success);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.best-bet-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.18);
}

.best-bet-featured .best-bet-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--success);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.best-bet-featured .best-bet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.best-bet-featured .best-bet-tagline {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.best-bet-featured .best-bet-teams-score {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 12px 0 20px;
    gap: 16px;
}

.best-bet-featured .bb-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.best-bet-featured .bb-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.best-bet-featured .bb-team-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.best-bet-featured .bb-vs {
    font-family: var(--font-mono);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.best-bet-featured .bb-prediction-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(19, 27, 46, 0.8);
    border: 1px solid var(--border-2);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* 3. Daily Accumulator Builder */
.acca-builder-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.04), rgba(19, 27, 46, 0.95));
    border: 1px solid var(--gold);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.acca-builder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(251, 191, 36, 0.12);
}

.acca-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.acca-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.acca-odds-pill {
    background: var(--gold);
    color: #000;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.acca-legs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.acca-leg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(19, 27, 46, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    gap: 12px;
}

.acca-leg-team-info {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.acca-leg-pick {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.acca-leg-conf {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

.bookmaker-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.bookmaker-btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    color: var(--text-2);
    transition: var(--transition);
}

.bookmaker-btn:hover {
    background: var(--panel-3);
    color: var(--text);
    border-color: var(--muted);
}

.bookmaker-btn.featured {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.bookmaker-btn.featured:hover {
    background: var(--accent);
    color: #fff;
}

/* 4. Collapsible Panels (Guide & Standings) */
.premium-accordion {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.premium-accordion[open] {
    border-color: var(--border-2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.premium-accordion summary {
    padding: 14px 18px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: var(--transition);
}

.premium-accordion summary:hover {
    background: rgba(255,255,255,0.02);
    color: var(--accent-hover);
}

.premium-accordion summary::-webkit-details-marker {
    display: none;
}

.premium-accordion summary::after {
    content: "▼";
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.premium-accordion[open] summary::after {
    transform: rotate(180deg);
    color: var(--accent-hover);
}

.premium-accordion-content {
    padding: 16px 18px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.08);
}

/* Guide Content inside accordion */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.guide-item h4 {
    color: var(--gold);
    font-family: var(--font-display);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.guide-item p, .guide-item li {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.6;
}

.guide-item ul {
    padding-left: 16px;
    margin-top: 6px;
}

.guide-item li {
    margin-bottom: 4px;
}

.guide-code {
    display: inline-block;
    background: var(--panel-3);
    color: var(--text);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 4px;
}

/* Standings Accordions style */
.accordion-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.accordion-standings-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 800;
    padding: 6px 8px;
    border-bottom: 2px solid var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.accordion-standings-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
}

.accordion-standings-table tr:hover td {
    background: rgba(255,255,255,0.01);
}

.accordion-standings-table tr.top-rank td {
    background: rgba(16, 185, 129, 0.05);
}

.accordion-standings-table tr.mid-rank td {
    background: rgba(251, 191, 36, 0.02);
}

.accordion-standings-table tr.low-rank td {
    background: rgba(239, 68, 68, 0.02);
}

.accordion-standings-table .team-name-col {
    font-weight: 700;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.accordion-standings-table .pts-val {
    font-weight: 900;
    color: var(--text);
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    .stats-row .stat-card {
        min-width: 0;
    }
    .best-bet-featured .bb-team-name {
        font-size: 0.95rem;
    }
    .best-bet-featured .bb-team-logo {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================
   SPORTY V1 LAYOUT COMPATIBILITY STYLES
   ========================================== */

/* Filter Bar styles */
.filter-bar {
    background: rgba(19, 27, 46, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--panel-2);
    border: 1px solid var(--border-2);
    color: var(--text);
    padding: 8px 36px 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.filter-select:hover {
    border-color: var(--accent-hover);
    background-color: var(--panel-3);
}
.filter-select:focus {
    border-color: var(--gold);
    background-color: var(--panel-3);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.filter-select option {
    background-color: var(--panel);
    color: var(--text);
    padding: 10px;
    font-weight: 600;
}
.filter-stats {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.filter-count-badge {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

@media (max-width: 600px) {
    .filter-bar {
        justify-content: space-between;
        gap: 12px;
    }
    .filter-stats {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    .filter-select {
        padding: 8px 30px 8px 12px;
        font-size: 0.8rem;
    }
}

/* Match Card Centered Layout */
.league-pill {
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    color: var(--accent-hover);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0;
    padding: 0 4px;
}
.team-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.team-name-link {
    display: block;
    max-width: 100%;
    text-align: center;
}
.team-col .team-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
    transition: var(--transition);
}
.team-col:hover .team-name {
    color: var(--accent-hover);
}
.vs-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    text-align: center;
}
.vs-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.match-score {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--gold);
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
}

/* Recommendation Panel */
.pick-recommendation-row {
    background: linear-gradient(135deg, var(--panel-2), rgba(19, 27, 46, 0.95));
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.pick-badge-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}
.pick-title-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.5px;
}
.pick-value-large {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1.1;
    margin: 2px 0;
}
.pick-odds-lbl {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-2);
}
.confidence-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.confidence-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.confidence-lbl {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}
.confidence-pct-val {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text);
}
.confidence-progress-bg {
    background: var(--panel-3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.confidence-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* VIP Locked state in recommendation row */
.vip-locked-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 4px 0;
    text-align: center;
}
.vip-locked-content {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vip-icon {
    font-size: 1.1rem;
}
.vip-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.unlock-button {
    width: 100%;
    background: var(--gold);
    color: #000;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 0.8rem;
    transition: var(--transition);
}
.unlock-button:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* Card Footer */
.match-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}
.card-bet-link {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.card-bet-link:hover {
    background: var(--gold);
    color: #000;
    text-decoration: none;
}

/* Head-To-Head inside Match Card */
.h2h-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    background: var(--panel-2);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    margin-bottom: 8px;
    font-size: 0.75rem;
}
.h2h-summary-lbl {
    color: var(--muted);
    font-weight: 700;
}
.h2h-summary-val {
    color: var(--text);
    font-weight: 800;
    font-family: var(--font-mono);
}
.form-comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background: var(--panel-2);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
}
.form-dots-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-dots-col.home {
    align-items: flex-start;
}
.form-dots-col.away {
    align-items: flex-end;
}
.form-dots-lbl {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}
.form-dots-list {
    display: flex;
    gap: 4px;
}
.form-comparison-vs {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.5px;
    background: var(--panel-3);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}
.card-stats-table td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
}
.card-stats-table tr:last-child td {
    border-bottom: none;
}
.full-analysis-btn {
    display: block;
    text-align: center;
    background: var(--panel-3);
    border: 1px solid var(--border-2);
    color: var(--accent-hover);
    padding: 8px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.75rem;
    transition: var(--transition);
}
.full-analysis-btn:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* Frontpage Standings Section */
.frontpage-standings-section {
    margin-top: 40px;
    margin-bottom: 30px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.standings-grid.layout-single {
    grid-template-columns: 1fr !important;
}
@media (min-width: 769px) {
    .standings-grid.layout-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
.standings-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: var(--transition);
}
.standings-card:hover {
    border-color: var(--border-2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}
.standings-league-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-2);
    padding-bottom: 8px;
}
.frontpage-standings-table {
    width: 100%;
    border-collapse: collapse;
}
.frontpage-standings-table th, .frontpage-standings-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
}
.frontpage-standings-table th {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--border-2);
}
.frontpage-standings-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.frontpage-standings-table tr:last-child {
    border-bottom: none;
}
.frontpage-standings-table tr.top-rank {
    background: rgba(16, 185, 129, 0.03);
}
.frontpage-standings-table tr.low-rank {
    background: rgba(239, 68, 68, 0.02);
}
.frontpage-standings-table td {
    vertical-align: middle;
}
.team-name-col {
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-name-text {
    font-weight: 700;
    color: var(--text-2);
}
.frontpage-standings-table tr.top-rank .team-name-text {
    color: var(--text);
}
.frontpage-standings-table .pts-val {
    font-weight: 900;
    color: var(--gold);
}

/* Desktop content layout wrapper with sticky sidebar */
@media (min-width: 1024px) {
    .desktop-content-layout {
        display: grid;
        grid-template-columns: 1fr 340px; /* Increased to 340px to maximize available space */
        gap: 24px;
        align-items: start;
    }
    .desktop-sidebar {
        display: block;
        position: sticky;
        top: 106px; /* Sticky below header (60px) + ticker (36px) + 10px spacing */
        z-index: 10;
        width: 100%; /* Take full 340px column width */
    }
}
@media (max-width: 1023px) {
    .desktop-sidebar {
        display: none;
    }
}

.sidebar-sticky-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Tighter spacing to save vertical space */
    width: 100%;
}

/* Sidebar Ad banner styling */
.sidebar-ad-box {
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 10px; /* Reduced from 12px to save vertical space */
    width: 100%; /* Fully fluid, fills 340px column width */
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; /* Managed by gap in parent container */
    transition: var(--transition);
    overflow: hidden;
}
.sidebar-ad-box:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.1);
}
.ad-sponsor-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 6px; /* Reduced from 8px */
    text-transform: uppercase;
}
.banner-slides-wrapper {
    aspect-ratio: 1.25 / 1 !important; /* Shorter aspect ratio to fit vertically on screen */
}
.sidebar-ad-img {
    width: 100%;
    aspect-ratio: 1.25 / 1; /* Shorter aspect ratio to fit vertically on screen */
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}
.fallback-ad-banner-300 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    aspect-ratio: 1.25 / 1; /* Shorter aspect ratio to match rotating banner */
    background: linear-gradient(135deg, #131b2e 0%, #1e2942 100%);
    border: 2px dashed var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 16px; /* Reduced from 20px */
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}
.fallback-ad-banner-300 h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    margin: 0 0 8px;
    font-weight: 900;
    line-height: 1.2;
}
.fallback-ad-banner-300 p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.4;
    margin: 0 0 16px;
    font-weight: 600;
}
.ad-cta-btn {
    background: var(--success);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    transition: var(--transition);
}
.fallback-ad-banner-300:hover .ad-cta-btn {
    background: #059669;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.4);
}

/* Upgraded Card Social Share Buttons — Branded Icons */
.share-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.share-btn svg {
    flex-shrink: 0;
}
.share-btn span {
    font-family: inherit;
}

/* X / Twitter */
.share-btn--x {
    background: #000;
    color: #fff !important;
}
.share-btn--x:hover {
    background: #1d1d1d;
    box-shadow: 0 3px 10px rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* Facebook */
.share-btn--fb {
    background: #1877F2;
    color: #fff !important;
}
.share-btn--fb:hover {
    background: #0d65d9;
    box-shadow: 0 3px 10px rgba(24,119,242,0.35);
    transform: translateY(-2px);
}

/* WhatsApp */
.share-btn--wa {
    background: #25D366;
    color: #fff !important;
}
.share-btn--wa:hover {
    background: #1ebe57;
    box-shadow: 0 3px 10px rgba(37,211,102,0.35);
    transform: translateY(-2px);
}

/* Telegram */
.share-btn--tg {
    background: #26A5E4;
    color: #fff !important;
}
.share-btn--tg:hover {
    background: #1e96d1;
    box-shadow: 0 3px 10px rgba(38,165,228,0.35);
    transform: translateY(-2px);
}

/* Copy link */
.share-btn--copy {
    background: rgba(255,255,255,0.06);
    color: var(--text-2) !important;
    border: 1px solid var(--border-2) !important;
}
.share-btn--copy:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: translateY(-2px);
}

/* Copied success state */
.share-btn.copied,
.share-btn--copy.copied {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
}

/* Mobile: hide text labels, show icon-only pills */
@media (max-width: 480px) {
    .share-btn {
        padding: 7px 9px;
    }
    .share-btn span {
        display: none;
    }
    .share-btn--copy span {
        display: inline; /* keep Copy text visible */
    }
}

/* Rotating Banners Smooth Opacity Transitions */
.banner-slide {
    opacity: 0;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Top Ad Banner layout */
.top-ad-banner-container {
    width: 100%;
    margin-bottom: 20px;
}
.top-rotating-banner-container {
    background: var(--panel-2);
}
.top-banner-slide {
    opacity: 0;
    z-index: 1;
}
.top-banner-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Standings table styling upgrades matching v1 */
.frontpage-standings-table th, .league-table th {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
    padding: 10px 8px;
    border-bottom: 2px solid var(--border-2);
}
.frontpage-standings-table td, .league-table td {
    padding: 12px 8px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
.frontpage-standings-table tr:nth-child(even), .league-table tr:nth-child(even) {
    background: rgba(255,255,255,0.01);
}
.frontpage-standings-table tr:hover, .league-table tr:hover {
    background: rgba(255,255,255,0.02) !important;
}

/* Alternate highlighted positions (e.g. UCL/UEL promo, relegation) */
.frontpage-standings-table tr.top-rank, .league-table tr.top4 {
    background: rgba(16, 185, 129, 0.04) !important; /* light green for ucl */
    border-left: 3px solid var(--success);
}
.frontpage-standings-table tr.playoff, .league-table tr.playoff {
    background: rgba(59, 130, 246, 0.03) !important; /* light blue for uel */
    border-left: 3px solid var(--accent);
}
.frontpage-standings-table tr.low-rank, .league-table tr.bottom3 {
    background: rgba(239, 68, 68, 0.03) !important; /* light red for relegation */
    border-left: 3px solid var(--danger);
}
.team-name-col {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.team-name-text {
    font-weight: 700;
    color: var(--text-2);
}
.pts-val {
    font-weight: 900;
    color: var(--gold);
}

/* Style for VIP Lock Prediction buttons */
.vip-unlock-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: var(--transition);
}
.vip-unlock-btn:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}


