/* BandMan Audience Choice Rankings Styles */

.bandman-audience-choice-container {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.bandman-audience-choice-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.bandman-audience-choice-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.bandman-audience-choice-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.bandman-audience-choice-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.bandman-audience-choice-table tbody tr:hover {
    background: #fafafa;
}

/* Row styling for bands that haven't played yet */
.bandman-audience-choice-table tbody tr.bandman-not-played {
    color: #c0c0c0;
}

.bandman-audience-choice-table tbody tr.bandman-not-played .bandman-band-name,
.bandman-audience-choice-table tbody tr.bandman-not-played .bandman-vote-count {
    color: #c0c0c0;
}

/* Band name column */
.bandman-audience-choice-table .bandman-band-name {
    font-weight: 500;
    max-width: 400px;
}

/* Vote count column */
.bandman-audience-choice-table .bandman-vote-count {
    text-align: center;
    font-weight: 500;
    width: 80px;
}

/* Vote bar column */
.bandman-audience-choice-table .bandman-vote-bar {
    width: 100%;
    padding: 8px 12px;
}

.bandman-bar-background {
    width: 100%;
    height: 30px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.bandman-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #005a88 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
}

/* Grey bar for bands that haven't played */
.bandman-audience-choice-table tbody tr.bandman-not-played .bandman-bar-fill {
    background: linear-gradient(90deg, #d0d0d0 0%, #b8b8b8 100%);
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bandman-audience-choice-table {
        font-size: 12px;
    }

    .bandman-audience-choice-table th,
    .bandman-audience-choice-table td {
        padding: 8px;
    }

    .bandman-bar-background {
        height: 24px;
    }

    .bandman-bar-fill {
        font-size: 11px;
        padding-right: 6px;
    }

    .bandman-audience-choice-table .bandman-band-name {
        max-width: 300px;
    }

    .bandman-audience-choice-table .bandman-vote-count {
        width: 60px;
    }

    .bandman-audience-choice-container {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .bandman-audience-choice-table {
        font-size: 11px;
    }

    .bandman-audience-choice-table th,
    .bandman-audience-choice-table td {
        padding: 6px;
    }

    .bandman-bar-background {
        height: 20px;
    }

    .bandman-bar-fill {
        font-size: 10px;
    }

    .bandman-audience-choice-table .bandman-band-name {
        max-width: 80px;
        font-size: 11px;
    }

    .bandman-audience-choice-table .bandman-vote-count {
        width: 50px;
    }
}
