.photo-voting {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Manrope', sans-serif;
}

.vote-header {
    text-align: center;
    margin-bottom: 40px;
}

.vote-title {
    margin: 0 0 10px;
    font-size: 2em;
    color: #010d6f;
    font-weight: 600;
    line-height: 1.4;
}

.vote-total {
    color: #010d6f;
    font-size: 1.1em;
}

.vote-total strong {
    color: #fb2c3c;
}

.vote-message {
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.vote-message--success {
    background: #ffd316;
    color: #010d6f;
}

.vote-message--error {
    background: #fb2c3c;
    color: #fff;
}

/* Категории в ряд */
.vote-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vote-category {
    background: #f8f9ff;
    border: 2px solid transparent;
    padding: 20px;
    transition: border-color 0.2s;
}

.vote-category:hover {
    border-color: #ffd316;
}

.vote-category--voted {
    border: 3px solid #ffd316;
    background: #fff;
}

/* Заголовок категории */
.vote-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.vote-category__info {
    flex: 1;
}

.vote-category__title {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #010d6f;
    font-weight: 600;
    line-height: 1.4;
}

.vote-category__stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vote-category__count {
    font-size: 0.95em;
    color: #010d6f;
    opacity: 0.7;
    white-space: nowrap;
}

.vote-progress {
    flex: 1;
    max-width: 300px;
    height: 8px;
    background: #e0e4f0;
    overflow: hidden;
}

.vote-progress__bar {
    height: 100%;
    background: #ffd316;
    transition: width 0.5s ease;
}

.vote-category--voted .vote-progress__bar {
    background: #fb2c3c;
}

/* Кнопка голосования */
.vote-btn {
    padding: 12px 30px;
    border: 2px solid #ffd316;
    background: #ffd316;
    color: #010d6f;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vote-btn:hover:not(:disabled) {
    background: #fb2c3c;
    border-color: #fb2c3c;
    color: #fff;
}

.vote-btn:disabled {
    background: #e0e4f0;
    border-color: #e0e4f0;
    color: #010d6f;
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-btn--active {
    background: #010d6f !important;
    border-color: #010d6f !important;
    color: #ffd316 !important;
    opacity: 1 !important;
}

.vote-btn--active:hover {
    background: #010d6f !important;
    border-color: #ffd316 !important;
}

/* Галерея фото в ряд */
.vote-category__gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.vote-category__gallery::-webkit-scrollbar {
    height: 8px;
}

.vote-category__gallery::-webkit-scrollbar-track {
    background: #e0e4f0;
}

.vote-category__gallery::-webkit-scrollbar-thumb {
    background: #ffd316;
}

.vote-category__gallery::-webkit-scrollbar-thumb:hover {
    background: #010d6f;
}

.vote-photo {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: none !important;
    display: block;
}

.vote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vote-photo:hover img {
    transform: scale(1.05);
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .vote-title {
        font-size: 1.5em;
    }
    
    .vote-category__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vote-category__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .vote-progress {
        max-width: 100%;
        width: 100%;
    }
    
    .vote-btn {
        width: 100%;
        text-align: center;
    }
    
    .vote-photo {
        width: 140px;
        height: 140px;
    }
}

@media screen and (min-width: 1920px) {
    .photo-voting {
        max-width: 1600px;
    }
    
    .vote-photo {
        width: 220px;
        height: 220px;
    }
}