/* ==========================================
   BASE
========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #171717;

  margin: 0;
  padding: 0;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

main {
	background: #f5f5f5;
}

/* ==========================================
   LAYOUT
========================================== */

.catalog-body {
  min-height: 100vh;

  overflow-x: hidden;
}

.catalog-layout {
  width: min(1600px, calc(100% - 48px));
  max-width: 100%;
  min-width: 0;

  margin: 0px auto;
	
  background: inherit;

  display: grid;

  grid-template-columns: 240px minmax(0, 1fr);

  align-items: start;

  gap: 24px;
}

.catalog-content {
  display: flex;
  flex-direction: column;

  min-width: 0;
  max-width: 100%;
}

/* ==========================================
   CATALOG TYPE SELECTOR
========================================== */

.catalog-main {
	padding: 24px 0 48px;
	 min-height: calc(128vh - 300px);
}

.catalog-selector {
  width: min(1600px, calc(100% - 48px));
  margin: 0px auto 24px;
}

.catalog-selector-inner {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 24px;
}

.catalog-selector-options {
  flex: 1;

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 12px 16px;
}

.catalog-option {
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 0 16px;

  border: 1px solid #d8d8d8;

  background: white;

  font-size: 13px;
  font-weight: 500;

  text-align: center;

  cursor: pointer;

  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;

  white-space: nowrap;
}

.catalog-option:hover {

  border-color: #171717;
}

.catalog-option.active {
  background: #171717;

  color: white;

  border-color: #171717;
}

.catalog-option.active .catalog-count {
  color: #bfbfbf;
}

.catalog-count {
  margin-left: 6px;

  color: #888;

  font-size: 12px;
}

.catalog-switch-warning-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 20px;

  font-size: 13px;
  color: #555;
}

.catalog-switch-warning-actions {
  display: flex;

  justify-content: flex-end;
  align-items: center;

  gap: 12px;

  margin-top: 24px;

  width: 100%;

  flex-wrap: nowrap;
}

.catalog-switch-warning-actions button,
.catalog-modal-content .catalog-modal-actions button {

  flex: 0 0 auto;

  width: auto;
  min-width: 120px;

  height: 48px;

  padding: 0 18px;

  white-space: nowrap;

  box-sizing: border-box;
}

/* ==========================================
   TOOLBAR
========================================== */

.catalog-content-toolbar {
  display: grid;

  grid-template-columns: 1fr auto;
  grid-template-areas:
    "search controls"
    "results controls";

  gap: 16px 24px;

  align-items: start;
}

.catalog-search {
  grid-area: search;
  min-width: 0;
}

.catalog-search-field {
  flex: 1;

  display: flex;
  align-items: center;

  height: 38px;

  background: white;

  border: 1px solid #d8d8d8;
}

.catalog-search-field svg {
  width: 16px;
  height: 16px;

  margin-left: 12px;

  color: #888;
}

.catalog-search-field input {
  flex: 1;

  border: none;
  outline: none;

  padding: 0 12px;

  font-size: 13px;

  background: transparent;
}

.catalog-results-count {
  grid-area: results;

  font-size: 13px;
  font-weight: 500;

  color: #777;
}

.catalog-content-meta {
  grid-area: controls;

  display: flex;
  align-items: center;

  gap: 16px;
}

.catalog-sort {
  display: flex;
  align-items: center;

  gap: 10px;
}

.catalog-search label,
.catalog-sort label,
.catalog-results-count {
  font-size: 13px;
  font-weight: 500;
}

.catalog-results-count {
  height: 28px;
  line-height: 28px;
  white-space: nowrap;
}

#catalogNowPlaying {
  grid-area: results;

  justify-self: end;
	
	margin: 0 0 0 16px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 28px;

  padding: 0 12px;

  border-radius: 999px;
	border: none;

  background: #000;
  color: white;

  font-size: 12px;
  font-weight: 500;

  cursor: pointer;

  white-space: nowrap;

  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

#catalogNowPlaying.playing {
  background: #20e1ff;
  color: #000;

  animation: nowPlayingGlow 1.8s ease-in-out infinite;
}

@keyframes nowPlayingGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(32, 225, 255, 0);
  }

  50% {
    box-shadow: 0 0 10px rgba(32, 225, 255, 0.35);
  }
}

.catalog-now-playing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 14px;

  font-size: 10px;
  line-height: 1;
}

.catalog-now-playing-label {
  font-weight: 600;
}

.catalog-now-playing-title {
  max-width: 260px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-sort select {
  height: 38px;

  width: 128px;

  padding: 0 12px;

  border: 1px solid #d8d8d8;

  background: white;

  font-size: 13px;
}

/* ==========================================
   ACTIVE FILTERS
========================================== */

.catalog-active-filters {
  margin-top: 16px;
  margin-bottom: 8px;
  min-height: 28px;
}

#catalogActiveFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-placeholder {
  width: 100%;

  font-size: 12px;
  color: #999;

  text-align: center;
}

.catalog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 28px;

  padding: 0 12px;

  background: #fff;

  border: 1px solid #d8d8d8;
	border-radius: 999px;

  font-size: 12px;
  font-weight: 500;

  white-space: nowrap;

  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.catalog-filter-pill:hover {
  border-color: #bdbdbd;
  transform: translateY(-1px);
}

.catalog-filter-pill-remove {
  cursor: pointer;

  color: #777;

  font-size: 14px;
  line-height: 1;
  transition: color 0.15s ease;
}

.catalog-filter-pill-remove:hover {
  color: #171717;
}

.catalog-filter-pill-clear {
  background: #000;
  border-color: #000;
  color: #fff;
  cursor: pointer;
}

.catalog-filter-pill-clear:hover {
  background: #222;
  border-color: #222;
}

.catalog-filter-pill:hover .catalog-filter-pill-remove {
  color: #cc0000;
}

.catalog-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 500px;

  text-align: center;
}

.catalog-empty-content {
  max-width: 360px;
}

.catalog-empty-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.catalog-empty-title {
  margin: 0 0 12px;

  font-size: 16px;
  font-weight: 700;
}

.catalog-empty-description {
  margin: 0 0 24px;

  font-size: 12px;
  line-height: 1.6;

  color: #666;
}

.catalog-empty-reset {
  height: 32px;

  padding: 0 16px;

  border: 1px solid #171717;

  background: #171717;
  color: white;

  font-size: 12px;
  font-weight: 500;

  cursor: pointer;
}

/* ==========================================
   FILTER SIDEBAR
========================================== */

.catalog-filters {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 24px;
}

.catalog-filter-search {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid #e5e5e5;
  border-radius: 8px;

  font-size: 14px;

  background: #fff;
}

.catalog-filter-search:focus {
  outline: none;

  border-color: #148fad;

  box-shadow: 0 0 0 3px rgba(20, 143, 173, 0.12);
}

.catalog-filter-group {
  padding: 20px 0;
  border-bottom: 1px solid #ececec;
}

.catalog-filter-group:first-child {
  padding-top: 0;
}

.catalog-filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.catalog-filter-group-header {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0 0 14px;

  font-size: 14px;
  font-weight: 700;

  color: #171717;
}

.catalog-filter-group-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-filter-group-options label {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 13px;

  cursor: pointer;
}

.catalog-filter-group-options input[type="checkbox"] {
  margin: 0;
}

.catalog-filter-label-text {
  flex: 1;
}

.catalog-filter-count {
  margin-left: auto;
  color: #999;
  font-size: 12px;
}

.catalog-filter-select {
  width: 100%;

  height: 38px;

  padding: 0 12px;

  border: 1px solid #d8d8d8;

  background: #fff;

  font-size: 13px;

  font-family: inherit;
}

.catalog-filter-info-btn {
  width: 12px;
  height: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #bdbdbd;
  border-radius: 50%;

  background: white;

  font-size: 8px;
  font-weight: 500;

  color: #666;

  cursor: pointer;
}

.catalog-filter-info-btn:hover {
  color: #171717;
  border-color: #171717;
}

.catalog-filter-actions {
  margin-top: 24px;

  text-align: center;
}

.catalog-filter-reset-link {

  border: 0;
  background: transparent;

  color: #000;

  font-size: 13px;
  font-weight: 400;

  text-decoration: underline;

  cursor: pointer;
}

.catalog-filter-reset-link:hover {
  opacity: 0.7;
}

/* ==========================================
   FILTER EXPANSION
========================================== */

.catalog-filter-more {

    display: flex;
    flex-direction: column;
    gap: 8px;

    overflow: hidden;

    max-height: 0;
    opacity: 0;

    transition:
        max-height .35s ease,
        opacity .25s ease;

}

.catalog-filter-more.open {

    max-height: 500px;
    opacity: 1;

}

.catalog-filter-more-toggle,
.catalog-filter-less-toggle {
  display: block;

  border: 0;
  background: none;
  padding: 0;

  font-size: 12px;
  color: #666;

  cursor: pointer;

  text-align: center;
}

.catalog-filter-more-toggle:hover,
.catalog-filter-less-toggle:hover {
  color: #171717;
}

/* ==========================================
   CARD GRID VIEW
========================================== */

.catalog-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

  gap: 24px;

  margin-bottom: 24px;
}

.catalog-card {
  position: relative;

  display: block;

  overflow: visible;

  aspect-ratio: 0.6;

  background: #ddd;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 8px 18px rgba(0, 0, 0, 0.35);
	
}


.catalog-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.92) 100%
  );

  z-index: 1;
}

.catalog-card:hover,
.catalog-card.revealed:hover {

  transform: translateY(-4px) scale(1.05);

  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.45),
    0 14px 28px rgba(0, 0, 0, 0.30);

  z-index: 10;
}

.catalog-card-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;
}

.catalog-card-image.loaded {
  opacity: 1;
}

.catalog-card {
  container-type: inline-size;
}

.catalog-card::before {
  content: "JCM";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
	
	 padding-bottom: 15%;

  background: #d9d9d9;

  color: #fff;

  font-family: "Instrument Serif", serif;
  font-size: 48cqw;
  line-height: 1;

  z-index: 0;
}

.catalog-card-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    color: white;
    z-index: 2;
}

.catalog-card-title {

  font-size: 1.2rem;
  font-weight: 700;

  line-height: 1.05;
  letter-spacing: -0.04em;

  color: white;
}

.catalog-card-meta {

  display: flex;
  flex-direction: column;
  gap: 4px;

  font-size: 15px;
  font-weight: 500;

  line-height: 1.25;

  color: rgba(255, 255, 255, 0.92);
}

.catalog-card-meta span {
    display: inline;
}

.catalog-card,
.catalog-compact-card {
  opacity: 1;
  transform: none;
}

/* ==========================================
   PAGINATION
========================================== */

.catalog-pagination-top,
.catalog-pagination-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-pagination-top {
  margin: 8px 0 40px;

  min-height: 48px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.catalog-pagination-bottom {
	  margin: 32px 0 0;
}

.catalog-page-btn {
  height: 32px;
  width: 32px;

	min-width: 32px;
	max-width: 32px;

  border: 1px solid #d8d8d8;
  background: white;

  cursor: pointer;

  font-size: 12px;
  font-weight: 500;
	 display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.catalog-page-nav {
  height: 32px;
  min-width: 80px;
	

  border: 1px solid #d8d8d8;
  background: white;

  cursor: pointer;

  font-size: 12px;
  font-weight: 500;
	 display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.catalog-page-nav {
	 flex-shrink: 0;
}

.catalog-page-btn:hover,
.catalog-page-nav:hover {
  border-color: #171717;
  transform: translateY(-1px);
}

.catalog-page-btn.active {
  background: #171717;
  color: white;
  border-color: #171717;
}

.catalog-page-nav:disabled {
  opacity: 0.4;
  cursor: default;
	border: 1px solid #d8d8d8;
	transform: translateY(0px);
}

.catalog-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-page-size label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.catalog-page-size select {
  height: 38px;

  padding: 0 12px;

  border: 1px solid #d8d8d8;
  background: white;

  font-size: 13px;
  font-family: inherit;
}

/* ==========================================
   COMPARISON IMAGE DRAG INDICATOR
========================================== */

.catalog-comparison-image-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
}


/* ==========================================
   SIX-DOT DRAG INDICATOR
========================================== */

.catalog-comparison-drag-indicator {
    position: absolute;

    top: 10px;
    left: 10px;

    width: 18px;
    height: 18px;

    display: grid;
    grid-template-columns: repeat(2, 4px);
    grid-template-rows: repeat(3, 4px);

    align-content: center;
    justify-content: center;

    gap: 3px;

    opacity: .5;

    transition: opacity 0.15s ease;

    pointer-events: none;

    z-index: 5;
}

.catalog-comparison-drag-indicator span {
    display: block;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: white;
}

.catalog-comparison-image-wrap:hover
.catalog-comparison-drag-indicator {
    opacity: .8;
}

.catalog-comparison-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.catalog-comparison-table {
    position: relative;
}

.catalog-comparison-table th:first-child,
.catalog-comparison-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #fff;
}

.catalog-comparison-image-cell {
    position: relative;
    z-index: 1;
}

/* ==========================================
   IMAGE HOVER
========================================== */

.catalog-comparison-image-wrap img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    transition:
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.catalog-comparison-image-wrap:hover img {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5);
}


/* ==========================================
   DRAGGING
========================================== */

.catalog-comparison-image-cell {
    cursor: grab;
}

.catalog-comparison-image-cell:active {
    cursor: grabbing;
}

.catalog-comparison-image-cell img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}


/* ==========================================
   DRAG STATES
========================================== */

.catalog-comparison-drag-ghost {
    opacity: 0.25;
}

.catalog-comparison-drag-chosen {
    cursor: grabbing;
}

.catalog-comparison-drag-active {
    cursor: grabbing;
}


/* ==========================================
   PRINT
========================================== */

@media print {

    .catalog-comparison-drag-indicator {
        display: none !important;
    }

    .catalog-comparison-image-wrap img {
        box-shadow: none !important;
    }

    .catalog-comparison-image-cell {
        cursor: default;
    }

}

/* ==========================================
   EMPTY COMPARISON STATE
========================================== */

.catalog-comparison-empty {
    height: 190px;

    padding: 30px;

    text-align: center;

    vertical-align: middle;

    background: #fafafa;
}

.catalog-comparison-empty-content {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 130px;

    color: #666;
}

.catalog-comparison-empty-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid #444;
    border-radius: 50%;

    color: #444;

    font-size: 22px;
    font-weight: 700;
}

.catalog-comparison-empty-content p {
    max-width: 520px;

    margin: 0;

    font-size: 14px;
    line-height: 1.5;
}

.catalog-comparison-empty-content strong {
    font-weight: 700;
}

/* ==========================================
   COMPARISON COLUMN DRAGGING
========================================== */

.catalog-comparison-image-cell {
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.catalog-comparison-image-cell:active {
    cursor: grabbing;
}

.catalog-comparison-image-cell img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}


/* ==========================================
   DRAGGING
========================================== */

.catalog-comparison-drag-ghost {
    opacity: 0.25;
}

.catalog-comparison-drag-chosen {
    cursor: grabbing;
}

.catalog-comparison-drag-active {
    cursor: grabbing;
}


/* ==========================================
   DON'T LET THE REMOVE BUTTON START A DRAG
========================================== */

.catalog-comparison-remove {
    cursor: pointer;
}


/* ==========================================
   WHILE DRAGGING
========================================== */

body.catalog-comparison-is-dragging {
    cursor: grabbing;
}

body.catalog-comparison-is-dragging
.catalog-comparison-remove {
    cursor: pointer;
}


/* ==========================================
   PRINT
========================================== */

@media print {

    .catalog-comparison-image-cell {
        cursor: default;
    }

}

/* ==========================================
   COMPARISON
========================================== */

.catalog-comparison {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin-top: 48px;
    padding-top: 36px;

    border-top: 1px solid #d8d8d8;

    overflow: hidden;
}

.catalog-comparison.hidden {
    display: none;
}

.catalog-comparison-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.catalog-comparison-header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.catalog-comparison-header p {
    margin: 6px 0 0;
    color: #666;
    font-size: 13px;
}

.catalog-comparison-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    border: 1px solid #d8d8d8;
}

.catalog-comparison-table {
    width: max-content;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.catalog-comparison-table th,
.catalog-comparison-table td {
    width: 145px;
    min-width: 145px;
    max-width: 145px;
    padding: 12px;
    border-right: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    vertical-align: middle;
    text-align: left;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.catalog-comparison-table th:first-child,
.catalog-comparison-table td:first-child {
    min-width: 145px;
    width: 145px;
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
    font-weight: 700;
}

.catalog-comparison-table tr:last-child td {
    border-bottom: 0;
}

.catalog-comparison-table th:last-child,
.catalog-comparison-table td:last-child {
    border-right: 0;
}

.catalog-comparison-label {
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px;
    text-align: right;
}

.catalog-comparison-image-cell {
    position: relative;
    padding: 12px;
}

.catalog-comparison-image-wrap {
    position: relative;

    width: 100%;

    margin: 0 auto;
}

.catalog-comparison-image-wrap img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

.catalog-comparison-remove {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 50%;

    background: rgba(255, 255, 255, .94);

    color: #111;

    opacity: .5;

    cursor: pointer;

    font-size: 18px;
    line-height: 1;

    z-index: 2;

    transition:
        opacity .15s ease,
        color .15s ease;
}


/* Hover anywhere over the image */

.catalog-comparison-image-wrap:hover
.catalog-comparison-remove {
    opacity: .8;
}


/* Hover directly over the X */

.catalog-comparison-remove:hover {
    opacity: 1;
    color: red;
	background: white;
}

.catalog-comparison-title {
    color: #1677d2;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.catalog-comparison-title:hover {
    color: #0b4f8a;
}

.catalog-comparison-print {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.catalog-comparison-print-button {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #171717;
    background: #171717;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.catalog-comparison-print-button:hover {
    background: #333;
}

.catalog-comparison-print-button:disabled {
    background: #aaa;
    border-color: #aaa;
    color: #fff;
    cursor: not-allowed;
}

.catalog-comparison-back-to-top-button {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #171717;
    background: #fff;
    color: #171717;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform .15s ease,
        background .15s ease,
        color .15s ease;
}

.catalog-comparison-back-to-top-button:hover {
    background: #f3f3f3;
}

/* ==========================================
   MODAL
========================================== */

.catalog-modal {
  position: fixed;
  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);

  z-index: 1000;
}

.catalog-modal.open {
  display: flex;
}

.catalog-modal-content {
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);

  background: white;

  padding: 32px;

  position: relative;

  overflow: hidden;
}

.catalog-modal-content .catalog-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;

    margin-top: 24px;

    width: 100%;
}

.catalog-modal-content .catalog-modal-actions button {
    flex: 0 0 auto;

    width: auto;
    min-width: 120px;

    height: 48px;

    padding: 0 18px;

    white-space: nowrap;

    box-sizing: border-box;
}

.catalog-modal-content h2 {
  margin: 0 0 10px;

  font-size: 16px;
  font-weight: 700;
}

.catalog-modal-content p {
  margin: 0;

  font-size: 13px;
  line-height: 1.6;

  color: #666;
}

.catalog-modal-close {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;

  padding: 0;

  font-size: 24px;
  line-height: 1;

  color: #777;

  cursor: pointer;

  transition: color 0.15s ease, transform 0.15s ease;
}

.catalog-modal-close:hover {
  color: #171717;
  transform: scale(1.1);
}

#catalogModalTitle {
  margin: 0 0 10px;

  font-size: 16px;
  font-weight: 700;
}

#catalogModalDescription {
  margin: 0;

  font-size: 13px;
  line-height: 1.6;

  color: #666;
}

.catalog-modal-learn-more {
  display: inline-block;

  margin-top: 16px;

  font-size: 13px;
  font-weight: 600;

  color: #171717;

  text-decoration: none;
}

.catalog-modal-learn-more:hover {
  text-decoration: underline;
}

.catalog-table th {
  position: relative;

  cursor: pointer;

  user-select: none;
}

.catalog-table th:hover {
  background: #f7f7f7;
}

.catalog-table-sort {
  display: inline-flex;
  flex-direction: column;

  margin-left: 6px;

  vertical-align: middle;

  line-height: 0.8;
}

.catalog-table-sort span {
  font-size: 8px;

  color: #bbb;

  transition: color .15s ease;
}

.catalog-table th.sort-asc .sort-up {
  color: #171717;
}

.catalog-table th.sort-desc .sort-down {
  color: #171717;
}

.catalog-table-sort {
  display: inline-flex;

  flex-direction: column;

  margin-left: 6px;

  vertical-align: middle;

  line-height: 0.8;
}

.catalog-table-sort span {
  opacity: 0.75;

  font-size: 9px;
}

.catalog-table-sort .active {
  opacity: 1;
}

/* ==========================================
   SHOW BUILDER
========================================== */

.show-builder {

  position: fixed;

  left: 16px;
  right: 16px;
  bottom: 16px;

  z-index: 9999;

  background: #fff;

  border: 1px solid #000;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, .15);

  overflow: hidden;

  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity .25s ease,
    transform .25s ease;

  pointer-events: none;
}

.show-builder.visible {

  opacity: 1;

  transform: translateY(0);

  pointer-events: auto;
}


/* ==========================================
   HEADER
========================================== */

.show-builder-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 14px 20px;

  background: white;

  border-bottom: 1px solid #000;

  cursor: pointer;

  font-weight: 600;
}

.show-builder-title {

  display: flex;

  align-items: center;

  gap: 18px;
}

.show-builder-chevron {

  font-size: 12px;

  transition: transform .25s ease;
}

.show-builder:not(.collapsed)
.show-builder-chevron {

  transform: rotate(180deg);
}


/* ==========================================
   HORIZONTAL TIMELINE
========================================== */

.show-builder-items {

  display: flex;

  align-items: center;

  gap: 8px;

  overflow-x: auto;

  padding-bottom: 12px;

  scrollbar-width: thin;
}


/* ==========================================
   INDIVIDUAL PIECE
========================================== */

.show-builder-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  width: 325px;
  min-height: 68px;
  height: auto;
  overflow: hidden;
  background: #222;
  border: 1px solid #000;
  border-radius: 0;
  padding: 0;
  cursor: grab;
  isolation: isolate;

  background-image: var(--show-builder-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.show-builder-item:active {
  cursor: grabbing;
}


/* ==========================================
   IMAGE OVERLAY
========================================== */

.show-builder-item-overlay {

  position: absolute;

  inset: 0;

  z-index: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .65) 0%,
      rgba(0, 0, 0, .35) 50%,
      rgba(0, 0, 0, .65) 100%
    );

  pointer-events: none;
}


/* ==========================================
   PIECE CONTENT
========================================== */

.show-builder-item-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  color: #fff;
}


/* ==========================================
   TITLE
========================================== */

.show-builder-item-title {
  flex: 1 1 auto;
  min-width: 0;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}


/* ==========================================
   LENGTH
========================================== */

.show-builder-item-length {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255,255,255,.88);
}


/* ==========================================
   ARROW
========================================== */

.show-builder-item-arrow {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255,255,255,.85);
}

/* ==========================================
   REMOVE BUTTON
========================================== */

.show-builder-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.show-builder-remove:hover {

  color: #fff;

  background: transparent;

  transform: scale(1.1);
}


/* ==========================================
   SUMMARY
========================================== */

.show-builder-summary {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-top: 12px;

  border-top: 1px solid #ddd;

  font-size: 14px;
}


/* ==========================================
   SHOW BUILDER BUTTONS
========================================== */

.show-builder-download {

  height: 38px;

  padding: 0 18px;

  border: 1px solid #000;

  background: #000;

  color: #fff;

  font-family: inherit;

  font-size: 13px;

  font-weight: 600;

  border-radius: 0;

  cursor: pointer;

  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease;
}

.show-builder-download:hover {

  background: #222;

  border-color: #222;

  color: #fff;
}

.show-builder-download:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}


/* ==========================================
   DRAG STATES
========================================== */

.show-builder-ghost {

  opacity: .3;
}

.show-builder-chosen {

  transform: scale(1.03);
}

.show-builder-drag {

  box-shadow:
    0 12px 24px rgba(0, 0, 0, .2);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

  .show-builder {

    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .show-builder-header {

    padding: 12px 14px;
  }
	
	.show-builder-item {

    width: 280px;
    height: 64px;

  }

}

.catalog-card-badge-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    background: #c3b4ff;
    color: black;

    font-size: 12cqw;
    font-family: Arial Black, Arial, sans-serif;
    font-weight: 900;

    text-align: center;

    padding: 4px 2px;

    line-height: 1.1;

    white-space: nowrap;

    z-index: 25;
}

.catalog-card-arrangement-artist {
    font-size: .9rem;
    font-weight: 600;
	line-height: 1.05;
}

.catalog-card-arrangement-part {
    font-size: .85rem;
    color: #cccccc;
}

.catalog-card-price {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.show-builder-message {
    color: #d62828;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s;
}

.show-builder-message.visible {
    opacity: 1;
}

.catalog-card-arrangement .catalog-card-badges {
    position: absolute;
    bottom: 12px;
    right: 12px;
    top: auto;
    left: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    z-index: 5;
}

.catalog-card-arrangement .catalog-card-badge img {
    width: 55px;
    height: auto;
}

.catalog-card-arrangement .catalog-card-badge-new {
    background: #00ff00;
    color: #000000;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    width: auto;
    white-space: nowrap;
}

.catalog-card-show .catalog-card-badge-top-seller img,
.catalog-card-show .catalog-card-badge-jcm-classic img {
    position: absolute;
    top: -14px;
    left: -10px;
    width: 108%;
    z-index: 25;
}

.catalog-card-arrangement .catalog-card-badges {
    position: absolute;

    bottom: 12px;
    right: 12px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    z-index: 25;
}

.catalog-card-arrangement .catalog-card-badge-top-seller img,
.catalog-card-arrangement .catalog-card-badge-jcm-classic img {

    position: static;

    width: 96px;

    height: auto;
}

.catalog-card-arrangement .catalog-card-badge-new {

    position: absolute;

    bottom: 8px;   /* adjust this */
    right: 8px;

    top: auto;
    left: auto;

    width: auto;

    padding: 4px 8px;

    border-radius: 999px;

    background: #00ff00;

    color: #000;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}

.catalog-sidebar {

    display:flex;
    flex-direction:column;

}

.catalog-show-builder-toggle{

    height:38px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:0 16px;

    border:1px solid #d8d8d8;

    background:#171717;
    color:white;

    font-size: 14px;
    font-weight: 500;

    cursor:pointer;

    transition:.15s;

}

.catalog-show-builder-toggle:hover{

    background:#333;

}

.catalog-show-builder-toggle:active{

    transform:translateY(1px);

}

.show-builder.hidden {

    visibility: hidden;

}

.show-builder.drag-over{

    box-shadow:0 0 0 4px #20e1ff;

    transform:translateY(-4px);

    transition:.15s;

}

#showBuilderSidebarToggle{

    display:flex;
    align-items:center;
    justify-content:center;

    width: 100%;
    height: 38px;

    margin-bottom: 16px;

    background:#fff;
    color:#222;

    border: 1px solid #d8d8d8;

    font-size: 13px;
    font-weight: 500;

    cursor:pointer;
}

#showBuilderSidebarToggle:hover{
	
	border-color: #171717;

}

#showBuilderSidebarToggle.active{

    background:#111;
    color:#fff;
    border-color:#111;

}

.show-builder-body {

    overflow: hidden;

    max-height: 600px;

    opacity: 1;

    transition:
        max-height .35s ease,
        opacity .25s ease,
        padding .35s ease;

    padding: 16px;

}

.show-builder.collapsed .show-builder-body {

    max-height: 0;

    opacity: 0;

    padding-top: 0;
    padding-bottom: 0;

}

.show-builder-sidebar {

    overflow: hidden;

    max-height: 110px;

    opacity: 1;

    transform: translateY(0);

    margin-bottom: 0;

    transition:
        max-height .35s ease,
        opacity .35s ease,
        transform .35s ease,
        margin-bottom .35s ease;
}

.show-builder-sidebar.hidden {

    max-height: 0;

    opacity: 0;

    transform: translateY(-10px);

    margin-bottom: 0;
}

.catalog-compare-controls {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 80px;

    gap: 16px;

    max-height: 46px;

    opacity: 1;

    transform: translateY(0);

    margin-bottom: 16px;

    overflow: hidden;

    transition:
        max-height .35s ease,
        opacity .35s ease,
        transform .35s ease,
        margin-top .35s ease,
        margin-bottom .35s ease;
}

.catalog-compare-controls.hidden {

    max-height: 0;

    opacity: 0;

    transform: translateY(-10px);

    margin-top: 0;

    margin-bottom: 0;
}

.catalog-compare-button,
.catalog-compare-clear {

    height: 38px;
    min-width: 0;

    border: 1px solid #d8d8d8;
    background: #fff;
    color: #222;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.catalog-compare-button:hover:not(:disabled),
.catalog-compare-clear:hover:not(:disabled) {
    border-color: #171717;
}

.catalog-compare-button:disabled,
.catalog-compare-clear:disabled {
    opacity: .4;
    cursor: default;
}

.catalog-compare-button:not(:disabled) {
    background: #171717;
    color: #fff;
    border-color: #171717;
}

.catalog-compare-clear {
    background: #fff;
}

.catalog-filter-divider {
	 margin: 16px 0;
}

.catalog-include-licensing {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.catalog-include-licensing input {
  margin: 0;
}

.catalog-card-licensing {

  font-size: 0.8rem;
  color: #cccccc;

  font-weight: 400;
  letter-spacing: .02em;
}

.catalog-card-arrangement .catalog-card-image {
    filter: brightness(75%);
}

.catalog-card-show-licensing .catalog-card-badges {
    bottom: 36px;
}

.catalog-pagination-layout{
    display:grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px;
    align-items:center;
    gap:8px;
    width:100%;
	padding: 0;
}

.catalog-page-numbers{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap: nowrap;
	white-space: nowrap;
}

.catalog-prev{
    justify-self:start;
}

.catalog-next{
    justify-self:end;
}

.catalog-page-nav{
    width: 72px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1200px) {
  .catalog-selector-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1050px) {
  .catalog-content-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  .catalog-search {
    flex: 1 1 100%;
  }

  .catalog-results-count {
    flex: 0 0 auto;
  }

  .catalog-content-meta {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .catalog-search {
    flex: 1 1 100%;
    order: 1;
  }

  .catalog-content-meta {
    order: 2;
    margin-left: 0;
  }

  .catalog-results-count {
    flex: 1 1 100%;
    order: 3;
  }
}

@media (max-width: 768px) {
  .catalog-selector-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 648px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }
  .catalog-filter-actions {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .catalog-selector-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {

  .catalog-content-toolbar {
    display: grid;

    grid-template-columns: 1fr auto;
    grid-template-areas:
      "search search"
      "controls controls"
      "results pagesize";

    gap: 16px;
  }
	
	.catalog-pagination-layout{
        grid-template-columns:32px 1fr 32px;
    }
	
	.catalog-page-nav {
        width: 32px;
		min-width: 32px;
        padding: 0;
    }

  .catalog-search {
    grid-area: search;
  }

  .catalog-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .catalog-page-size {
    grid-area: pagesize;

    justify-self: end;

    display: flex;
    align-items: center;
    gap: 8px;
  }

  .catalog-results-count {
    grid-area: results;
  }

}

.show-builder-close {

    border: 1px solid transparent;
    background: transparent;

    font-size: 22px;
    font-weight: 300;

    cursor: pointer;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #666;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .12s ease;

    margin-right: 8px;

    border-radius: 0;
}

.show-builder-close:hover {

    background: #f5f5f5;

    border: 1px solid #000;

    color: #000;

    border-radius: 0;
}

/* ==========================================
   CARD AUDIO PREVIEW
========================================== */

/* CARD */

.catalog-card {
  position: relative;
  overflow: visible;
}


/* ==========================================
   COMPARE BUTTON
========================================== */

.catalog-card-compare-toggle {

  position: absolute;

  right: 54px;
  bottom: 12px;

  width: 34px;
  height: 34px;

  padding: 0;

  border: 1px solid #444;
  border-radius: 50%;

  background: rgba(0, 0, 0, .78);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
  line-height: 1;

  cursor: pointer;

  z-index: 52;

  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    bottom .5s ease,
    background .2s ease,
    color .2s ease;
}

.catalog-card:hover .catalog-card-compare-toggle,
.catalog-card.catalog-card-compare-selected .catalog-card-compare-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.catalog-card-compare-toggle:hover {
  background: rgba(0, 0, 0, .92);
}

.catalog-card.catalog-card-compare-selected .catalog-card-compare-toggle {
  background: white;
  border-color: black;
  color: #000;
}

.catalog-card.preview-open .catalog-card-compare-toggle {
  right: 54px;
  bottom: 50px;
}

.catalog-card-compare-check {
  display: block;
}

@media (hover: none) {
  .catalog-card .catalog-card-compare-toggle {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* ==========================================
   PLAY BUTTON
========================================== */

.catalog-preview-play {
  position: absolute;

  right: 12px;
  bottom: 12px;

  width: 34px;
  height: 34px;

  padding: 0;

    border: 1px solid #444;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.78);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  line-height: 1;

  cursor: pointer;

  z-index: 51;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    bottom 0.5s ease;
}

.catalog-preview-play:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.92);
}

.catalog-preview-play:active {
  transform: scale(0.96);
}


/* PLAYING STATE */

.catalog-card.preview-playing .catalog-preview-play {
  background: white;
  color: #000;
}


/* MOVE BUTTON ABOVE PLAYER */

.catalog-card.preview-open .catalog-preview-play {
  bottom: 50px;
}


/* ==========================================
   PLAY ICON
========================================== */

.catalog-preview-play-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;
}


/* ==========================================
   LOADING SPINNER
========================================== */

.catalog-card-spinner {
  display: none;

  position: static;

  width: 18px;
  height: 18px;

  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #20e1ff;

  border-radius: 50%;

  animation: jcmPreviewSpin 0.75s linear infinite;
}

.catalog-card.preview-loading .catalog-preview-play-icon {
  display: none;
}

.catalog-card.preview-loading .catalog-card-spinner {
  display: block;
}

@keyframes jcmPreviewSpin {
  to {
    transform: rotate(360deg);
  }
}


/* ==========================================
   LOADING OVERLAY
========================================== */

.catalog-card-loading {
  display: none;

  position: absolute;
  inset: 0;

  z-index: 55;

  pointer-events: auto;

  cursor: wait;
}

.catalog-card.preview-loading .catalog-card-loading {
  display: block;
}


/* ==========================================
   PREVIEW PLAYER
========================================== */
.catalog-card-preview {
  width: 100%;

  max-height: 0;
  overflow: hidden;

  opacity: 0;

  transform: none;

  transition:
    max-height 0.5s ease,
    opacity 0.35s ease;
}


/* PLAYER STAYS OPEN WHILE PREVIEW IS OPEN */

.catalog-card.preview-open .catalog-card-preview {
  max-height: 38px;
  opacity: 1;
}


/* ==========================================
   TIMELINE
========================================== */

.catalog-card-preview-timeline {
  display: flex;

  align-items: center;

  gap: 6px;

  width: 100%;

  padding: 7px 9px;

  margin-top: 8px;

  border-radius: 6px;

  background: rgba(0, 0, 0, 0.78);
  color: #fff;

  font-size: 11px;
  line-height: 1;

  flex-shrink: 0;
}


/* HIDDEN ATTRIBUTE MUST ACTUALLY HIDE */

.catalog-card-preview-timeline[hidden] {
  display: none !important;
}


/* ==========================================
   PROGRESS BAR
========================================== */

.catalog-preview-progress {
  flex: 1;

  min-width: 0;

  height: 4px;

  margin: 0;
  padding: 0;

  accent-color: #20e1ff;

  cursor: pointer;
}

.catalog-preview-progress::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.catalog-preview-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: white;
  cursor: pointer;
}

/* ==========================================
   PREVENT CARD DRAGGING
========================================== */

.catalog-card-preview,
.catalog-card-preview * {
  -webkit-user-drag: none;
}

.catalog-card.preview-closing .catalog-card-preview {
  transition:
    max-height 0.5s ease,
    opacity 0.35s ease;
}
.catalog-card {
  outline: 8px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.35s ease;
	 border-radius: 4px;
}

.catalog-card.preview-playing {
  outline: 12px solid black;
  outline-offset: 3px;
}

.catalog-preview-play-icon.preview-paused-icon {
  font-size: 0.75em;
}

.catalog-modal-section {
    margin-top: 28px;
}

.catalog-modal-section:first-child {
    margin-top: 20;
}

.catalog-modal-section h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
	color: #000;
}

.catalog-modal-section p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
	color: #000;
}

/* ==========================================
   SEO FALLBACK LINKS
========================================== */

.catalog-seo-links {
  display: none;
}

.catalog-seo-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   COMPARISON PRINT / SAVE AS PDF
========================================== */

@media print {

  @page {
    size: landscape;
    margin: 0.35in;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    background: #fff;
  }

  /* Remove the normal catalog layout from the print flow */

  .catalog-main {
    min-height: 0;
    padding: 0;
  }

  .catalog-selector,
  .catalog-sidebar,
  .catalog-content-toolbar,
  .catalog-active-filters,
  .catalog-grid,
  .catalog-pagination-top,
  .catalog-pagination-bottom,
	header,
	footer {
    display: none;
  }

  .catalog-layout {
    display: block;
    width: 100%;
    margin: 0;
  }

  .catalog-content {
    display: block;
    width: 100%;
  }


  /* ==============================
     COMPARISON
  ============================== */

  #catalogComparison {

    display: block;

    width: 100%;

    margin: 0;
    padding: 48px 0 0;

    border: 0;

    overflow: visible;
  }


  /* HEADER */

  #catalogComparison .catalog-comparison-header {
    margin: 0 0 16px;
    padding: 0;
  }

  #catalogComparison .catalog-comparison-header h2 {
    margin: 0;

    font-size: 22px;
    line-height: 1.1;
  }

  #catalogComparison .catalog-comparison-header p {
    margin: 6px 0 0;
    color: #555;
  }


  /* TABLE CONTAINER */

  #catalogComparison .catalog-comparison-scroll {
    width: 100%;
    max-width: 100%;

    overflow: visible;

    border: 1px solid #aaa;
  }


  /* TABLE */

  #catalogComparison .catalog-comparison-table {
    width: 100%;
    min-width: 0;

    table-layout: fixed;

    border-collapse: collapse;
  }
	
#catalogComparisonPrint:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

  /* CELLS */

  #catalogComparison .catalog-comparison-table th,
  #catalogComparison .catalog-comparison-table td {

    min-width: 0;
    width: auto;
    max-width: none;

    padding: 10px;

    color: #000;
    background: #fff;

    position: static;

    overflow-wrap: anywhere;
  }


  /* IMAGES */

  #catalogComparison .catalog-comparison-image-cell {
    padding: 10px;
  }

  #catalogComparison .catalog-comparison-image-wrap {

    width: 100%;
    height: auto;

    margin: 0 auto;

    overflow: visible;

    background: transparent;
  }

  #catalogComparison .catalog-comparison-image-wrap img {

    display: block;

    width: 100%;
    height: auto;

    max-height: 180px;

    object-fit: contain;
  }


  /* REMOVE INTERACTIVE ELEMENTS */

  #catalogComparison .catalog-comparison-remove,
  #catalogComparison .catalog-comparison-print,
  #catalogComparison .catalog-comparison-back-to-top-button {
    display: none;
  }


  /* KEEP TABLE TOGETHER */

  #catalogComparison .catalog-comparison-table {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #catalogComparison .catalog-comparison-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
	
	#catalogComparison::after {
  content: "Get started purchasing your JCM marching band show at jeffchambersmusic.net/purchase.";

  display: block;

  margin-top: 32px;

  padding-top: 16px;

  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;

  color: #171717;

  text-align: center;
}

}

@media (max-width: 480px) {

  .catalog-modal-content {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);

    padding: 24px;
  }

  .catalog-switch-warning-actions,
  .catalog-modal-content .catalog-modal-actions {
    gap: 8px;
  }

  .catalog-switch-warning-actions button,
  .catalog-modal-content .catalog-modal-actions button {
    min-width: 0;
    flex: 1 1 0;
  }

}

/* ==========================================
   SHOW BUILDER — BOTTOM ACTIONS
========================================== */

.show-builder-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.show-builder-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* BUTTON GROUP */

.show-builder-summary-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* BOTH BUTTONS */

.show-builder-summary button,
.show-builder-download,
#showBuilderClear {

    height: 32px;

    min-width: 128px;

    padding: 0 12px;

    box-sizing: border-box;

    border-radius: 0;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}


/* CLEAR ALL */

#showBuilderClear {

    background: #fff;

    color: #000;

    border: 1px solid #aaa;
}

#showBuilderClear:hover {

    background: #f5f5f5;

    color: #000;

    border-color: #000;
}


/* DOWNLOAD PDF */

.show-builder-download {

    background: #000;

    color: #fff;

    border: 1px solid #000;
}

.show-builder-download:hover {

    background: #222;

    color: #fff;

    border-color: #222;
}

/* ==========================================
   PDF LEAD MODAL — CENTERING
========================================== */

#scoreSampleModal h2 {
    text-align: center;
}

#scoreSampleModal .score-form-newsletter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#scoreSampleModal .show-action-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.catalog-card-badge-updated {
    font-size: 18px;
}

/* ==========================================
   SHOW BUILDER — PURCHASE BUTTON
========================================== */

.show-builder-purchase {

    height: 32px;

    min-width: 160px;

    padding: 0 12px;

    border: 1px solid black;

    background: black;

    color: white;

    border-radius: 0;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.show-builder-purchase:disabled {

    opacity: .35;

    cursor: not-allowed;

    pointer-events: none;

}

/* ==========================================
   COMPARISON — PURCHASE ROW
========================================== */

.catalog-comparison-purchase-row td {
    padding: 16px 12px;
    text-align: center;
    background: #fafafa;
}

.catalog-comparison-purchase-row .catalog-comparison-label {
    background: #fff;
}

.catalog-comparison-purchase-cell {
    text-align: center !important;
}

.catalog-comparison-purchase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 36px;

    padding: 0 12px;

    border: 1px solid #171717;

    background: #171717;
    color: #fff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.catalog-comparison-purchase-button:hover {
    background: #333;
    border-color: #333;

    transform: translateY(-1px);
}

.catalog-comparison-purchase-button:active {
    transform: translateY(0);
}

/* ==========================================
   PDF LEAD MODAL
========================================== */

.show-modal-overlay {
    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, .5);

    z-index: 9999;
}

.show-modal-overlay.open {
    display: flex;
}

.show-modal {
    width: min(90vw, 700px);

    background: white;

    padding: 40px;

    position: relative;
}

.show-modal-close {
    position: absolute;

    top: 16px;
    right: 16px;

    border: 0;

    background: none;

    cursor: pointer;

    font-size: 24px;
}

/* ==========================================
   CATALOG PDF LEAD FORM
========================================== */

#scoreSampleModal .show-modal {
    width: min(90vw, 700px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #fff;
    color: #171717;
    padding: 40px;
}

#scoreSampleModal h2 {
    margin: 0 0 28px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

#scoreSampleModal .score-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#scoreSampleModal .score-form-grid input,
#scoreSampleModal .score-form-grid select {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    color: #171717;
    font-family: inherit;
    font-size: 14px;
}

#scoreSampleModal .score-form-grid input:focus,
#scoreSampleModal .score-form-grid select:focus {
    outline: none;
    border-color: #171717;
}

#scoreSampleModal .score-form-newsletter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
    font-size: 13px;
    cursor: pointer;
}

#scoreSampleModal .score-form-newsletter input {
    margin: 0;
    accent-color: #171717;
}

#scoreSampleModal .show-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 46px;
    margin: 0 auto;
    padding: 0 24px;
    border: 1px solid #171717;
    border-radius: 0;
    background: #171717;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#scoreSampleModal .show-action-button:hover:not(:disabled) {
    background: #333;
}

#scoreSampleModal .show-action-button:disabled {
    cursor: wait;
}

#scoreSampleModal .show-action-button-text[hidden],
#scoreSampleModal .show-action-button-spinner[hidden] {
    display: none !important;
}

#scoreSampleModal .show-action-button-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #20e1ff;
    border-radius: 50%;
    animation: jcmPdfButtonSpin .7s linear infinite;
}

@keyframes jcmPdfButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    #scoreSampleModal .show-modal {
        width: calc(100vw - 24px);
        padding: 28px 20px;
    }

    #scoreSampleModal h2 {
        font-size: 20px;
    }

    #scoreSampleModal .score-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CATALOG CARD IMAGE — FADE ONLY
========================================== */

.catalog-card-image {
    opacity: 0;
    transform: none;
    transition: opacity 350ms ease;
}

.catalog-card-image.loaded {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card-image {
        transition: none;
    }
}