@font-face {
    font-family: 'Permanent Marker';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/static/fonts/permanent-marker.woff2') format('woff2');
}

@font-face {
    font-family: 'Chewy';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/static/fonts/chewy.woff2') format('woff2');
}

html {
    box-sizing: border-box;
    /* iOS Safari viewport fix */
    --vh: 1vh;
}
*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* audioshelf | Consolidated Styles */

/* Base Styles */
body {
    font-family: Liberation Sans, Arial, sans-serif;
    /* font-family: "Ubuntu", sans-serif; */
    margin: 0;
    &:not(:has(.albums-section-alt)) {
        padding: 20px;
    }
    /* background-color: #f5f5f5; */
    /* background: #fdfdfd; */
    background: white;
}

/* Layout Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
}

.container-medium {
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Management Styles */
.tags-section {
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-form {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tag-create-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.category-tree {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.category-item {
    margin: 5px 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

.category-children {
    margin-left: 20px;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

.category-name {
    font-weight: 500;
}

.filter-section {
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-tree-filter {
    /* margin-bottom: 20px; */
    /* max-height: 400px; */
    /* overflow-y: auto; */
    /* padding: 10px; */
    overflow-y: auto;
    height: 200px;
}

.tag-filter-item {
    margin: 2px 0;
}

.tag-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
}

.tag-filter-row:not(:has(.collapse-toggle)) {
    .collapse-spacer {
        display: none;
    }
}

.collapse-toggle {
    width: 10px;
    height: 10px;
    border: 1px solid #ccc;
    /* background: white; */
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    /* color: #666; */
    color: #202124;

    border: none;
    background: #efefef;
}

/* .collapse-toggle:hover { */
/*     background: #f5f5f5; */
/* } */

.collapse-spacer {
    width: 10px;
    height: 10px;
    display: inline-block;
}

.filter-state {
    width: 14px;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    /* transition: all 0.2s ease; */
    flex-shrink: 0;
}

/* .filter-state:hover { */
/*     transform: scale(1.1); */
/* } */

.filter-off {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.filter-include {
    background: #28a745;
    border-color: #28a745;
    position: relative;
}

.filter-include::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-exclude {
    background: #dc3545;
    border-color: #dc3545;
    position: relative;
}

.filter-exclude::after {
    content: '✕';
    color: white;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tag-name {
    font-size: 14px;
    user-select: none;
}

.tag-children {
    margin-left: 28px;
    border-left: 1px solid #e9ecef;
    padding-left: 15px;
    margin-top: 5px;
}

.tag-children[data-collapsed="true"] {
    display: none;
}

.filter-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    /* border-top: 1px solid #e9ecef; */
}

/* .toggle button:not(.collapse-toggle), .streaming-service-btn, .streaming-modal-close { */
/*     font-size: 14px; */
/*     color: #202124; */
/*     background: white; */
/*     border: 1px solid #dfe1e5; */
/*     box-shadow: none; */
/*     border-radius: 4px; */
/*     border-radius: 0; */
/*     padding: 7px 8px; */
/*     cursor: pointer; */
/*     background: #fbfbfb; */
/*     font-weight: normal; */
/* } */

/* buttons */ 

.toggle button:not(.collapse-toggle), .streaming-service-btn, .streaming-modal-close {
  appearance: none;
  background-color: #28a745;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 2px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  /* font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; */
  font-size: 13px;
  font-weight: normal;
  /* font-weight: 600; */
  line-height: 20px;
  padding: 5px 14px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  /* background-color: #28a7a0; */
}

/* .toggle button:not(.collapse-toggle):focus, .streaming-service-btn:focus, .streaming-modal-close:focus:not(:focus-visible):not(.focus-visible):focus { */
/*   box-shadow: none; */
/*   outline: none; */
/* } */

.toggle button:not(.collapse-toggle):hover, .streaming-service-btn:hover, .streaming-modal-close:hover {
  background-color: #269c41;
  /* background-color: #2b9b95; */
}

/* .toggle button:not(.collapse-toggle):focus, .streaming-service-btn:focus, .streaming-modal-close:focus { */
/*   box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px; */
/*   outline: none; */
/* } */

/* .toggle button:not(.collapse-toggle):disabled, .streaming-service-btn:disabled, .streaming-modal-close:disabled { */
/*   background-color: #94d3a2; */
/*   border-color: rgba(27, 31, 35, .1); */
/*   color: rgba(255, 255, 255, .8); */
/*   cursor: default; */
/* } */

/* .toggle button:not(.collapse-toggle):active, .streaming-service-btn:active, .streaming-modal-close:active { */
/*   background-color: #298e46; */
/*   box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset; */
/* } */

.small {
    padding: 2px 7px;
}

.red {
    background-color: #dc3545 !important;
}

.red:hover {
    background-color: #d42537 !important;
}

.gray {
    background-color: #b1b1b1 !important;
}

.gray:hover {
    background-color: #a3a3a3 !important;
}

.filter-actions button {
    width: 100%;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    /* background: white; */
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    /* color: #666; */
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tag-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.tag-checkbox-item {
    margin: 5px 0;
    padding: 5px;
}

.album-tags {
    margin-top: 8px;
}

.album-tags .tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 3px;
}

/* Header Styles */
.header {
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links a {
    /* color: #007bff; */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #007bff;
}

.nav-links a:hover {
    background-color: #007bff;
    color: white;
}

.logout-form {
    display: inline;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c82333;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Enhanced Select Styling */
select {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    /* color: #333; */
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3e%3cpath fill='%23666' d='M7 10L2 5h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

select:hover {
    border-color: #007bff;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-tag-form {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

/* Specific styling for tag management selects */
.add-tag-form select {
    min-width: 140px;
    max-width: 180px;
}

/* input[type="text"], input[type="password"] { */
/*     width: 100%; */
/*     padding: 8px; */
/*     border: 1px solid #ddd; */
/*     border-radius: 4px; */
/* } */

/* Button Styles */
/* button, .btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #0056b3;
} */

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

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

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Section Styles */
.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* border: 1px solid #dfe1e5; */
}

.filter-section {
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-section {
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section {
    /* background: #fdfdfd; */
    padding: 20px;
    border-radius: 8px;
    border-radius: 2px;
    border-radius: 0;
    /* border-radius: 0 !important; */
    margin-bottom: 20px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    /* box-shadow: 0 4px 35px rgba(0,0,0,.1); */
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    /* box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; */
    padding-top: 12px;
    border: 1px solid #dfe1e5;
}

.tag-management {
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.albums-section {
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tag Styles */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.filter-tag {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    /* background: white; */
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-tag:hover {
    border-color: #007bff;
}

.filter-tag.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-tag.not {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.clear-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.clear-filters:hover {
    background: #c82333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.tag-item {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.tag-item-container {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 5px;
}

.btn-delete-tag {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 2px;
}

.btn-delete-tag:hover {
    background-color: #c82333;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.album-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.album-tag {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.remove-tag-btn {
    margin-left: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
}

/* Album Grid and Cards */
.albums-count {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.albums-grid.manage {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 20px;
}

.albums-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.album-list-item {
    /* background: white; */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    transition: box-shadow 0.2s;
}

.album-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.album-list-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.album-list-info {
    flex: 1;
    min-width: 0;
}

.album-list-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-list-artist {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-list-details {
    font-size: 12px;
    color: #888;
}

.album-list-tags {
    flex: 0 0 auto;
    max-width: 300px;
}

.album-list-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.album-tile {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.album-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.album-card {
    /* background: white; */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.album-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.album-info {
    padding: 15px;
}

.album-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.album-info p {
    margin: 0 0 10px 0;
    color: #666;
}

.album-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
    line-height: 1.2;
}

.album-artist {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.album-tags-management {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Search Results */
.search-results {
    display: none;
    /* background: white; */
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal h3 {
    margin-bottom: 20px;
    color: #333;
}

.streaming-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* .spotify-btn {
    background-color: #1db954;
    color: white;
}

.spotify-btn:hover {
    background-color: #1ed760;
} */

/* .tidal-btn {
    background-color: #000;
    color: white;
}

.tidal-btn:hover {
    background-color: #333;
} */

.close-btn {
    background-color: #6c757d;
    color: white;
}

.close-btn:hover {
    background-color: #5a6268;
}

/* Link Styles */
.register-link, .login-link {
    margin-top: 20px;
    text-align: center;
}

/* Album Management Styles */
.album-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.album-filter-container {
    flex: 0 0 300px;
}

.album-filter-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.inline-form {
    display: inline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Home Alt (Cover View) Styles */
.container-fullwidth {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.header-alt {
    background: white;
    /* background: #fdfdfd; */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    /* box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px; */
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    z-index: 2;
    position: fixed;
    top: 0;
    width: 100%;
}

.header-alt-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
}

.header-alt h1 {
    font-size: 31px;
    color: #000;
    font-family: "Permanent Marker", cursive;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
}

.header-alt p {
    margin: 0;
    color: #000;
    font-size: 14px;
    margin-top: -22px;
    margin-left: 185px;
    font-family: "Permanent Marker", cursive;
    /* color: hsl(0 100% 63% / 1); */
}

.filter-section-alt {
    z-index: 99;
}

.filter-section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.albums-section-alt {
    display: flex;
    margin: 0 auto;
    transition: transform 250ms cubic-bezier(0.87, 0, 0.13, 1);
    margin-top: 79px;
    /* header height */
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.albums-section-alt.toggle-open {
    transform: translateX(calc((350px)));
}

/* .albums-section-alt.toggle-open .toggle { */
    /* box-shadow: rgb(0 0 0 / 50%) 0px 8px 24px; */
/* } */

.albums-masonry {
    width: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
    grid-auto-rows: min-content;
    /* position: absolute; */
    /* left: 350px; */
}

@media (max-width: 768px) {
    .albums-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .albums-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

.album-cover {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.2s ease;
    /* border: 1px solid #fff; */
    box-sizing: border-box;
}

.album-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.album-cover:hover .album-cover-overlay {
    opacity: 1;
}

.album-cover-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.album-cover-artist {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.empty-state-alt {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-state-alt h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 24px;
}

.empty-state-alt p {
    font-size: 16px;
}

.empty-state-alt a {
    color: #007bff;
    text-decoration: none;
}

.empty-state-alt a:hover {
    text-decoration: underline;
}

/* Reload Button */
.reload-btn {
    width: 32px;
    height: 32px;
    /* background: white; */
    border: 2px solid #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.reload-btn:hover {
    background: #007bff;
}

.reload-btn:hover .reload-icon {
    color: white;
}

.reload-icon {
    color: #007bff;
    font-size: 16px;
    transition: color 0.2s ease;
}

body:has(.albums-section-alt) .filter-tags {
    margin-top: -15px;
    margin-bottom: 0;
}

.menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  position: relative;
  top: 2px;
}
.line {
  fill: none;
  stroke: black;
  stroke-width: 6;
  transition: stroke-dasharray 250ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}
.line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}
.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}

.toggle {
    overflow: hidden;
    flex-shrink: 0;
    height: calc(100vh - 79px);
    height: calc(calc(var(--vh, 1vh) * 100) - 79px);
    max-width: 100%;
    background: white;
    z-index: 1;
    width: calc(350px);
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    /* background: linear-gradient(to bottom, #f1f1f1 0%, white 50%, white 50%, white 100%); */
    /* background: linear-gradient(to bottom, #f3f3f3 0%, white 50%, white 50%, white 100%); */
    /* background: linear-gradient(to bottom, hsl(346.67deg 100% 95.08%) 0%, white 50%, white 50%, white 100%); */
    padding: 30px;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    color: #202124;
    font-size: 14px;

    transition: transform 250ms cubic-bezier(0.87, 0, 0.13, 1);
    transform: translateX(calc((350px) * -1));
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    top: 79px;
}

@media (max-width: 768px) {
    .toggle {
        padding: 20px;
        width: 320px;
    }
    .section {
        margin-bottom: 20px !important;
    }
    .albums-section-alt.toggle-open {
        transform: translateX(calc((320px)));
    }
    .category-tree-filter {
        height: 150px;
    }
}

.container-fullwidth:has(.toggle-open) .toggle {
    transform: none;
}

.nav-section {
    display: flex;
    flex-direction: column;
    align-self: center;
    text-align: center;
    gap: 10px;
}

.nav-section a {
    color: #202124;
    text-decoration: none;
}

.toggle h3 {
    font-size: 18px;
}

.search-section {
    margin-bottom: 26px;
}

.section .label {
    margin-bottom: 10px;
    font-size: 18px;
    font-family: 'Chewy';
    letter-spacing: 0.5px;
    font-weight: 400;
    text-align: center;
}

.input {
    font-size: 14px;
    color: #202124;
    background: white;
    border: 1px solid #dfe1e5;
    box-shadow: none;
    /* border-radius: 4px; */
    border-radius: 2px;
    width: 100%;
    /* padding: 8px; */
    padding: 7px 8px;
    /* box-shadow: rgba(0, 0, 0, 0.06) 0px 0px 12.4441px 0px; */
    box-shadow: rgba(27, 31, 35, .1) 0 .4px 0;
}

.input::placeholder {
    color: #a9a9a9;
    font-family: Liberation Sans, Arial, sans-serif;
}

.input:focus {
  /* border-color: rgba(223,225,229,0); */
    outline: 0;
  /* box-shadow: 5.5px 7px 0 black; */ 
}

.ios {
    .input {
        font-size: 16px;
    }
}

.logo {
    user-select: none;
}

/* Streaming Options Modal */
.streaming-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.streaming-modal-content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    /* max-width: 300px; */

    padding: 20px;
    border-radius: 8px;
    border-radius: 0px;
    margin-bottom: 20px;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    padding-top: 12px;
    padding: 30px 70px;
    border: 1px solid #dfe1e5;
}

.streaming-modal-title {
    margin-bottom: 20px;
}
/* 
.streaming-service-btn {
    background: #1DB954;
}

.streaming-service-btn.tidal {
    background: #000;
} */

.streaming-modal-title  {
    margin-bottom: 10px;
    font-size: 23px;
    font-family: 'Chewy';
    letter-spacing: 0.5px;
    font-weight: 400;
}

.wrap-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.streaming-service-btn {
    width: 80px;
}

.streaming-modal-close {
    top: 10px;
    right: 10px;
    position: absolute;
    border-radius: 100%;
    width: 25px;
    height: 25px;
}
