/* NanoScore Predictions Hub — stats24-inspired table */

.pred-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 4rem;
}

.pred-hero {
    margin-bottom: 1.25rem;
}

.pred-hero h1 {
    font-family: var(--font-display, 'Roboto', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #0f1a14;
    margin: 0.2rem 0 0.4rem;
}

.pred-hero .bt-kicker {
    color: #0B8F4E;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.pred-hero .bt-lead {
    color: #5a6b62;
    max-width: 42rem;
    margin: 0;
    line-height: 1.5;
}

.pred-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 960px) {
    .pred-layout {
        grid-template-columns: 1fr;
    }
    .pred-basket {
        position: static !important;
    }
}

/* Highlight band — bugünün 3 seçimi */
.pred-picks-split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.pred-picks-col h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 800;
}
.pred-picks-col--editor h3 { color: #0B8F4E; }
.pred-picks-col--auto h3 { color: #475569; }

.pred-top-picks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 720px) {
    .pred-top-picks {
        grid-template-columns: 1fr;
    }
}

.pred-top-card {
    background: #fff;
    border: 1px solid #e2ebe5;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.pred-top-card.is-editor {
    border-color: rgba(11, 143, 78, 0.4);
    box-shadow: inset 3px 0 0 #0B8F4E;
}
.pred-top-card.is-auto {
    box-shadow: inset 3px 0 0 #64748b;
}

.pred-top-card .rank {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0B8F4E;
}
.pred-top-card.is-auto .rank { color: #475569; }

.pred-top-card .match {
    font-weight: 600;
    color: #142019;
    font-size: 0.92rem;
}

.pred-top-card .meta {
    font-size: 0.8rem;
    color: #6a7a72;
}

/* Filters */
.pred-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: flex-end;
    background: #fff;
    border: 1px solid #e2ebe5;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.pred-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6a7a72;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pred-filters select,
.pred-filters input {
    min-width: 110px;
    border: 1px solid #d5e0da;
    background: #fafcfb;
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
    color: #142019;
    font-family: inherit;
}

.pred-filters .pred-filter-actions {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
}

.pred-btn {
    border: 1px solid #0B8F4E;
    background: #0B8F4E;
    color: #fff;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pred-btn:hover {
    background: #097a42;
}

.pred-btn--ghost {
    background: #fff;
    color: #0B8F4E;
}

.pred-btn--ghost:hover {
    background: #f0faf4;
}

.pred-disclaimer {
    font-size: 0.78rem;
    color: #7a8a82;
    margin: 0 0 1rem;
    padding: 0.55rem 0.75rem;
    background: #f5f9f6;
    border-left: 3px solid #0B8F4E;
}

/* Table */
.pred-table-wrap {
    background: #fff;
    border: 1px solid #e2ebe5;
    overflow: hidden;
}

.pred-league-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: #f7faf8;
    border-bottom: 1px solid #e2ebe5;
    border-top: 1px solid #e2ebe5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2a3a32;
}

.pred-league-head:first-child {
    border-top: none;
}

.pred-league-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    background: #dde6e1;
}

.pred-row {
    display: grid;
    grid-template-columns: 36px 52px 1.4fr 1fr 64px 70px 88px;
    gap: 0.4rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #eef3f0;
    min-height: 48px;
    font-size: 0.84rem;
}

.pred-row:hover {
    background: #f9fcfa;
}

.pred-row.is-hidden {
    display: none;
}

.pred-col-fav button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #b0bdb6;
    font-size: 1rem;
    padding: 0.2rem;
    line-height: 1;
}

.pred-col-fav button.is-fav {
    color: #0B8F4E;
}

.pred-col-time {
    font-variant-numeric: tabular-nums;
    color: #4a5a52;
    font-weight: 600;
    font-size: 0.8rem;
}

.pred-col-time .live {
    color: #c0392b;
    font-size: 0.7rem;
    display: block;
}

.pred-col-match {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.pred-col-match .team {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #142019;
    font-weight: 500;
}

.pred-col-match img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.pred-col-match .score {
    color: #6a7a72;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.pred-market {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border: 1px solid #cfe5d8;
    background: #f0faf4;
    color: #0B8F4E;
    letter-spacing: 0.02em;
}

.pred-selection {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #3a4a42;
    line-height: 1.25;
}

.pred-conf {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #0B8F4E;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(#0B8F4E var(--p, 70%), #e2ebe5 0);
    margin: 0 auto;
}

.pred-odds {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #2a3a32;
    text-align: center;
}

.pred-odds .muted {
    color: #9aaba2;
    font-weight: 500;
    font-size: 0.75rem;
}

.pred-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.pred-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d5e0da;
    background: #fff;
    color: #2a6fad;
    cursor: pointer;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0;
}

.pred-icon-btn:hover {
    background: #f0f6fb;
}

.pred-icon-btn.add {
    color: #0B8F4E;
    border-color: #b8dcc8;
}

.pred-icon-btn.add:hover {
    background: #f0faf4;
}

.pred-icon-btn.add.is-in {
    background: #0B8F4E;
    color: #fff;
    border-color: #0B8F4E;
}

.pred-result {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.85rem;
}

.pred-result.won {
    background: #e6f6ed;
    color: #0B8F4E;
}

.pred-result.lost {
    background: #fdecea;
    color: #c0392b;
}

.pred-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e2ebe5;
}

.pred-empty h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display, 'Roboto', sans-serif);
}

.pred-count {
    font-size: 0.8rem;
    color: #6a7a72;
    margin-bottom: 0.75rem;
}

/* Basket */
.pred-basket {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #e2ebe5;
    padding: 1rem;
}

.pred-basket h2 {
    font-family: var(--font-display, 'Roboto', sans-serif);
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    color: #142019;
}

.pred-basket-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 360px;
    overflow-y: auto;
}

.pred-basket-list li {
    border-bottom: 1px solid #eef3f0;
    padding-bottom: 0.55rem;
    font-size: 0.8rem;
}

.pred-basket-list .bm {
    font-weight: 600;
    color: #142019;
}

.pred-basket-list .bs {
    color: #0B8F4E;
    font-weight: 600;
}

.pred-basket-list .br {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    gap: 0.35rem;
}

.pred-basket-list input {
    width: 64px;
    border: 1px solid #d5e0da;
    padding: 0.25rem;
    font-size: 0.78rem;
}

.pred-basket-empty {
    color: #8a9a92;
    font-size: 0.85rem;
    margin: 0.5rem 0 1rem;
}

.pred-basket-footer {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pred-basket-footer .stake-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #5a6b62;
}

.pred-basket-footer .stake-row input {
    width: 80px;
    border: 1px solid #d5e0da;
    padding: 0.35rem;
}

@media (max-width: 720px) {
    .pred-row {
        grid-template-columns: 28px 44px 1fr;
        grid-template-rows: auto auto;
        gap: 0.35rem 0.5rem;
    }
    .pred-col-market,
    .pred-col-conf,
    .pred-col-odds,
    .pred-col-actions {
        grid-column: span 1;
    }
    .pred-col-match {
        grid-column: 3;
    }
    .pred-col-market {
        grid-column: 1 / -1;
        padding-left: 28px;
    }
    .pred-col-conf,
    .pred-col-odds,
    .pred-col-actions {
        justify-self: start;
    }
    .pred-actions {
        justify-content: flex-start;
    }
}
