.video-gallery-page .gallery-header {
  margin-top: 2rem;
  text-align: left; /* Changed from center to left */
}

.video-gallery-page .gallery-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.video-gallery-page .gallery-placeholder {
  text-align: center;
  margin-top: 3rem;
}

.video-gallery-page .gallery-placeholder em {
  font-size: 1.3rem;
  color: #bbb;
}

.mcbb-video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 360px);
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mcbb-video-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 360px;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
    margin: 0; /* Remove auto margins */
}

.mcbb-video-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

.mcbb-video-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    color: var(--mcbb-gold, #d4af37);
    margin-bottom: 0.75em;
    text-align: left;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcbb-video-thumb {
    width: 100%;
    margin-bottom: 0.75em;
}

.mcbb-video-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
    display: block;
}

.mcbb-video-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    color: rgba(255,255,255,0.7);
}

.mcbb-video-meta .mcbb-video-date,
.mcbb-video-meta .mcbb-video-duration {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.95em;
}

/* Video card links */
.mcbb-video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.mcbb-video-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

/* View video page styles */
.mcbb-view-video {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
}

.mcbb-view-video__header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcbb-view-video__header h1 {
    /* Headers keep their existing styling - don't add Poppins here */
    margin: 0;
    color: var(--mcbb-gold);
    flex: 1; /* Take up available space */
}

.mcbb-view-video__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start; /* Align items to the top */
}

.mcbb-view-video__player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: 400px; /* Set explicit height to match iframe */
}

.mcbb-view-video__player iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.mcbb-view-video__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 400px; /* Match the player height */
}

.mcbb-view-video__description {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 8px;
    padding: 1rem 1.5rem; /* Reduced top/bottom padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%; /* Take full height of sidebar */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

.mcbb-view-video__description p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 0; /* Remove top margin */
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.mcbb-view-video__description p:first-child {
    margin-top: 0; /* Ensure first paragraph starts at the very top */
}

.mcbb-view-video__description p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin-top: auto; /* Push upload date to bottom */
}

.mcbb-view-video__back-link {
    margin: 0; /* Remove previous margins */
}

.mcbb-back-button {
    display: inline-block;
    background: var(--mcbb-gold);
    color: #000;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.mcbb-back-button:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Custom scrollbar styling for the sidebar */
.mcbb-view-video__sidebar::-webkit-scrollbar {
    width: 8px;
}

.mcbb-view-video__sidebar::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.mcbb-view-video__sidebar::-webkit-scrollbar-thumb {
    background: var(--mcbb-gold, #d4af37);
    border-radius: 4px;
}

.mcbb-view-video__sidebar::-webkit-scrollbar-thumb:hover {
    background: #e6c547;
}

/* Custom scrollbar styling for the description box */
.mcbb-view-video__description::-webkit-scrollbar {
    width: 8px;
}

.mcbb-view-video__description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mcbb-view-video__description::-webkit-scrollbar-thumb {
    background: var(--mcbb-gold, #d4af37);
    border-radius: 4px;
    opacity: 0.8;
}

.mcbb-view-video__description::-webkit-scrollbar-thumb:hover {
    background: #e6c547;
    opacity: 1;
}

/* Firefox scrollbar styling */
.mcbb-view-video__description {
    scrollbar-width: thin;
    scrollbar-color: var(--mcbb-gold, #d4af37) rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .mcbb-view-video {
        padding: 1.5rem;
    }
    
    .mcbb-view-video__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mcbb-view-video__player {
        height: 350px;
    }
    
    .mcbb-view-video__player iframe {
        height: 350px;
    }
    
    .mcbb-view-video__sidebar {
        height: auto; /* Let it flow naturally on mobile */
    }
    
    .mcbb-view-video__description {
        height: auto;
    }
    
    .mcbb-view-video__description p:last-child {
        margin-top: 1rem; /* Reset margin-top on mobile */
    }
}

@media (max-width: 768px) {
    .mcbb-view-video {
        padding: 1rem;
    }
    
    .mcbb-view-video__player {
        height: 280px;
    }
    
    .mcbb-view-video__player iframe {
        height: 280px;
    }
    
    .mcbb-view-video__description {
        padding: 1rem;
    }
    
    .mcbb-back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .mcbb-view-video__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mcbb-view-video__player {
        height: 220px;
    }
    
    .mcbb-view-video__player iframe {
        height: 220px;
    }
    
    .mcbb-view-video__description p {
        font-size: 0.9rem;
    }
    
    .mcbb-view-video__header {
        gap: 0.75rem;
    }
    
    .mcbb-back-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .mcbb-video-gallery-grid {
        grid-template-columns: repeat(2, 340px);
    }
}
@media (max-width: 800px) {
    .mcbb-video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .mcbb-video-card {
        width: 100%;
        min-width: 0;
    }
}