/*
 * Oddsmatcher — Apuesta Sin Perder
 * Tabla de cuotas en tiempo real con indicador de rating
 */

/* ── Barra de controles ── */
.om-controls
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .8rem 1.2rem;
    background: #00193a;
    border-radius: 0;
    padding: 1rem 1.4rem;
}

/* Cabecera Gutenberg (Oddsmatcher España) */
body.page-oddsmatcher .entry-content .ninja-hero-title
{
    background: #ffffff;
    border: 0;
    border-radius: 0;
    padding: .65rem 0 .2rem;
    margin-bottom: 0;
    color: #0f274f;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
}

body.page-oddsmatcher .entry-content .ninja-hero-title span
{
    color: #ddb562;
}

body.page-oddsmatcher .entry-content .ninja-hero-lead
{
    background: #ffffff;
    border: 0;
    border-radius: 0;
    padding: 0 0 .55rem;
    margin-top: 0;
    margin-bottom: .75rem;
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.55;
}

.om-controls label
{
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
}

.om-controls select
{
    background: #2d3748;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    color: #fff;
    font-size: .8rem;
    padding: .4rem 2rem .4rem .8rem;
    cursor: pointer;
    outline: none;
    min-width: 200px;
    appearance: auto;
    -webkit-appearance: menulist;
    color-scheme: light;
    height: 38px;
    box-sizing: border-box;
    flex: 0 0 220px;
    max-width: 220px;
}

.om-controls .om-search
{
    background: #2d3748;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    color: #fff;
    font-size: .8rem;
    padding: .42rem .75rem;
    min-width: 220px;
    height: 38px;
    box-sizing: border-box;
    flex: 0 0 220px;
    max-width: 220px;
    outline: none;
}

.om-controls .om-filter-control,
.om-controls #om-sport,
.om-controls #om-market
{
    width: 220px;
}

.om-controls .om-control-sport { order: 1; }
.om-controls .om-control-market { order: 2; }
.om-controls #om-search { order: 3; }
.om-controls #om-outcome-filter { order: 4; }
.om-controls #om-bookmaker-filter { order: 5; }
.om-controls .om-control-rating { order: 6; }

.om-controls .om-search::placeholder
{
    color: rgba(255,255,255,.6);
}

.om-controls select:focus
{
    border-color: #ddb562;
}

.om-controls input[type="range"]
{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 0;
    padding: 0;
    width: 120px;
    cursor: pointer;
    outline: none;
    accent-color: #ddb562;
    -webkit-appearance: slider-horizontal;
    appearance: auto;
}

.om-rating-label-wrap
{
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #ddb562;
    font-weight: 700;
    font-size: .78rem;
}

/* ── Status bar ── */
.om-status-bar
{
    background: #f8fafc;
    border-left: 4px solid #e5e9ef;
    padding: .55rem 1.2rem;
    font-size: .74rem;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
}

.om-status-bar.is-error
{
    border-left-color: #dc2626;
    color: #dc2626;
}

.om-loading { color: #6b7280; display: flex; align-items: center; gap: .5rem; }
.om-ok { color: #16a34a; font-weight: 600; }
.om-error { color: #dc2626; font-weight: 600; }

.om-spinner
{
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #d1d5db;
    border-top-color: #ddb562;
    border-radius: 50%;
    animation: om-spin .7s linear infinite;
}

@keyframes om-spin { to { transform: rotate(360deg); } }

/* ── Tabla ── */
.om-table-wrap
{
    overflow-x: auto;
    border-radius: 0;
    border: 1px solid #e5e9ef;
    border-top: none;
    transition: opacity .2s;
}

.om-table
{
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    min-width: 780px;
}

.om-table thead
{
    background: #f0f4f8;
}

.om-table th
{
    padding: .65rem 1rem;
    text-align: left;
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #374151;
    white-space: nowrap;
    border-bottom: 2px solid #e5e9ef;
}

.om-table td
{
    padding: .7rem 1rem;
    vertical-align: middle;
    color: #374151;
    border-bottom: 1px solid #f0f2f5;
}

.om-table td small
{
    display: block;
    color: #9ca3af;
    font-size: .68rem;
    margin-top: .15rem;
}

.om-row
{
    border-bottom: 1px solid #f0f2f5;
    transition: background .1s;
}

.om-row:last-child { border-bottom: none; }
.om-row:hover { background: #f8fafc; }

.om-td { padding: .7rem 1rem; vertical-align: middle; color: #374151; }
.om-td--date { color: #6b7280; font-size: .8rem; white-space: nowrap; }
.om-td--match { min-width: 180px; }
.om-td--match strong { font-size: .8rem; }
.om-td--outcome { font-weight: 700; font-size: .74rem; color: #00193a; }

.om-back .om-odds-val
{
    display: inline-block;
    background: #e8f5e9;
    color: #16a34a;
    font-weight: 900;
    font-size: .82rem;
    padding: .2rem .55rem;
    border-radius: 0;
}

.om-lay .om-odds-val
{
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
    font-size: .82rem;
    padding: .2rem .55rem;
    border-radius: 0;
}

.om-td--rating { min-width: 120px; }

.om-rating-num
{
    font-weight: 900;
    font-size: .8rem;
    display: block;
    margin-bottom: .25rem;
}

.om-rating-num.om-rating--hot { color: #16a34a; }
.om-rating-num.om-rating--good { color: #d97706; }
.om-rating-num.om-rating--ok { color: #6b7280; }

.om-rating-bar
{
    height: 5px;
    background: #e5e9ef;
    border-radius: 0;
    overflow: hidden;
}

.om-rating-fill
{
    height: 100%;
    border-radius: 0;
    transition: width .3s;
}

.om-rating-fill.om-rating--hot { background: #16a34a; }
.om-rating-fill.om-rating--good { background: #d97706; }
.om-rating-fill.om-rating--ok { background: #9ca3af; }

.om-action-disabled
{
    display: inline-block;
    background: #eef2f7;
    color: #64748b;
    border: 1px solid #d6dee9;
    border-radius: 0;
    padding: .35rem .65rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.om-rating
{
    font-weight: 900;
    color: #16a34a;
}

.om-empty
{
    text-align: center;
    color: #9ca3af;
    padding: 2.5rem !important;
    font-style: italic;
}

.om-pagination
{
    display: none;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    border: 1px solid #e5e9ef;
    border-top: none;
    border-radius: 0;
    padding: .7rem 1rem;
    background: #f8fafc;
}

.om-page-btn
{
    border: none;
    border-radius: 0;
    background: #00193a;
    color: #fff;
    height: 36px;
    padding: 0 .85rem;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

.om-page-btn:hover { background: #0f274f; }
.om-page-btn:disabled { opacity: .5; cursor: not-allowed; }

.om-page-info
{
    min-width: 110px;
    text-align: center;
    font-size: .72rem;
    color: #4b5563;
    font-weight: 700;
}

.om-legend
{
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    margin-top: 1rem;
    font-size: .7rem;
    color: #6b7280;
}

.om-legend-item { display: flex; align-items: center; gap: .35rem; }

.om-legend-dot
{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.om-premium-lock
{
    border: 1px solid rgba(0, 25, 58, .14);
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-radius: 0;
    padding: 1rem 1.1rem;
    max-width: 760px;
    margin: 2rem auto .5rem;
}

.om-premium-lock strong
{
    display: block;
    color: #00193a;
    margin-bottom: .4rem;
    font-size: 1rem;
}

.om-premium-lock p
{
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    font-size: .94rem;
}

.om-premium-lock__btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: .75rem;
    border-radius: 0;
    padding: .7rem 1rem;
    font-weight: 900;
    letter-spacing: .03em;
    color: #00193a;
    background: linear-gradient(135deg, #ddb562, #c9983a);
    box-shadow: 0 8px 18px rgba(221,181,98,.3);
}

@media (max-width: 860px)
{
    body.page-oddsmatcher .entry-content .ninja-hero-title
    {
        font-size: 1.1rem;
        padding: .85rem .9rem .35rem;
    }

    body.page-oddsmatcher .entry-content .ninja-hero-lead
    {
        font-size: .82rem;
        padding: 0 .9rem .85rem;
        line-height: 1.45;
    }

    .om-controls
    {
        padding: .8rem 1rem;
        gap: .6rem;
    }

    .om-controls select,
    .om-controls .om-search,
    .om-controls .om-filter-control,
    .om-controls #om-sport,
    .om-controls #om-market
    {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .om-pagination
    {
        flex-direction: column;
        gap: .5rem;
    }
}
