/* =========================================================
   RESULTS HUB LAYOUT
========================================================= */
.motocol-results-hub{
    padding: 24px 0 40px;
}

.results-hub-head{
    position: relative;
    margin-bottom: 24px;
    padding: 28px 28px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111 0%, #1b1b1b 60%, #222 100%);
    box-shadow: 0 12px 35px rgba(0,0,0,.14);
    overflow: hidden;
}

.results-hub-head::after{
    content: "";
    position: absolute;
    left: 28px;
    bottom: 0;
    width: 96px;
    height: 3px;
    background: #b11217;
    border-radius: 999px;
}

.results-hub-head .motocal-page-title{
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.results-hub-subtitle{
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================================
   FILTERS
========================================================= */
.results-hub-filters{
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.results-hub-filter-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.results-hub-field{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.results-hub-field label{
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.results-hub-select{
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.09);
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.results-hub-select:focus{
    border-color: rgba(177,18,23,.45);
    box-shadow: 0 0 0 3px rgba(177,18,23,.10);
}

.results-hub-actions{
    margin-top: 16px;
}

.results-hub-submit{
    appearance: none;
    border: 0;
    background: #b11217;
    color: #fff;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s ease;
}

.results-hub-submit:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(177,18,23,.20);
}

/* =========================================================
   EMPTY STATE
========================================================= */
.results-hub-empty{
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.results-hub-empty p{
    margin: 0;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   RESULT CARD
========================================================= */
.results-hub-result-card{
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.results-hub-result-head{
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

.results-hub-result-meta{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.results-hub-series-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: #b11217;
}

.results-hub-series-badge--motogp,
.results-hub-series-badge--worldsbk{
    background: #b11217;
}

.results-hub-series-badge--moto2,
.results-hub-series-badge--worldssp{
    background: #2563eb;
}

.results-hub-series-badge--moto3{
    background: #f59e0b;
}

.results-hub-country{
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.results-hub-race-title{
    margin: 0 0 8px;
    color: #111;
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.results-hub-race-info{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.results-hub-result-content{
    padding: 20px;
}

/* =========================================================
   RACE SUBTABS
========================================================= */
.race-subtabs-nav{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 16px;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,.06);
}

.race-subtab-btn{
    appearance: none;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .22s ease;
}

.race-subtab-btn:hover{
    background: rgba(177,18,23,.08);
    color: #b11217;
}

.race-subtab-btn.is-active{
    background: #b11217;
    color: #fff;
    box-shadow: 0 8px 22px rgba(177,18,23,.22);
}

.race-subtab-panel{
    display: none;
}

.race-subtab-panel.is-active{
    display: block;
}

/* =========================================================
   RESULT TABLES
========================================================= */
.race-results-card + .race-results-card{
    margin-top: 18px;
}

.race-results-card{
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

.race-results-card-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #111;
}

.race-results-card-head h3{
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.half-point-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.race-results-table-wrap{
    overflow-x: auto;
}

.race-results-table{
    width: 100%;
    border-collapse: collapse;
}

.race-results-table thead th{
    padding: 14px 16px;
    background: #f7f7f8;
    color: #444;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
}

.race-results-table tbody td{
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,.06);
    vertical-align: middle;
}

.race-results-table tbody tr.is-first{
    background: linear-gradient(90deg, rgba(177,18,23,.045) 0%, rgba(177,18,23,0) 40%);
}

.race-pos-number{
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.race-driver-wrap{
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.race-driver-flag{
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.race-driver-number{
    color: #777;
    font-size: 13px;
    font-weight: 700;
}

.race-driver-name{
    color: #111;
    font-size: 15px;
    font-weight: 800;
}

.race-points-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(177,18,23,.08);
    color: #b11217;
    font-size: 14px;
    font-weight: 800;
}

.race-empty{
    padding: 18px;
    border-radius: 14px;
    background: #f7f7f8;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px){
    .results-hub-head{
        padding: 22px 18px 18px;
        border-radius: 16px;
    }

    .results-hub-head::after{
        left: 18px;
        width: 72px;
    }

    .results-hub-head .motocal-page-title{
        font-size: 26px;
    }

    .results-hub-subtitle{
        font-size: 14px;
    }

    .results-hub-filter-grid{
        grid-template-columns: 1fr;
    }

    .results-hub-filters{
        padding: 14px;
    }

    .results-hub-result-head,
    .results-hub-result-content{
        padding: 16px;
    }

    .race-subtabs-nav{
        gap: 8px;
        padding: 6px;
        border-radius: 14px;
    }

    .race-subtab-btn{
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .race-results-card-head{
        padding: 14px 14px;
    }

    .race-results-table thead th,
    .race-results-table tbody td{
        padding: 12px 12px;
    }
}