/* ── Page shell ─────────────────────────────────────── */
#content {
    min-height: 100vh;
    width: 80vw;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 60px;
    gap: 24px;
}

/* ── Header ─────────────────────────────────────────── */
#page-header {
    width: 100%;
    padding: 48px 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

#page-header-left { display: flex; flex-flow: column; gap: 8px; }

/* ── Stats table ─────────────────────────────────────── */
#stats-table-wrap {
    width: 100%;
    overflow-x: auto;
    box-shadow: inset -40px 0 24px -20px rgba(0,0,0,0.6);
}

#stats-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-family: "Archimoto V01", sans-serif;
    font-size: 14px;
}

#stats-table thead th {
    background-color: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-family: "Archimoto V01 Black", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-weight: normal;
    border-top: none;
    white-space: nowrap;
}

#stats-table tbody tr       { border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.85); transition: background-color 150ms; }
#stats-table tbody tr:hover { background-color: rgba(255,255,255,0.04) !important; }
#stats-table tbody td       { padding: 14px 16px; text-align: center; border: none; background-color: transparent !important; }

/* ── Team info cell ──────────────────────────────────── */
.team-info     { display: flex; flex-flow: row; align-items: center; gap: 10px; justify-content: center; }
.team-info img { height: 30px; width: 30px; object-fit: contain; }
.team-info span { font-family: "Archimoto V01", sans-serif; font-size: 14px; color: rgba(255,255,255,0.7); }

/* ── Search bar (moved above scroll container) ───────── */
.dt-search {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-search label {
    color: rgba(255,255,255,0.55);
    font-family: "Archimoto V01 Black", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: normal;
}

.dt-search input[type="search"] {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: rgba(255,255,255,0.85);
    font-family: "Archimoto V01", sans-serif;
    font-size: 13px;
    padding: 7px 12px;
    outline: none;
    width: 220px;
    transition: border-color 150ms, background-color 150ms;
}

.dt-search input[type="search"]:focus {
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.09);
}

.dt-search input[type="search"]::placeholder {
    color: rgba(255,255,255,0.25);
}

/* ── Responsive ──────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    #content      { width: 95%; }
    #page-header  { flex-flow: column; align-items: flex-start; gap: 16px; }
}

@media screen and (max-width: 768px) {
    #content     { width: 100%; padding: 0 16px 100px; box-sizing: border-box; }
    #page-header { padding: 24px 0 20px; }
}
