.sportify-team,
.sportify-team-list {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sp-text);
}

.team-hero {
    position: relative;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(59, 130, 246, 0.14) 0%, transparent 40%),
        linear-gradient(145deg, #111827 0%, #0f172a 60%, #1e1b4b 100%);
    border-bottom: 1px solid var(--sp-border);
    padding: 3rem 1.5rem 5rem;
    text-align: center;
    overflow: hidden;
    margin: 0 -1.5rem;
}

.team-hero .team-pic {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    border: 4px solid rgba(255, 77, 0, 0.8);
    background: var(--sp-card);
    box-shadow: 0 0 0 6px rgba(255, 77, 0, 0.15), var(--sp-shadow-lg);
    display: block;
    margin: 0 auto 1.25rem;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.team-hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--sp-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.team-hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), #ffb700);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.team-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.team-meta li {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--sp-shadow);
}

.team-meta a {
    color: var(--sp-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.team-meta a:hover {
    color: var(--sp-primary-glow);
}

.team-roster,
.team-list-content {
    max-width: 1200px;
    margin: -3rem auto 0;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 2;
}

.team-roster h2,
.org-group h2 {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    color: var(--sp-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.team-roster h2::before,
.org-group h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.4rem;
    background: linear-gradient(180deg, var(--sp-primary), #ffb700);
    border-radius: 3px;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.roster-card {
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--sp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.roster-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
    opacity: 0.8;
}

.roster-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-lg), 0 0 20px rgba(255, 77, 0, 0.08);
}

.roster-pic {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid var(--sp-border);
    background: var(--sp-surface);
    object-fit: cover;
    margin-bottom: 0.9rem;
}

.roster-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.roster-card h3 a {
    color: var(--sp-text);
    text-decoration: none;
}

.roster-card h3 a:hover {
    color: var(--sp-primary-glow);
}

.roster-role {
    margin: 0.5rem 0 0;
    color: var(--sp-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.roster-empty,
.team-list-hero {
    text-align: center;
}

.team-list-hero {
    padding: 2.5rem 1.5rem 4rem;
}

.team-list-hero h1 {
    font-size: 2.4rem;
    margin: 0;
}

.org-group {
    margin-bottom: 2.5rem;
}

.org-group h2 {
    color: var(--sp-muted);
    font-size: 1.2rem;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--sp-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
    opacity: 0.8;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-lg), 0 0 25px rgba(255, 77, 0, 0.1);
}

.team-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--sp-surface);
    object-fit: cover;
    border: 2px solid var(--sp-border);
}

.team-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.team-card h3 a {
    color: var(--sp-text);
    text-decoration: none;
}

.team-card h3 a:hover {
    color: var(--sp-primary-glow);
}

.team-card-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.team-card-links li a,
.team-card-links li span {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    color: var(--sp-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease;
}

.team-card-links li a:hover {
    background: rgba(255, 77, 0, 0.12);
    color: var(--sp-primary-glow);
    border-color: rgba(255, 77, 0, 0.4);
}

@media (max-width: 700px) {
    .team-hero {
        padding: 2rem 1rem 4rem;
    }

    .team-hero h1 {
        font-size: 1.9rem;
    }

    .team-hero .team-pic {
        width: 120px;
        height: 120px;
    }

    .roster-grid,
    .team-cards {
        grid-template-columns: 1fr;
    }

    .team-list-hero h1 {
        font-size: 1.8rem;
    }
}
