/* Wyniki i prognozy — Eurojackpot */
.esl-live-section {
    padding: 4rem 0;
    background: #fff;
    overflow-x: clip;
}

.esl-live-section .esl-container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.esl-live-section--muted {
    background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.esl-live-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.esl-live-section__head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--esl-dark, #071428);
    letter-spacing: -0.02em;
}

.esl-live-section__head p {
    margin: 0;
    color: var(--esl-muted, #64748b);
}

.esl-demo-banner {
    background: linear-gradient(135deg, #071428, #003399);
    color: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    box-shadow: 0 24px 64px rgba(0, 51, 153, 0.2);
}

.esl-demo-banner__badge {
    display: inline-block;
    background: var(--esl-accent, #ffcc00);
    color: #071428;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.esl-demo-banner h2 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.esl-demo-banner p {
    margin: 0;
    opacity: 0.9;
    max-width: 520px;
    line-height: 1.6;
}

.esl-demo-banner__list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.esl-demo-banner__list li::before {
    content: '✓ ';
    color: var(--esl-accent, #ffcc00);
}

.esl-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
    gap: 1.25rem;
}

/* Jedno losowanie (strona główna) — pełna szerokość kontenera */
.esl-results-grid:has(.esl-result-card:only-child) {
    grid-template-columns: 1fr;
}

.esl-results-grid:has(.esl-result-card:only-child) .esl-result-card {
    width: 100%;
    max-width: none;
}

.esl-result-card {
    background: #fff;
    border: 1px solid rgba(0, 51, 153, 0.1);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 12px 36px rgba(0, 51, 153, 0.08);
    transition: transform 0.2s;
    overflow: visible;
}

.esl-result-card:hover {
    transform: translateY(-3px);
}

.esl-result-card__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.esl-result-card__top img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.esl-result-card__title {
    font-weight: 800;
    color: var(--esl-dark, #071428);
}

.esl-result-card__date {
    font-size: 0.85rem;
    color: var(--esl-muted, #64748b);
}

.esl-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.esl-balls--nowrap {
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow: visible;
    width: 100%;
    justify-content: flex-start;
}

.esl-ball {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.esl-balls__sep {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--esl-muted);
    margin: 0 0.1rem;
    font-size: 0.85rem;
}

.esl-ball--main {
    background: linear-gradient(145deg, #ffcc00, #e6b800);
    color: #071428;
}

.esl-ball--euro {
    background: linear-gradient(145deg, #003399, #1a56db);
    color: #fff;
}

.esl-predictions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.15rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.esl-predictions-grid > .esl-pred-card {
    flex: 0 1 340px;
    width: 100%;
    max-width: 340px;
}

.esl-predictions-grid > .esl-loading,
.esl-predictions-grid > .esl-empty {
    flex: 1 1 100%;
}

@media (max-width: 960px) {
    .esl-predictions-grid > .esl-pred-card {
        flex: 1 1 100%;
        max-width: 420px;
    }
}

@media (max-width: 520px) {
    .esl-result-card {
        padding: 1rem 1.15rem;
    }

    .esl-result-card .esl-ball {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .esl-result-card .esl-balls--nowrap {
        gap: 0.35rem;
    }
}

.esl-pred-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.15rem;
    border: 1px solid rgba(0, 51, 153, 0.08);
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.06);
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

.esl-pred-card--featured {
    border-color: rgba(0, 51, 153, 0.15);
}

.esl-pred-card__date {
    font-weight: 600;
    color: var(--esl-muted, #64748b);
}

.esl-pred-card__numbers {
    display: grid;
    gap: 0.65rem;
    margin: 0.65rem 0 0.5rem;
    width: 100%;
    min-width: 0;
}

.esl-pred-card .esl-pred-numbers-block {
    width: 100%;
    min-width: 0;
}

.esl-pred-card .esl-balls--nowrap {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.esl-pred-card .esl-ball {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
}

.esl-pred-numbers-block__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--esl-muted, #64748b);
    margin-bottom: 0.35rem;
}

.esl-pred-numbers-block--draw .esl-ball--main {
    opacity: 0.92;
}

.esl-pred-balls-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.esl-pred-card__pool-highlight {
    margin: 0.35rem 0 0.5rem;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(90deg, #fff8e1, #eef3ff);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1.4;
    border: 1px solid rgba(255, 204, 0, 0.45);
}

.esl-pred-card__hits {
    margin-top: 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: #047857;
}

.esl-pred-card__win {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(0, 51, 153, 0.15);
}

.esl-pred-card__win-label {
    display: block;
    font-size: 0.78rem;
    color: var(--esl-muted, #64748b);
    margin-bottom: 0.25rem;
}

.esl-pred-card__win-amount {
    font-size: 1.35rem;
    color: var(--esl-primary, #003399);
    letter-spacing: -0.02em;
}

.esl-pred-card__win--muted {
    font-size: 0.82rem;
    color: var(--esl-muted);
    border-top: none;
    padding-top: 0.35rem;
}

.esl-pred-disclaimer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--esl-muted, #64748b);
    max-width: 640px;
    margin: 1.5rem auto 0;
    line-height: 1.5;
}

.esl-pred-card__meta {
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

#prognozy .esl-pred-disclaimer,
#prognozy p[style*="text-align:center"] {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.esl-pred-card__strategy {
    font-weight: 700;
    color: var(--esl-primary, #003399);
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.esl-pred-ball {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.35rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 0.2rem 0.2rem 0;
}

.esl-pred-ball--main {
    background: #fff8e1;
    color: #071428;
    border: 1px solid #ffcc00;
}

.esl-pred-ball--euro {
    background: #eef3ff;
    color: #003399;
    border: 1px solid #003399;
}

.esl-loading,
.esl-empty {
    text-align: center;
    padding: 2rem;
    color: var(--esl-muted);
    width: 100%;
}

.esl-quick-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}

.esl-hero__copy .esl-quick-tile {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.esl-hero__copy .esl-quick-tile__title { color: #fff; }
.esl-hero__copy .esl-quick-tile__sub { color: rgba(255, 255, 255, 0.75); }

.esl-quick-tile {
    display: block;
    background: #fff;
    border: 2px solid rgba(0, 51, 153, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.esl-quick-tile:hover {
    border-color: var(--esl-primary);
    transform: translateY(-2px);
}

.esl-quick-tile__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.esl-quick-tile__title {
    font-weight: 800;
    color: var(--esl-dark);
}

.esl-quick-tile__sub {
    font-size: 0.85rem;
    color: var(--esl-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .esl-demo-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .esl-demo-banner p,
    .esl-demo-banner__list {
        margin-left: auto;
        margin-right: auto;
    }
}
