/* Estilos generales */
.video-votes-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Ranking */
.video-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}
.video-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-thumbnail {
    width: 120px;
    height: 80px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FF0000;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    margin-left: 1px;
}

/* Botones de voto */
.video-vote-button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 5px;
    transition: background 0.3s ease;
}
.video-vote-button[data-vote-type="up"] {
    background: #4CAF50;
    color: #fff;
}
.video-vote-button[data-vote-type="up"]:hover {
    background: #45a049;
}
.video-vote-button[data-vote-type="down"] {
    background: #f44336;
    color: #fff;
}
.video-vote-button[data-vote-type="down"]:hover {
    background: #d32f2f;
}

/* Contadores */
.vote-count {
    font-size: 14px;
    margin: 0 10px;
}
.vote-average {
    font-weight: bold;
    color: #333;
}

/* Toast */
.video-votes-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0.95;
    z-index: 9999;
    display: none;
}

/* Modal YouTube */
#video-modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 10px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.8);
}
#video-modal .modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 8px;
    padding: 10px;
}
#video-modal iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 6px;
}
#video-modal .close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    padding: 5px 6px;
    cursor: pointer;
}
#video-modal .close:hover {
    background: #f44336;
    color: #fff;
}

#vv-dynamic-title {
    display: block;
    text-align: center;
    font-size: 20px;
    font-family: BebasNeueRegular, arial, Georgia, serif;
}
#ranking-video-play-button .fa-play:before {
    content: "\f04b";
    color: #e6e6e6;
    font-size: 20px;
    margin-left: 5px;
}
.video-thumbnail:hover #ranking-video-play-button .fa-play:before {
    color: #444;
}
