.voting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.vote-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.vote-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}
.vote-description {
    color: #666;
    margin-bottom: 20px;
}
.vote-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.vote-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.vote-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}
.vote-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}
.vote-option img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}
.vote-option-title {
    font-weight: bold;
    color: #333;
}
.vote-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.vote-button:hover {
    background: #0056b3;
}
.vote-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.vote-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}
.result-option {
    font-weight: bold;
    color: #0f102e;
}
.result-percentage {
    color: #007bff;
    font-weight: bold;
}
.voters-list {
    margin-top: 10px;
}
.voter-item {
    display: inline-block;
    margin: 2px 0px 2px -15px;
}
.voter-item:first-child {
    margin: 2px 0px 2px;
}
.voter-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.result-item.user-choice {
    background: #cce5ff;
    border: 1px solid #007bff;
}
.result-item.winner {
    background: #d4edda;
    border: 1px solid #28a745;
}

.result-item.winner .result-percentage {
    color: #22913b;
}
.winner-badge, .user-choice-badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
}
.winner-badge {
    background: #28a745;
    color: white;
}
.user-choice-badge {
    background: #007bff;
    color: white;
}
.voters-preview {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.voters-avatars {
    display: flex;
    gap: 2px;
}
.voters-count {
    background: #6c757d;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.view-all-voters {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}
.view-all-voters:hover {
    text-decoration: underline;
}
/* Модальное окно */
.modal {
    position: fixed;
    z-index: 1031;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    color: #fff;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #000;
}
.modal-body {
    padding: 20px;
}
.modal-voter-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 0.5px solid #2e3852;
}
.modal-voter-item:last-child {
    border-bottom: none;
}
.modal-voter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}
.modal-voter-info {
    flex: 1;
}
.modal-voter-name {
    font-weight: bold;
    margin-bottom: 2px;
}
.modal-voter-email {
    color: #666;
    font-size: 14px;
}
.load-more-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px auto;
    display: block;
}
.load-more-btn:hover {
    background: #218838;
}
.no-votes {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin: 40px 0;
}
.modal-content-voters-list {
    background: #16213e !important;
    color: white !important;
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.back-link:hover {
    text-decoration: underline;
}
