@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --filter-bar-height: 56px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

.filter-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px 32px;
  background: #fff;
  z-index: 190;
  border-bottom: 1px solid #eee;
  min-height: var(--filter-bar-height);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-bar.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.merch-filter-bar,
.yedia-filter-bar {
  position: fixed;
  top: var(--filter-bar-height);
  left: 0;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 180;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.merch-filter-bar.show,
.yedia-filter-bar.show {
  display: flex;
}

.merch-filter-bar.nav-hidden,
.yedia-filter-bar.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  padding: 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.merch-filter-btn,
.yedia-filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.28);
  padding: 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.merch-filter-btn.active,
.yedia-filter-btn.active {
  color: #000;
  font-weight: 600;
}

.filter-btn.active {
  color: #000;
  font-weight: 600;
}

main {
  padding: 84px 32px 64px;
  position: relative;
  min-height: 100vh;
}

@media (max-width: 560px) {
  main {
    padding: 84px 18px 64px;
  }
}

.release-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.4);
  max-width: 480px;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 32px 48px;
  width: 100%;
}

.footer-contact {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
}

.footer-contact a {
  color: inherit;
  text-decoration: underline;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 64px;
  transition: opacity 0.4s ease;
  position: relative;
}

.product-grid.hidden-grid {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 40px; }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1), opacity 0.35s ease;
}

@media (hover: hover) {
  .product-card:not(.is-disabled):hover {
    transform: scale(1.02);
  }
}

.card-copy {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.product-card.is-disabled {
  cursor: default;
  opacity: 0.32;
  filter: grayscale(1);
  pointer-events: none;
}

.product-card.card-hidden {
  display: none;
}

.product-card .image-wrap {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card.is-merch .image-wrap {
  aspect-ratio: 1 / 1;
  background: #ffffff;
}

.product-card .image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: filter 0.25s ease, opacity 0.4s ease;
}

.product-card .image-wrap img.loaded {
  opacity: 1;
}

.product-card.is-merch .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.8);
}

.product-card .name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.product-card .collection {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.product-card.is-disabled .image-wrap img {
  opacity: 0.7;
  filter: grayscale(1) contrast(0.9);
}

.product-card.is-disabled .name {
  color: #777;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overscroll-behavior: contain;
  touch-action: none;
}

.detail-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-media {
  width: min(640px, 84vw);
  aspect-ratio: 1.6 / 1;
  position: relative;
  overflow: hidden;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
}

.detail-overlay.active .detail-media {
  transform: scale(1);
  opacity: 1;
}

.detail-media.is-merch {
  aspect-ratio: 1 / 1;
  width: min(420px, 78vw);
  overflow: visible;
}

.detail-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform, opacity;
}

.detail-media.is-merch video {
  display: none;
}

.detail-gallery {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.detail-gallery:active {
  cursor: grabbing;
}

.detail-media.is-merch .detail-gallery {
  display: block;
}

.detail-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}

.detail-slide {
  flex: 0 0 100%;
  height: 100%;
  background: #fff;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.detail-gallery-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  color: #000;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.detail-gallery-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.detail-media.is-merch .detail-gallery-arrow {
  display: flex;
}

.detail-gallery-prev {
  left: -72px;
}

.detail-gallery-next {
  right: -72px;
}

.detail-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 14px;
}

.detail-media.is-merch ~ .detail-dots {
  display: flex;
}

.detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
}

.detail-dot.active {
  background: rgba(0, 0, 0, 0.78);
  transform: scale(1.2);
}

.detail-name {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

.detail-overlay.active .detail-name {
  opacity: 1;
  transform: translateY(0);
}

.detail-spec {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #666;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.32s, transform 0.4s ease 0.32s;
  max-width: 600px;
  text-align: center;
}

.detail-overlay.active .detail-spec {
  opacity: 1;
  transform: translateY(0);
}

.detail-credits {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s, color 0.2s ease, visibility 0s linear 0.75s;
}

.detail-credits:hover {
  color: #000;
}

.detail-overlay.active .detail-credits.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s, color 0.2s ease;
}

.detail-download,
.detail-timestamps {
  display: inline-block;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #000;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.38s, transform 0.4s ease 0.38s, color 0.2s ease, visibility 0s linear 0.78s;
}

.detail-download:hover,
.detail-timestamps:hover {
  color: #666;
}

.detail-overlay.active .detail-download.show,
.detail-overlay.active .detail-timestamps.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.38s, transform 0.4s ease 0.38s, color 0.2s ease;
}

.timestamps-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.timestamps-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.timestamps-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 34px;
  line-height: 1;
  transform: rotate(45deg);
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

.timestamps-content {
  width: min(440px, 86vw);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timestamps-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.timestamps-list {
  width: 100%;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.timestamps-list::-webkit-scrollbar {
  width: 4px;
}

.timestamps-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}

.timestamp-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 12px 0;
  font-family: inherit;
  font-size: 13px;
  color: #000;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s ease;
}

.timestamp-item:hover {
  opacity: 0.55;
}

.timestamp-song {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.timestamp-time {
  color: #666;
  font-variant-numeric: tabular-nums;
  margin-left: 16px;
}

.timestamp-empty {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  text-align: center;
  margin-top: 32px;
  letter-spacing: 0.05em;
}

.detail-close {
  position: fixed;
  top: 24px;
  left: 24px;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 34px;
  line-height: 1;
  transform: rotate(45deg);
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.4s ease 0.38s;
  z-index: 210;
}

.detail-overlay.active .detail-close {
  opacity: 1;
}

.upload-view {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.upload-view.show {
  display: flex;
}


/* ─── Upload view header ─────────────────────────────────────────────────── */

.upload-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 40px;
  gap: 16px;
}

.upload-gallery-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yedia-upload-cta {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.yedia-upload-cta:hover {
  color: #000;
}

/* ─── Upload modal overlay ───────────────────────────────────────────────── */

.upload-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.upload-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.upload-modal-card {
  position: relative;
  background: #fff;
  width: min(400px, 90vw);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.upload-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transform: rotate(45deg);
  color: #000;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.upload-modal-close:hover {
  opacity: 1;
}

.upload-modal-card .upload-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.upload-modal-card .upload-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-modal-card .upload-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-modal-card .upload-field label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 500;
  text-transform: uppercase;
}

.upload-modal-card .upload-field select,
.upload-modal-card .upload-field input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: transparent;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  color: #000;
}

.upload-modal-card .upload-file-box {
  position: relative;
  width: 100%;
}

.upload-modal-card .upload-file-box label {
  display: block;
  width: 100%;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.2s;
}

.upload-modal-card .upload-file-box label.selected {
  color: #000;
  border-bottom-color: rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.upload-modal-card .upload-file-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-modal-card .upload-submit-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.upload-modal-card .upload-submit-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.upload-status {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 16px;
  text-align: center;
}

.upload-status.success { color: #000; font-weight: 600; }
.upload-status.error   { color: #c00; }
.upload-status.loading { color: rgba(0,0,0,0.45); }

/* ─── YEDIA photo actions (in detail overlay) ──────────────────────────── */

.yedia-photo-actions {
  display: none;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.yedia-action-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.yedia-action-link:hover {
  color: #000;
}

/* removed: .yedia-upload-cta-wrap is no longer used (button moved inline with title) */

.yedia-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 64px;
  width: 100%;
}

@media (max-width: 1024px) {
  .yedia-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-empty-msg {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  padding: 8px 0;
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .filter-bar {
    gap: 14px;
    padding-inline: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .merch-filter-bar,
  .yedia-filter-bar {
    top: var(--filter-bar-height);
    gap: 14px;
    padding-inline: 14px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .merch-filter-bar::-webkit-scrollbar,
  .yedia-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .detail-media {
    width: min(92vw, 640px);
  }

  .yedia-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
    row-gap: 32px;
  }

  .upload-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
  }

  .detail-media.is-merch {
    width: min(320px, 82vw);
  }

  .detail-gallery-prev {
    left: -8px;
  }

  .detail-gallery-next {
    right: -8px;
  }

  .detail-close {
    font-size: 38px;
  }

  .product-card .name {
    font-size: 12px;
  }
}