/**
 * VÍDEOS IMPRESSIONANTES - SISTEMA UNIVERSAL DE CORES
 * Arquivo: css/videos-modernas.css
 * Responsabilidade: Estilos para módulo de vídeos na página principal
 * Padrão: Sistema universal de cores que harmoniza com qualquer cliente
 */

/* ==== VARIÁVEIS CSS UNIVERSAL ==== */
:root {
    /* ==== PALETA DE CORES NEUTRA - AZUL MISTURADO COM CINZA ==== */
    --videos-primary: #4a5568;
    --videos-secondary: #64748b;
    --videos-accent: #5b7280;
    --videos-accent-light: #8b9dc3;
    --videos-accent-soft: #f0f4f8;
    --videos-white: #ffffff;
    --videos-gray-50: #f9fafb;
    --videos-gray-100: #f3f4f6;
    --videos-gray-200: #e5e7eb;
    --videos-gray-300: #d1d5db;
    --videos-gray-400: #9ca3af;
    --videos-gray-500: #6b7280;
    --videos-gray-600: #4b5563;
    --videos-gray-700: #374151;
    --videos-gray-800: #1f2937;
    --videos-gray-900: #111827;
    
    /* ==== CORES ESPECÍFICAS PARA VÍDEOS ==== */
    --videos-play-primary: #5b7280;
    --videos-play-hover: #4a5568;
    --videos-play-light: #8b9dc3;
    --videos-gradient-primary: linear-gradient(135deg, #5b7280 0%, #8b9dc3 100%);
    --videos-gradient-hover: linear-gradient(135deg, #4a5568 0%, #64748b 100%);
    --videos-shadow-play: 0 4px 20px rgba(91, 114, 128, 0.3);
    
    /* ==== ESPAÇAMENTOS ==== */
    --videos-space-xs: 0.5rem;
    --videos-space-sm: 1rem;
    --videos-space-md: 1.5rem;
    --videos-space-lg: 2rem;
    --videos-space-xl: 3rem;
    --videos-space-2xl: 4rem;
    
    /* ==== BORDAS E SOMBRAS ==== */
    --videos-radius-sm: 0.375rem;
    --videos-radius-md: 0.5rem;
    --videos-radius-lg: 0.75rem;
    --videos-radius-xl: 1rem;
    --videos-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --videos-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --videos-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --videos-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --videos-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --videos-shadow-glow: 0 0 40px rgba(113, 128, 150, 0.4);
    
    /* ==== TRANSIÇÕES ==== */
    --videos-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --videos-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==== SEÇÃO PRINCIPAL ==== */
.videos-section {
    background: var(--videos-white);
    padding: var(--videos-space-2xl) 0 var(--videos-space-3xl) 0;
    position: relative;
    overflow: visible;
    margin-top: 20px;
    margin-bottom: 80px;
}

.videos-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--videos-accent) 20%, 
        var(--videos-primary) 50%, 
        var(--videos-accent) 80%, 
        transparent 100%);
    box-shadow: 0 2px 8px rgba(91, 114, 128, 0.3);
}

/* ==== SEPARADOR ELEGANTE APÓS SEÇÃO DE VÍDEOS ==== */
.videos-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--videos-accent) 20%, 
        var(--videos-primary) 50%, 
        var(--videos-accent) 80%, 
        transparent 100%);
    box-shadow: 0 2px 8px rgba(91, 114, 128, 0.3);
}

/* ==== HEADER DA SEÇÃO ==== */
.videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--videos-space-2xl);
    padding: 0 var(--videos-space-md);
}

.videos-header-content {
    display: flex;
    align-items: center;
    gap: var(--videos-space-md);
}

.videos-header-icon {
    width: 60px;
    height: 60px;
    background: var(--videos-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--videos-shadow-play);
}

.videos-header-icon i {
    font-size: 24px;
    color: var(--videos-white);
}

.videos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--videos-primary);
    margin: 0;
    line-height: 1.2;
}

.videos-subtitle {
    font-size: 1.1rem;
    color: var(--videos-gray-600);
    margin: var(--videos-space-xs) 0 0 0;
    font-weight: 500;
}

.videos-stats {
    display: flex;
    align-items: center;
}

.videos-stat-card {
    background: var(--videos-white);
    border: 2px solid var(--videos-accent);
    border-radius: var(--videos-radius-lg);
    padding: var(--videos-space-md);
    text-align: center;
    box-shadow: var(--videos-shadow-md);
    transition: var(--videos-transition);
}

.videos-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--videos-shadow-2xl), var(--videos-shadow-glow);
}

.videos-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--videos-accent);
    line-height: 1;
}

.videos-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--videos-gray-600);
    margin-top: var(--videos-space-xs);
    font-weight: 500;
}

/* ==== GRID DE VÍDEOS ==== */
.videos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--videos-space-xl);
    margin-bottom: var(--videos-space-2xl);
    align-items: stretch; /* Força todos os itens a terem a mesma altura */
}

/* ==== LAYOUT CENTRALIZADO PARA VÍDEO ÚNICO ==== */
.videos-grid.single-video {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 800px; /* Largura máxima para vídeo único */
    margin: 0 auto var(--videos-space-2xl) auto;
}

.videos-grid.single-video .videos-main-card {
    width: 100%;
    max-width: 600px; /* Largura máxima do card */
}

/* ==== CARD PRINCIPAL ==== */
.videos-main-card {
    background: var(--videos-white);
    border-radius: var(--videos-radius-xl);
    box-shadow: var(--videos-shadow-lg);
    overflow: hidden;
    transition: var(--videos-transition);
    border: 1px solid var(--videos-gray-200);
    height: 100%; /* Ocupa toda a altura disponível */
    display: flex;
    flex-direction: column;
}

.videos-main-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--videos-shadow-2xl), var(--videos-shadow-glow);
}

.videos-main-card .videos-thumbnail {
    position: relative;
    height: 200px; /* Reduzido para melhor proporção */
    overflow: hidden;
}

.videos-main-card .videos-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--videos-transition);
}

.videos-main-card:hover .videos-thumbnail-image {
    transform: scale(1.05);
}

.videos-main-card:hover .videos-thumbnail-placeholder {
    transform: scale(1.05);
}

.videos-card:hover .videos-thumbnail-image {
    transform: scale(1.05);
}

.videos-card:hover .videos-thumbnail-placeholder {
    transform: scale(1.05);
}

/* ==== CARDS SECUNDÁRIOS ==== */
.videos-secondary-card {
    background: var(--videos-white);
    border-radius: var(--videos-radius-lg);
    box-shadow: var(--videos-shadow-md);
    overflow: hidden;
    transition: var(--videos-transition);
    border: 1px solid var(--videos-gray-200);
    margin-bottom: var(--videos-space-lg);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa toda a altura disponível */
    min-height: 100%;
}

.videos-secondary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--videos-shadow-2xl), var(--videos-shadow-glow);
}

.videos-secondary-card .videos-thumbnail {
    position: relative;
    width: 100%;
    height: 130px; /* Aumentado para melhor proporção */
    overflow: hidden;
    flex-shrink: 0;
}

.videos-secondary-card .videos-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--videos-transition);
}

.videos-secondary-card:hover .videos-thumbnail-image {
    transform: scale(1.02);
}

/* ==== THUMBNAIL E OVERLAY ==== */
.videos-thumbnail-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.videos-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--videos-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--videos-transition);
    box-shadow: var(--videos-shadow-play);
    border: 4px solid var(--videos-white);
}

.videos-secondary-card .videos-play-button {
    width: 50px;
    height: 50px;
    border: 3px solid var(--videos-white);
}

.videos-play-button i {
    font-size: 32px;
    color: var(--videos-white);
    margin-left: 4px;
}

.videos-secondary-card .videos-play-button i {
    font-size: 20px;
}

.videos-play-button:hover {
    background: var(--videos-gradient-hover);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.videos-duration-badge {
    position: absolute;
    bottom: var(--videos-space-sm);
    right: var(--videos-space-sm);
    background: rgba(0, 0, 0, 0.8);
    color: var(--videos-white);
    padding: var(--videos-space-xs) var(--videos-space-sm);
    border-radius: var(--videos-radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--videos-space-xs);
}

/* ==== CONTEÚDO DO VÍDEO ==== */
.videos-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.videos-main-card .videos-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.videos-secondary-card .videos-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.videos-content-header {
    margin-bottom: var(--videos-space-md);
}

.videos-video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--videos-gray-800);
    margin: 0 0 var(--videos-space-sm) 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.videos-secondary-card .videos-video-title {
    font-size: 1rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    margin-bottom: 0.75rem;
}

.videos-meta {
    display: flex;
    align-items: center;
    gap: var(--videos-space-sm);
}

.videos-platform {
    display: flex;
    align-items: center;
    gap: var(--videos-space-xs);
    font-size: 0.875rem;
    color: var(--videos-gray-600);
    font-weight: 500;
}

.videos-platform i {
    color: #ff0000;
    font-size: 16px;
}

/* ==== AÇÕES DO VÍDEO ==== */
.videos-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto; /* Empurra os botões para o final */
    width: 100%;
}

.videos-main-card .videos-actions {
    gap: 0.75rem;
}

.videos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--videos-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--videos-transition);
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    min-width: 0; /* Permite que o texto seja cortado se necessário */
}

.videos-main-card .videos-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 42px;
}

.videos-play-btn {
    background: var(--videos-gradient-primary);
    color: var(--videos-white);
    flex: 1;
}

.videos-play-btn:hover {
    background: var(--videos-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--videos-shadow-play);
}

.videos-share-btn {
    background: var(--videos-gray-100);
    color: var(--videos-gray-700);
    border: 1px solid var(--videos-gray-300);
}

.videos-share-btn:hover {
    background: var(--videos-gray-200);
    transform: translateY(-2px);
    box-shadow: var(--videos-shadow-md);
}

/* ==== FOOTER ==== */
.videos-footer {
    text-align: center;
    margin-top: var(--videos-space-2xl);
}

.videos-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--videos-space-sm);
    background: var(--videos-gradient-primary);
    color: var(--videos-white);
    padding: var(--videos-space-md) var(--videos-space-xl);
    border-radius: var(--videos-radius-lg);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--videos-transition);
    box-shadow: var(--videos-shadow-md);
}

.videos-view-all-btn:hover {
    background: var(--videos-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--videos-shadow-lg);
    color: var(--videos-white);
    text-decoration: none;
}

/* ==== MODAL DE VÍDEO - DESIGN EXTRAORDINÁRIO ==== */
.videos-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: modalBackdropFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.videos-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.videos-modal-header {
    background: linear-gradient(135deg, var(--videos-primary) 0%, var(--videos-secondary) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 60px;
    gap: 1rem;
}

.videos-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--videos-primary), var(--videos-accent), var(--videos-accent-light), var(--videos-primary));
    animation: gradientShift 3s ease-in-out infinite;
}

.videos-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    grid-column: 2;
    justify-self: center;
}

.videos-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    grid-column: 3;
    justify-self: end;
}

.videos-modal-close:hover {
    background: rgba(231, 76, 60, 0.8);
    border-color: #e74c3c;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.videos-modal-body {
    padding: 0;
    background: #000000;
    position: relative;
}

.videos-modal-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000000;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.videos-modal-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1) 0%, rgba(231, 76, 60, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.videos-modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

/* ==== ANIMAÇÕES EXTRAORDINÁRIAS ==== */
@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

@keyframes modalBackdropFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ==== CLASSES PARA ANIMAÇÕES DE FECHAMENTO ==== */
.videos-modal.closing {
    animation: modalBackdropFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.videos-modal.closing .videos-modal-content {
    animation: modalSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==== RESPONSIVIDADE DO MODAL ==== */
@media (max-width: 1024px) {
    .videos-modal-header {
        gap: 0.3rem;
    }
    
    .videos-modal-share-buttons {
        gap: 0.4rem;
    }
    
    .videos-modal-share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .videos-modal-title {
        font-size: 1rem;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .videos-modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: 15px;
    }
    
    .videos-modal-header {
        padding: 1rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .videos-modal-title {
        font-size: 1.1rem;
        order: 1;
        position: static;
        grid-column: unset;
        justify-self: unset;
        text-align: center;
        margin: 0.5rem 0;
        max-width: 100%;
    }
    
    .videos-modal-share-buttons {
        order: 2;
        grid-column: unset;
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .videos-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        order: 3;
        grid-column: unset;
        justify-self: center;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .videos-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    
    .videos-modal-video-container {
        border-radius: 0;
        height: calc(100vh - 80px);
        padding-bottom: 0;
    }
    
    .videos-modal-video-container iframe {
        border-radius: 0;
    }
}

/* ==== RESPONSIVIDADE ==== */

/* ==== TABLET E MOBILE LARGE ==== */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: var(--videos-space-lg);
    }
    
    /* Layout de vídeo único em tablet */
    .videos-grid.single-video {
        max-width: 100%;
        margin: 0 auto var(--videos-space-2xl) auto;
    }
    
    .videos-grid.single-video .videos-main-card {
        max-width: 100%;
    }
    
    .videos-main-card .videos-thumbnail {
        height: 180px;
    }
    
    /* Ajuste de margem para tablets */
    .videos-main-card .videos-platform-badge {
        right: 18px !important;
        max-width: calc(100% - 36px) !important;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .videos-secondary-card .videos-platform-badge {
        right: 18px;
        max-width: calc(100% - 36px);
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .videos-secondary-card {
        height: auto;
        min-height: auto;
    }
    
    .videos-secondary-card .videos-thumbnail {
        width: 100%;
        height: 110px;
    }
    
    .videos-secondary-card .videos-video-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-height: 1.3;
        min-height: 2.6rem; /* Altura mínima para 2 linhas */
    }
}

@media (max-width: 768px) {
    .videos-header {
        flex-direction: column;
        gap: var(--videos-space-lg);
        text-align: center;
    }
    
    /* Layout de vídeo único em mobile */
    .videos-grid.single-video {
        max-width: 100%;
        margin: 0 auto var(--videos-space-2xl) auto;
        padding: 0 var(--videos-space-sm);
    }
    
    .videos-grid.single-video .videos-main-card {
        max-width: 100%;
    }
    
    .videos-title {
        font-size: 2rem;
    }
    
    .videos-main-card .videos-thumbnail {
        height: 160px;
    }
    
    /* Ajuste de margem para mobile grande */
    .videos-main-card .videos-platform-badge {
        right: 16px !important;
        max-width: calc(100% - 32px) !important;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .videos-secondary-card .videos-platform-badge {
        right: 16px;
        max-width: calc(100% - 32px);
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .videos-secondary-card {
        height: auto;
        min-height: auto;
        flex-direction: column;
    }
    
    .videos-secondary-card .videos-thumbnail {
        width: 100%;
        height: 100px;
    }
    
    .videos-secondary-card .videos-video-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
        line-height: 1.3;
        min-height: 2.6rem; /* Altura mínima para 2 linhas */
    }
    
    .videos-actions {
        flex-direction: column;
        gap: var(--videos-space-xs);
    }
    
    .videos-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.2rem;
    }
    
    .videos-actions {
        gap: 0.4rem;
    }
    
    .videos-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .videos-section {
        padding: var(--videos-space-xl) 0;
    }
    
    .videos-title {
        font-size: 1.75rem;
    }
    
    .videos-main-card .videos-thumbnail {
        height: 140px;
    }
    
    /* Ajuste de margem para mobile pequeno */
    .videos-main-card .videos-platform-badge {
        right: 14px !important;
        max-width: calc(100% - 28px) !important;
        padding: 2px 5px;
        border-radius: 8px;
    }
    
    .videos-secondary-card .videos-platform-badge {
        right: 14px;
        max-width: calc(100% - 28px);
        padding: 2px 5px;
        border-radius: 8px;
    }
    
    /* Reduzir ainda mais ícones e texto em mobile */
    .videos-platform-badge i {
        font-size: 0.6rem;
    }
    
    .videos-platform-badge-text {
        font-size: 0.55rem;
    }
    
    .videos-secondary-card {
        height: auto;
        min-height: auto;
    }
    
    .videos-secondary-card .videos-thumbnail {
        height: 90px;
    }
    
    .videos-content {
        padding: var(--videos-space-sm);
    }
    
    .videos-video-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3; /* Permite mais linhas em mobile */
        line-height: 1.3;
        min-height: 2.6rem; /* Altura mínima para 2 linhas */
    }
    
    .videos-main-card .videos-video-title {
        font-size: 1.25rem;
        -webkit-line-clamp: 2;
    }
    
    .videos-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.15rem;
    }
    
    .videos-actions {
        gap: 0.3rem;
    }
    
    .videos-view-all-btn {
        padding: var(--videos-space-sm) var(--videos-space-lg);
        font-size: 1rem;
    }
}

/* ==== ANIMAÇÕES ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.videos-card {
    animation: fadeInUp 0.6s ease-out;
}


.videos-card:nth-child(1) { animation-delay: 0.1s; }
.videos-card:nth-child(2) { animation-delay: 0.2s; }
.videos-card:nth-child(3) { animation-delay: 0.3s; }
.videos-card:nth-child(4) { animation-delay: 0.4s; }

/* ==== BOTÕES DE COMPARTILHAMENTO NO MODAL ==== */
.videos-modal-share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    grid-column: 1;
    justify-self: start;
}

.videos-modal-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.videos-modal-share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Hover específico para cada rede social */
.videos-modal-share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.8);
    border-color: #1877f2;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.videos-modal-share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.8);
    border-color: #1da1f2;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.videos-modal-share-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.videos-modal-share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.8);
    border-color: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.videos-modal-share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.8);
    border-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.videos-modal-share-btn.link:hover {
    background: rgba(184, 134, 11, 0.7);
    border-color: #b8860b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.videos-modal-share-btn.link:focus,
.videos-modal-share-btn.link:active,
.videos-modal-share-btn.link:focus:not(:hover) {
    outline: none !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: none !important;
}

.videos-modal-share-btn.link:focus:hover,
.videos-modal-share-btn.link:active:hover {
    background: rgba(184, 134, 11, 0.7) !important;
    border-color: #b8860b !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3) !important;
}

/* Responsividade dos botões de compartilhamento no modal */
@media (max-width: 768px) {
    .videos-modal-share-buttons {
        gap: 0.4rem;
        margin-right: 0.5rem;
    }
    
    .videos-modal-share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .videos-modal-share-buttons {
        gap: 0.3rem;
        margin-right: 0.3rem;
    }
    
    .videos-modal-share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* ==== PLACEHOLDER GENÉRICO PARA OUTRAS PLATAFORMAS ==== */
.videos-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--videos-radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.videos-platform-badge {
    position: absolute;
    top: 14px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    max-width: calc(100% - 36px);
}

/* Badge para cards principais - mesmo comportamento dos secundários */
.videos-main-card .videos-platform-badge {
    right: 25px !important;
    max-width: calc(100% - 50px) !important;
}

/* Badge para cards secundários - margem adequada */
.videos-secondary-card .videos-platform-badge {
    right: 25px !important;
    max-width: calc(100% - 50px) !important;
}

/* Regra adicional para garantir que funcione em todos os cards */
.videos-card .videos-platform-badge {
    right: 25px !important;
    max-width: calc(100% - 50px) !important;
}

.videos-platform-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.videos-platform-badge i {
    font-size: 0.7rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.videos-platform-badge-text {
    font-size: 0.6rem;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==== ÍCONES DE PLATAFORMA CLICÁVEIS ==== */
.platform-clickable {
    transition: all 0.2s ease;
    border-radius: var(--videos-radius-sm);
    padding: 4px 8px;
    margin: -4px -8px;
    display: inline-block;
}

.platform-clickable:hover {
    background-color: var(--videos-gray-100);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-clickable:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--videos-gray-200);
}

.platform-clickable i {
    transition: transform 0.2s ease;
}

.platform-clickable:hover i {
    transform: scale(1.1);
}

.platform-clickable:active i {
    transform: scale(0.95);
}
