*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ui-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

html {
  overflow: clip; /* clips viewport overflow without allowing scroll */
}

body {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: var(--ui-font);
}

/* ── Site Name ── */
.site-name {
  position: fixed;
  top: 20px;
  left: 24px;
  font-family: var(--ui-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  z-index: 300;
  pointer-events: none;
}
body.light .site-name { color: rgba(0,0,0,0.7); }

/* ── Category Nav ── */
.cat-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 200;
}
.cat-list {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cat-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.28);
  font-family: var(--ui-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.cat-btn:hover  { color: rgba(255,255,255,0.6); }
.cat-btn.active { color: rgba(255,255,255,0.9); }
.cat-arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.cat-arrow:hover { color: rgba(255,255,255,0.6); }

body.light .cat-btn        { color: rgba(0,0,0,0.28); }
body.light .cat-btn:hover  { color: rgba(0,0,0,0.6); }
body.light .cat-btn.active { color: rgba(0,0,0,0.9); }
body.light .cat-arrow      { color: rgba(0,0,0,0.25); }
body.light .cat-arrow:hover{ color: rgba(0,0,0,0.6); }

/* ── Cover Flow ── */
.coverflow-wrap {
  position: relative;
  width: 100%;
  user-select: none;
  animation: fadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.coverflow-stage {
  position: relative;
  height: 600px;
  perspective: 1200px;
  perspective-origin: 50% 39%;
  overflow: visible;
  cursor: grab;
}

.cf-card {
  position: absolute;
  width: 360px;
  top: 55px;
  left: 50%;
  margin-left: -180px;
  transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.52s ease,
              opacity 0.35s ease;
  will-change: transform;
  cursor: pointer;
}

.cf-card.is-center { cursor: default; }

.cf-face {
  position: relative;
  width: 360px;
  height: 360px;
  overflow: hidden;
  box-shadow: none;
}

.cf-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: filter 0.45s ease;
  will-change: filter;
}


.cf-reflect {
  position: relative;
  width: 360px;
  height: 360px;
  overflow: hidden;
  transform: scaleY(-1);
  filter: brightness(0.25);
  transition: filter 0.45s ease;
  pointer-events: none;
}

.cf-reflect img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  display: block;
}


/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,7,6,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
}

.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s;
}
.lb-close:hover { color: rgba(255,255,255,0.7); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 1.4rem;
  font-family: inherit;
  cursor: pointer;
  padding: 16px 24px;
  transition: color 0.15s;
}
.lb-prev:hover, .lb-next:hover { color: rgba(255,255,255,0.7); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ── Load-in Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Player Bar ── */
.player-bar {
  display: none; /* re-enable: change to flex */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #0e0e0e;
  border-top: 1px solid rgba(255,255,255,0.07);
  z-index: 200;
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.pb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.pb-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
}

.pb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none !important;
}

.pb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pb-title {
  font-family: var(--ui-font);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

.pb-sub {
  font-family: var(--ui-font);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

.pb-center {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.pb-right {
  flex: 1;
}

.pc-skip, .pc-play {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--ui-font);
  cursor: pointer;
  outline: none;
  transition: color 0.15s, opacity 0.15s;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1;
}
.pc-play {
  font-size: 20px;
  padding: 0;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #fff;
}
.pc-play.is-playing { font-size: 28px; }
.pc-skip:hover, .pc-play:hover { color: #fff; }
.pc-skip:active, .pc-play:active { opacity: 0.5; }

body.light .player-bar {
  background: #f0f0f0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
body.light .pb-title { color: rgba(0,0,0,0.8); }
body.light .pb-sub   { color: rgba(0,0,0,0.35); }
body.light .pb-thumb { background: #ddd; }
body.light .pc-skip, body.light .pc-play { color: rgba(0,0,0,0.5); }
body.light .pc-play  { color: #000; }
body.light .pc-skip:hover, body.light .pc-play:hover { color: #000; }

/* ── Info Panel ── */
.info-wrap {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  animation: fadeUp 0.9s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.info-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-family: var(--ui-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.info-btn:hover { color: rgba(255,255,255,0.8); }

.info-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  transition: max-height 0.3s ease 0.15s,
              padding-top 0.3s ease 0.15s,
              opacity 0.15s ease;
}
.info-panel.open {
  max-height: 160px;
  opacity: 1;
  padding-top: 10px;
  transition: max-height 0.3s ease,
              padding-top 0.3s ease,
              opacity 0.25s ease 0.05s;
}

.info-email {
  color: rgba(255,255,255,0.7);
  font-family: var(--ui-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.15s;
}
.info-email:hover { color: rgba(255,255,255,0.7); }

.info-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-family: var(--ui-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 10px;
  text-decoration: none;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
}
.info-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ── Light Mode ── */
body.light { background: #fff; }

body.light .info-btn         { color: rgba(0,0,0,0.3); }
body.light .info-btn:hover   { color: rgba(0,0,0,0.8); }
body.light .info-email       { color: rgba(0,0,0,0.7); }
body.light .info-email:hover { color: rgba(0,0,0,0.9); }
body.light .info-toggle      { color: rgba(0,0,0,0.7); border-color: rgba(0,0,0,0.2); }
body.light .info-toggle:hover{ color: rgba(0,0,0,0.9); border-color: rgba(0,0,0,0.5); }
body.light .cf-reflect       { filter: brightness(1.1) saturate(0.6); }
body.light .cf-reflect::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
}



/* ── Mobile ── */
@media (max-width: 600px) {
  .coverflow-stage { height: 360px; perspective: 900px; perspective-origin: 50% 38%; }
  .cf-card { width: 200px; margin-left: -100px; top: 30px; }
  .cf-face { width: 200px; height: 200px; }
  .cf-reflect { width: 200px; height: 200px; }
  .cf-reflect img { width: 200px; height: 200px; }

  /* show only active category between arrows */
  .cat-nav { gap: 8px; }
  .cat-list { gap: 0; }
  .cat-btn        { display: none; }
  .cat-btn.active { display: block; }
}
