/* ─── AR Football Rosters v2 ─────────────────────────────────────────────── */

.arfr-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Search ──────────────────────────────────────────────────────────────── */
.arfr-search-bar { margin-bottom: 24px; }

.arfr-search-input {
    width: 100%;
    max-width: 440px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    background: #f9f9f9;
    transition: border-color .2s, box-shadow .2s;
}
.arfr-search-input:focus {
    border-color: #1a4b8c;
    box-shadow: 0 0 0 3px rgba(26,75,140,.15);
    background: #fff;
}

/* ── Conference block ────────────────────────────────────────────────────── */
.arfr-conference { margin-bottom: 30px; }

.arfr-conf-header {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: #1a4b8c;
    border-left: 5px solid #0d2f60;
    padding: 9px 16px;
    margin: 0;
    border-radius: 0 4px 0 0;
}

/* ── Team listing table ──────────────────────────────────────────────────── */
.arfr-team-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dde4f0;
}

.arfr-team-table thead th {
    background: #f0f4fb;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #555;
    padding: 7px 12px;
    border-bottom: 2px solid #dde4f0;
}

.arfr-team-table .col-school { width: 80%; }
.arfr-team-table .col-count  { width: 20%; text-align: right; }

.arfr-team-row td {
    padding: 8px 12px;
    border-bottom: 1px solid #eef0f5;
    background: #fff;
    vertical-align: middle;
}
.arfr-team-row:hover td { background: #f5f8ff; }

.arfr-team-row .col-count {
    text-align: right;
    color: #999;
    font-size: 12px;
}

/* ── Team expand button ──────────────────────────────────────────────────── */
.arfr-team-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a4b8c;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: color .15s;
}
.arfr-team-btn:hover { color: #0d2f60; text-decoration: underline; }

.arfr-chevron {
    font-size: 9px;
    color: #1a4b8c;
    display: inline-block;
    line-height: 1;
}

.arfr-no-roster { color: #666; padding-left: 20px; }

/* ── Roster expansion row ────────────────────────────────────────────────── */
.arfr-roster-row[hidden] { display: none; }
.arfr-roster-row > td {
    padding: 0;
    border-bottom: 3px solid #1a4b8c;
}

.arfr-roster-inner {
    padding: 16px 20px 22px;
    background: #f5f8ff;
}

.arfr-roster-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a4b8c;
    margin: 0 0 14px;
}

/* ── Roster table ────────────────────────────────────────────────────────── */
.arfr-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border: 1px solid #dde4f0;
    border-radius: 4px;
    overflow: hidden;
}

.arfr-roster-table thead th {
    background: #1a4b8c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}

.arfr-roster-table tbody tr {
    border-bottom: 1px solid #eef0f5;
    transition: background .1s;
}
.arfr-roster-table tbody tr:last-child { border-bottom: none; }
.arfr-roster-table tbody tr:nth-child(even) { background: #f8fafc; }
.arfr-roster-table tbody tr:hover { background: #edf3ff; }

.arfr-roster-table td {
    padding: 7px 10px;
    vertical-align: middle;
}

/* Column widths */
.rh-num   { width: 38px; text-align: center; font-weight: 700; color: #777; }
.rh-name  { min-width: 140px; font-weight: 600; white-space: nowrap; }
.rh-pos   { width: 90px; color: #444; }
.rh-ht    { width: 60px; color: #555; }
.rh-wt    { width: 60px; color: #555; }
.rh-cls   { width: 60px; color: #555; text-align: center; }
.rh-stats { min-width: 160px; color: #333; line-height: 1.7; }

/* ── AC / AS Badges ──────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    letter-spacing: .05em;
    vertical-align: middle;
    text-transform: uppercase;
    line-height: 1.3;
}
.badge-as {
    background: #c0392b;
    color: #fff;
}
.badge-ac {
    background: #1a4b8c;
    color: #fff;
}

/* ── Highlighted rows ────────────────────────────────────────────────────── */
.row-allstate td { background: #fff8e6 !important; }
.row-allstate:hover td { background: #fef0c0 !important; }
.row-allconf td { background: #f0f5ff !important; }
.row-allconf:hover td { background: #dce8ff !important; }

/* ── Stat labels ─────────────────────────────────────────────────────────── */
.stat-label {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #e8f0fb;
    color: #1a4b8c;
    border-radius: 3px;
    padding: 1px 4px;
    margin-right: 3px;
    vertical-align: baseline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    /* Hide Ht, Wt on small screens */
    .rh-ht, .rh-wt,
    .arfr-roster-table thead th.rh-ht,
    .arfr-roster-table thead th.rh-wt { display: none; }

    .arfr-search-input { max-width: 100%; }
    .arfr-roster-inner { padding: 12px; }
}

@media (max-width: 480px) {
    .rh-pos,
    .arfr-roster-table thead th.rh-pos { display: none; }
}
