.team-frame { margin-bottom: 16px; }
.team-group-frame { margin-bottom: 16px; }
.team-header { display: flex; align-items: center; gap: 10px; }
.team-header-icon {
    color: var(--hydra-light);
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 4px rgba(74, 119, 212, 0.3));
}

.team-intro {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: end;
}
@media (max-width: 700px) { .team-intro { grid-template-columns: 1fr; } }
.team-intro-text {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}
.team-intro-text strong { color: var(--hydra-light); }
.team-intro-field { display: flex; flex-direction: column; gap: 5px; }
.team-label {
    color: var(--hydra-glow);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.team-select {
    background: rgba(5, 16, 42, 0.85);
    border: 1px solid var(--frame-border);
    color: var(--text-primary);
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.team-select:focus { border-color: var(--frame-border-strong); }

/* Empty state */
.team-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    gap: 14px;
}
.team-empty-icon { color: var(--hydra-deep); opacity: 0.65; }
.team-empty-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Cada grupo Ã© um card */
.team-group-header {
    display: flex !important;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.team-group-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--group-color, var(--hydra-deep));
}
.team-group-title {
    flex: 1;
    margin: 0;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 15px !important;
    padding-left: 8px;
}
.team-group-count {
    color: var(--hydra-light);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Tabela */
.team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
    table-layout: fixed;
}
.team-table th:nth-child(1), .team-table td:nth-child(1) { width: auto;  text-align: left; }
.team-table th:nth-child(2), .team-table td:nth-child(2) { width: 200px; text-align: left; }
.team-table th:nth-child(3), .team-table td:nth-child(3) { width: 160px; text-align: left; }
.team-table th:nth-child(4), .team-table td:nth-child(4) { width: 80px;  text-align: center; }

.team-table thead th {
    background: rgba(5, 16, 42, 0.55);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(74, 119, 212, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.team-table tbody tr {
    border-bottom: 1px solid rgba(74, 119, 212, 0.05);
    transition: background 0.1s;
}
.team-table tbody tr:nth-child(even) td { background: rgba(74, 119, 212, 0.025); }
.team-table tbody tr:hover td { background: rgba(74, 119, 212, 0.08); }
.team-table td {
    padding: 10px 16px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-player-link {
    color: var(--hydra-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.team-player-link:hover { color: var(--hydra-glow); }
.team-player-on {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.team-cell-date {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.team-status {
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 6px currentColor;
}
.team-status--online  { color: var(--verdejante); }
.team-status--offline { color: var(--vinho); opacity: 0.55; text-shadow: none; }
