/* ==============================================
   standings.css – Driver standings page
   ============================================== */

/* ── Hide default page furniture ── */
body.standings-page .banner { display: none; }
body.standings-page .page-container { max-width: 100%; padding: 0; }
body.standings-page .page-container > h1 { display: none; }

/* ── Page header ── */
.st-header {
    background: linear-gradient(180deg, #1a1a1a, #141414);
    border-bottom: 1px solid rgba(0,191,255,0.15);
    padding: 28px 40px;
    display: flex; align-items: flex-end;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.st-breadcrumb {
    font-size: 0.62rem; letter-spacing: 2px;
    text-transform: uppercase; color: #444; margin-bottom: 8px;
}
.st-breadcrumb-link {
    color: #00bfff; text-decoration: none;
}
.st-breadcrumb-link:hover { text-decoration: underline; }
.st-title {
    font-family: 'Audiowide', sans-serif; font-size: 1.7rem;
    color: #fff; text-transform: uppercase; letter-spacing: 2px;
}
.st-title span { color: #00bfff; }

/* ── Body ── */
.st-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 40px 80px;
}

/* ── Class selector bar ── */
.st-class-bar {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
}
.st-class-label {
    font-size: 0.6rem; letter-spacing: 2px;
    text-transform: uppercase; color: #555;
    white-space: nowrap;
}
.st-class-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,191,255,0.2);
    border-radius: 6px;
    color: #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 200px;
}
.st-class-select:hover,
.st-class-select:focus { border-color: rgba(0,191,255,0.5); color: #fff; }
.st-class-select option { background: #fff !important; color: #111 !important; }
.st-class-select option:hover { background: #e0e0e0 !important; }

/* ── Card ── */
.st-card {
    background: linear-gradient(180deg, #1e1e1e, #191919);
    border: 1px solid rgba(0,191,255,0.1);
    border-radius: 12px; overflow: hidden;
    max-width: 1300px;
}

/* ── Table ── */
.st-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table thead tr {
    background: rgba(0,191,255,0.05);
    border-bottom: 1px solid rgba(0,191,255,0.15);
}
.st-table th {
    padding: 13px 18px;
    font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase;
    color: #555; font-weight: 700; text-align: left; white-space: nowrap;
}
.st-table th.center { text-align: center; }
.st-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.st-table tbody tr:last-child { border-bottom: none; }
.st-table tbody tr:hover { background: rgba(0,191,255,0.03); }
.st-table td { padding: 13px 18px; font-size: 0.85rem; color: #aaa; }
.st-table td.center { text-align: center; }

/* ── Position badge ── */
.st-pos {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem; font-weight: 700; color: #666;
}
.st-pos.p1 { background: rgba(255,215,0,0.1);   border-color: rgba(255,215,0,0.3);   color: #ffd700; }
.st-pos.p2 { background: rgba(192,192,192,0.1); border-color: rgba(192,192,192,0.3); color: #c0c0c0; }
.st-pos.p3 { background: rgba(205,127,50,0.1);  border-color: rgba(205,127,50,0.3);  color: #cd7f32; }

/* ── Driver name ── */
.st-name {
    color: #fff; font-weight: 700;
    text-decoration: none; transition: color 0.15s;
}
.st-name:hover { color: #00bfff; }

/* ── Points pill ── */
.st-points {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    background: rgba(0,191,255,0.06); border: 1px solid rgba(0,191,255,0.15);
    font-size: 0.78rem; color: #00bfff; font-weight: 700;
}

/* ── Pagination ── */
.st-pagination {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}
.st-page-btn {
    padding: 7px 16px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #666; font-size: 0.78rem; text-decoration: none;
    font-family: 'Lato', sans-serif; transition: all 0.15s;
}
.st-page-btn:hover { border-color: rgba(0,191,255,0.4); color: #00bfff; }
.st-page-info {
    font-size: 0.72rem; color: #444; letter-spacing: 1px; text-transform: uppercase;
}
.st-page-current {
    font-family: 'Audiowide', sans-serif;
    color: #00bfff; font-size: 0.85rem;
}

/* ── Responsive ── */
@media (min-width: 901px) {
    .st-header { min-width: 1300px; }
    .st-wrap   { min-width: 1300px; }
}
@media (max-width: 900px) {
    .st-header { padding: 20px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .st-title { font-size: 1.2rem; }
    .st-wrap { padding: 20px 16px 60px; }
    .st-table th, .st-table td { padding: 10px 12px; }
}
/* ── AMS2 Upload Page ── */
body.ams2-upload-page .banner { display: none; }
body.ams2-upload-page .page-container {
    max-width: 900px;
    padding: 30px 20px 60px;
    margin: 0 auto;
}