:root{
    --bg1:#0b0e18;
    --bg2:#11162a;
    --card1:#151a33;
    --card2:#10142a;
    --stroke:rgba(255,255,255,.08);
    --muted:rgba(234,234,240,.65);
    --txt:#eaeaf0;
    --shadow: 0 18px 55px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
body{
    margin:0;
    color:var(--txt);
    font-family: Inter, Segoe UI, system-ui, -apple-system, Arial, sans-serif;
    background:
        radial-gradient(1200px 600px at 15% 0%, #1b2350 0%, transparent 55%),
        radial-gradient(900px 540px at 85% 10%, #2a1b50 0%, transparent 55%),
        linear-gradient(180deg, var(--bg1), var(--bg2));
}

.page{
    max-width:1600px;
    margin:0 auto;
    padding:34px 26px 70px;
}

.hero{
    display:flex;
    gap:22px;
    align-items:flex-start;
    justify-content:space-between;
    margin-bottom:22px;
}

.hero-left{
    flex:1;
    min-width:280px;
}

.kicker{
    display:inline-flex;
    gap:10px;
    align-items:center;
    padding:8px 12px;
    border:1px solid var(--stroke);
    border-radius:999px;
    background:rgba(255,255,255,.03);
    color:var(--muted);
    font-size:13px;
    letter-spacing:.2px;
}

.title{
    margin:14px 0 8px;
    font-size:40px;
    line-height:1.06;
    letter-spacing:.2px;
}

.sub{
    margin:0;
    color:var(--muted);
    max-width:820px;
    font-size:14px;
    line-height:1.6;
}

.hero-right{
    width:520px;
    max-width:100%;
}

.toolbar{
    background:linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border:1px solid var(--stroke);
    border-radius:22px;
    padding:14px;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.row{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.search{
    flex:1;
    min-width:220px;
    position:relative;
}

.search input{
    width:100%;
    padding:12px 12px 12px 42px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    outline:none;
    background:rgba(0,0,0,.25);
    color:var(--txt);
    font-size:14px;
}

.search .ico{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    opacity:.7;
    font-size:16px;
}

.chips{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.chip{
    cursor:pointer;
    user-select:none;
    padding:10px 12px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.03);
    color:rgba(234,234,240,.78);
    font-size:13px;
    transition:.18s;
}

.chip:hover{ transform:translateY(-1px); }
.chip.active{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.18);
    color:#fff;
}

.switch{
    margin-top:10px;
    display:flex;
    gap:8px;
}

.btn{
    cursor:pointer;
    user-select:none;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(0,0,0,.22);
    color:rgba(234,234,240,.8);
    font-size:13px;
    transition:.18s;
}
.btn:hover{ transform:translateY(-1px); }
.btn.active{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.18);
    color:#fff;
}

.stats{
    margin-top:10px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.pill{
    padding:9px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.03);
    color:rgba(234,234,240,.72);
    font-size:13px;
}

.roles-grid{
    margin-top:28px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(420px,1fr));
    gap:22px;
}

.role-card{
    position:relative;
    border-radius:26px;
    padding:22px;
    background:
        radial-gradient(1100px 480px at 0% 0%, rgba(255,255,255,.06), transparent 55%),
        linear-gradient(160deg, rgba(36,39,80,.92), rgba(26,28,54,.92));
    border:1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
    overflow:hidden;
}

.role-card:before{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(800px 240px at 0% 0%, color-mix(in srgb, var(--role-color) 40%, transparent), transparent 55%);
    pointer-events:none;
    opacity:.75;
}

.role-header{
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:16px;
}

.role-title{
    display:flex;
    gap:10px;
    align-items:center;
}

.role-title h2{
    margin:0;
    font-size:20px;
    letter-spacing:.2px;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(0,0,0,.22);
    color:rgba(234,234,240,.8);
    font-size:12px;
}

.dot{
    width:8px;height:8px;border-radius:50%;
    background:var(--role-color);
    box-shadow:0 0 16px color-mix(in srgb, var(--role-color) 80%, transparent);
}

.people-grid{
    position:relative;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:12px;
}

.people-list{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.person{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(160deg, rgba(15,18,36,.8), rgba(20,23,45,.8));
    transition:.22s;
}

.person:hover{
    transform:translateY(-3px);
    border-color:rgba(255,255,255,.14);
    box-shadow:0 18px 40px rgba(0,0,0,.45);
}

.avatarWrap{
    width:58px;
    height:58px;
    border-radius:50%;
    padding:2px;
    background: conic-gradient(from 180deg, var(--role-color), rgba(255,255,255,.18), var(--role-color));
    flex-shrink:0;
}

.avatarImg{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
    background:#0d1020;
    border:1px solid rgba(255,255,255,.10);
    display:block;
}

.personInfo{
    min-width:0;
    flex:1;
}

.name{
    font-size:15px;
    font-weight:700;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.meta{
    margin-top:6px;
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
    color:rgba(234,234,240,.68);
    font-size:12px;
}

.tag{
    padding:6px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.03);
}

.rank{
    color:color-mix(in srgb, var(--role-color) 75%, #ffffff 25%);
    border-color:color-mix(in srgb, var(--role-color) 35%, rgba(255,255,255,.10));
}

.empty{
    position:relative;
    padding:16px;
    border-radius:18px;
    border:1px dashed rgba(255,255,255,.14);
    background:rgba(0,0,0,.15);
    color:rgba(234,234,240,.55);
    font-size:14px;
}

.footerNote{
    margin-top:22px;
    color:rgba(234,234,240,.55);
    font-size:12px;
    line-height:1.55;
}

@media (max-width:980px){
    .hero{flex-direction:column;}
    .hero-right{width:100%;}
    .title{font-size:34px;}
}

@media (max-width:600px){
    .page{padding:24px 14px 60px;}
    .roles-grid{grid-template-columns:1fr;}
}