/* Layout principal con grid */
.videos-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.videos-main-content {
    grid-column: 1;
}

.videos-sidebar {
    grid-column: 2;
    grid-row: 1;
}

.sidebar-section {
    position: sticky;
    top: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.related-videos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-video-sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-video-sidebar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-video-sidebar-thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.related-video-sidebar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-sidebar-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

.related-video-sidebar-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

.related-video-sidebar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-video-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-sidebar-date {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.banner-google {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.no-related-videos-sidebar {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-related-videos-sidebar i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.videos-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.videos-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-link {
    text-decoration: none;
    color: inherit;
}

.video-link:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.video-link:hover .play-overlay {
    background-color: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 2rem;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.video-description {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

.video-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-watch:hover {
    background-color: #5649c0;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.no-videos {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-videos i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.pagination-container {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.pagination {
    margin-bottom: 0;
    display: inline-flex;
    list-style: none;
    gap: 5px;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: white;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    color: #5649c0;
    background-color: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .videos-container {
        padding: 20px 15px;
        display: block;
        grid-template-columns: none;
        gap: 0;
    }
    
    .videos-sidebar {
        grid-column: unset;
        grid-row: unset;
        margin-top: 2rem;
    }
    
    .sidebar-section {
        position: static;
        top: unset;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .related-video-sidebar-item {
        padding: 0.5rem;
    }
    
    .related-video-sidebar-thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .related-video-sidebar-title {
        font-size: 0.85rem;
    }
    
    .banner-google {
        margin-top: 1.5rem;
        padding: 0.75rem;
        min-height: 200px;
        font-size: 0.85rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .videos-header h1 {
        font-size: 2rem;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    /* Paginación responsive */
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 35px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 3px;
    }
    
    .pagination .page-link {
        padding: 5px 8px;
        font-size: 13px;
        min-width: 30px;
    }
}