.server-list:has(.server-entry) {
    container: server-cards / inline-size;
    display: grid;
    gap: 10px;
    padding-top: 14px;
    background: transparent;
    border: 0;
}
.server-list:has(.server-entry) > .list-columns { display: none; }
.server-row.server-entry {
    position: relative;
    grid-template-columns: 24px 56px minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 18px 20px 18px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    transition: border-color .16s;
}
.server-entry:hover { border-color: #a8bdb3; }
.server-entry.is-promoted { border-left: 3px solid #cba348; padding-left: 12px; }
.entry-rank { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.entry-rank.leading { color: #ac7a24; }
.entry-icon { display: block; width: 56px; height: 56px; }
.entry-icon img { display: block; width: 56px; height: 56px; border-radius: 8px; background: var(--soft); object-fit: cover; }
.entry-identity { min-width: 0; }
.entry-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.entry-heading .server-name { min-width: 0; max-width: 100%; }
.server-entry .server-name { font-size: 16px; line-height: 1.4; }
.entry-promo { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 100%; min-height: 26px; padding: 3px 7px; border: 1px solid #dbc38d; border-radius: 5px; color: #795310; background: #fff7e4; font-size: 11px; font-weight: 600; line-height: 1.4; vertical-align: middle; }
.entry-promo .icon { display: block; width: 14px; height: 14px; stroke-width: 1.8; }
.entry-promo strong { padding-left: 6px; border-left: 1px solid #dbc38d; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.entry-promo strong[hidden] { display: none; }
.entry-description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.entry-banner { display: block; grid-column: 3 / -1; width: 100%; max-width: 468px; }
.entry-banner img, .entry-banner video, .profile-banner { display: block; width: 100%; max-width: 468px; height: auto; aspect-ratio: 468 / 60; object-fit: contain; }
.profile-banner { margin-top: 16px; }
.entry-banner, .server-description-banner { overflow: hidden; }
img[data-banner-src] { transition: filter .18s ease; }
img.banner-preview { filter: blur(2px); background: var(--soft); }
@media (prefers-reduced-motion: reduce) { img[data-banner-src] { transition: none; } }
.entry-tags { display: flex; flex-wrap: wrap; gap: 5px 7px; }
.entry-tags > span { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; line-height: 1.5; padding: 2px 7px; border-radius: 3px; background: var(--soft); }
.entry-tags > .primary-tag { color: var(--green); background: var(--green-soft); }
.entry-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 16px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.entry-metric-label { display: block; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.server-entry .row-online strong, .entry-record strong { display: flex; justify-content: flex-start; font-size: 20px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.entry-record strong { color: var(--muted); }
.server-entry .row-online small, .entry-record small { display: block; min-height: 16px; margin: 1px 0 0; font-size: 9px; color: var(--muted); }
.entry-status-footer { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.entry-edition { display: flex; flex-wrap: nowrap; flex: 1; min-width: 0; gap: 3px 7px; font-size: 10px; color: var(--muted); }
.server-entry .row-version { display: block; font-size: 10px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-entry .row-online strong, .entry-record strong { white-space: nowrap; min-height: 1.4em; }
.server-entry [data-live-field=players] { flex-shrink: 0; }
.entry-record strong { overflow: hidden; text-overflow: ellipsis; }
.entry-footer { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 8px; min-width: 0; }
.server-entry .entry-address { display: inline-flex; min-height: 30px; padding: 3px 7px; margin: 6px 0 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 11px; line-height: 1.5; max-width: 100%; }
.server-entry .entry-address:hover, .server-entry .entry-address.copied { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.server-entry .entry-address .icon { display: inline-block; width: 14px; height: 14px; }
.entry-insight { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.entry-insight .icon { width: 13px; height: 13px; }
.entry-votes { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.entry-votes .icon { width: 14px; height: 14px; color: #bb9034; }
.entry-votes > span { color: var(--muted); font-size: 10px; }
:root[data-theme=dark] .entry-rank.leading { color: #d4b46f; }
:root[data-theme=dark] .entry-promo { color: #f1ce85; background: #b787241a; border-color: #a9864266; }
:root[data-theme=dark] .entry-promo strong { border-color: #a9864266; }
:root[data-theme=dark] .server-entry:hover { border-color: #607a6d; }
@media (max-width: 1100px) {
    .server-row.server-entry { grid-template-columns: 18px 48px minmax(0, 1fr) 210px; gap: 12px; padding: 15px 14px 15px 10px; }
    .server-entry.is-promoted { padding-left: 8px; }
    .entry-icon, .entry-icon img { width: 48px; height: 48px; }
    .server-entry .server-name { font-size: 14px; }
    .server-entry .row-online strong, .entry-record strong { font-size: 17px; }
    .entry-status { gap: 8px 10px; padding-left: 12px; }
    .entry-footer { gap: 8px 12px; }
    .entry-votes > span { display: none; }
}
@media (max-width: 760px) {
    .entry-banner { grid-column: 1 / -1; }
    .server-row.server-entry { grid-template-columns: 42px minmax(0, 1fr) 82px; align-items: start; gap: 10px; padding: 15px 13px; }
    .server-entry.is-promoted { padding-left: 11px; }
    .entry-rank { position: absolute; top: 46px; left: 10px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; border: 2px solid var(--surface); border-radius: 4px; background: var(--soft); font-size: 9px; }
    .entry-icon, .entry-icon img { width: 42px; height: 42px; border-radius: 6px; }
    .entry-heading { flex-wrap: wrap; gap: 4px 8px; }
    .server-entry .server-name { font-size: 14px; }
    .entry-description { font-size: 11px; }
    .entry-tags { gap: 4px; }
    .entry-tags > span { font-size: 9px; padding: 2px 5px; }
    .server-entry .row-online strong { font-size: 16px; }
    .entry-status { grid-template-columns: minmax(0, 1fr); border: 0; padding: 0; gap: 8px; text-align: right; }
    .server-entry .row-online strong { justify-content: flex-end; }
    .entry-metric-label { font-size: 8px; }
    .entry-record { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 5px; }
    .entry-record .entry-metric-label { margin: 0; }
    .entry-record strong { font-size: 10px; }
    .entry-record small { display: none; }
    .entry-status-footer { flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
    .entry-edition { justify-content: flex-end; }
    .entry-edition, .server-entry .row-version { font-size: 9px; }
    .entry-footer { gap: 8px; }
    .server-entry .entry-address { min-height: 34px; max-width: 100%; font-size: 10px; }
    .entry-insight { flex-basis: 100%; order: 3; font-size: 9px; }
    .entry-votes { margin-left: auto; }
}
/* Use the list width: sidebar pages and full-width lists need different breakpoints. */
@container server-cards (min-width: 960px) {
    .server-row.server-entry {
        grid-template-columns: 24px 56px minmax(160px, 1fr) minmax(280px, 468px) 240px;
        grid-template-rows: auto auto auto;
        column-gap: 16px;
        row-gap: 7px;
        min-height: 118px;
    }
    .server-entry .entry-identity { display: contents; }
    .server-entry .entry-rank { grid-column: 1; grid-row: 1 / 4; }
    .server-entry .entry-icon { grid-column: 2; grid-row: 1 / 4; }
    .server-entry .entry-heading { grid-column: 3 / 5; grid-row: 1; min-width: 0; }
    .server-entry .entry-address { grid-column: 3; grid-row: 2; justify-self: start; margin: 0; }
    .server-entry .entry-footer { grid-column: 3; grid-row: 3; margin: 0; gap: 5px 10px; }
    .server-entry .entry-banner { grid-column: 4; grid-row: 2 / 4; align-self: center; }
    .server-entry .entry-status { grid-column: 5; grid-row: 1 / 4; padding-left: 16px; gap: 8px 12px; }
    .server-entry .entry-metric-label { font-size: 8px; }
    .server-entry:not(:has(.entry-banner)) {
        grid-template-columns: 24px 56px minmax(200px, 1fr) minmax(200px, 300px) 240px;
        grid-template-rows: min-content min-content;
        align-content: center;
        min-height: 104px;
    }
    .server-entry:not(:has(.entry-banner)) .entry-heading { grid-column: 3; }
    .server-entry:not(:has(.entry-banner)) .entry-footer { grid-column: 4; grid-row: 1 / 3; }
    .server-entry:not(:has(.entry-banner)) .entry-rank,
    .server-entry:not(:has(.entry-banner)) .entry-icon,
    .server-entry:not(:has(.entry-banner)) .entry-status { grid-row: 1 / 3; }
    .server-entry:has(.entry-description) { grid-template-rows: auto auto auto auto; }
    .server-entry:has(.entry-description) .entry-description { grid-column: 3 / 5; grid-row: 2; margin: 0; min-width: 0; }
    .server-entry:has(.entry-description) .entry-address { grid-row: 3; }
    .server-entry:has(.entry-description) .entry-footer { grid-column: 3; grid-row: 4; }
    .server-entry:has(.entry-description) .entry-banner { grid-row: 3 / 5; }
    .server-entry:has(.entry-description) .entry-rank,
    .server-entry:has(.entry-description) .entry-icon,
    .server-entry:has(.entry-description) .entry-status { grid-row: 1 / 5; }
}
