/* Search Results Styling */
.search-result-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.search-result-band-image {
    border-radius: 0.375rem; /* Bootstrap rounded */
}

.search-result-show-image {
    border-radius: 0.375rem; /* Bootstrap rounded */
}

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght:100,200,300,400,500,600,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

body {
    background: #161C1D;
    color: #E8E8E8;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    line-height: 1.6;
    font-size: 15px;

    h1, h2, h3, h4, h5, h6 {
        color: #E8E8E8;
        font-family: 'Oswald', sans-serif;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    a {
        color: #F5C56C;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    a:hover {
        color: #FFD68A;
    }
}

/* Sticky Footer Layout - ensures footer stays at bottom of viewport */
.sticky-footer-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sticky-footer-layout main {
    flex: 1;
}

/* Helper classes for pages that need sticky footer */
.min-vh-100 {
    min-height: 100vh !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

#mainNav {
    width: 100%;
    font-family: 'Yanone Kaffeesatz', 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: #2a3133;
    margin: 0 0 2rem 0;
    font-size: 1.2em;
    padding: 10px 0;
}

#mainNav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    gap: 20px;
}

#mainNav .nav-search {
    flex: 0 1 350px;
    max-width: 350px;
}

.desktop-search-icon {
    display: flex;
    align-items: center;
}

.search-icon-btn {
    background: none;
    border: none;
    color: #E6E6E6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-icon-btn:hover {
    color: #EDC78A;
    background-color: rgba(237, 199, 138, 0.1);
}

#mainNav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

#mainNav ul li {
    margin: 0;
}

/* Hide mobile nav components on desktop */
.mobile-nav-container,
.mobile-search-overlay {
    display: none;
}

/* Responsive - Mobile Only */
@media (max-width: 768px) {
    /* Hide desktop nav on mobile */
    #mainNav {
        display: none;
    }
    
    /* Show mobile nav on mobile */
    .mobile-nav-container {
        display: block;
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 8px 12px;
        background-color: #2a3133;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: padding 0.3s ease, font-size 0.3s ease;
        gap: 8px;
    }

    .mobile-nav-header .mobile-nav-toggle {
        flex-shrink: 0;
        order: 1;
    }

    .mobile-nav-header .mobile-logo-link {
        display: flex;
        align-items: center;
        height: 100%;
        order: 2;
        flex: 1;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-nav-header .mobile-search-icon-btn {
        order: 3;
        flex-shrink: 0;
        background: transparent;
        border: none;
        color: #EDC78A;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        transition: opacity 0.2s ease;
    }

    .mobile-nav-header .mobile-search-icon-btn:active {
        opacity: 0.7;
    }

    /* Homepage layout: search takes 2/3 width */
    .mobile-nav-header .mobile-header-search.homepage {
        order: 2;
        flex: 1;
        display: flex !important;
        min-width: 0;
        margin: 0;
    }

    /* Other pages layout: search on right, initially hidden */
    .mobile-nav-header .mobile-header-search:not(.homepage) {
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        background-color: #2a3133;
        border-bottom: 1px solid #495057;
        padding: 12px;
        margin: 0;
        z-index: 999;
    }

    .mobile-nav-header .mobile-header-search:not(.homepage).active {
        display: flex;
    }

    /* Centered mobile logo in the top bar (hidden on homepage by PHP) */
    .mobile-logo-link {
        display: flex;
        align-items: center;
        height: 100%;
    }
    .mobile-logo {
        height: auto;
        max-height: 1.8rem;
        width: auto;
        display: block;
    }
    .mobile-nav-header.scrolled .mobile-logo {
        max-height: 1.2rem;
    }
    
    .mobile-nav-header.scrolled {
        padding: 8px 15px;
    }
    
    .mobile-nav-header.scrolled .mobile-nav-toggle .btn,
    .mobile-nav-header.scrolled .mobile-search-toggle {
        font-size: 1.3rem;
    }
    
    .mobile-search-toggle {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-search-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Mobile header search bar */
    .mobile-header-search {
        flex: 1;
        max-width: 100%;
        margin: 0 0 0 auto;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .mobile-header-search .unified-search {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .mobile-header-search .search-container {
        position: relative;
    }

    .mobile-header-search .search-input {
        width: 100%;
        padding: 6px 10px 6px 30px;
        border: 1px solid #495057;
        border-radius: 18px;
        background-color: #1a1a1a;
        color: #ffffff;
        font-size: 13px;
        outline: none;
        transition: all 0.2s ease;
    }

    .mobile-header-search .search-input:focus {
        border-color: #EDC78A;
        box-shadow: 0 0 0 2px rgba(237, 199, 138, 0.1);
    }

    .mobile-header-search .search-icon {
        left: 8px;
        font-size: 13px;
    }

    .mobile-header-search .search-clear {
        right: 8px;
        font-size: 13px;
    }

    .mobile-header-search .search-filters {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2a3133;
        border: 1px solid #495057;
        border-top: none;
        border-radius: 0 0 8px 8px;
        padding: 8px;
        margin-top: 0;
        z-index: 999;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-header-search .search-filters.active {
        display: flex;
    }

    .mobile-header-search .search-filter {
        padding: 4px 10px;
        border: 1px solid #495057;
        border-radius: 12px;
        background-color: #343a40;
        color: #ffffff;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .mobile-header-search .search-filter:hover,
    .mobile-header-search .search-filter.active {
        background-color: #EDC78A;
        color: #161C1D;
        border-color: #EDC78A;
    }

    .mobile-header-search .search-results {
        max-height: 300px;
        border-radius: 8px;
        margin-top: 8px;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        background-color: #2a3133;
        border: 1px solid #495057;
        border-radius: 4px;
    }
    
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(22, 28, 29, 0.95);
        z-index: 2000;
        display: none;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .mobile-search-overlay.active {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-search-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .mobile-search-close {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-search-overlay .unified-search {
        max-width: 100%;
        margin: 0;
    }
}

nav a {
    text-decoration: none;
}

nav ul li a.inactive {
    font-weight: 200;
}

nav ul li a.current {
    font-weight: 700;
    text-decoration: underline;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    min-width: 320px;
    width: 100%;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    padding: 0; /* Padding is now on the 'a' tag to make the whole area clickable */
    border-color: #CACACA;
    color: #E6E6E6;
    flex-grow: 1;
    border-width: 0 0.5px 0 0;
    border-style: solid;
    text-align: center;
}

/* Make the link fill the entire list item */
#mainNav ul li a {
    display: block;
    padding: 0.125em;
    color: #E6E6E6;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* The hover effect for the entire 'box' */
#mainNav ul li:hover {
    color: #EDC78A;
    background-color: rgba(237, 199, 138, 0.1);
}
#mainNav ul li:hover a {
    color: #EDC78A;
}

nav ul li:first-of-type {
    border-right-width: 1px;
}

nav ul li:last-of-type {
    border-right-width: 1px;
}

.mainImage {
    width: 100%;
    /* max-width: 2700px; */
    margin-top: 1vh;
    /* margin-left: 10vw; */
}

/* ===== HOMEPAGE GRID =====
   Three regions placed with grid-template-areas so they can be reordered per
   breakpoint: featured (logo, search, shows), bands (directory), more (recent
   shows, history, updates). Phones see featured > bands > more. */
.mainPage .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "featured"
        "bands"
        "more";
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.mainPage .home-featured { grid-area: featured; min-width: 0; }
.mainPage .home-bandlist { grid-area: bands; min-width: 0; }
.mainPage .home-more     { grid-area: more; min-width: 0; }

/* Tablets and small laptops: shows on the left, directory on the right. */
@media (min-width: 700px) {
    .mainPage .home-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "featured bands"
            "more     bands";
        column-gap: 2rem;
    }
}

/* Desktop: the original 2:3:3 proportions. */
@media (min-width: 1200px) {
    .mainPage .home-grid {
        grid-template-columns: 2fr 3fr 3fr;
        grid-template-areas:
            "featured bands bands"
            "more     bands bands";
        column-gap: 2.5rem;
    }
}

.mainPage .home-logo {
    text-align: center;
    margin-bottom: 0.75rem;
}

.mainPage .home-logo-image {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.mainPage .home-section {
    background-color: rgba(26, 26, 26, 0.6);
    border-radius: 0;
    padding: 0.75rem;
    margin-bottom: 0;
}

.mainPage .home-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #F5C56C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mainPage .home-subsection {
    margin-top: 0.75rem;
}

.mainPage .home-subsection-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #B8BFC4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mainPage .home-muted {
    color: #B8BFC4;
    font-size: 0.85rem;
    line-height: 1.5;
}

.mainPage .home-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainPage .home-list li {
    margin: 0.4rem 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.mainPage .home-list a {
    text-decoration: none;
}

/* Homepage show cards. Landscape fliers stack above the text; portrait and
   square ones sit beside it (orientation class is set in index.php). */
.home-show-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 12px;
}

.home-show-stack > div {
    min-width: 0;
}

.home-show-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-show-card {
    display: grid;
    gap: 10px;
    align-items: start;
}

.home-show-card.is-portrait {
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
}

.home-show-card.is-landscape {
    grid-template-columns: minmax(0, 1fr);
}

.home-show-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.home-show-image-empty {
    aspect-ratio: 3 / 4;
    background-color: #333;
}

.home-show-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-show-bands {
    font-size: 0.9rem;
    color: #ddd;
}

.home-show-headliner {
    font-weight: 600;
    color: #fff;
}

.home-show-meta {
    font-size: 0.8rem;
    color: #999;
}

.home-show-when {
    margin-top: 4px;
}

.home-ticket-btn {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 0.6rem 0.75rem;
    background-color: black;
    color: #00ff00;
    border: 2px solid #00ff00;
    text-decoration: none;
}

.home-ticket-btn:hover {
    background-color: #00ff00;
    color: black;
}

/* Band directory: the browser picks the column count from the available
   width (about 2 on a phone, 4 on desktop) and keeps names alphabetical
   down each column. Rows are tall enough to tap. */
#band-list {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    width: 100%;
    columns: 130px;
    column-gap: 12px;
}

#band-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    break-inside: avoid;
}

#band-list li a {
    display: block;
    padding: 0.6rem 0;
    overflow-wrap: anywhere;
}

#band-list .adjacent {
    font-style: italic;
}

.hidden {
    /* font-size: 1px; */
    line-height: 0;
    color: #FEE7BE;
}

.represent {
    text-align: center;
    text-transform: uppercase;
}

/* Override Bootstrap's dark table text */
.table td, .table th {
  color: #FEE7BE; /* Or any other light color you prefer */
}

/* For better specificity, target the table directly if you have a specific class or ID */
#my-table td, #my-table th {
  color: #FEE7BE;
}

.table-dark td, .table-dark th {
    color: #FEE7BE; /* Or your preferred light color */
}

/* Fix text-muted for dark theme */
.text-muted {
    color: #adb5bd !important;
}

/* Fix form-text (Bootstrap field hints) for dark theme */
.form-text {
    color: #adb5bd !important;
}

/* Ensure small text is visible on dark backgrounds */
small {
    color: #dee2e6;
}

/* Fix form elements with dark backgrounds */
.form-control {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

.form-control:focus {
    background-color: #2b3035 !important;
    border-color: #80bdff !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.form-control::placeholder {
    color: #adb5bd !important;
}

/* Fix file input styling */
.form-control[type="file"] {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* Fix textarea specifically */
textarea.form-control {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* Fix form labels */
.form-label, label {
    color: #fff !important;
}

/* Fix select elements */
select.form-control, .form-select {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* Band Page START */
.bandPage {
    #nameAndEras {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        column-gap: 0;
        align-items: center;
        .bandName {
            font-size: 3.5rem;
            font-weight: 400;
            margin: 0;
            text-align: center;
            flex-grow: 1;
            flex-basis: 100%;
            line-height: normal;
        }
        .eras {
            font-size: 0.8rem;
            white-space: nowrap;
            line-height: 0.7rem;

        }
    }
    #mainImage img {
        width: 100%;
        max-width: 2700px;
        max-height: 80vh;
        /* don't break up into different lines if possible */
        }

}

.showPage {
    .flierImage {   
        width: 100%;
    }
    
    /* Flier Management Styles */
    #flierManagement {
        .flier-item {
            transition: all 0.3s ease;
            &:hover {
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
        }
        
        .flier-preview {
            transition: all 0.3s ease;
            &:hover {
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
        }
        
        .selectable-image {
            transition: all 0.3s ease;
            &:hover {
                opacity: 0.8;
                box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            }
            
            &.already-associated {
                cursor: not-allowed;
            }
        }
        
        #existingImagesGallery {
            .position-relative {
                .badge {
                    font-size: 0.7em;
                }
            }
        }
        
        #newFlierPreviews, #currentFliersDisplay {
            .flier-item, .flier-preview {
                background: #313233;
                border: 1px solid #dee2e6;
                
                img {
                    border-radius: 4px;
                }
            }
        }
    }
    
        /* Videos Section */
        .videos-section {
            margin-top: 1.5rem;
        
            .videos-container {
                display: grid;
                gap: 1rem;
            }
        
            .video-player {
                position: relative;
                width: 100%;
                padding-bottom: 56.25%; /* 16:9 */
                height: 0;
                overflow: hidden;
                border-radius: 8px;
                background: #000;
            }
        
            .video-player iframe {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border: 0;
            }
        }
}



#theBandRows {

    .band-entry {
        /* remove the gaps between bootstrap colummns */
        margin-bottom: 0;
        padding: 0;
    }
    .band-entry > div {
        display: flex;
        flex-direction: row;
    }
    .bi.bi-grip-vertical {
        cursor: move;
        height: 100%;
        width: 30px;
        line-height: 38px;
        vertical-align: center;
    }
    input.band-name-input {
        width: 100%;
        }
}

.selectable-image {
  cursor: pointer;
}
.selectable-image.selected {
  border: 3px solid #EDC78A; /* Gold border to show selection */
}

.dark-form-card {
    margin-top: 50px;
    background-color: #2a3133;
    border-color: #EDC78A;
    color: #E8E8E8;
}

.dark-form-card .card-header {
    border-bottom: 1px solid #EDC78A;
    color: #FEE7BE;
}

.dark-form-card label {
    color: #FEE7BE; /* Light color for labels */
}

.dark-form-card .form-control {
    background-color: #161C1D;
    color: #FEE7BE;
    border-color: #EDC78A;
}

/* --- Mobile Navigation --- */

/* Hide desktop nav on small screens */
@media screen and (max-width: 768px) {
  #mainNav {
    display: none;
  }

  /* Add space for the fixed mobile nav toggle */
  body {
    padding-top: 80px !important;
  }

  /* Hide homepage search on mobile (the header has one) */
  .home-featured .home-section[aria-label="Search"] {
    display: none;
  }
}

/* Show mobile toggle on small screens */
.mobile-nav-toggle {
  display: none; /* Hidden by default */
  z-index: 1002; /* Above sidenav and overlay */
}

@media screen and (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
}

.mobile-nav-toggle .btn {
    font-size: 2.2rem;
    color: #EDC78A;
    padding: 0;
    border: none;
    line-height: 1;
}

.mobile-nav-toggle #closeSidenav.btn {
    color: #E8E8E8;
}

/* Close button inside sidenav */
.sidenav .closebtn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 36px;
    color: #E8E8E8;
    text-decoration: none;
    line-height: 1;
    padding: 0;
    z-index: 1003;
}

.sidenav .closebtn:hover {
    color: #fff;
}

/* The side navigation menu */
.sidenav {
  height: 100%;
  width: 0; /* Initially hidden */
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  background-color: #1F2727; /* Dark drawer to match site theme */
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
  max-width: 220px; /* Cap the width on larger screens */
}

/* The navigation menu links */
.sidenav a {
  padding: 10px 15px 10px 32px;
  text-decoration: none;
  font-size: 22px;
  color: #E8E8E8;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #EDC78A;
}

/* Style for the horizontal rule in the menu */
.sidenav hr {
    border-color: #3A4444;
}

/* The overlay effect (for closing the menu) */
.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: none; /* Hidden by default */
}

/* Show Page Styles */
.show-page {
    margin-top: 2rem;
}

.show-date {
    font-size: 2rem;
    font-weight: 700;
    color: #CACACA;
    font-family: 'Oswald', sans-serif;
}

.show-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #E6E6E6;
    font-family: 'Oswald', sans-serif;
}

.venue-info {
    padding: 1.5rem 0;
    border-bottom: 1px solid #2a3133;
}

.venue-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #CACACA;
    font-family: 'Oswald', sans-serif;
}

.venue-address {
    font-size: 1.1rem;
    color: #E6E6E6;
    margin-bottom: 0.5rem;
}

.show-details {
    font-size: 1rem;
    color: #CACACA;
}

.detail-item {
    display: inline-block;
}

.lineup-container {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.lineup-item {
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 1.1rem;
}

.lineup-item:last-child {
    border-bottom: none;
}

.band-link {
    font-weight: 500;
    transition: color 0.2s ease;
    color: #EDC78A !important;
    text-decoration: none;
}

.band-link:hover {
    color: #FEE7BE !important;
    text-decoration: underline !important;
}

/* Public band pages get heavier weight */
.band-link.public-band {
    font-weight: 600;
}

/* Multi-show admin bands get normal weight (same as base) */
.band-link.multi-show-band {
    font-weight: 500;
}

.band-name {
    font-weight: 500;
    color: #E6E6E6 !important;
}

/* Unified Media Gallery (Images + Videos) */
.media-gallery {
    text-align: center;
    position: relative;
}

.primary-media-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #0a0e0f;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.primary-media-container img.mediaImage,
.primary-media-container .mediaImage {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
    display: block;
    max-width: 100%;
}

.primary-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.primary-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.media-thumbnails {
    margin-top: 1rem;
}

.media-thumbnail {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.media-thumbnail:hover,
.media-thumbnail.active {
    border-color: #EDC78A;
}

/* Legacy flier gallery styles - kept for backward compatibility */
.flier-gallery {
    text-align: center;
    position: relative;
}

.primary-flier-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.primary-flier-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.flier-thumbnails {
    margin-top: 1rem;
}

.thumbnail-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flier-thumbnail {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.flier-thumbnail:hover,
.flier-thumbnail.active {
    border-color: #EDC78A;
}

/* Mobile Flier Navigation */
.mobile-flier-nav {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flier-nav-dots {
    display: flex;
    gap: 0.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    padding: 17px;
    background-color: #2a3133;
    background-clip: content-box;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: content-box;
}

.nav-dot.active {
    background-color: #EDC78A;
}

.flier-nav-arrows {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    background: #2a3133;
    color: #E6E6E6;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: #EDC78A;
    color: #161C1D;
}

.nav-arrow:disabled {
    background: #161C1D;
    color: #2a3133;
    cursor: not-allowed;
}

.show-notes {
    font-size: 1rem;
    line-height: 1.6;
    color: #E6E6E6;
    background-color: transparent;
    border: none;
    padding: 0;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #2a3133;
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    color: #E6E6E6;
    text-decoration: none;
    flex: 1;
}

.links-list a:hover {
    color: #FEE7BE;
    text-decoration: underline;
}

.link-icon {
    color: #EDC78A;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    flex-shrink: 0;
}

.links-list .external-icon {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Platform-specific link accents (Bootstrap Icons) - YouTube Red, Spotify Green, etc */
.link-icon.platform-youtube { color: #FF0000; }
.link-icon.platform-spotify { color: #1DB954; }
.link-icon.platform-bandcamp { color: #65c3c8; }
.link-icon.platform-soundcloud { color: #ff8800; }
.link-icon.platform-apple-music { color: #f2f2f2; }
.link-icon.platform-facebook { color: #1877f2; }
.link-icon.platform-instagram { color: #E4405F; }
.link-icon.platform-twitter { color: #1DA1F2; }
.link-icon.platform-website { color: #EDC78A; }
.link-icon.platform-other { color: #EDC78A; }

/* Touch/Swipe Support */
.primary-flier-container {
    touch-action: pan-y;
    user-select: none;
}

@media (max-width: 991px) {
    .primary-flier-container {
        touch-action: pan-y;
    }
}

@media (max-width: 768px) {
    .show-date {
        font-size: 1.5rem;
    }
    
    .show-name {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }
    
    .venue-name {
        font-size: 1.3rem;
    }
    
    .show-details {
        margin-top: 1rem;
    }
    
    .detail-item {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .lineup-item {
        padding: 1rem 0;
        font-size: 1.2rem;
    }
    
    .show-metadata {
        gap: 0.75rem 1rem;
    }
    
    .detail-row {
        font-size: 1rem;
    }
}

/* Mobile ordering for show page sections */
@media (max-width: 991px) {
    .show-metadata {
        order: 1 !important;
    }
    
    .fliers-section {
        order: 2 !important;
    }
    
    .lineup-section {
        order: 3 !important;
    }
}

.show-metadata {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.detail-row {
    font-size: 1.1rem;
    color: #E6E6E6;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
}

.detail-row strong {
    color: #CACACA;
}

/* Release Interface Improvements */
.band-suggestions {
    position: relative;
    z-index: 1000;
    background: #343a40;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    margin-top: 2px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    background: #343a40;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #495057;
}

.suggestion-item:hover {
    background: #495057;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.existing-image-item .card {
    transition: transform 0.2s, box-shadow 0.2s;
    background: #343a40 !important;
}

.existing-image-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.ui-state-highlight {
    height: 60px;
    background: rgba(0,123,255,0.2);
    border: 2px dashed #007bff;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.drag-handle {
    color: #999;
    transition: color 0.2s ease;
    user-select: none;
}

.drag-handle:hover {
    color: #EDC78A;
}

.media-item.ui-sortable-helper {
    opacity: 0.7;
    background: rgba(237, 199, 138, 0.1);
}

.release-track-entry {
    background: rgba(255,255,255,0.05);
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.release-track-entry:hover {
    background: rgba(255,255,255,0.08);
}

.bi-grip-vertical {
    cursor: grab;
    font-size: 1.2em;
}

.bi-grip-vertical:active {
    cursor: grabbing;
}

.format-btn.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}

/* Admin interface cards */
.card.bg-dark {
    border: 1px solid #495057;
}

.card.bg-dark .card-header {
    background: #495057;
    border-bottom: 1px solid #6c757d;
}

/* Form enhancements */
.form-control {
    background: #2b3035;
    border: 1px solid #495057;
    color: #fff;
}

.form-control:focus {
    background: #2b3035;
    border-color: #80bdff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select {
    background: #2b3035;
    border: 1px solid #495057;
    color: #fff;
}

.form-select:focus {
    background: #2b3035;
    border-color: #80bdff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button improvements */
.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-outline-info:hover {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* Image grid improvements */
.existing-image-item {
    transition: opacity 0.3s;
}

.existing-image-item.hidden {
    opacity: 0.3;
}

/* Preview styling */
#newCoverArtPreviewContainer img {
    border: 2px solid #495057;
}

/* Track entry styling */
.release-track-entry .form-control {
    margin-bottom: 0;
}

.release-track-entry .btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .existing-image-item {
        margin-bottom: 1rem;
    }
    
    .release-track-entry .col-1 {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }
    
    .release-track-entry .col-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.mainPage #homepage-unified-search .search-icon {
    left: 12px;
    font-size: 16px;
}

.mainPage #homepage-unified-search .search-clear {
    right: 10px;
    font-size: 16px;
}

.mainPage #homepage-unified-search .search-filters {
    gap: 6px;
    margin-top: 8px;
}

.mainPage #homepage-unified-search .search-filter {
    padding: 4px 10px;
    font-size: 11px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #495057;
    border-radius: 25px;
    background-color: #2a3133;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #EDC78A;
    box-shadow: 0 0 0 3px rgba(237, 199, 138, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 18px;
    cursor: pointer;
    display: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.search-filter {
    padding: 5px 15px;
    border: 1px solid #495057;
    border-radius: 15px;
    background-color: #343a40;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-filter:hover,
.search-filter.active {
    background-color: #EDC78A;
    color: #161C1D;
    border-color: #EDC78A;
}

.search-results {
    position: absolute;
    top: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    background-color: #2a3133;
    border: 1px solid #495057;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.search-results.visible {
    display: block !important;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #495057;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background-color: #343a40;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.search-result-subtitle {
    color: #adb5bd;
    font-size: 12px;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.search-result-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.search-result-type.band {
    background-color: #dc3545;
    color: #ffffff;
}

.search-result-type.show {
    background-color: #17a2b8;
    color: #ffffff;
}

.search-result-type.merch {
    background-color: #fd7e14;
    color: #ffffff;
}

.search-result-type.person {
    background-color: #28a745;
    color: #ffffff;
}

/* Alternate name badges */
.search-result-alternate {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 6px;
    background-color: #6f42c1;
    color: #ffffff;
}

.search-result-alternate.misspelling {
    background-color: #fd7e14;
}

.search-result-alternate.former_name {
    background-color: #6610f2;
}

.search-result-alternate.abbreviation {
    background-color: #0dcaf0;
}

.search-result-alternate.stylized {
    background-color: #d63384;
}

.search-result-alternate.nickname {
    background-color: #198754;
}

/* Show result styling with flier images */
.search-result-item.show-result {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.search-result-content {
    flex: 1;
}

.search-result-flier {
    flex: 0 0 60px;
    height: 60px;
}

.search-result-flier img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #495057;
}

.search-result-status {
    color: #adb5bd;
    font-size: 11px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #adb5bd;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #adb5bd;
}

.search-error {
    padding: 20px;
    text-align: center;
    color: #dc3545;
}

/* Search result highlighting */
mark {
    background-color: #EDC78A;
    color: #161C1D;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .unified-search {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 15px 10px 40px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 16px;
    }
    
    .search-clear {
        right: 12px;
        font-size: 16px;
    }
    
    .search-filters {
        gap: 8px;
        margin-top: 8px;
    }
    
    .search-filter {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 15px;
    }
}

/* ===== DESKTOP FULL-SCREEN SEARCH MODAL ===== */
.desktop-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop-search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 28, 29, 0.9);
    backdrop-filter: blur(3px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5% 10%;
    box-sizing: border-box;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
}

.search-modal-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

.search-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.search-modal-close:hover {
    color: #EDC78A;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-modal-body {
    width: 100%;
    max-width: 800px;
    flex: 1;
}

/* Override search component styles for modal */
.search-modal-body .unified-search {
    max-width: 100%;
    margin: 0;
}

.search-modal-body .search-input {
    font-size: 1.5rem;
    padding: 20px 25px 20px 60px;
    border-radius: 15px;
    border-width: 3px;
}

.search-modal-body .search-icon {
    left: 20px;
    font-size: 1.5rem;
}

.search-modal-body .search-clear {
    right: 20px;
    font-size: 1.5rem;
}

.search-modal-body .search-results {
    max-height: 60vh;
    border-radius: 15px;
    margin-top: 15px;
    width: 100%;
    position: relative;
    top: 0;
}

.search-modal-body .search-result-item {
    padding: 15px 25px;
}

.search-modal-body .search-result-title {
    font-size: 1.1rem;
}

.search-modal-body .search-result-subtitle {
    font-size: 0.9rem;
}

/* Hide modal on mobile */
@media (max-width: 768px) {
    .desktop-search-modal {
        display: none !important;
    }

    .desktop-search-icon {
        display: none;
    }
}

/* Full-page drag-and-drop overlay (js/image-drop-paste.js). Shown for the
   duration of a drag that looks like it's carrying an image; a drop
   anywhere on the page is accepted, so this is a page-wide cue rather than
   a highlighted box around one element. */
#eh-drop-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    background-color: rgba(13, 110, 253, 0.12);
    align-items: center;
    justify-content: center;
}

#eh-drop-overlay.eh-drop-overlay-active {
    display: flex;
}

#eh-drop-overlay::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 3px dashed #0d6efd;
    border-radius: 12px;
}

.eh-drop-overlay-message {
    position: relative;
    background-color: #0d6efd;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}
/* Release cards (releases/index.php): the text column may shrink below its
   content width, so a long unbroken title wraps instead of pushing the cover
   out of the card. */
.release-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: start;
}

.release-card-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.release-card-cover img {
    display: block;
    width: clamp(72px, 28vw, 120px);
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Release detail cover: never wider than its column (was a fixed 400px). */
.release-featured-image {
    max-width: min(100%, 400px);
    height: auto;
}

/* Shows index (shows/show_listing.php): scannable list with sticky filters,
   year groups, date blocks and flyer thumbnails. */
.shows-head { margin-bottom: 0.75rem; }
.shows-filter-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #14181a;
    border-bottom: 1px solid #2a3133;
    padding: 0.6rem 0 0.4rem;
    margin-bottom: 0.25rem;
}
.shows-filter-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.sf-field { flex: 1 1 11rem; min-width: 0; }
.sf-field.sf-date { flex: 1 1 9rem; }
.sf-actions { display: flex; gap: 0.4rem; }
.year-jump { display: flex; gap: 0.35rem; overflow-x: auto; padding-top: 0.5rem; scrollbar-width: thin; }
.year-jump a {
    flex: none; font-size: 0.75rem; padding: 0.1rem 0.55rem; border-radius: 999px;
    background: #1f2527; color: #B8BFC4; text-decoration: none;
}
.year-jump a:hover { background: #2c3538; color: #fff; }
.year-head {
    position: sticky; top: var(--shows-bar-h, 7rem); z-index: 10;
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0; padding: 0.35rem 0.75rem; font-size: 0.95rem; font-weight: 600;
    background: #101314; border-bottom: 1px solid #2a3133; scroll-margin-top: var(--shows-bar-h, 7.5rem);
}
.year-count { font-size: 0.75rem; font-weight: 400; color: #8b9499; }
.sl-show-row {
    position: relative; display: flex; align-items: center; gap: 0.85rem;
    padding: 0.6rem 0.75rem; border-bottom: 1px solid #22292b;
    content-visibility: auto; contain-intrinsic-size: auto 68px;
}
.sl-show-row[hidden], .year-group[hidden] { display: none; }
.sl-show-row:hover { background: #1a2022; }
.sl-show-date { flex: none; width: 3rem; text-align: center; line-height: 1.1; display: flex; flex-direction: column; }
.sd-big { font-size: 1.35rem; font-weight: 600; }
.sd-big.sd-month { font-size: 1rem; }
.sd-big.sd-unknown { color: #6b7479; }
.sd-small { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; color: #8b9499; }
.sl-show-thumb { position: relative; z-index: 2; flex: none; width: 3rem; height: 3rem; border-radius: 6px; background: #1f2527; overflow: hidden; }
.sl-show-thumb:not(:has(img)) { background: transparent; }
.sl-show-thumb img { cursor: pointer; width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-show-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sl-show-name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: #d9a441; }
.sl-show-venue { font-size: 0.8rem; color: #7d878c; text-decoration: none; }
.sl-show-venue::before { content: "@ "; }
.sl-show-venue:hover { text-decoration: underline; }
.sl-show-bands {
    color: #aab3b8; font-size: 1rem;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.sl-show-row-expanded .sl-show-bands { display: block; }
.sl-show-band + .sl-show-band::before { content: " \00b7  "; color: #5d676c; }
.sl-show-band.sl-show-headliner { color: #f1f3f4; font-weight: 600; }
.sl-show-admin { position: relative; z-index: 2; flex: none; }
.sl-show-row mark, .sl-show-row .sl-show-venue mark { background: #6b5a14; color: #ffe9a0; padding: 0 1px; border-radius: 2px; }

.flyer-preview {
    position: fixed; z-index: 1080; pointer-events: none; display: none;
    background: #0b0d0e; border-radius: 6px; box-shadow: 0 8px 32px rgba(0,0,0,.6); overflow: hidden;
}
.flyer-preview.on { display: block; }
.flyer-preview img { display: block; }

@media (max-width: 575.98px) {
    /* tall on phones: let it scroll away instead of eating the screen */
    .shows-filter-bar { position: static; padding-top: 0.4rem; }
    .year-head { top: 0; }
    .sf-field.sf-date { flex: 1 1 100%; }
    .sf-field { flex: 1 1 40%; }
    .sf-actions { flex: 1 1 100%; }
    .sl-show-row { gap: 0.6rem; padding: 0.6rem 0.25rem; align-items: flex-start; }
    .sl-show-thumb { width: 2.5rem; height: 2.5rem; }
    .sl-show-date { width: 2.6rem; }
    .year-head { padding-left: 0.25rem; padding-right: 0.25rem; }
}

/* Release card covers sit above the card's stretched link so they can be hovered (they link to the release themselves). */
.release-card-cover { position: relative; z-index: 2; }

/* Merch index cards: main image plus side rail of extra images */
.merch-gallery { display: flex; gap: 2px; height: 180px; background: var(--bs-body-bg, #fff); }
.merch-gallery-main { flex: 3; min-width: 0; }
.merch-gallery.is-split .merch-gallery-main { flex: 1; }
.merch-gallery-rail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.merch-gallery-thumb { flex: 1; min-height: 0; position: relative; }
.merch-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merch-gallery-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; font-weight: 600; }
