/* Video Gallery Styles */
.video-gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;

}

/* Search Bar */
.video-search-container {
    position: relative;
    margin-bottom: 32px;
  width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.heart-icon{
	width: 13px !important;
	height: 13px !important;
}
.video-search-input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    font-size: 14px;
	font-weight: 300;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;

}

.video-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.video-search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Video Gallery Grid - 4 cards per row */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .video-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }
}

@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}

/* No Results Message */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Video Card */
.video-card {
      background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E4E4E4;
    padding: 20px;
    box-shadow: 4px 4px 36px 0px #0000000A;
}
@media (max-width: 992px) {
    .video-card {
        padding: 14px;    
        border-radius: 12px;
    }
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Video Thumbnail - CLICKABLE for popup */
.video-thumbnail {
   position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    border-radius: 10px;
}
@media (max-width: 992px) {
    .video-thumbnail {
        height: 180px;
    }
}@media (max-width: 480px) {
    .video-thumbnail {
        height: 215px;
    }
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-placeholder svg {
    color: rgba(255, 255, 255, 0.5);
}

.video-play-btn {
       position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
    outline: none;
    pointer-events: auto;
    background: #5d5fefb3;
    border-radius: 50%;
    width: 47px;
    height: 47px; 
	padding: 10px;
}
.video-play-btn span {
	     background: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    align-items: center;
    justify-content: center;
    margin: 0 auto;

}
.video-play-btn svg {
	width:8px;
	height:8px;
}
/* .video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
} */



/* Video Info */
.video-info {
   padding-top: 16px;
    cursor: default;
}

.video-title {
    margin: 0 0 12px 0;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 1200px) {
    .video-title {
        margin-bottom: 15px !important;
    }
}
@media (max-width: 576px) {
    .video-title {
        font-size: 14px !important;
    }
}
/* Video Stats and Actions Row */
.video-stats-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Video Stats */
.video-stats {
    display: flex;
    align-items: center;
    gap: 5px;
        color: #414141;
    font-weight: 500;
    font-size: 14px;
    cursor: default;
    pointer-events: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #D2D2D2;
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 1;    height: 23px;
	    font-size: 12px;
    color: #414141;
}

.stat-item.likes-stat {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-item.likes-stat:hover {
    background: #fef2f2;
}

.stat-item.likes-stat svg {
    transition: all 0.3s ease;
}

.stat-item.likes-stat.liked svg path{
    fill: #ef4444;
   
}

.stat-item.likes-stat.liked {
    color: #ef4444;
    font-weight: 600;
}

.video-stats svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Card Action Buttons */
.card-action-buttons {
    display: flex;
    gap: 8px;
}

.card-share-btn,
.card-search-btn {
      border: 1px solid #D2D2D2;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    height: 25px;
}

.card-share-btn svg,
.card-search-btn svg {
   
    transition: all 0.3s ease;
}

.card-share-btn:hover {
    background: #eff6ff;
    border-color: #5D5FEF;
    transform: scale(1.05);
}

.card-like-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    transform: scale(1.05);
}

.card-like-btn:hover svg {
    stroke: #ef4444;
}

.card-like-btn.liked {
    background: #fef2f2;
    border-color: #ef4444;
}

.card-like-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.card-share-btn:hover {
    background: #eff6ff;
    border-color: #5D5FEF;
    transform: scale(1.05);
}

.card-share-btn:hover svg path{
   stroke : #5D5FEF;
}

.card-search-btn:hover {
    background: #f0fdf4;
    border-color: #5D5FEF;
    transform: scale(1.05);
}

.card-search-btn:hover svg path {
    fill: #5D5FEF;
}

/* Pulse animation for like button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.likes-stat.pulse-animation {
    animation: pulse 0.6s ease;
}

.card-like-btn.pulse-animation svg,
.card-share-btn.pulse-animation svg {
    animation: pulse 0.6s ease;
}

/* Video Modal - WITH BLUR EFFECT */
.video-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0 0 0 / 76%);
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
}

.video-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: fadeInBlur 0.3s ease;
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.video-modal-content {

   position: relative;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    overflow: hidden;
    margin: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
        padding-bottom: 2px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
      position: absolute;
    top: 18px;
    right: 25px;
    background: #CACFFF;
    border: none;
    width: 29px;
    height: 29px;
    border-radius: 6px;
    font-size: 21px;
    font-weight: 100;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0;
    color: #5D5FEF;
}
@media (max-width: 1024px) {
    .video-modal-close {
        top: 15px;
        right: 20px;
            width: 25px;
    height: 25px;
        font-size: 19px;
    }
}
.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg); 
       color: #ffffff;
}

.video-modal-body {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .video-modal-body {
        flex-direction: column;
    }
}

.video-player-wrapper {
    position: relative;

    aspect-ratio: 16/9;
    width: 100%;
}

.video-player-wrapper video { 
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        border-radius: 10px !important;
}

#video-player {
    width: 100%;
    height: 100%;
    background: #000;
}

#youtube-player {
    width: 100%;
    height: 100%;
}

/* SIDEBAR */
.video-modal-sidebar {
    padding: 15px 0;
    background: #fff;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .video-modal-sidebar {
        max-height: none;
        min-height: auto;
    }
}

#modal-video-title {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.4;
    margin-right: 60px;
}
@media (max-width: 576px) {
    #modal-video-title {
           font-size: 16px;
        margin-right: 45px;
    }
}
@media (max-width: 400px) {
    #modal-video-title {
           font-size: 15px;

    }
}

/* ACTION BUTTONS IN MODAL */
.video-actions {
display: flex !important;
    gap: 10px;
        margin-bottom: 0;
 
    flex-wrap: wrap;
  
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.video-left-side {
    display: flex;
    gap: 5px;
}
span.like-count {
    font-weight: 500;
}
.action-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
   
}
 @media (max-width: 576px) {
    .action-btn svg {
    width: 15px;
    height: 15px;
    }
    }
.action-btn.like-btn.liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.like-btn.liked svg {
    fill: #ef4444;
}

.action-btn .like-count {
    font-weight: 700;
}

.video-description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

/* Share Modal - WITH BLUR */
.share-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-modal.active {
    display: flex !important;
    animation: fadeInBlur 0.3s ease;
}

.share-modal-content {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.share-modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.share-option {
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    outline: none;
}

.share-option:hover {
    background: #fff;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-option svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.share-modal-close {
    width: 100%;
    padding: 14px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    outline: none;
}

.share-modal-close:hover {
    background: #4f46e5;
}

/* Scrollbar Styling */
.video-modal-sidebar::-webkit-scrollbar {
    width: 8px;
}

.video-modal-sidebar::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.video-modal-sidebar::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.video-modal-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* .video-actions {
        flex-direction: column;
    } */
    
    .action-btn {
        min-width: 100%;
    }
    
    .video-modal {
        padding: 10px;
    }
    
    .video-modal-content {
        width: 100%;
        max-width: 100%;  
          border-radius: 12px;
    padding: 15px;
    padding-bottom: 2px;
    }
    
    .video-search-container {
        margin-bottom: 16px;
    }
    
    .video-search-input {
        padding: 14px 44px 14px 16px;
        font-size: 15px;
    }
    
    .video-stats-actions {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-action-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Ensure buttons are always visible */
.video-modal.active .action-btn {
   display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    background: #5D5FEF;
    border: 0;
}
@media (max-width: 576px) {
    .video-modal.active .action-btn {
        width: 28px;
    height: 28px;
    min-width: 28px;

    }
}
.video-thumbnail:hover {
    opacity: 0.95;
}
