/* LifeBets  Warobet language: navy chrome, silver odds, green hover.
   Classic cells (coranaltNAME, oranalt2, headerBox, tarihalt) stay on BET.css.
   This file only styles the new compact rows, markets, and live sidebar cards. */

:root {
    --lb-navy: linear-gradient(to bottom, #034379 1%, #012b4f 27%, #00223e 64%);
    --lb-odd: linear-gradient(to bottom, #a4a2a3 0%, #bbb9ba 3%, #e6e4e5 24%, #f7f5f6 36%, #fefcfd 45%, #fffdfe 55%, #fcfafb 61%, #eeeced 73%, #e0dedf 82%, #c2c0c1 97%, #a0a0a0 100%);
    --lb-odd-on: linear-gradient(to bottom, #33dd65 0%, #069e32 27%);
    --lb-odd-lock: #d8d8d8;
    --lb-text: #111;
    --lb-white: #fff;
}

.lb-sports,
.lb-markets,
.lb-live-markets {
    font-family: "Arial Narrow", Arial, Tahoma, sans-serif;
}

/* Compact prematch rows */
.lb-block {
    background: #012b4f;
    margin: 0 0 6px;
    overflow: hidden;
}

.lb-match {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 168px minmax(0, 1fr) 52px;
    align-items: stretch;
    gap: 2px;
    padding: 2px;
    background: #012b4f;
    border-bottom: 1px solid #00182c;
}

.lb-match:hover {
    background: #023a68;
}

.lb-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--lb-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-height: 36px;
}

.lb-meta .lb-time {
    font-size: 13px;
    font-weight: 800;
}

.lb-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.lb-team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.lb-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-team.away {
    justify-content: flex-end;
    text-align: right;
}

.lb-odds3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
}

.lb-odd {
    background: var(--lb-odd);
    color: #111;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    white-space: nowrap;
    border-left: 1px solid #7a7a7a;
    border-right: 1px solid #7a7a7a;
    box-sizing: border-box;
}

.lb-odd:hover:not(.is-lock) {
    background: var(--lb-odd-on);
    color: #111;
}

.lb-odd.is-on,
.lb-odd.selected {
    background: var(--lb-odd-on);
    color: #111;
}

.lb-odd.is-lock,
.lb-odd.is-lock:hover {
    background: var(--lb-odd-lock);
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.lb-odd.is-lock::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("https://cdn2.probetstar.com/lflags/lock.png") center / contain no-repeat;
}

.lb-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    background: var(--lb-navy);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
}

.lb-more:hover {
    background: var(--lb-odd-on);
    color: #111 !important;
}

.lb-expand {
    background: #001a30;
    padding: 4px;
}

/* Alt bahis  same silver buttons as original oranalt */
.lb-markets,
.lb-live-markets,
#divcanliy {
    background: #012b4f;
}

.lb-markets .ubaslik,
.lb-live-markets .ubaslik,
#divcanliy .ubaslik {
    background: var(--lb-navy) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 28px !important;
    line-height: 28px;
    padding: 0 10px !important;
    border-left: 3px solid #33dd65;
}

.lb-markets td[style*="canlialti"],
.lb-live-markets td[style*="canlialti"],
#divcanliy td[style*="canlialti"],
.lb-markets td[background*="canlialti"],
td[background*="canlialti"] {
    background: #012b4f !important;
    background-image: none !important;
}

.lb-markets td div[onclick],
.lb-live-markets td div[onclick],
#divcanliy td div[onclick],
.fancybox-inner td div[onclick] {
    background-color: #eee !important;
    background-image: var(--lb-odd) !important;
    color: #111 !important;
    margin: 1px;
    padding: 6px 10px !important;
    height: 32px !important;
    min-height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 700;
}

.lb-markets td div[onclick]:hover:not(.is-lock),
.lb-live-markets td div[onclick]:hover:not(.is-lock),
#divcanliy td div[onclick]:hover:not(.is-lock),
.fancybox-inner td div[onclick]:hover:not(.is-lock) {
    background-color: #069e32 !important;
    background-image: var(--lb-odd-on) !important;
    color: #111 !important;
}

.lb-markets td div.is-lock,
.lb-live-markets td div.is-lock,
#divcanliy td div.is-lock,
.fancybox-inner td div.is-lock {
    background: var(--lb-odd-lock) !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    margin: 1px;
    padding: 6px 10px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.ORANB1, .ORANB2, .ORANB3, .ORANB4, .ORANB5, .ORANB6,
.lb-markets td div[onclick] span,
.lb-live-markets td div[onclick] span,
#divcanliy td div[onclick] span,
.fancybox-inner td div[onclick] span {
    color: inherit !important;
    float: none !important;
    height: auto !important;
    display: inline-block;
}

.ORANB2, .ORANB6,
.lb-markets td div[onclick] span:last-child,
.lb-live-markets td div[onclick] span:last-child,
#divcanliy td div[onclick] span:last-child {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: right;
}

.lb-markets td div.is-lock span:last-child::before,
.lb-live-markets td div.is-lock span:last-child::before,
#divcanliy td div.is-lock span:last-child::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-inline-end: 4px;
    vertical-align: -1px;
    background: url("https://cdn2.probetstar.com/lflags/lock.png") center / contain no-repeat;
}

/* Live sidebar cards */
.lb-live-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lb-live-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(to bottom, #034379 1%, #012b4f 64%);
    color: #fff;
    padding: 8px 10px;
    border-left: 3px solid #e53935;
}

.lb-live-card:hover {
    background: #023a68;
}

.lb-live-card .lb-live-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.lb-live-card .lb-live-teams {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.lb-live-card .lb-score {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lb-live-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
}

.lb-live-card.is-locked {
    border-left-color: #888;
    opacity: 0.75;
}

@media (max-width: 900px) {
    .lb-match {
        grid-template-columns: 54px 1fr 48px;
        grid-template-areas:
            "meta teams more"
            "odds odds odds";
    }
    .lb-meta { grid-area: meta; }
    .lb-odds3 { grid-area: odds; }
    .lb-more { grid-area: more; }
}
