.team-card{
    --bg:#061021;
    --card:#0b1c38;
    --accent:#0ea5b7;
    --muted:#94a3b8;
    --radius:16px;
    --shadow:0 6px 18px rgba(0,0,0,0.6);
    font-family:"Inter",sans-serif;

    width:100%;
    max-width:350px;
    /* background:var(--card); */
    background: rgba(0, 0, 0, 0.15);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-self: center;
}

.team-card-header{
    background:rgba(255,255,255,0.05);
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.team-card-header h2{
    font-size:16px;
    margin:0;
    font-weight:600;
    color: white;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.team-card-header > div span{
    font-size:12px;
    color:var(--muted);
}

.team-card-header-badges {
    display: flex;
    align-items: center;
}

.badge {
  margin-left: 6px;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.badge.yt {
  background: white;
  color: black;
  font-size: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge.new {
  background: orange;
  color: white;
}

.badge.theory {
  background: cornflowerblue;
  color: white;
}

.team-card-body{
    display:flex;
    flex-direction:column;
    padding:16px;
    gap:12px;
}

.team-card-members {
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.team-card-member-slot {
    flex:1;
    background:rgba(255,255,255,0.02);
    border-radius:12px;
    padding:10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.team-card-member-avatar{
    width:64px;height:64px;
    border-radius:12px;
    background:linear-gradient(135deg,#12335c,#0ea5b7);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    margin-bottom:8px;
    overflow: hidden;
}

.team-card-member-avatar > img {
    height: 100%;
    width : 100%;
}

.team-card-member-slot h3{
    margin:0;
    font-size:14px;
    color: whitesmoke;
}
.team-card-member-slot small{
    display:block;
    font-size:11px;
    color:var(--muted);
    margin-top: 6px;
}

.team-card-member-tags {
    margin-top:6px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:center;
}
.team-card-member-tag {
    font-size:10px;
    padding:2px 6px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    color: whitesmoke;
}

.team-card-footer{
    margin-top:auto;
    text-align:center;
    font-size:12px;
    color:var(--muted);
    padding:10px 20px;
    background:rgba(255,255,255,0.03);
}

.team-card-pre-footer {
    margin-top:auto;
    text-align:center;
    font-size:12px;
    color:var(--muted);
    padding:10px 20px;

    display: flex;
    justify-content: space-between;
}

.no-author {
    visibility: hidden;
}

.team-card-details-button {
    font-size: 12px;
    color: var(--muted);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.team-card-stats {
    margin-top: 14px;
    background: rgba(255,255,255,0.04);
    padding: 14px 0 0 14px;
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    text-align: center;
    justify-content: space-between;
    border: 2px solid #394259;
    overflow: "hidden"
}
.team-card-stats .big {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.team-card-stats .nightmare {
  color: #f87171;
}
.team-card-stats small {
  font-size: 11px;
  color: var(--muted);
}
.team-card-stats .pill {
  background: rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.team-card-stats .on {
  background: var(--accent);
  color: white;
}

.team-stats {
    display: flex;
    justify-content: space-around;
}

.team-party-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2px 0;
    background: #182033;
    border-radius: 13px 0;
    background: "rgba(0, 0, 0, 0.15)";
    border-radius: "13px";
}

.team-party-link-slot {
    display: flex;
    align-items: center;
    color: whitesmoke;
    gap: 15px;
    border-radius: 15px;
    padding: 5px
}

.team-party-link-slot.disabled > img {
    filter: brightness(.5) grayscale(1);
    opacity: .5;
}

.team-party-link-slot > img {
    height: 48px;
    border-radius: 10px;
}

@media screen and (min-width: 1064px) and (max-width: 1264px) {
    .team-list-container {
        width: 100%;
    }

    .team-list {
        grid-template-columns: 1fr 1fr;
        justify-content: center;
        margin: auto;
    }
}

@media screen and (max-width: 1064px) {
    .team-list {
        grid-template-columns: 1fr;
        justify-content: center;
        margin: auto;
    }
}