/* Kisure v257: prediction cleanup, collapsible reasons, date search and less repeated detail pages */

/* Single prediction page: keep one league/date line only and reduce repeated match-card meta */
.football-prediction-detail-page .football-prediction-detail-meta {
    display: none !important;
}

.football-prediction-detail-page .football-prediction-match-hero__copy > p {
    margin-bottom: 20px;
}

.football-prediction-detail-page .football-prediction-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.football-prediction-detail-page .football-prediction-detail-card .football-prediction-match-card {
    margin-top: 0;
}

.football-prediction-detail-page .football-prediction-detail-card .football-prediction-match-card__meta {
    gap: 12px;
    flex-wrap: wrap;
}

.football-prediction-detail-page .football-prediction-detail-card .football-prediction-match-card__meta span {
    white-space: normal;
}

/* Predictions search by date */
.football-prediction-date-filter {
    background: linear-gradient(135deg, rgba(239, 250, 248, .92), #fff);
}

.football-prediction-date-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.football-prediction-date-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0b7b84;
}

.football-prediction-date-form input[type="date"] {
    min-width: 220px;
    border: 1px solid rgba(13, 138, 250, .18);
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

/* Prediction pick rows: the row itself is a container; main content is the link. */
.football-predictions-page .football-prediction-history-list--picks {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.football-predictions-page .football-prediction-history-list--picks .football-prediction-tip-row {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    overflow: visible !important;
}

.football-predictions-page .football-prediction-history-list--picks .football-prediction-tip-row:last-child {
    border-bottom: 0 !important;
}

.football-prediction-tip-row__main {
    display: grid;
    grid-template-columns: 74px minmax(190px, 1fr) auto auto;
    align-items: stretch;
    gap: 0;
    min-height: 82px;
    color: inherit;
    text-decoration: none;
}

.football-prediction-tip-row__main:hover .football-prediction-tip-row__body strong {
    color: #007c89;
}

.football-prediction-tip-row__time {
    padding: 10px 8px !important;
    border-right: 1px solid rgba(148, 163, 184, .22);
}

.football-prediction-tip-row__time strong {
    font-size: .9rem !important;
}

.football-prediction-tip-row__time img,
.football-prediction-tip-row__time i {
    width: 18px !important;
    height: 18px !important;
}

.football-prediction-tip-row__body {
    padding: 12px 16px !important;
}

.football-prediction-tip-row__body strong {
    font-size: clamp(.98rem, 1.2vw, 1.12rem) !important;
}

.football-prediction-tip-row__body small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-prediction-tip-row__probabilities {
    gap: 6px !important;
    padding: 10px 10px !important;
    justify-content: center !important;
}

.football-prediction-tip-row__probabilities b {
    min-width: 46px !important;
    min-height: 48px !important;
    padding: 6px 7px !important;
    border-radius: 12px !important;
    font-size: .84rem !important;
    line-height: 1.05;
}

.football-prediction-tip-row__probabilities b small {
    font-size: .62rem !important;
    line-height: 1;
}

.football-prediction-tip-row__status {
    margin: 0 12px 0 0 !important;
    padding: 7px 10px !important;
    font-size: .86rem !important;
}

/* Reason stays hidden until the user opens the dropdown */
.football-prediction-tip-row__preview,
.football-predictions-page .football-prediction-history-list--picks .football-prediction-tip-row:first-child .football-prediction-tip-row__preview {
    display: block !important;
    grid-column: auto !important;
    padding: 0 !important;
    background: #f8fafc !important;
    color: #334155;
    border-top: 1px solid rgba(148, 163, 184, .20);
}

.football-prediction-tip-row__preview summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px 10px 86px;
    font-weight: 900;
    color: #0f172a;
}

.football-prediction-tip-row__preview summary::-webkit-details-marker { display: none; }

.football-prediction-tip-row__preview summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.football-prediction-tip-row__preview summary i {
    transition: transform .18s ease;
}

.football-prediction-tip-row__preview[open] summary i {
    transform: rotate(90deg);
}

.football-prediction-tip-row__preview summary b {
    color: #007c9f;
    font-size: .9rem;
    white-space: nowrap;
}

.football-prediction-tip-row__preview > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px 14px 86px;
}

.football-prediction-tip-row__preview p {
    margin: 0;
    line-height: 1.55;
    color: #334155;
}

.football-prediction-tip-row__preview a {
    flex: 0 0 auto;
    color: #007c9f;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

/* Previous predictions also avoid unnecessary outcome repetition wording */
.football-prediction-history-row__body em {
    text-transform: none;
}

html[data-theme="dark"] .football-predictions-page .football-prediction-history-list--picks .football-prediction-tip-row,
html[data-theme="dark"] .football-prediction-tip-row__main {
    background: #0f172a;
    color: #e5e7eb;
}

html[data-theme="dark"] .football-prediction-tip-row__preview {
    background: #111827 !important;
}

html[data-theme="dark"] .football-prediction-tip-row__preview summary,
html[data-theme="dark"] .football-prediction-tip-row__preview p {
    color: #e5e7eb;
}

@media (max-width: 1100px) {
    .football-prediction-tip-row__main {
        grid-template-columns: 70px minmax(180px, 1fr) auto;
    }

    .football-prediction-tip-row__status {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .football-predictions-page .football-prediction-history-list--picks {
        overflow: visible !important;
    }

    .football-prediction-tip-row__main {
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: 0;
    }

    .football-prediction-tip-row__probabilities {
        grid-column: 1 / -1;
        justify-content: flex-start !important;
        padding: 0 12px 12px 76px !important;
        border-top: 0;
    }

    .football-prediction-tip-row__probabilities b {
        min-width: 54px !important;
        min-height: 42px !important;
        flex-direction: row !important;
        gap: 5px !important;
    }

    .football-prediction-tip-row__body {
        padding: 11px 12px !important;
    }

    .football-prediction-tip-row__body strong,
    .football-prediction-tip-row__body em,
    .football-prediction-tip-row__body small {
        white-space: normal;
    }

    .football-prediction-tip-row__preview summary,
    .football-prediction-tip-row__preview > div {
        padding-left: 76px;
        padding-right: 12px;
    }

    .football-prediction-tip-row__preview > div {
        display: block;
    }

    .football-prediction-tip-row__preview a {
        display: inline-flex;
        margin-top: 10px;
    }

    .football-prediction-date-form {
        align-items: stretch;
    }

    .football-prediction-date-form label,
    .football-prediction-date-form input[type="date"],
    .football-prediction-date-form .site-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .football-prediction-tip-row__main {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .football-prediction-tip-row__time {
        padding: 10px 6px !important;
    }

    .football-prediction-tip-row__time span img:nth-of-type(n+3) {
        display: none;
    }

    .football-prediction-tip-row__probabilities {
        padding-left: 68px !important;
    }

    .football-prediction-tip-row__probabilities b {
        min-width: 48px !important;
        font-size: .78rem !important;
    }

    .football-prediction-tip-row__preview summary,
    .football-prediction-tip-row__preview > div {
        padding-left: 68px;
    }

    .football-prediction-tip-row__preview summary b {
        display: none;
    }
}
