Actions

Template

VideoGallery/styles.css: Difference between revisions

From Dune Awakening DB

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


/* ================================================
/* ================================================
   HEADER SECTION
   HEADER SECTION - REDUCED BY 30%
   ================================================ */
   ================================================ */
.video-gallery-header {
.video-gallery-header {
     text-align: center;
     text-align: center;
     padding: 30px 20px;
     padding: 20px 15px; /* Reduced from 30px 20px */
     margin-bottom: 20px;
     margin-bottom: 15px; /* Reduced from 20px */
    font-family: 'Rajdhani', sans-serif;
     background: linear-gradient(135deg, rgba(252, 231, 200, 0.05) 0%, rgba(12,10,20,.9) 100%);
     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);
     border: 2px solid rgba(252, 231, 200, 0.3);
Line 16: Line 16:
}
}


.video-gallery-header::before {
/* Removed the shimmer animation and ::before pseudo-element */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #fce7c8 50%,
        transparent 100%);
    animation: shimmer 3s infinite;
}
 
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


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


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


/* ================================================
/* ================================================
   MAIN CONTAINER
   MAIN CONTAINER - REDUCED HEIGHT
   ================================================ */
   ================================================ */
.video-gallery-main-container {
.video-gallery-main-container {
     display: flex;
     display: flex !important;
     gap: 12px;
     gap: 12px;
     padding: 12px;
     padding: 12px 0;
     max-width: 100%;
     max-width: 100%;
     margin: 0 auto;
     margin: 0 auto;
     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 87: Line 70:
         rgba(252, 231, 200, 0.01) 70px
         rgba(252, 231, 200, 0.01) 70px
     );
     );
 
     z-index: -1;
     z-index: 1;
}
}


Line 95: Line 77:
   ================================================ */
   ================================================ */
.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;
     position: relative;
     z-index: 2;
     z-index: 2;
    height: 100%;
}
}


/* ================================================
/* ================================================
  SEARCH BAR
   TAB NAVIGATION - FIXED HORIZONTAL WITH EQUAL SIZING
  ================================================ */
.video-search-bar {
    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);
    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.5);
}
 
.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;
    transform: translateY(-1px);
}
 
/* ================================================
   TAB NAVIGATION - FIXED HORIZONTAL LAYOUT
   ================================================ */
   ================================================ */
.video-tabs-nav {
.video-tabs-nav {
     display: flex;
     display: flex !important;
     flex-direction: row !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%);
Line 170: Line 100:
     border-radius: 0;
     border-radius: 0;
     overflow: hidden;
     overflow: hidden;
    flex-shrink: 0;
     height: auto;
     height: auto;
     width: 100%;
     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 183: 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;
Line 194: Line 127:
     min-width: 0;
     min-width: 0;
     text-align: center;
     text-align: center;
    display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     gap: 5px;
     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 216: Line 153:
}
}


.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 CONTENT CONTAINER
   SCROLLABLE CONTENT CONTAINER
   ================================================ */
   ================================================ */
.video-tab-content {
.video-content-wrapper {
    display: none;
     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;
    height: 100%;
    min-height: 0; /* Important for flex children */
}
/* ================================================
  TAB CONTENT CONTAINER
  ================================================ */
.video-tab-content {
    display: none;
}
}


Line 244: Line 191:
     display: block;
     display: block;
}
}


/* ================================================
/* ================================================
Line 300: 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);
}
/* ================================================
  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);
}
}


Line 327: 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 367: 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 372: Line 334:
     background-position: center;
     background-position: center;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     position: relative;
}
 
/* 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);
}
}


Line 420: Line 395:
   ================================================ */
   ================================================ */
.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 480: 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 497: 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 543: 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 588: Line 560:
         flex-direction: column;
         flex-direction: column;
         height: auto;
         height: auto;
         min-height: 800px;
         min-height: 700px;
     }
     }
      
      
     .video-categories {
     .video-categories {
         flex: 1 1 auto;
         width: 100%;
         max-height: 500px;
         max-height: 400px;
         padding-right: 0;
         padding-right: 0;
     }
     }
      
      
     .video-player-panel {
     .video-player-panel {
         flex: 0 0 400px;
         width: 100%;
        height: 350px;
         margin-top: 12px;
         margin-top: 12px;
     }
     }
Line 606: Line 579:
     }
     }
      
      
     .video-tab {
     .video-tabs-nav span.video-tab {
         flex: 1 1 calc(33.333% - 1px);
         flex: 1 1 calc(33.333% - 1px);
         min-width: 120px;
         min-width: 100px;
        width: auto !important; /* Override the fixed width on smaller screens */
     }
     }
}
}
Line 614: Line 588:
@media (max-width: 768px) {
@media (max-width: 768px) {
     .video-gallery-title {
     .video-gallery-title {
         font-size: 24px;
         font-size: 20px;
     }
     }
      
      
     .video-gallery-subtitle {
     .video-gallery-subtitle {
         font-size: 14px;
         font-size: 12px;
     }
     }
      
      
Line 625: Line 599:
     }
     }
      
      
     .video-tab {
     .video-tabs-nav span.video-tab {
         font-size: 10px;
         font-size: 9px;
         padding: 10px 8px;
         padding: 10px 6px;
         letter-spacing: 1px;
         letter-spacing: 0.5px;
     }
     }
      
      
Line 639: Line 613:
   MEDIAWIKI SPECIFIC OVERRIDES
   MEDIAWIKI SPECIFIC OVERRIDES
   ================================================ */
   ================================================ */
/* Override any default MediaWiki button styles for tabs */
.video-tabs-nav button.video-tab {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* Ensure proper display in MediaWiki content area */
/* Ensure proper display in MediaWiki content area */
#mw-content-text .video-gallery-main-container {
#mw-content-text .video-gallery-main-container {
Line 655: Line 622:
     color: inherit;
     color: inherit;
     text-decoration: none;
     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 */
}
}

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 */
}