:root {
    --card-bg: #1A202C;
    --border-color: #2D3748;
    --text-primary: #fff;
    --text-secondary: #ccc;
    --bg-hover: #4A5568;
    --accent: #3B82F6;
}

.videos-page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.video-card {
    background-color: #242526;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2D3748;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
    position: relative;
}

.video-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.video-player-wrapper {
    position: relative;
    background-color: #000;
    width: 100%;
    cursor: pointer;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-player-wrapper video {
        width: 100%;
        max-height: 80vh;
        display: block;
    }

/* ============================================================
   ÍCONE DE PLAY/PAUSE - CENTRALIZAÇÃO TOTAL
   ============================================================ */
.play-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}

    .play-pause-icon.show {
        opacity: 1;
    }

    .play-pause-icon i {
        font-size: 32px;
        position: absolute;
        top: 50%;
        left: 50%;
        line-height: 1;
    }

    /* Ajuste do Play: Empurrado levemente para a direita */
    .play-pause-icon .fa-play {
        transform: translate(-35%, -50%);
    }

    /* Ajuste do Pause: Empurrado levemente para a direita para alinhar */
    .play-pause-icon .fa-pause {
        transform: translate(-45%, -50%);
    }
/* ============================================================ */

.video-card-description {
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.video-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

    .action-btn:hover {
        background-color: var(--bg-hover);
        color: var(--text-primary);
    }

    .action-btn.active {
        color: var(--accent);
    }

.loading-spinner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .video-card {
        border-left: none;
        border-right: none;
        margin-bottom: 10px;
    }
}
