Actions

Template

VideoGallery/styles.css: Difference between revisions

From Dune Awakening DB

 
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Template:VideoGallery/styles.css
/* Template:VideoGallery/styles.css
   Video Gallery system styles for Dune wiki
   Video Gallery styles for Dune wiki - MediaWiki TemplateStyles compatible
   Integrates with existing Dune theme */
   Updated version with fixes for horizontal tabs, no search, smaller header */


/* ================================================
/* ================================================
   VIDEO GALLERY BASE STYLES
   HEADER SECTION - REDUCED BY 30%
   ================================================ */
   ================================================ */
.video-gallery-header {
    text-align: center;
    padding: 20px 15px; /* Reduced from 30px 20px */
    margin-bottom: 15px; /* Reduced from 20px */
    background: linear-gradient(135deg, rgba(252, 231, 200, 0.05) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.3);
    position: relative;
    overflow: hidden;
}
/* Removed the shimmer animation and ::before pseudo-element */
.video-gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 25px; /* Reduced from 36px */
    font-weight: 900;
    color: #fce7c8;
    text-transform: uppercase;
    letter-spacing: 3px; /* Reduced from 4px */
    text-shadow: 0 0 20px rgba(252, 231, 200, 0.6);
    margin-bottom: 8px; /* Reduced from 10px */
}
.video-gallery-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; /* Reduced from 18px */
    color: #E3BB7A;
    letter-spacing: 1.5px; /* Reduced from 2px */
}


/* Main Container - Fixed height for wiki integration */
/* ================================================
  MAIN CONTAINER - REDUCED HEIGHT
  ================================================ */
.video-gallery-main-container {
.video-gallery-main-container {
     display: flex;
     display: flex !important;
     gap: 12px;
     gap: 12px;
     padding: 12px 0;
     padding: 12px 0;
Line 16: Line 47:
     font-family: 'Rajdhani', sans-serif;
     font-family: 'Rajdhani', sans-serif;
     position: relative;
     position: relative;
     height: 850px;
     height: 650px; /* Reduced from 850px by 200px */
     min-height: 600px;
     min-height: 500px; /* Reduced from 600px */
     overflow: hidden;
     overflow: hidden;
     align-items: stretch;
     align-items: stretch;
Line 42: Line 73:
}
}


/* Video Categories - 60% width */
/* ================================================
  VIDEO CATEGORIES (LEFT SIDE - 60%)
  ================================================ */
.video-categories {
.video-categories {
     flex: 0 0 60%;
     width: 60%;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 15px;
     gap: 0; /* Removed gap to control spacing manually */
     overflow: hidden;
     overflow: hidden;
     padding-right: 10px;
     padding-right: 10px;
     max-height: 100%;
     position: relative;
    z-index: 2;
    height: 100%;
}
}


/* Search Bar */
/* ================================================
.video-search-bar {
  TAB NAVIGATION - FIXED HORIZONTAL WITH EQUAL SIZING
    background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
  ================================================ */
    border: 2px solid rgba(252, 231, 200, 0.2);
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
 
.video-search-input {
    flex: 1;
    background: rgba(0, 0, 2, 0.6);
    border: 1px solid rgba(252, 231, 200, 0.2);
    color: #fce7c8;
    padding: 8px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
 
.video-search-input::placeholder {
    color: rgba(252, 231, 200, 0.4);
}
 
.video-search-input:focus {
    border-color: #fce7c8;
    box-shadow: 0 0 10px rgba(252, 231, 200, 0.3);
}
 
.video-search-button {
    background: rgba(252, 231, 200, 0.1);
    border: 2px solid rgba(252, 231, 200, 0.3);
    color: #fce7c8;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
 
.video-search-button:hover {
    background: rgba(252, 231, 200, 0.2);
    border-color: #fce7c8;
}
 
/* Tab Navigation */
.video-tabs-nav {
.video-tabs-nav {
     display: flex;
     display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
     gap: 0;
     gap: 0;
     background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
     background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
     border: 2px solid rgba(252, 231, 200, 0.2);
     border: 2px solid rgba(252, 231, 200, 0.2);
    border-radius: 0;
     overflow: hidden;
     overflow: hidden;
     flex-shrink: 0;
    height: auto;
    width: 100%;
    margin-bottom: 15px; /* Add space before content */
     flex-shrink: 0; /* Prevent shrinking */
}
}


.video-tab {
/* Tab spans forced to horizontal layout with equal sizing */
     flex: 1;
.video-tabs-nav span.video-tab {
     padding: 12px 16px;
     flex: 1 1 0 !important; /* Changed from auto to 0 for equal distribution */
    display: inline-flex !important;
     padding: 12px 8px !important; /* Reduced horizontal padding */
     background: transparent;
     background: transparent;
     border: none;
     border: none;
Line 121: Line 116:
     color: #E3BB7A;
     color: #E3BB7A;
     font-family: 'Orbitron', sans-serif;
     font-family: 'Orbitron', sans-serif;
     font-size: 12px;
     font-size: 11px; /* Slightly smaller */
     font-weight: 700;
     font-weight: 700;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 1.5px;
     letter-spacing: 1px; /* Reduced */
     cursor: pointer;
     cursor: pointer;
     transition: all 0.3s ease;
     transition: all 0.3s ease;
     position: relative;
     position: relative;
     overflow: hidden;
     overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 !important;
    float: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 16.666% !important; /* Force equal width (100% / 6 tabs) */
}
}


.video-tab:last-child {
.video-tabs-nav span.video-tab:last-child {
     border-right: none;
     border-right: none;
}
}


.video-tab::before {
.video-tabs-nav span.video-tab::before {
     content: '';
     content: '';
     position: absolute;
     position: absolute;
Line 142: Line 148:
     right: 0;
     right: 0;
     height: 3px;
     height: 3px;
     background: #fce7c8;
     background: linear-gradient(90deg, #fce7c8 0%, #E3BB7A 100%);
     transform: translateY(100%);
     transform: translateY(100%);
     transition: transform 0.3s ease;
     transition: transform 0.3s ease;
}
}


.video-tab:hover {
.video-tabs-nav span.video-tab:hover {
     background: rgba(252, 231, 200, 0.05);
     background: rgba(252, 231, 200, 0.05);
     color: #fce7c8;
     color: #fce7c8;
}
}


.video-tab.active {
.video-tabs-nav span.video-tab.active {
     background: rgba(252, 231, 200, 0.1);
     background: rgba(252, 231, 200, 0.1);
     color: #fce7c8;
     color: #fce7c8;
}
}


.video-tab.active::before {
.video-tabs-nav span.video-tab.active::before {
     transform: translateY(0);
     transform: translateY(0);
}
}


/* Tab icon */
/* ================================================
.tab-icon {
  SCROLLABLE CONTENT CONTAINER
    display: inline-block;
  ================================================ */
    margin-right: 6px;
.video-content-wrapper {
    font-size: 14px;
}
 
/* Tab Content Container */
.video-tab-content {
     flex: 1 1 auto;
     flex: 1 1 auto;
     overflow-y: auto;
     overflow-y: auto;
     overflow-x: hidden;
     overflow-x: hidden;
     padding-right: 10px;
     padding-right: 10px;
     min-height: 0;
    height: 100%;
     min-height: 0; /* Important for flex children */
}
 
 
 
/* ================================================
  TAB CONTENT CONTAINER
  ================================================ */
.video-tab-content {
    display: none;
}
 
.video-tab-content.active {
    display: block;
}
}


/* Video Section (Purpose Groups) */
/* ================================================
  VIDEO SECTIONS
  ================================================ */
.video-section {
.video-section {
     background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
     background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
Line 229: Line 246:
     color: #fce7c8;
     color: #fce7c8;
     text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
     text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
    margin: 0;
}
}


/* Video Grid */
/* ================================================
  VIDEO GRID CONTAINER - NEW WRAPPER
  ================================================ */
.video-grid-container {
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(252, 231, 200, 0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}
 
/* ================================================
  VIDEO GRID
  ================================================ */
.video-grid {
.video-grid {
     display: grid;
     display: grid;
Line 245: Line 274:
}
}


/* Video Card */
/* ================================================
  VIDEO CARDS
  ================================================ */
.video-card {
.video-card {
     background: linear-gradient(135deg, rgba(0,0,2,.8) 0%, rgba(12,10,20,.8) 100%);
     background: linear-gradient(135deg, rgba(0,0,2,.8) 0%, rgba(12,10,20,.8) 100%);
Line 253: Line 284:
     position: relative;
     position: relative;
     overflow: hidden;
     overflow: hidden;
    /* Using padding-bottom trick instead of aspect-ratio */
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}
}


Line 292: Line 326:
/* Video Thumbnail */
/* Video Thumbnail */
.video-thumbnail {
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
Line 297: Line 334:
     background-position: center;
     background-position: center;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
    position: relative;
}
}


Line 355: Line 391:
}
}


/* Video Player Panel - 40% width */
/* ================================================
  VIDEO PLAYER PANEL (RIGHT SIDE - 40%)
  ================================================ */
.video-player-panel {
.video-player-panel {
     flex: 0 0 calc(40% - 20px);
     width: 40%;
     background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
     background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
     border: 2px solid rgba(252, 231, 200, 0.2);
     border: 2px solid rgba(252, 231, 200, 0.2);
Line 371: Line 409:
     max-height: 100%;
     max-height: 100%;
     overflow: hidden;
     overflow: hidden;
    z-index: 2;
}
}


Line 416: Line 455:
     background: #000;
     background: #000;
     border: 2px solid rgba(252, 231, 200, 0.2);
     border: 2px solid rgba(252, 231, 200, 0.2);
    flex-shrink: 0;
}
}


Line 433: Line 471:
     background: rgba(0, 0, 2, 0.6);
     background: rgba(0, 0, 2, 0.6);
     border: 1px solid rgba(252, 231, 200, 0.2);
     border: 1px solid rgba(252, 231, 200, 0.2);
    flex-shrink: 0;
}
}


Line 442: Line 479:
     color: #fce7c8;
     color: #fce7c8;
     text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
     text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
     margin: 0 0 6px 0;
     margin-bottom: 6px;
}
}


Line 450: Line 487:
     font-size: 13px;
     font-size: 13px;
     color: #E3BB7A;
     color: #E3BB7A;
    flex-wrap: wrap;
}
}


.video-meta span {
.video-author,
.video-date {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
Line 479: Line 516:
     font-weight: 700;
     font-weight: 700;
     border-bottom: 1px solid rgba(252, 231, 200, 0.2);
     border-bottom: 1px solid rgba(252, 231, 200, 0.2);
    flex-shrink: 0;
}
}


Line 489: Line 525:
}
}


/* Notes formatting */
/* Markdown-style notes formatting */
.notes-content h3 {
.notes-content h3 {
     font-family: 'Orbitron', sans-serif;
     font-family: 'Orbitron', sans-serif;
     font-size: 14px;
     font-size: 14px;
     color: #fce7c8;
     color: #fce7c8;
     margin: 16px 0 8px 0;
     margin-top: 16px;
    margin-bottom: 8px;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 1px;
     letter-spacing: 1px;
}
.notes-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: #E3BB7A;
    margin: 12px 0 6px 0;
}
}


.notes-content p {
.notes-content p {
     margin: 8px 0;
     margin-bottom: 12px;
    color: #E0E0E0;
     line-height: 1.6;
    font-size: 13px;
     line-height: 1.4;
}
}


Line 525: Line 553:
}
}


.notes-content a {
/* ================================================
    color: #E3BB7A;
  RESPONSIVE DESIGN
    text-decoration: none;
  ================================================ */
    transition: color 0.3s ease;
@media (max-width: 1024px) {
}
 
.notes-content a:hover {
    color: #fce7c8;
    text-decoration: underline;
}
 
.no-notes {
    color: rgba(252, 231, 200, 0.4);
    font-style: italic;
}
 
/* Wiki Link Section */
.wiki-link-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(252, 231, 200, 0.2);
}
 
.wiki-link-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(227, 187, 122, 0.1) 0%, rgba(252, 231, 200, 0.05) 100%);
    border: 2px solid rgba(252, 231, 200, 0.3);
    color: #fce7c8;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}
 
.wiki-link-button:hover {
    background: rgba(252, 231, 200, 0.2);
    border-color: #fce7c8;
    box-shadow: 0 0 15px rgba(252, 231, 200, 0.3);
}
 
/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(252, 231, 200, 0.5);
    font-size: 16px;
}
 
.no-results-message strong {
    color: #fce7c8;
}
 
.no-results-message a {
    color: #E3BB7A;
    text-decoration: none;
}
 
.no-results-message a:hover {
    color: #fce7c8;
    text-decoration: underline;
}
 
/* Music Video Gallery Specific Styles */
.music-video-gallery .placeholder-icon {
    font-size: 72px;
    color: rgba(252, 231, 200, 0.4);
}
 
/* Style Tag for Music Videos */
.style-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(168, 85, 247, 0.9);
    padding: 2px 8px;
    font-size: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(252, 231, 200, 0.3);
}
 
/* Music Video Tab Icons */
.music-video-gallery .tab-icon {
    font-size: 16px;
}
 
/* Music Video Section Headers */
.music-video-gallery .video-section[data-secondary-tag] .section-title::after {
    content: ' • ' attr(data-duration-range);
    font-size: 14px;
    color: #E3BB7A;
    font-weight: 400;
}
 
/* Style-based sections */
.music-video-gallery .video-section[data-primary-tag="By Style"] {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(12,10,20,.9) 100%);
}
 
/* Responsive Design */
@media (max-width: 1200px) {
     .video-gallery-main-container {
     .video-gallery-main-container {
         flex-direction: column;
         flex-direction: column;
         height: auto;
         height: auto;
         min-height: 900px;
         min-height: 700px;
     }
     }
      
      
     .video-categories {
     .video-categories {
         flex: 0 0 auto;
         width: 100%;
         min-height: 400px;
         max-height: 400px;
         max-height: 500px;
         padding-right: 0;
     }
     }
      
      
     .video-player-panel {
     .video-player-panel {
         flex: 1 1 auto;
         width: 100%;
         min-height: 400px;
         height: 350px;
        margin-top: 12px;
     }
     }
      
      
     .video-grid {
     .video-tabs-nav {
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
         flex-wrap: wrap;
    }
   
    .video-tabs-nav span.video-tab {
        flex: 1 1 calc(33.333% - 1px);
        min-width: 100px;
        width: auto !important; /* Override the fixed width on smaller screens */
     }
     }
}
}


@media (max-width: 768px) {
@media (max-width: 768px) {
     .video-tabs-nav {
     .video-gallery-title {
         flex-wrap: wrap;
         font-size: 20px;
     }
     }
      
      
     .video-tab {
     .video-gallery-subtitle {
        flex: 0 0 33.333%;
         font-size: 12px;
        border-bottom: 1px solid rgba(252, 231, 200, 0.2);
    }
   
    .video-tab:nth-child(3n) {
         border-right: none;
     }
     }
      
      
     .video-grid {
     .video-grid {
         grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     }
     }
      
      
     .video-title {
     .video-tabs-nav span.video-tab {
         font-size: 12px;
         font-size: 9px;
    }
        padding: 10px 6px;
   
         letter-spacing: 0.5px;
    .video-channel {
         font-size: 10px;
     }
     }
      
      
Line 684: Line 610:
}
}


@media (max-width: 480px) {
/* ================================================
    .video-gallery-main-container {
  MEDIAWIKI SPECIFIC OVERRIDES
        padding: 8px 0;
  ================================================ */
    }
/* Ensure proper display in MediaWiki content area */
   
#mw-content-text .video-gallery-main-container {
    .video-categories {
    clear: both;
        padding-right: 5px;
}
    }
 
   
/* Fix for MediaWiki's default link colors */
    .video-grid {
.video-gallery-main-container a {
        grid-template-columns: repeat(2, 1fr);
    color: inherit;
        gap: 8px;
    text-decoration: none;
    }
}
   
 
    .video-search-bar {
/* Fix potential MediaWiki paragraph tags */
        flex-wrap: wrap;
.video-gallery-main-container p {
    }
    margin: 0;
   
}
    .video-search-input {
 
        flex: 1 0 100%;
/* Fix for MediaWiki's table layout interference */
        margin-bottom: 8px;
.video-gallery-main-container table {
    }
    display: block !important;
   
}
    .video-search-button {
 
         flex: 1;
 
    }
/* === Flex row across full width ================================== */
.video-tabs-nav {
  display: flex;
  flex-wrap: nowrap;      /* stay on one row      */
  width: 100%;
  gap: 4px;               /* space between buttons */
}
 
/* === Each button takes an equal slice ============================ */
.video-tabs-nav .video-tab {
  flex: 1 1 0;            /* equal columns         */
  min-width: 0 !important;/* override old 180 px  */
  box-sizing: border-box; /* include border in flex width */
  text-align: center;
  /* keep your existing bg / border / font rules */
}
}

Latest revision as of 01:09, 3 June 2025

/* Template:VideoGallery/styles.css
   Video Gallery styles for Dune wiki - MediaWiki TemplateStyles compatible
   Updated version with fixes for horizontal tabs, no search, smaller header */

/* ================================================
   HEADER SECTION - REDUCED BY 30%
   ================================================ */
.video-gallery-header {
    text-align: center;
    padding: 20px 15px; /* Reduced from 30px 20px */
    margin-bottom: 15px; /* Reduced from 20px */
    background: linear-gradient(135deg, rgba(252, 231, 200, 0.05) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.3);
    position: relative;
    overflow: hidden;
}

/* Removed the shimmer animation and ::before pseudo-element */

.video-gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 25px; /* Reduced from 36px */
    font-weight: 900;
    color: #fce7c8;
    text-transform: uppercase;
    letter-spacing: 3px; /* Reduced from 4px */
    text-shadow: 0 0 20px rgba(252, 231, 200, 0.6);
    margin-bottom: 8px; /* Reduced from 10px */
}

.video-gallery-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; /* Reduced from 18px */
    color: #E3BB7A;
    letter-spacing: 1.5px; /* Reduced from 2px */
}

/* ================================================
   MAIN CONTAINER - REDUCED HEIGHT
   ================================================ */
.video-gallery-main-container {
    display: flex !important;
    gap: 12px;
    padding: 12px 0;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    height: 650px; /* Reduced from 850px by 200px */
    min-height: 500px; /* Reduced from 600px */
    overflow: hidden;
    align-items: stretch;
    background: rgba(0,0,2,.3);
    border: 2px solid rgba(252, 231, 200, 0.2);
}

/* Tech pattern overlay */
.video-gallery-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(252, 231, 200, 0.01) 35px,
        rgba(252, 231, 200, 0.01) 70px
    );
    z-index: -1;
}

/* ================================================
   VIDEO CATEGORIES (LEFT SIDE - 60%)
   ================================================ */
.video-categories {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 0; /* Removed gap to control spacing manually */
    overflow: hidden;
    padding-right: 10px;
    position: relative;
    z-index: 2;
    height: 100%;
}

/* ================================================
   TAB NAVIGATION - FIXED HORIZONTAL WITH EQUAL SIZING
   ================================================ */
.video-tabs-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0;
    background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    border-radius: 0;
    overflow: hidden;
    height: auto;
    width: 100%;
    margin-bottom: 15px; /* Add space before content */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Tab spans forced to horizontal layout with equal sizing */
.video-tabs-nav span.video-tab {
    flex: 1 1 0 !important; /* Changed from auto to 0 for equal distribution */
    display: inline-flex !important;
    padding: 12px 8px !important; /* Reduced horizontal padding */
    background: transparent;
    border: none;
    border-right: 1px solid rgba(252, 231, 200, 0.2);
    color: #E3BB7A;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px; /* Slightly smaller */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduced */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 !important;
    float: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 16.666% !important; /* Force equal width (100% / 6 tabs) */
}

.video-tabs-nav span.video-tab:last-child {
    border-right: none;
}

.video-tabs-nav span.video-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fce7c8 0%, #E3BB7A 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-tabs-nav span.video-tab:hover {
    background: rgba(252, 231, 200, 0.05);
    color: #fce7c8;
}

.video-tabs-nav span.video-tab.active {
    background: rgba(252, 231, 200, 0.1);
    color: #fce7c8;
}

.video-tabs-nav span.video-tab.active::before {
    transform: translateY(0);
}

/* ================================================
   SCROLLABLE CONTENT CONTAINER
   ================================================ */
.video-content-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    height: 100%;
    min-height: 0; /* Important for flex children */
}



/* ================================================
   TAB CONTENT CONTAINER
   ================================================ */
.video-tab-content {
    display: none;
}

.video-tab-content.active {
    display: block;
}

/* ================================================
   VIDEO SECTIONS
   ================================================ */
.video-section {
    background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 2px 10px rgba(0,0,0,0.8);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fce7c8 50%, 
        transparent 100%);
    opacity: 0.3;
}

.video-section:hover {
    border-color: rgba(252, 231, 200, 0.4);
    box-shadow: 
        inset 0 0 30px rgba(252, 231, 200, 0.05),
        0 2px 20px rgba(252, 231, 200, 0.1);
}

.video-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(252, 231, 200, 0.2);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fce7c8;
    text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
}

/* ================================================
   VIDEO GRID CONTAINER - NEW WRAPPER
   ================================================ */
.video-grid-container {
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(252, 231, 200, 0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

/* ================================================
   VIDEO GRID
   ================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

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

/* ================================================
   VIDEO CARDS
   ================================================ */
.video-card {
    background: linear-gradient(135deg, rgba(0,0,2,.8) 0%, rgba(12,10,20,.8) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Using padding-bottom trick instead of aspect-ratio */
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.video-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        #fce7c8 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: #fce7c8;
    box-shadow: 
        0 5px 20px rgba(252, 231, 200, 0.2),
        inset 0 0 20px rgba(252, 231, 200, 0.05);
}

.video-card:hover::before {
    opacity: 0.3;
}

.video-card.active {
    border-color: #a855f7;
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.4),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback for videos without thumbnails */
.video-thumbnail.no-thumb {
    background: linear-gradient(135deg, rgba(227, 187, 122, 0.1) 0%, rgba(252, 231, 200, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail.no-thumb::before {
    content: '▶';
    font-size: 36px;
    color: rgba(252, 231, 200, 0.3);
}

/* Video Info Overlay */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.9) 100%);
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    color: #fce7c8;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-channel {
    font-size: 11px;
    color: #E3BB7A;
    opacity: 0.8;
}

.video-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    font-size: 11px;
    color: #fce7c8;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(252, 231, 200, 0.2);
}

/* ================================================
   VIDEO PLAYER PANEL (RIGHT SIDE - 40%)
   ================================================ */
.video-player-panel {
    width: 40%;
    background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.5),
        0 2px 20px rgba(0,0,0,0.8);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    z-index: 2;
}

.video-player-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fce7c8 50%, 
        transparent 100%);
    opacity: 0.5;
}

/* No Video Selected State */
.no-video-selected {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(252, 231, 200, 0.3);
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-video-selected p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Player Container */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border: 2px solid rgba(252, 231, 200, 0.2);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Details Header */
.video-details-header {
    padding: 10px;
    background: rgba(0, 0, 2, 0.6);
    border: 1px solid rgba(252, 231, 200, 0.2);
}

.video-main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fce7c8;
    text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
    margin-bottom: 6px;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #E3BB7A;
}

.video-author,
.video-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Video Notes Section */
.video-notes-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 2, 0.6);
    border: 1px solid rgba(252, 231, 200, 0.2);
    overflow: hidden;
}

.notes-header {
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E3BB7A;
    font-weight: 700;
    border-bottom: 1px solid rgba(252, 231, 200, 0.2);
}

.notes-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

/* Markdown-style notes formatting */
.notes-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #fce7c8;
    margin-top: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notes-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.notes-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.notes-content li {
    margin-bottom: 6px;
    color: #E0E0E0;
    font-size: 13px;
    line-height: 1.4;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .video-gallery-main-container {
        flex-direction: column;
        height: auto;
        min-height: 700px;
    }
    
    .video-categories {
        width: 100%;
        max-height: 400px;
        padding-right: 0;
    }
    
    .video-player-panel {
        width: 100%;
        height: 350px;
        margin-top: 12px;
    }
    
    .video-tabs-nav {
        flex-wrap: wrap;
    }
    
    .video-tabs-nav span.video-tab {
        flex: 1 1 calc(33.333% - 1px);
        min-width: 100px;
        width: auto !important; /* Override the fixed width on smaller screens */
    }
}

@media (max-width: 768px) {
    .video-gallery-title {
        font-size: 20px;
    }
    
    .video-gallery-subtitle {
        font-size: 12px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .video-tabs-nav span.video-tab {
        font-size: 9px;
        padding: 10px 6px;
        letter-spacing: 0.5px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

/* ================================================
   MEDIAWIKI SPECIFIC OVERRIDES
   ================================================ */
/* Ensure proper display in MediaWiki content area */
#mw-content-text .video-gallery-main-container {
    clear: both;
}

/* Fix for MediaWiki's default link colors */
.video-gallery-main-container a {
    color: inherit;
    text-decoration: none;
}

/* Fix potential MediaWiki paragraph tags */
.video-gallery-main-container p {
    margin: 0;
}

/* Fix for MediaWiki's table layout interference */
.video-gallery-main-container table {
    display: block !important;
}


/* === Flex row across full width ================================== */
.video-tabs-nav {
  display: flex;
  flex-wrap: nowrap;      /* stay on one row       */
  width: 100%;
  gap: 4px;               /* space between buttons */
}

/* === Each button takes an equal slice ============================ */
.video-tabs-nav .video-tab {
  flex: 1 1 0;            /* equal columns         */
  min-width: 0 !important;/* override old 180 px   */
  box-sizing: border-box; /* include border in flex width */
  text-align: center;
  /* keep your existing bg / border / font rules */
}