.video-gallery-container {
    max-width: 150rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 38%;
    gap: 3rem;
    background: var(--background-color2);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
     @media only screen and (min-width: 576px){
        padding: 2.5rem;
     }
     @media only screen and (min-width: 768px){
        padding: 3.5rem;
     }
}

/* Main Display Section */
.main-display {
    overflow: hidden;
}

.main-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    cursor: pointer;
    overflow: hidden;
    border-radius: 1.2rem;
}

.main-video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.play-button {
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button:active {
    transform: scale(1.05);
}

.play-button svg {
    display: block;
}

.overlay-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title-line-1,
.title-line-2,
.title-line-4 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #e9d5ff;
    text-shadow: 0 2px 20px rgba(233, 213, 255, 0.5);
    line-height: 1;
}

.title-line-3 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #4ade80;
    text-shadow: 0 2px 20px rgba(74, 222, 128, 0.5);
    line-height: 1;
}

.video-main-info {
    padding: 3rem 0 0;
}

.video-main-info h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: var(--white-color);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.channel-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.channel-name {
    font-size: 1.6rem;
    color: var(--white-color);
    opacity: 0.7;
}

.video-meta {
    font-size: 1.4rem;
    color: var(--white-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.playlist-info {
    display: inline-block;
}

.video-main-info p {
    font-size: 1.5rem;
    color: var(--foreground-sub-color);
    line-height: 1.6;
}

/* Video List Section */
.video-list-section {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

.video-list-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: 60rem;
    margin-bottom: 2rem;
}

/* Custom Scrollbar */
.video-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.video-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.video-list-wrapper::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

.video-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Video Item */
.video-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    @media (max-width: 480px){
        flex-direction: column;
    }
}

.video-item:hover {
    background: #1f2937;
}

.video-item.active {
    background: #1f2937;
}

.video-item.hidden {
    display: none;
}

.video-thumbnail {
    position: relative;
    width: 14rem;
    min-width: 14rem;
    height: 11rem;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail Badge */
.thumbnail-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.badge-label {
    font-size: 8px;
    font-weight: 700;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.badge-purple {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

.video-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom:0.8rem;
    line-height: 1.4;
    color: #f3f4f6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    font-size: 1.5rem;
    color: var(--foreground-sub-color);
    margin-bottom: 0.5rem;
    line-height: 2rem;
}

.video-stats {
    font-size: 1.5rem;
    color: var(--foreground-sub-color);
}

/* View More Button */

.view-more-btn.hidden {
    display: none;
}
.view-more-btn{
    background-color: inherit;
    background: none;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .video-gallery-container {
        grid-template-columns: 1fr 380px;
    }
}

@media (max-width: 1024px) {
    .video-gallery-container {
        grid-template-columns: 1fr;
    }
    
    .video-list-wrapper {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .video-gallery-container {
        gap: 15px;
    }
    
    .video-main-info {
        padding: 2rem;
    }
    
    .video-main-info h2 {
        font-size: 16px;
    }
    
    .title-line-1,
    .title-line-2,
    .title-line-3,
    .title-line-4 {
        font-size: 42px;
    }
    
    .video-thumbnail {
        width: 100px;
        min-width: 100px;
        height: 56px;
    }
    
    .video-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .title-line-1,
    .title-line-2,
    .title-line-3,
    .title-line-4 {
        font-size: 32px;
    }
    .video-main-info {
        padding: 2rem 0;
    }
    .video-thumbnail {
        width: 15rem;
        min-width: 15rem;
        height: 8rem;
    }
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal.closing {
    animation: modalFadeOut 0.3s ease;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 1;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    transition: transform 0.2s ease;
}

.video-modal-close:hover {
    transform: rotate(90deg);
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-info {
    margin-top: 20px;
    padding: 0 10px;
}

.video-modal-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.video-modal-info p {
    font-size: 14px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -45px;
    }
    
    .video-modal-info h3 {
        font-size: 16px;
    }
    
    .video-modal-info p {
        font-size: 12px;
    }
}











.video__card--section__shape1 {
  position: absolute;
  top: -25%;
  left: 0;
  z-index: -1;
}
@media only screen and (max-width: 767px) {
  .video__card--section__shape1 {
    max-width: 300px;
  }
}
.video__card--section__shape2 {
  position: absolute;
  top: -25%;
  right: 0;
  z-index: -1;
}
@media only screen and (max-width: 767px) {
  .video__card--section__shape2 {
    max-width: 300px;
  }
}

.video__play--icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform: translatey(-50%) translatex(-50%);
  -webkit-animation: animate 2s linear infinite;
  animation: animate 2s linear infinite;
  background: #ee2761;
}
@media only screen and (min-width: 992px) {
  .video__play--icon {
    width: 5rem;
    height: 5rem;
  }
}

@-webkit-keyframes animate {
  0% {
    box-shadow: 0 0 0 0 rgba(165, 100, 50, 0.7);
  }
  40% {
    box-shadow: 0 0 0 50px rgba(165, 100, 50, 0);
  }
  80% {
    box-shadow: 0 0 0 50px rgba(165, 100, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 rgba(165, 100, 50, 0);
  }
}

@keyframes animate {
  0% {
    box-shadow: 0 0 0 0 rgba(165, 100, 50, 0.7);
  }
  40% {
    box-shadow: 0 0 0 50px rgba(165, 100, 50, 0);
  }
  80% {
    box-shadow: 0 0 0 50px rgba(165, 100, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 rgba(165, 100, 50, 0);
  }
}
.video__card--btn {
  margin-top: 3rem;
}
@media only screen and (min-width: 992px) {
  .video__card--btn {
    margin-top: 5rem;
  }
}