/* Color Palette */
:root {
    --blue: #00445B;
    --light-gray: #838383;
    --gray: #2D2D2D;
    --deep-red: #7F1C3E;
    --green: #50704E;
    --pink: #E35D7E;
    --white: #FFFFFF;
    --navbar-height: calc(35px + 20px);
}

/* Global Layout */
body {
    font-family: 'Barlow', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--gray) !important;
    color: var(--gray);
    font-size:16px;
}

a:focus,
a:active,
a:focus-visible,
.btn:focus,
.btn:active,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus,
button:focus,
button:active,
button:focus-visible {
    outline: none;
}

/* Fixed Top Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000;
    background-color: var(--gray) !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.navbar .container-fluid {
    max-width: 1170px;
    margin: 0 auto;
    background-color: var(--blue) !important;
    padding: 35px 15px 20px 15px;
    position: relative;
    height: 30px;
}

.navbar-left-section {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-center-section {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.navbar-center-section .navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    list-style: none;
}

.navbar-right-section {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-right-section .navbar-user-menu {
    margin: 0;
}

.navbar-right-section .navbar-user-menu > li > a,
.navbar-login-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 15px;
}

.navbar-login-link:hover,
.navbar-login-link:focus,
.navbar-right-section .navbar-user-toggle:hover,
.navbar-right-section .navbar-user-toggle:focus {
    color: var(--white) !important;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-right-section .dropdown-menu {
    min-width: 180px;
    margin-top: 8px;
}

.navbar-right-section .dropdown-menu > li > a {
    color: var(--gray) !important;
    display: block;
    padding: 8px 16px;
    height: auto;
}

.navbar-right-section .dropdown-menu > li > a:hover,
.navbar-right-section .dropdown-menu > li > a:focus {
    background-color: #f5f5f5 !important;
    color: var(--blue) !important;
}

.navbar-default {
    background-color: var(--gray) !important;
    border-color: var(--gray) !important;
}

.navbar-brand {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 15px 0;
}

.navbar-nav > li > a {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 15px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

/* Navbar separator styling */
.navbar-separator {
    color: var(--white) !important;
    padding: 0 5px;
    display: flex;
    align-items: center;
    font-weight: 300;
    height: 30px;
}

/* Search form styling */
.navbar-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 15px 0;
}

.navbar-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    height: 30px;
    padding: 5px 10px;
}

.navbar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    box-shadow: none;
}

/* Hide search button */
.navbar-form .btn-default {
    display: none;
}

/* Main Container Layout */
.container {
    background-color: var(--white);
    min-height: 100vh;
    padding-top: var(--navbar-height);
    padding-bottom: 20px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.container.container-no-padding {
    display: flex;
    flex-direction: column;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-header-banner {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    line-height: 0;
    flex-shrink: 0;
}

.page-header-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

.container.container-no-padding > .content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1170px;
    box-sizing: border-box;
}

.container.container-no-padding .footer-container {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 1170px;
    box-sizing: border-box;
}

/* Keep footer at the bottom on pages with little content */
body.site-sticky-footer .container.container-no-padding {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--navbar-height) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

body.site-sticky-footer .container.container-no-padding > .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.site-sticky-footer .site-footer-row {
    margin-top: auto;
    padding-top: 50px;
}

/* Content Area */
.content-wrapper {
    background-color: var(--white);
    padding: 0 15px !important;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rowsp {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Banner */
.banner {
    width: 100%;
    height: 400px;
    background: url('../img/main_banner.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

/* Remove padding from banner and footer columns */
.banner-container  {
    padding: 0 !important;
}

.footer-container {
    padding: 0 !important;
}

/* Quote Section */
.quote-container {
    padding: 0 !important;
}

.quote-section {
    background-color: var(--white);
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.quote-text {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.26;
    color: var(--blue);
    margin: 0 0 20px 0;
    font-style: normal;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-left: none;
}

.quote-author {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--blue);
    font-style: italic;
    display: block;
    margin-top: 8px;
}

/* Responsive quote */
@media (max-width: 768px) {
    .quote-text {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .quote-author {
        font-size: 16px;
    }
    
    .quote-section {
        padding: 40px 15px;
    }
}

.banner-content {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.banner-text {
    text-align: right;
    max-width: 900px;
    color: var(--white);
    margin-right: 30px;
}

.banner-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 5px;
    color: var(--white);
}

.banner-subtitle {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
}

.auth-container { max-width: 400px; margin: 50px auto; }
.register-container {
    max-width: 720px;
    margin: 40px auto 50px;
}
.register-intro {
    margin-bottom: 25px;
    color: var(--light-gray);
}
.register-terms {
    margin: 20px 0 25px;
}
.register-terms-label {
    font-weight: 400;
    margin-bottom: 0;
}
.alert-hidden {
    display: none;
}
.auth-toggle { margin-top: 20px; text-align: center; }
.auth-intro {
    margin-bottom: 20px;
    color: var(--light-gray);
}

/* Responsive banner */
@media (max-width: 768px) {
    .banner {
        height: 300px;
        justify-content: center;
    }
    
    .banner-content {
        justify-content: center;
    }
    
    .banner-text {
        text-align: center;
        max-width: 100%;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
}

/* Footer */
.footer {
    background-color: var(--blue) !important;
    color: var(--white) !important;
    padding: 30px 20px 20px 20px;
    text-align: center;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer p {
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer ul {
    margin-bottom: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    margin-bottom: 8px;
}

.footer hr {
    margin: 25px 0 20px 0;
}

/* Remove all rounded corners and shadows */
.btn,
.form-control,
.panel,
.well,
.alert,
.modal-content,
.nav-tabs > li > a,
.pagination > li > a,
.pagination > li > span,
.list-group-item,
.badge,
.label,
.progress,
.progress-bar,
.input-group-addon,
.dropdown-menu,
.popover,
.tooltip-inner {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove specific shadows and borders */
.panel {
    border: 1px solid #ddd;
    box-shadow: none !important;
}

.well {
    box-shadow: none !important;
}

/* Update existing styles to use new colors */
.text-primary {
    color: var(--blue);
}

.bg-primary {
    background-color: var(--blue);
}

/* Feature boxes for landing page */
.feature-box {
    padding: 0 20px 15px 20px;
    margin-bottom: 30px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
}

.feature-box h3 {
    color: var(--blue);
    margin-bottom: 20px;
}

.feature-box p {
    color: var(--gray);
    margin-bottom: 25px;
}

.feature-box-image {
    display: block;
    padding: 0;
    border: none;
    margin-bottom: 50px;
    transition: opacity 0.2s ease;
}

.feature-box-image:hover,
.feature-box-image:focus {
    opacity: 0.9;
    text-decoration: none;
}

.feature-box-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Info panel for landing page */
.info-panel {
    padding: 30px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    margin-top: 30px;
}

/* Content separator */
.content-separator {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 0;
}

/* Content section with image and text */
.content-image {
    text-align: center;
    padding: 0;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.content-text {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.content-text h2 {
    color: var(--blue);
    margin: 0 0 20px 0;
    font-size: 24px;
}

.content-text p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.info-panel h2 {
    color: var(--blue);
    margin-bottom: 20px;
}

.info-panel h3 {
    color: var(--deep-red);
    margin-top: 25px;
    margin-bottom: 15px;
}

.info-panel ul {
    color: var(--gray);
}

.info-panel li {
    margin-bottom: 8px;
}

/* Lead text styling */
.lead {
    color: var(--gray);
    font-weight: 400;
}

/* Page title styling */
.page-title {
    color: var(--blue);
    margin-bottom: 30px;
}

/* Results and Detail container fixes */
#results, #detail {
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  min-height:400px;
}


#intro {
  text-align:center;
  border-bottom:1px solid #cccccc;
  padding:20px;
  margin:20px;
}

#title1 {
  font-size:24px;
  color: var(--gray);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
}

#title2 {
  font-size:62px;
  color: var(--blue);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  line-height:100px;
}

#subtitle {
  font-size:18px;
  color:black;
  margin-bottom:20px;
}

#mainlist {
  border-left:1px solid #cccccc;
  border-right:1px solid #cccccc;
  display: flex;
  flex-direction: column;
  width: 90vw;
  margin-left:auto;
  margin-right:auto;
  padding-bottom:100px;
}

.blahajpost {
  display: grid;
  grid-template-columns: 25fr 65fr 10fr;
  grid-template-rows: auto auto 40px; 
  width: 50vw;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:20px;
  border-bottom:1px solid #cccccc;
  padding-bottom:20px;
  column-gap:30px;
  row-gap: 5px;
  
}

.blahajpost_image {
  grid-column-start: 1;
  grid-row-start: 1;
  grid-row-end: span 3;
  align-self:start;
}



.blahajpost_image > img {
  object-fit: cover;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius:20px;
  border:8px solid #cccccc;
}

.blahajpost_title {
  color:#000000;
  font-size:24px;
  font-weight:bold;
  grid-column-start: 2;
  grid-column-end: span 2;
  height:40px;
}

.blahajpost_description {
  color:#000000;
  font-size:16px;
  font-weight:normal;
  grid-column-start: 2;
  grid-column-end: span 2;
  align-self:start;
}

.blahajpost_date {
  grid-column-start: 2;
  grid-column-end: span 1;
  align-self:end;  
}

.blahajpost_likes {
  grid-column-start: 3;
  grid-column-end: span 1;
  align-self:end;  
  font-size:24px;
  text-align:right;
  vertical-align:bottom;
}

.blahajpost_likes::after {
   content: " ♥";
   color: var(--blue);
   font-size:32px;  
}


.blahajpost.right {
  grid-template-columns: 10fr 65fr 25fr;
}


.blahajpost.right > .blahajpost_image {
  grid-column-start: 3;
  grid-row-start: 1;
  grid-row-end: span 2;
}

.blahajpost.right > .blahajpost_title {
  grid-column-start: 1;
}

.blahajpost.right > .blahajpost_date {
  text-align:right;
  grid-row-start:2;
}

.blahajpost.right > .blahajpost_likes {
  grid-column-start: 1; 
}

/* ---------------------- ADMIN ------------------ */

#admin_title2 {
  font-size:36px;
  color: var(--blue);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  line-height:60px;
}


.admin_blahajpost_image {

}



.admin_blahajpost_image > img {
  width:80px;
  
}

.admin_blahajpost_title {
  color:#000000;
  font-size:16px;
  font-weight:bold;
}

.admin_blahajpost_description {
  color:#999999;
  font-size:12px;
  font-weight:normal;
}

.admin_blahajpost_date {
  color:#999999;
  font-size:14px;
  font-weight:normal; 
  width:100px;
}

.admin_blahajpost_likes {
  color:#000000;
  font-size:16px;
  font-weight:bold;
  width:50px;
  text-align:right;
}


@media only screen and (max-width: 768px) {

  #mainlist {
    width: 100vw;
    border:none;
    margin-left:0;
    margin-right:0;
  }

  .blahajpost {
    width: 80vw;;
  }

  .blahajpost_image > img {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius:20px;
    border:5px solid #cccccc;
  }

}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.page-title {
    color: var(--blue);
    font-size: 32px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

/* Navigation - Additional styles */
.navbar {
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: none;
}

.navbar-brand {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
}

.navbar-nav > li > a {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: border-color 0.2s ease;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 68, 91, 0.1);
}

.form-inline .form-group {
    margin-right: 10px;
}

/* Search Form */
#search-form {
    background: var(--white);
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
}

/* Make search input twice as wide */
#search-input {
    width: 400px !important;
}

/* Master Info Section */
.master-info {
    background: var(--white);
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
}

.master-info h2 {
    color: var(--blue);
    margin-bottom: 10px;
}

.master-info h3 {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Versions Panel */
.versions-panel {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.master-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.master-header h2 {
    color: var(--blue);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.master-header h3 {
    color: #666;
    font-size: 18px;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
}

.detail-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.detail-content h2 {
    color: var(--blue);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-content h3 {
    color: #666;
    font-size: 18px;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
}

.versions-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.versions-table {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border:1px solid #dee2e6;
    margin-bottom:0;
}

.versions-table .table {
    margin-bottom: 0;
    width: 100%;
}

.versions-table .table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
}

.versions-table .table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 5px 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.versions-table .table thead th:hover {
    background-color: #e9ecef;
}

.versions-table .table thead th.sortable {
    cursor: pointer;
}

.versions-table .table thead th.sortable:hover {
    background-color: #e9ecef;
}

.sort-icon {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.versions-table .table tbody {
    display: block;
    overflow-y: auto;
    max-height: 500px;
}

.versions-table .table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.versions-table .table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.versions-table .table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.versions-table .table tbody tr:hover {
    background-color: #f8f9fa;
}

.versions-table .table tbody td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}

.versions-table .table tbody tr:last-child td {
    border-bottom: none;
}

/* Albums table - similar to versions table */
.albums-table {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    margin-bottom: 0;
}

.albums-table .table {
    margin-bottom: 0;
    width: 100%;
}

.albums-table .table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
}

.albums-table .table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 5px 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.albums-table .table thead th:hover {
    background-color: #e9ecef;
}

.albums-table .table thead th.sortable {
    cursor: pointer;
}

.albums-table .table thead th.sortable:hover {
    background-color: #e9ecef;
}

.albums-table .table tbody {
    display: block;
    overflow-y: auto;
    max-height: 500px;
}

.albums-table .table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.albums-table .table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.albums-table .table tbody tr:hover {
    background-color: #f8f9fa;
}

.albums-table .table tbody td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}

.albums-table .table tbody tr:last-child td {
    border-bottom: none;
}

/* Results */
#results {
    padding: 20px;
    margin-bottom: 0;
}

.release-item {
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.release-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

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

.release-item h4 {
    margin: 0 0 10px 0;
    color: var(--blue);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}

/* Detail View */
#detail {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    margin-top: 30px;
    margin-bottom: 30px;
}

#detail .panel-heading {
    background-color: var(--blue);
    color: var(--white);
    padding: 15px 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#detail .panel-body {
    padding: 20px;
    background: var(--white);
}

#detail .panel-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#detail-content {
    background: var(--white);
}

#detail-content .row {
    margin: 0;
    background: var(--white);
}

/* Collection Items */
.collection-item {
    background: var(--white);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.collection-item:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

/* Authentication */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
}

.auth-toggle {
    margin-top: 20px;
    text-align: center;
}

/* Avatar */
.avatar-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    margin: 0 auto 20px;
    border-radius: 0;
    border: 3px solid var(--white);
    box-shadow: none;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons — unified system (overrides Bootstrap) */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    margin: 0;
    padding: 8px 18px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.btn i,
a.btn i {
    font-size: 0.95em;
    line-height: 1;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
a.btn:hover,
a.btn:focus,
a.btn:active {
    outline: none;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn:active,
.btn.active {
    background-image: none;
}

.btn[disabled],
.btn.disabled,
fieldset[disabled] .btn {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

/* Primary — brand blue */
.btn-primary,
a.btn-primary {
    color: var(--white) !important;
    background-color: var(--blue);
    border-color: var(--blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
a.btn-primary:hover,
a.btn-primary:focus,
.open > .dropdown-toggle.btn-primary {
    color: var(--white) !important;
    background-color: #003a4f;
    border-color: #003a4f;
}

/* Secondary / default */
.btn-default,
a.btn-default {
    color: var(--gray) !important;
    background-color: var(--white);
    border-color: #c8c8c8;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
a.btn-default:hover,
a.btn-default:focus,
.open > .dropdown-toggle.btn-default {
    color: var(--gray) !important;
    background-color: #f2f2f2;
    border-color: #adadad;
}

/* Success — brand green */
.btn-success,
a.btn-success {
    color: var(--white) !important;
    background-color: var(--green);
    border-color: var(--green);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
a.btn-success:hover,
a.btn-success:focus {
    color: var(--white) !important;
    background-color: #3f5940;
    border-color: #3f5940;
}

/* Danger — brand deep red */
.btn-danger,
a.btn-danger {
    color: var(--white) !important;
    background-color: var(--deep-red);
    border-color: var(--deep-red);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
a.btn-danger:hover,
a.btn-danger:focus {
    color: var(--white) !important;
    background-color: #641532;
    border-color: #641532;
}

/* Link-style buttons (icon removes, etc.) */
.btn-link,
a.btn-link {
    color: var(--blue) !important;
    background-color: transparent;
    border-color: transparent;
    font-weight: 500;
    padding-left: 8px;
    padding-right: 8px;
}

.btn-link:hover,
.btn-link:focus,
a.btn-link:hover,
a.btn-link:focus {
    color: #003a4f !important;
    background-color: transparent;
    border-color: transparent;
    text-decoration: underline !important;
}

/* Sizes */
.btn-lg,
a.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-sm,
a.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 0;
}

.btn-xs,
a.btn-xs {
    padding: 2px 8px;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 0;
}

.btn-block,
a.btn-block {
    display: flex;
    width: 100%;
    margin-left: 0;
}

.btn-block + .btn-block {
    margin-top: 8px;
}

/* Hero CTA keeps its own look on the home banner */
.banner-cta,
a.banner-cta {
    font-family: 'Barlow', sans-serif;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 5px 80px !important;
    background-color: var(--white) !important;
    color: var(--pink) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.banner-cta:hover,
.banner-cta:focus,
a.banner-cta:hover,
a.banner-cta:focus {
    background-color: transparent !important;
    color: var(--gray) !important;
    text-decoration: underline !important;
}

/* Images */
.img-responsive {
    border-radius: 0;
    max-width: 100%;
    height: auto;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .form-inline .form-group {
        margin-bottom: 15px;
        display: block;
        width: 100%;
    }
    
    .form-inline .form-control {
        width: 100%;
    }
    
    .btn-block-xs {
        display: block;
        width: 100%;
    }


    .release-item {
        padding: 10px;
    }

    .collection-item {
        padding: 15px;
    }
}

/* Modal */
.modal-content {
    border-radius: 0;
    box-shadow: none;
}

.modal-header {
    background-color: var(--blue);
    color: var(--white);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 15px 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px;
}

/* Search Collection */
#searchCollection {
    margin-bottom: 20px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}

/* User collection page */
body.user-page .user-page-content {
    margin-top: 15px;
}

.page-submenu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.page-heading-below-submenu {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
}

.page-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 24px;
}

.page-title-row .page-title {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    text-align: left;
}

.page-title-meta {
    flex: 0 0 auto;
    margin-left: auto;
}

.page-title-meta .browse-count {
    margin: 0;
    padding-bottom: 0;
}

.user-collection-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.user-collection-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.browse-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.user-page .user-collection-search {
    margin-bottom: 15px;
}

body.user-page .user-collection-panel {
    padding: 0;
    margin-bottom: 0;
}

body.user-page .user-collection-panel > .collection-container {
    margin-bottom: 0;
}

body.user-page .collection-container {
    height: calc(100vh - var(--navbar-height) - 320px);
    min-height: 240px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    body.user-page .collection-container {
        height: calc(100vh - var(--navbar-height) - 380px);
        min-height: 200px;
    }
}

/* Collection Container */
.collection-container {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Collection List */
#collectionList {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.collection-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.collection-list-header {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 40px;
    gap: 10px;
    padding: 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.collection-list-item {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 40px;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}

.collection-list-readonly .collection-list-header,
.collection-list-readonly .collection-list-item {
    grid-template-columns: 3fr 2fr 1fr;
}

.collection-list-readonly .header-actions,
.collection-list-readonly .item-actions {
    display: none;
}

.collection-list-empty {
    padding: 15px 10px;
    margin: 0;
}

.member-collection-title {
    margin-bottom: 12px;
}

.collection-list-item .item-actions {
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-list-item .collection-delete-btn {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.collection-list-item:hover .collection-delete-btn,
.collection-delete-btn:focus {
    opacity: 1;
}

.collection-list-item:hover {
    background-color: #f5f5f5;
}

.collection-list-item > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Collection Detail View */
.collection-detail {
    display: none;
}

.collection-detail-submenu {
    position: sticky;
    top: var(--navbar-height);
    left: auto;
    right: auto;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--white);
    z-index: 900;
}

.collection-detail-content {
    display: block;
    padding: 20px 0;
}

.collection-detail-form {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.collection-cover-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.collection-cover-column .collection-detail-image-container {
    margin: 0;
    width: 100%;
}

.collection-detail-image-container {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
}

.collection-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.collection-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.collection-detail-info h3 {
    margin: 0;
    color: var(--blue);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}

.collection-detail-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.collection-add-form .form-group label {
    font-weight: 600;
}

.collection-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.collection-form-row .form-group {
    margin-bottom: 0;
    min-width: 0;
}

.collection-title-row {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.collection-public-visible {
    margin: 0;
    min-width: 28px;
}

.collection-public-visible > label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    line-height: 1.2;
    min-height: 1.2em;
    cursor: pointer;
}

.collection-public-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
}

.item-meta-add-note {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
}

.item-metadata-editors {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e4e4e4;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.collection-detail-info > .btn-primary {
    margin-top: 24px;
}

.item-meta-section {
    display: flex;
    flex-direction: column;
}

.item-meta-section-header h4 {
    margin: 0 0 4px;
    color: var(--blue);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 18px;
}

.item-meta-hint {
    margin: 0 0 12px;
    color: var(--light-gray);
    font-size: 13px;
}

.item-meta-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-meta-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 110px 36px;
    gap: 8px;
    align-items: center;
    background: #f7f8f8;
    border: 1px solid #e6e8e8;
    padding: 8px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.item-meta-row.item-meta-saving {
    border-color: rgba(0, 68, 91, 0.35);
    background: #f0f5f7;
}

.item-meta-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    cursor: grab;
    height: 34px;
}

.item-meta-handle:active {
    cursor: grabbing;
}

.item-meta-row .item-meta-field {
    margin: 0;
}

.item-meta-remove,
.btn-link.item-meta-remove {
    color: var(--deep-red) !important;
    padding: 6px 8px;
    line-height: 1;
    text-decoration: none !important;
}

.item-meta-remove:hover,
.item-meta-remove:focus,
.btn-link.item-meta-remove:hover,
.btn-link.item-meta-remove:focus {
    color: #5c102c !important;
    text-decoration: none !important;
    background-color: transparent;
}

.item-meta-placeholder {
    height: 50px;
    border: 1px dashed rgba(0, 68, 91, 0.35);
    background: rgba(0, 68, 91, 0.04);
}

.item-meta-add-btn {
    align-self: flex-start;
}

.item-credit-list .item-meta-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 36px;
}

/* Responsive adjustments for collection */
@media (max-width: 768px) {
    .collection-list-item {
        grid-template-columns: 2fr 1fr 40px;
    }

    .collection-list-item .item-format,
    .collection-list-item .item-year {
        display: none;
    }

    .collection-list-item .collection-delete-btn {
        opacity: 1;
    }

    .collection-list-header {
        grid-template-columns: 2fr 1fr 40px;
    }

    .collection-list-header .header-format,
    .collection-list-header .header-year {
        display: none;
    }

    .collection-detail-form {
        grid-template-columns: 1fr;
    }

    .collection-form-row {
        grid-template-columns: 1fr;
    }

    .collection-title-row {
        grid-template-columns: 1fr auto;
    }

    .collection-detail-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .item-meta-row,
    .item-credit-list .item-meta-row {
        grid-template-columns: 28px minmax(0, 1fr) 36px;
    }

    .item-track-duration,
    .item-credit-activity {
        grid-column: 2;
    }
}

.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-info {
    border-color: #bce8f1;
}

.panel-info > .panel-heading {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
    padding: 10px 15px;
}

.panel-body {
    padding: 15px;
    background-color: var(--white);
}

.panel-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.detail-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 0;
}

.detail-wrapper .row {
    margin: 0;
}

.detail-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Barlow Font Utility Classes */
.barlow-thin {
  font-family: "Barlow", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.barlow-extralight {
  font-family: "Barlow", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.barlow-light {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.barlow-regular {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.barlow-medium {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.barlow-semibold {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.barlow-bold {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.barlow-extrabold {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.barlow-black {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.barlow-thin-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.barlow-extralight-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.barlow-light-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.barlow-regular-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.barlow-medium-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.barlow-semibold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.barlow-bold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.barlow-extrabold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.barlow-black-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Scrollable autocomplete dropdown */
.scrollable-autocomplete {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.scrollable-autocomplete .ui-menu-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.scrollable-autocomplete .ui-menu-item:hover {
    background-color: #f8f9fa;
}

.scrollable-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

/* Inline styles to be moved to CSS classes */
.container-no-padding {
    padding: 0 !important;
}

.search-form-no-margin {
    margin-bottom: 0 !important;
    padding-left: 0;
}

.form-group-margin-right {
    margin-right: 15px;
}

.row-margin-top {
    margin-top: 50px;
}

.footer-link {
    color: var(--white);
}

.footer-link:hover {
    color: var(--white);
    text-decoration: none;
}

.social-link {
    color: var(--white);
    margin-right: 15px;
}

.social-link:hover {
    color: var(--white);
    text-decoration: none;
}

.social-link:last-child {
    margin-right: 0;
}

.footer-hr {
    border-color: rgba(255,255,255,0.2);
    margin: 20px 0;
}

.hidden {
    display: none;
}

.form-hidden {
    display: none;
}

.progress-container-hidden {
    display: none;
}

.import-progress,
.import-errors {
    margin-top: 25px;
}

.import-csv-headers {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 12px;
    margin-bottom: 20px;
}

.import-errors-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.import-error-item {
    margin-bottom: 6px;
    color: #a94442;
}

.progress-bar-width {
    width: 0%;
}

.error-container-hidden {
    display: none;
}

.avatar-upload-hidden,
.csv-import-hidden,
.file-input-hidden {
    display: none !important;
}

.spinner-hidden {
    display: none;
}

.master-title-no-margin {
    margin-top: 0;
}

.album-cover-max-width {
    max-width: 300px;
}

.detail-image-max-width {
    max-width: 300px;
}

.detail-button-margin {
    margin-top: 15px;
}

.detail-title-no-margin {
    margin-top: 0;
}

/* Import page styles */
.progress {
    height: 20px;
    margin-bottom: 20px;
}

#error-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
}

.error-item {
    padding: 5px 10px;
    margin-bottom: 5px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

/* Marketplace & record detail */
.page-intro {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.marketplace-filters {
    margin-top: 10px;
}

.marketplace-table-wrap {
    background: var(--white);
    border-radius: 4px;
    overflow-x: auto;
    max-width: 100%;
}

.marketplace-table {
    margin-bottom: 0;
}

.marketplace-table th,
.marketplace-table td {
    vertical-align: middle !important;
}

.marketplace-row-clickable {
    cursor: pointer;
}

.marketplace-row-clickable:hover {
    background-color: #f5f5f5 !important;
}

.marketplace-count {
    margin: 15px 0;
    color: var(--light-gray);
}

.marketplace-empty {
    padding: 30px;
    text-align: center;
    color: var(--light-gray);
}

.marketplace-more {
    margin: 20px 0;
}

.browse-pagination {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browse-page-info {
    color: var(--light-gray);
}

.browse-search-bar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.browse-search-bar > .form-group > label {
    display: block;
    margin-bottom: 5px;
    line-height: 1.2;
    min-height: 1.2em;
}

.browse-search-field {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.browse-count {
    margin: 0;
    white-space: nowrap;
    color: var(--light-gray);
}

.browse-filter {
    margin-bottom: 0;
    min-width: 150px;
}

.browse-filter-select {
    max-width: 220px;
}

.browse-filter-toggle {
    min-width: 0;
    flex: 0 0 auto;
}

.browse-filter-toggle > label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.browse-filter-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
}

.browse-col-icon {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    box-sizing: border-box;
    text-align: center;
    color: #555;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
}

.browse-col-icon .fa-eye,
.browse-col-icon .fa-envelope {
    font-size: 13px;
}

.browse-table th,
.browse-table td {
    font-size: 13px;
}

body.browse-page #browse-results {
    margin-top: 25px;
}

.browse-table th {
    white-space: nowrap;
}

.browse-table-scroll {
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.browse-table-scroll .browse-table {
    margin-bottom: 0;
    width: 100%;
}

.browse-table-scroll .browse-table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.browse-table-scroll .browse-table tbody {
    display: block;
    overflow-y: auto;
    max-height: calc(100vh - var(--navbar-height) - 280px);
}

.browse-table-scroll .browse-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.browse-table:not(.browse-table-manage) th:nth-child(1),
.browse-table:not(.browse-table-manage) td:nth-child(1) {
    width: 18%;
}

.browse-table:not(.browse-table-manage) th:nth-child(2),
.browse-table:not(.browse-table-manage) td:nth-child(2) {
    width: 24%;
}

.browse-table:not(.browse-table-manage) th:nth-child(3),
.browse-table:not(.browse-table-manage) td:nth-child(3) {
    width: 14%;
}

.browse-table:not(.browse-table-manage) th:nth-child(4),
.browse-table:not(.browse-table-manage) td:nth-child(4) {
    width: 14%;
}

.browse-table:not(.browse-table-manage) th:nth-child(5),
.browse-table:not(.browse-table-manage) td:nth-child(5) {
    width: 15%;
}

.browse-table:not(.browse-table-manage) th:nth-child(6),
.browse-table:not(.browse-table-manage) td:nth-child(6) {
    width: 15%;
}

.browse-table-manage th.browse-col-icon,
.browse-table-manage td.browse-col-icon {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
}

.browse-table-manage th:nth-child(3),
.browse-table-manage td:nth-child(3) {
    width: 18%;
}

.browse-table-manage th:nth-child(4),
.browse-table-manage td:nth-child(4) {
    width: 24%;
}

.browse-table-manage th:nth-child(5),
.browse-table-manage td:nth-child(5) {
    width: 14%;
}

.browse-table-manage th:nth-child(6),
.browse-table-manage td:nth-child(6) {
    width: 14%;
}

.browse-table-manage th:nth-child(7),
.browse-table-manage td:nth-child(7) {
    width: 15%;
}

.browse-table-manage th:nth-child(8),
.browse-table-manage td:nth-child(8) {
    width: 15%;
}

.record-cover-wrap {
    text-align: center;
}

.record-cover-panel {
    background: var(--white);
    border-radius: 4px;
    padding: 0 15px 15px 15px;
    text-align: center;
}

.record-cover-image {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.record-cover-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 4px;
    color: var(--light-gray);
    font-size: 80px;
}

.seller-panel-title {
    margin-top: 0;
}

.member-panel-title,
.seller-panel-title {
    margin-top: 0;
}

.member-panel-row,
.seller-panel-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.member-panel-info .member-panel-name,
.seller-panel-info .seller-name {
    margin-top: 0;
    margin-bottom: 2px;
}

.member-panel-name a {
    color: inherit;
    text-decoration: none;
}

.member-panel-name a:hover,
.member-panel-name a:focus {
    color: var(--deep-red);
    text-decoration: underline;
}

.member-panel-avatar-link {
    flex-shrink: 0;
}

.member-panel-profile-link {
    margin: 6px 0 0;
    font-size: 14px;
}

.member-panel-info .user-rating-summary {
    align-items: flex-start;
    margin-top: 6px;
}

.member-panel-country,
.seller-country {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.2;
}

.member-login-hint {
    margin-top: 12px;
    font-size: 14px;
}

.member-avatar-lg {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.member-profile-sidebar .user-rating-summary {
    margin-top: 12px;
}

.member-profile-sidebar .member-profile-meta {
    margin-top: 8px;
}

.user-ratings-row {
    margin-top: 25px;
}

body.record-page .member-listing-card,
body.record-page .seller-card {
    margin-bottom: 30px;
}

.member-listing-card .member-panel-avatar,
.seller-card .seller-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Adjacent buttons outside flex toolbars */
p > .btn + .btn,
form > .btn + .btn,
form > .btn + a.btn,
.panel-body > .btn + .btn,
.panel-body > .btn + a.btn {
    margin-left: 8px;
}

.btn-contact-seller,
.btn-contact-member {
    margin-top: 10px;
}

.contact-member-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    width: 100%;
}

.contact-member-form h4 {
    margin-top: 0;
    font-size: 16px;
}

.contact-item-summary {
    margin-bottom: 15px;
}

.contact-item-summary p {
    margin-bottom: 4px;
}

.contact-member-form .form-group {
    width: 100%;
}

.contact-member-message-field,
.conversation-message-field {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    resize: vertical;
}

.contact-include-email,
.conversation-include-email {
    margin: 0 0 15px;
}

.contact-include-email label,
.conversation-include-email label {
    font-weight: normal;
    line-height: 1.45;
}

.contact-member-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inquiry-pending-notice {
    margin: 10px 0 0;
    color: var(--light-gray);
    font-weight: 500;
}

.inquiry-pending-notice a {
    color: var(--deep-red);
    text-decoration: underline;
}

.inquiry-pending-notice a:hover,
.inquiry-pending-notice a:focus {
    color: var(--deep-red);
}

.owner-conversation-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

.owner-conversation-list li {
    margin-bottom: 4px;
}

/* Conversation page */
body.conversation-page .conversation-page-content {
    margin-bottom: 40px;
}

.conversation-intro {
    margin: 0 0 20px;
    max-width: 42em;
}

.conversation-item-panel {
    margin-bottom: 20px;
}

.conversation-item-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.conversation-item-cover-link {
    flex-shrink: 0;
    display: block;
}

.conversation-item-cover {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

.conversation-item-cover-placeholder {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #999;
    font-size: 36px;
}

.conversation-item-title {
    margin: 0 0 6px;
    font-size: 22px;
}

.conversation-item-title a {
    color: inherit;
    text-decoration: none;
}

.conversation-item-title a:hover,
.conversation-item-title a:focus {
    color: var(--deep-red);
    text-decoration: underline;
}

.conversation-item-artist {
    margin: 0 0 8px;
    font-size: 16px;
}

.conversation-email-shared {
    margin-bottom: 20px;
}

.conversation-thread {
    margin-bottom: 24px;
}

.conversation-message {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-left: 3px solid #ddd;
    background: #fafafa;
}

.conversation-message.is-mine {
    border-left-color: var(--deep-red);
    background: #fff;
}

.conversation-message-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin-bottom: 8px;
}

.conversation-message-time {
    font-size: 12px;
}

.conversation-message-body {
    line-height: 1.5;
    word-wrap: break-word;
}

.conversation-message-email {
    margin: 10px 0 0;
    font-size: 14px;
}

.conversation-reply-panel {
    margin-top: 10px;
}

.conversation-reply-title {
    margin-top: 0;
    font-size: 18px;
}

.conversation-reply-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.conversations-page .conversations-page-content {
    margin-top: 10px;
}

body.conversations-page .page-title {
    text-align: left;
}

body.wishlist-page .wishlist-page-content {
    margin-top: 10px;
}

body.wishlist-page .page-title {
    text-align: left;
}

.wishlist-table-wrap {
    margin-top: 15px;
}

.wishlist-record-link {
    font-weight: 600;
    color: inherit;
}

.wishlist-record-link:hover,
.wishlist-record-link:focus {
    color: #337ab7;
    text-decoration: none;
}

.wishlist-added {
    white-space: nowrap;
}

.record-wishlist-btn {
    margin-left: 8px;
}

.record-wishlist-btn .fa-heart {
    margin-right: 4px;
}

.record-wishlist-btn.is-on-wishlist {
    color: #a94442;
    border-color: #ebccd1;
    background-color: #f2dede;
}

.record-wishlist-btn.is-on-wishlist:hover,
.record-wishlist-btn.is-on-wishlist:focus {
    color: #843534;
    border-color: #dca7a7;
    background-color: #ebcccc;
}

.conversations-table-wrap {
    margin-top: 15px;
}

.conversations-record-link {
    font-weight: 600;
    color: inherit;
}

.conversations-record-link:hover,
.conversations-record-link:focus {
    color: #337ab7;
    text-decoration: none;
}

.conversations-format {
    margin-top: 4px;
    font-size: 12px;
}

.conversations-updated {
    white-space: nowrap;
}

.conversations-status-closed,
.conversations-status-open {
    font-weight: normal;
}

@media (max-width: 767px) {
    .conversation-item-row {
        flex-direction: column;
    }

    .conversation-item-cover,
    .conversation-item-cover-placeholder {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

.member-login-card {
    margin-bottom: 30px;
}

.member-login-card p {
    margin-bottom: 10px;
}

.member-login-card p:last-child {
    margin-bottom: 0;
}

.browse-loading {
    padding: 20px 0;
    color: var(--light-gray);
}

.record-detail {
    max-width: 100%;
    box-sizing: border-box;
}

.record-toolbar {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    background: var(--white);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.record-page .record-toolbar,
body.conversation-page .record-toolbar {
    position: sticky;
    top: var(--navbar-height);
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

body.record-page .record-toolbar-discogs {
    margin-left: auto;
    text-align: right;
}

body.record-page .record-toolbar-discogs .discogs-attribution {
    margin: 0;
}

@media (max-width: 767px) {
    body.record-page .record-toolbar {
        flex-wrap: wrap;
    }

    body.record-page .record-toolbar-discogs {
        width: 100%;
        text-align: left;
    }
}

body.record-page .record-detail {
    margin-top: 0;
    padding-top: 30px;
}

body.record-page .record-main-content {
    margin-bottom: 30px;
}

body.record-page .record-alternatives {
    margin-bottom: 30px;
}

body.record-page .record-alternatives h3 {
    margin-top: 0;
    font-size: 18px;
}


body.record-page .member-listing-card {
    margin-bottom: 30px;
}

body.article-page .article-toolbar {
    position: sticky;
    top: var(--navbar-height);
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1170px;
    box-sizing: border-box;
    padding: 10px 15px;
    margin: 0 auto;
    background: var(--white);
    border-bottom: 1px solid #e5e5e5;
    z-index: 900;
}

body.article-page .page-title {
    text-align: left;
}

body.article-page .article-detail {
    margin-top: 0;
}

body.article-page .article-title {
    margin-top: 0;
    font-size: 42px;
    text-align: right;
    font-weight: 700;
}

body.article-page .article-intro {
    font-weight: 500;
    color: black;
    line-height: 1.6;
    margin-top:1px;
}

.record-tracklist-table th,
.record-tracklist-table td {
    font-size: 14px;
}

.record-credits-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.record-credits-list li {
    margin-bottom: 6px;
}

.record-discogs-notes,
.record-tracklist,
.record-credits {
    margin-top: 25px;
}

.record-discogs-notes h3,
.record-tracklist h3,
.record-credits h3,
.record-comments h3 {
    margin-top: 0;
    font-size: 18px;
}

.record-detail .record-title {
    margin-top: 0;
    font-size: 28px;
}

.record-detail .record-artist {
    font-size: 20px;
    color: var(--light-gray);
    margin-top: 0;
}

.seller-card .seller-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.seller-avatar-lg {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.seller-profile-sidebar .user-rating-summary {
    margin-top: 12px;
}

.user-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.user-rating-summary-text {
    font-size: 15px;
    font-weight: 600;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}

.star-rating-icon {
    font-size: 16px;
    color: #f0ad4e;
}

.star-rating-icon.star-empty {
    color: #ccc;
}

.user-rating-form-panel .section-title {
    margin-top: 0;
}

.user-rating-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.user-rating-star-input-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.user-rating-star-input label {
    cursor: pointer;
    font-size: 28px;
    color: #ccc;
    margin: 0;
    transition: color 0.15s ease;
}

.user-rating-star-input label:hover,
.user-rating-star-input label:hover ~ label,
.user-rating-star-input-radio:checked ~ label,
.user-rating-star-input-radio:focus-visible + label {
    color: #f0ad4e;
}

.user-ratings-list {
    margin: 0;
    padding: 0;
}

.user-rating-item {
    margin-bottom: 15px;
}

.user-rating-item-header {
    margin-bottom: 8px;
}

.user-rating-item-meta {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.user-rating-item-comment {
    margin: 0;
    white-space: pre-wrap;
}

.user-rating-login-hint {
    margin: 0;
}

.contact-disclaimer {
    font-size: 13px;
    color: var(--light-gray);
    margin: 10px 0 15px;
}

/* Homepage articles */
.home-featured-article {
    margin-top: 30px;
}

.home-featured-article-link {
    color: var(--blue);
    text-decoration: none;
}

.home-featured-article-link:hover,
.home-featured-article-link:focus {
    color: var(--deep-red);
    text-decoration: none;
}

.home-featured-article-intro {
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 20px;
}

.home-articles {
    margin-top: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card-body {
    padding: 15px;
    flex: 1;
}

.article-card-title {
    margin-top: 0;
    font-size: 20px;
}

.article-page .article-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.article-intro {
    color: var(--light-gray);
}

.article-body {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.article-body h2,
.article-body h3 {
    margin-top: 1.5em;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.ck-editor__editable {
    min-height: 280px;
}

/* Admin */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gray);
}

.admin-login-box {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

.admin-login-back {
    margin-top: 15px;
    text-align: center;
}

.admin-stat h3 {
    margin: 0;
    font-size: 36px;
    color: var(--blue);
}

.upload-dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    min-height: 120px;
    cursor: pointer;
    background: #fafafa;
}

.upload-dropzone.dragover {
    border-color: var(--blue);
    background: #eef6f8;
}

.upload-preview {
    max-width: 100%;
    max-height: 200px;
}

.gallery-admin-item {
    display: inline-block;
    margin: 5px;
}

.gallery-admin-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.save-status {
    margin-left: 10px;
    color: var(--light-gray);
}

.footer-note {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.discogs-attribution {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
    line-height: 1.4;
}

.discogs-attribution a {
    color: inherit;
    text-decoration: underline;
}

.discogs-attribution a:hover {
    color: #555;
}
