.teams-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.team-card:hover {
    border-color: var(--lot-orange);
}

.team-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.team-summary:hover {
    background-color: rgba(254, 222, 123, 0.1);
}

.team-photos {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.player-photo-item {
    flex-shrink: 0;
}

.player-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lot-orange);
}

.player-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #ddd;
}

.team-info {
    flex-grow: 1;
}

.team-vote-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lot-orange);
    border: 2px solid var(--lot-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.vote-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lot-green);
}

.team-total-votes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--lot-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    flex-shrink: 0;
}

.total-votes-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.total-votes-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lot-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.new-team-badge {
    display: inline-block;
    background-color: var(--lot-orange);
    color: var(--lot-green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-players {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.team-expand {
    flex-shrink: 0;
}

.expand-icon {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--lot-orange);
    transition: transform 0.3s;
}

.team-details {
    display: none;
    padding: 2rem;
    border-top: 2px solid #f0f0f0;
    background-color: #fafafa;
}

.team-section {
    margin-bottom: 2rem;
}

.team-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
}

.detail-section h4 {
    font-size: 1.2rem;
    color: var(--lot-green);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lot-orange);
}

.detail-section h5 {
    font-size: 1rem;
    color: var(--lot-green);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.detail-section p {
    margin: 0.5rem 0;
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.detail-section strong {
    color: var(--lot-green);
    font-weight: 600;
}

.detail-media {
    margin-top: 1rem;
}

.detail-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.detail-video {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.player-photo-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.player-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lot-orange);
}

/* Questions section */
.questions-section {
    margin-bottom: 2rem;
}

.questions-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.question-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--lot-orange);
}

.question-label {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.question-answer {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.votes-summary {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.votes-summary h3 {
    color: var(--lot-green);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.votes-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vote-rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.vote-rank-item.selected {
    border-left-color: var(--lot-orange);
    background-color: #fff8e6;
}

.vote-rank-item.is-racing {
    border-left-color: var(--lot-green);
    background-color: #e8f5e9;
}

.rank-position {
    font-weight: 700;
    color: var(--lot-green);
    min-width: 30px;
    text-align: center;
}

.rank-name {
    flex-grow: 1;
    font-weight: 600;
}

.rank-score {
    color: #666;
    font-weight: 600;
}

.rank-badge {
    background-color: var(--lot-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rank-badge.pending {
    background-color: var(--lot-orange);
    color: var(--lot-green);
}

@media (max-width: 768px) {
    .team-summary {
        flex-direction: column;
        text-align: center;
    }

    .team-media-grid {
        grid-template-columns: 1fr;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .questions-content {
        grid-template-columns: 1fr;
    }
}
