*{box-sizing:border-box}
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#14213d;background:#f7f8fa}
body{margin:0;padding-bottom:88px;background:#f7f8fa;color:#14213d}

.wall-top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;min-height:66px;padding:8px 12px 8px 14px;background:#fff;border-bottom:1px solid #dce3ec}
.wall-top a{text-decoration:none;color:#14213d;font-weight:900}
.wall-top-title{display:block;width:100%;text-align:center;font-size:clamp(1.25rem,5vw,1.8rem);font-weight:950;color:#14213d}
.wall-user-nav{margin-left:auto;display:flex;align-items:center;gap:10px}
.wall-user-nav[hidden]{display:none!important}
.wall-profile-link{position:static;color:#0756b8;font-weight:950;text-decoration:none}
.wall-profile-avatar{position:static;display:block;width:54px;height:54px;border-radius:50%;overflow:hidden;border:3px solid #0756b8;background:#e7eef8;box-shadow:0 5px 14px rgba(18,38,63,.2)}
.wall-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.wall-profile-avatar img.is-empty{background:#d9e2ee}

.wall-shell{width:min(1180px,100%);margin:auto;padding:12px 10px 16px}
.wall-hero{text-align:center}
.wall-hero>p,.wall-hero>h1{display:none}
#wallCount{font-size:.45em;vertical-align:middle;padding:5px 9px;border-radius:999px;background:#e7eef8}

.wall-filter-row{display:flex;justify-content:center;gap:6px;overflow-x:auto;padding-bottom:7px;scroll-snap-type:x proximity;scrollbar-width:none}
.wall-filter-row::-webkit-scrollbar{display:none}
.wall-filter-row button{border:1px solid #cdd8e6;background:#fff;color:#22314d;border-radius:8px;padding:8px 10px;font-weight:850;white-space:nowrap;scroll-snap-align:start}
.wall-filter-row button.active{background:#0756b8;color:#fff;border-color:#0756b8}
.wall-filter-row .cast-button{margin-left:auto;border-color:#9aa3af}

.wall-filter-selects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%;max-width:820px;margin:12px auto}
.wall-filter-selects label{display:grid;gap:4px;min-width:0;text-align:left;font-size:clamp(.5rem,2.1vw,.72rem);font-weight:900;text-transform:uppercase}
.wall-filter-selects select{width:100%;min-width:0;min-height:40px;border:1px solid rgba(255,255,255,.25);border-radius:9px;padding:6px 3px;background:#fff;color:#111;font-size:clamp(.66rem,2.6vw,.88rem);font-weight:800}
.wall-hero input{width:100%;min-height:44px;margin-top:9px;border:1px solid #cdd8e6;border-radius:9px;padding:0 12px;font-size:16px;background:#fff}
.wall-status{padding:12px 2px;color:#667085}

.wall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.wall-card{--stroke:#aab4c3;min-width:0}
.wall-card.team-blue{--stroke:#1565ff}
.wall-card.team-yellow{--stroke:#f2c400}
.wall-card.team-cast{--stroke:#fff}
.wall-photo{position:relative;display:block;aspect-ratio:4/5;background:#28303b;border:2px solid var(--stroke);border-radius:8px;overflow:hidden;text-decoration:none;box-shadow:0 4px 14px rgba(18,38,63,.12)}
.wall-photo img{position:relative;z-index:2;display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.wall-initials{position:absolute;z-index:1;inset:0;display:grid;place-items:center;font-size:clamp(1.2rem,5vw,2.4rem);font-weight:950;color:#c7ced8}
.wall-name{position:absolute;z-index:4;left:0;right:0;bottom:0;padding:18px 4px 5px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff;text-align:center;font-size:clamp(.58rem,2.4vw,.82rem);line-height:1.05;text-shadow:0 1px 2px #000}
.wall-badge{position:absolute;z-index:5;top:5px;max-width:48%;padding:3px 5px;border-radius:5px;background:rgba(0,0,0,.76);color:#fff;font-size:clamp(.48rem,2vw,.66rem);font-weight:900;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wall-season{left:5px}
.wall-team{right:5px}
.team-yellow .wall-team{background:#f2c400;color:#211a00}
.team-blue .wall-team{background:#1565ff}
.team-cast .wall-team{background:#fff;color:#111}
.wall-empty{grid-column:1/-1;padding:32px;text-align:center;color:#667085}
.wall-load-more{grid-column:1/-1;justify-self:center;margin:18px;padding:10px 16px;border:1px solid #d3dae4;border-radius:8px;background:#fff;font-weight:900}

@media(max-width:700px){
  .wall-shell{padding:14px 5px}
  .wall-grid{gap:4px}
  .wall-filter-row .cast-button{margin-left:0}
}
@media(max-width:620px){
  .wall-filter-selects{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .wall-filter-selects select{min-height:38px}
}

/* V241 regular member directory */
.wall-card.team-member{--team:#7dd3fc;--team-deep:#16324f}
.wall-card.team-member .wall-photo{border-color:rgba(125,211,252,.55)}
.wall-card.team-member .wall-team{background:rgba(12,30,48,.88);color:#dff5ff}
.wall-filter-row .member-button.active{box-shadow:0 0 0 2px rgba(125,211,252,.28) inset}
.wall-filter-selects select:disabled{opacity:.45;cursor:not-allowed}
.wall-private{left:10px;right:auto;top:44px;background:#111;color:#fff;border:1px solid rgba(255,255,255,.8)}


/* V286 — contain Wall of Fame discovery controls in one calm white panel. */
.wall-hero{background:#fff;border:1px solid #dce3ec;border-radius:16px;padding:14px;box-shadow:0 8px 22px rgba(18,38,63,.07);margin-bottom:16px}
.wall-filter-row{padding-bottom:4px}
.wall-filter-selects{margin:14px auto 10px;gap:7px}
.wall-filter-selects label{color:#667085;font-weight:700;letter-spacing:.035em}
.wall-filter-selects select{border-color:#d5dde8;background:#fff;color:#111}
.wall-hero input{margin-top:4px;border-color:#d5dde8}
@media(max-width:700px){.wall-hero{padding:11px 9px;border-radius:14px;margin-inline:1px;margin-bottom:14px}}
/* V362 — compact on-demand Wall search; Profile remains in bottom navigation. */
.wall-search-toggle{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:#eef3f8;color:#14213d;font-size:28px;font-weight:900;line-height:1;cursor:pointer}.wall-top-title{padding-left:44px}.wall-search-panel{display:flex;gap:7px;align-items:center;margin-top:8px}.wall-search-panel[hidden]{display:none!important}.wall-search-panel input{flex:1;margin:0!important}.wall-search-panel button{width:42px;height:42px;border:1px solid #d5dde8;border-radius:9px;background:#fff;font-size:24px}.wall-hero:has(.wall-search-panel[hidden]){padding-bottom:8px}.wall-hero:has(.wall-search-panel[hidden]) .wall-filter-selects{margin-bottom:2px}
/* V365: keep all five Wall of Fame action filters on one compact mobile row. */
.wall-filter-selects{grid-template-columns:minmax(0,1.28fr) minmax(0,.82fr) minmax(0,1fr) minmax(0,.92fr) minmax(0,.82fr)!important;gap:3px!important}
.wall-filter-selects label{font-size:clamp(.43rem,1.75vw,.66rem)!important;letter-spacing:.015em!important}
.wall-filter-selects select{min-height:36px!important;padding:5px 2px!important;font-size:clamp(.56rem,2.15vw,.78rem)!important;border-radius:8px!important}
@media(max-width:360px){.wall-filter-selects{gap:2px!important}.wall-filter-selects label{font-size:.42rem!important}.wall-filter-selects select{font-size:.54rem!important;padding-inline:1px!important}}
