* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #121212; color: #e0e0e0; display: flex; flex-direction: column; min-height: 100vh; }
header { background: #1f1f1f; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #ffcc00; }
header h1 { color: #ffcc00; font-size: 24px; text-transform: uppercase; }
.user-panel { display: flex; gap: 15px; align-items: center; }
.btn { background: #ffcc00; color: #121212; border: none; padding: 8px 15px; font-weight: bold; cursor: pointer; border-radius: 4px; text-decoration: none; }
.btn:hover { background: #e6b800; }
.main-container { display: flex; flex: 1; padding: 20px; gap: 20px; }

/* Sidebar lewy - Tablica na żywo */
.sidebar-left { width: 260px; background: #1a1a1a; padding: 15px; border-radius: 6px; height: fit-content; border: 1px solid #333; }
.sidebar-left h3 { color: #ffcc00; margin-bottom: 10px; font-size: 15px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.match-live-item { background: #242424; padding: 10px; margin-bottom: 8px; border-radius: 4px; font-size: 12px; border-left: 3px solid #ffcc00; }

/* Centrum - Boisko i Oferty */
.content-center { flex: 1; display: flex; flex-direction: column; gap: 20px; }

/* ============================================================ */
/* STADION NA ŻYWO (LIVE STADIUM)                               */
/* ============================================================ */

.live-stadium-card {
    background: #0f1c12;
    border: 2px solid #2e7d32;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(46, 125, 50, 0.4);
    position: relative;
    animation: fadeInStadium 0.3s ease-out;
}

@keyframes fadeInStadium {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.stadium-pitch {
    position: relative;
    background: repeating-linear-gradient(
        90deg,
        #1b5e20,
        #1b5e20 45px,
        #246c2b 45px,
        #246c2b 90px
    );
    min-height: 220px;
    padding: 18px 25px 22px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Oświetlenie jupiterami stadionu */
.stadium-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.22) 0%, rgba(0, 0, 0, 0.55) 85%);
    pointer-events: none;
}

/* Linie boiska */
.stadium-lines {
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    pointer-events: none;
}

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

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

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

.stadium-lines .pitch-penalty-left {
    position: absolute;
    left: 0;
    top: 50%;
    width: 55px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-left: none;
    transform: translateY(-50%);
}

.stadium-lines .pitch-penalty-right {
    position: absolute;
    right: 0;
    top: 50%;
    width: 55px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-right: none;
    transform: translateY(-50%);
}

/* Uwaga: style efektów piłki / gola / rac są w <style>
   w index.php — tam zawsze docierają w aktualnej wersji,
   bo ten plik nie jest keszowany przez przeglądarkę */

/* Przycisk zamknięcia */
.stadium-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: 0.2s;
}
.stadium-close-btn:hover {
    background: #ff5252;
    border-color: #ff5252;
}

/* Pasek informacyjny stadionu */
.stadium-header-info {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.stadium-badge-live {
    background: #e53935;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 4px rgba(229, 57, 53, 0.5); }
    50% { box-shadow: 0 0 14px rgba(229, 57, 53, 1); }
    100% { box-shadow: 0 0 4px rgba(229, 57, 53, 0.5); }
}

.stadium-clock {
    background: rgba(0, 0, 0, 0.7);
    color: #ffeb3b;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 235, 59, 0.4);
    font-family: monospace;
    font-size: 14px;
}

.stadium-phase-tag {
    color: #e0e0e0;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 1px 1px 2px #000;
}

/* Główna zawartość stadionu (Drużyna 1 - Wynik - Drużyna 2) */
.stadium-main-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.stadium-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stadium-team-home {
    align-items: flex-start;
    text-align: left;
}
.stadium-team-away {
    align-items: flex-end;
    text-align: right;
}

.stadium-team-name {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}

/* Wiersz kartek zaraz pod nazwami drużyn */
.stadium-cards-row {
    display: flex;
    gap: 6px;
    min-height: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 3px #000;
}

/* Wiersz minut goli */
.stadium-goals-row {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    flex-wrap: wrap;
}

/* Tablica środkowa z wynikiem */
.stadium-score-box {
    background: rgba(8, 15, 10, 0.85);
    border: 2px solid #388e3c;
    border-radius: 10px;
    padding: 10px 22px;
    min-width: 170px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(56, 142, 60, 0.3);
}

.stadium-score-display {
    font-size: 42px;
    font-weight: 900;
    color: #ffeb3b;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.7);
    line-height: 1;
}

.stadium-half-score {
    font-size: 12px;
    color: #cfd8dc;
    font-weight: 600;
    margin-top: 5px;
    text-shadow: 1px 1px 2px #000;
}

.stadium-extra-time {
    font-size: 11px;
    color: #ff9800;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
}

.stadium-penalties {
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 6px;
}

.stadium-pen-title {
    font-size: 12px;
    font-weight: 800;
    color: #4fc3f7;
    margin-bottom: 4px;
}

.stadium-pen-stages {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.pen-dot.scored {
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
}
.pen-dot.missed {
    background: #ff1744;
    box-shadow: 0 0 6px #ff1744;
}
.pen-dot.pending {
    background: rgba(255, 255, 255, 0.3);
}

/* Przycisk LIVE w ofercie */
.btn-live-badge {
    background: #e53935;
    color: #ffffff;
    border: none;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.15s;
}
.btn-live-badge:hover {
    background: #ff1744;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.9);
}

/* Oferty bukmacherskie - Kafelki Bwin */
.match-card { background: #111111; border-radius: 6px; padding: 15px; margin-bottom: 15px; border: 1px solid #2a2a2a; }
.match-header { font-size: 13px; color: #888; margin-bottom: 8px; display: flex; justify-content: space-between; }
.odds-section-title { font-size: 12px; color: #ffcc00; margin: 10px 0 5px 0; font-weight: bold; text-transform: uppercase; }
.odds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 6px; }
.odd-item { display: flex; flex-direction: column; gap: 3px; }
.odd-name { font-size: 10px; color: #aaa; text-align: center; line-height: 1.2; min-height: 24px; display: flex; align-items: flex-end; justify-content: center; }
.odd-btn { background: #262626; border: 1px solid #333; color: #fff; padding: 8px; text-align: center; border-radius: 4px; cursor: pointer; transition: 0.1s; display: flex; flex-direction: column; gap: 2px; }
.odd-btn span { font-size: 10px; color: #aaa; }
.odd-btn strong { font-size: 13px; color: #ffcc00; }
.odd-btn.selected { background: #ffcc00 !important; color: #121212 !important; border-color: #ffcc00; }
.odd-btn.selected span, .odd-btn.selected strong { color: #121212 !important; }
.odd-btn.disabled { opacity: 0.4; pointer-events: none; }

/* Panel prawy - Kupon */
.sidebar-right { width: 320px; background: #1a1a1a; padding: 15px; border-radius: 6px; height: fit-content; display: flex; flex-direction: column; gap: 15px; border: 1px solid #333; }
.sidebar-right h3 { color: #ffcc00; font-size: 15px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.bet-slip-item { background: #242424; padding: 8px; border-radius: 4px; font-size: 11px; border-left: 3px solid #ffcc00; position: relative; margin-bottom: 5px; }
.bet-slip-item .remove-bet { position: absolute; right: 5px; top: 5px; color: #ff5252; cursor: pointer; font-weight: bold; }
.bet-input-group { display: flex; flex-direction: column; gap: 6px; }
.bet-input-group input, .form-group input, .form-group select { padding: 8px; background: #262626; border: 1px solid #444; color: #fff; border-radius: 4px; }
.form-box { max-width: 450px; margin: 40px auto; background: #1a1a1a; padding: 30px; border-radius: 8px; border: 1px solid #333; }
.form-group { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }