.vote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.vote-title {
    text-align: center;
    margin-bottom: 20px;
}

.vote-period {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}
img.player-image {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.vote-cards {
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
    max-width: 1400px;

    margin-bottom: 20px;
}
button.details-btn {
    background: #e94d65;
}
button.vote-btn {
    background: #3290B6;
    border: 1px solid #3290B6;
}
.vote-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* aspect-ratio: 4/5; */
}
.vote-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes pulse {
    0% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    25% {
        -o-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    50% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    75% {
        -o-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    100% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
.player-image {
    width: 100%;
    height: auto;
    border-radius: 40px !important;
    margin-bottom: 15px;
}

.vote-info {
    text-align: center;
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, #125875 0%, rgba(0, 0, 0, 0.45) 59%, #125875 100%);
    border-radius: 20px;
    padding: 10px;
    width: 100%;
    left: 0;
}


.player-name{
    font-size: 1.2em;
}
.vote-number {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #e94d65;
    transition: all 0.3s ease;
    animation: pulse 1.4s linear infinite;
}

.vote-label {
    display: block;
    font-size: 16px;
    color: #fff;
}

.player-name {
    margin: 5px 0;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Popup Styles */
.details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.details-popup-content {
    position: relative;
    background: #EBF7F7;
    max-width: 1000px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-height: 65vh;
    overflow-y: auto;
}

.details-header {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.details-image {
    position: relative;
    flex: 0 0 40%;
}

.details-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
h2#detailsTitle {
    font-size: 3rem;
}
.details-stats {

    background: linear-gradient(35deg, rgba(0, 0, 0, 0.6) 0%, #3290b6 60%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    color: #e94d65;
    text-align: center;
    position: absolute;
    bottom: -10px;
    left: -72px;
    display: grid
;
    place-content: center;
}

.details-info {
    flex: 1;
    align-items: center;
    margin: auto 0;
}
button.details-popup-close {
       padding: 10px 16px;
    float: right;
    text-align: right;
    border-radius: 50px;
    background: #3290b6;
    border: 1px solid #3290b6;
    color: #fff;
   
}
img.event-logo {
    width: 40%;
}
h2.event-title {
    color: #fff;
}
@media (max-width: 768px) {
    
    .players-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
   .vote-card  img.player-image {
        height: 400px !important;
        width: 100%;
        object-fit: cover;
    }
    h2#detailsTitle{
        font-size: 1.5rem;
    }
    .details-header {
        flex-direction: column;
    }
    .vote-cards{
        display: block;
    }
    .details-stats {
        left: 0;
        bottom: 0;
    }
    .event-intro-section{
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
}
.vote-info {
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, #125875 0%, rgba(0, 0, 0, 0.45) 59%, #125875 100%);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
}
.action-buttons button {
    color: #fff;
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 14px;
    border: none;
}
h3.player-name {
    color: #fff !important;
    cursor: pointer;
}
.vote-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 31, 56, 0.95);
    z-index: 1000;
}

.vote-popup-content {
    position: relative;
    max-width: 400px;
    margin: 15% auto;
    padding: 40px 20px;
    text-align: center;
}

.vote-popup-content-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vote-popup-content img {
    width: 50%;
    height: auto;
   
}

.vote-popup-content h2 {
    color: #fff !important;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.points-earned {
    color: #ffeb3b;
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
    text-align: center;
    animation: pulse 1.4s linear infinite;
}

.back-vote-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.back-vote-btn:hover {
    background: #fff;
    color: #121F38;
}

.remaining-votes {
    margin-top: 10px;
    font-size: 16px;
}

/* Animation khi số vote được cập nhật */
.vote-updated {
    transform: scale(1.2);
    color: #ffeb3b;
}

/* Đảm bảo số vote trong popup cũng được cập nhật mượt mà */
#detailsVotes {
    transition: all 0.3s ease;
}

/* Event Intro Section Styles */
.vote-cards {
    gap:20px;
    position: relative;
}

.event-intro-section {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, var(--primary-color) 50%, var(--primary-color) 50%, rgba(255, 255, 255, 0) 100%);
    padding: 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 800px; */
    width: 100%;
    margin: 20px auto;
}

.event-logo {
    width: 80px;
    height: auto;
    margin-bottom: 30px;
}

.event-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 0 20px;
}

.event-period {
    color: #fff;
    font-size: 16px;
    margin-bottom: 30px;
}

.event-intro-btn {
    background: #3290b6;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-intro-btn:hover {
    background: #2d1863;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (min-width: 769px) and (max-width: 992px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    .vote-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .vote-card, .event-intro-section {
        width: 100%;
        max-width: 100%;
    }
    
    .event-intro-section {
        margin: 20px 0;
    }
}

/* Add these styles */
.prizes-info-content {
    padding: 20px;
    color: #333;
}

.prizes-info-content h2 {
    color: #125875;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 800;
    font-size: 3rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

img.player-image {
    height: 600px !important;
    width: 100%;
    object-fit: cover;
}

/* Login Required Popup Styles */
.login-now-btn {
    display: inline-block;
    background: linear-gradient(to right, #f5866f, #e64423) !important;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin: 20px auto;
    transition: all 0.3s ease;
}
#loginRequiredPopup .details-popup-content{
    max-width: 400px;
    text-align: center;
}

.login-now-btn:hover {
    background: #e05e34;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

#loginRequiredPopup .details-popup-content {
    padding: 15px;
    text-align: center;
}

#loginRequiredPopup h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

#loginRequiredPopup p {
    margin-bottom: 20px;
    color: #666;
} 