/* ===== 黒猫レコーズ ORIGINALS — レコード棚 ===== */
.orig-page { --amber: #f0b45a; --wood1: #5a3a22; --wood2: #3a2414; --cream: #f3e6c8; background: #0b0809; }
.orig-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(240, 180, 90, .16), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(176, 107, 255, .10), transparent 70%),
    linear-gradient(#120c0b, #0b0809 70%);
}
/* 奥の壁にぎっしり並ぶレコードの背（ぼかし） */
.orig-shelf { position: absolute; left: -5%; right: -5%; height: 120px; opacity: .22; filter: blur(1.5px);
  background: repeating-linear-gradient(90deg,
    #2b1f3a 0 7px, #6b2430 7px 10px, #1d2b3a 10px 17px, #c99a4e 17px 19px, #3a1d2b 19px 27px,
    #0f1f1a 27px 31px, #7a5a2a 31px 34px, #24243f 34px 43px, #5b1c2a 43px 46px, #172a33 46px 53px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.orig-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(#3a2414, #1a0f08); }
.orig-shelf-1 { top: 120px; } .orig-shelf-2 { top: 270px; opacity: .14; }
.orig-lamp { position: absolute; left: 50%; top: -60px; width: 900px; height: 900px; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 0 158deg, rgba(255, 210, 140, .07) 168deg 192deg, transparent 202deg 360deg); filter: blur(10px); }

.orig-page .site-header { background: rgba(11, 8, 9, .78); }
.orig-page .logo { text-decoration: none; }
.orig-back { background: transparent; border: 1px solid rgba(240,180,90,.6); color: var(--cream); box-shadow: none; }
.orig-main { position: relative; z-index: 1; padding-bottom: 120px; }

.orig-head { text-align: center; padding: 34px 16px 8px; }
.orig-kicker { color: var(--amber); font-family: var(--mincho); font-weight: 700; letter-spacing: .3em; font-size: .7rem; }
.orig-title { font-family: var(--mincho); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: .2em; color: var(--cream); margin: 4px 0 6px;
  text-shadow: 0 0 22px rgba(240, 180, 90, .35); }
.orig-lead { color: #c9b9a0; font-family: var(--mincho); font-size: .9rem; word-break: keep-all; overflow-wrap: anywhere; }
.orig-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.orig-tab { padding: 6px 14px; border-radius: 3px; border: 1px solid rgba(240,180,90,.35); background: rgba(20, 12, 8, .6); color: #c9b9a0;
  font-family: var(--mincho); font-weight: 700; font-size: .8rem; letter-spacing: .1em; cursor: pointer; transition: .2s; }
.orig-tab:hover { color: var(--cream); border-color: rgba(240,180,90,.7); }
.orig-tab.is-on { background: var(--amber); color: #1a0f08; border-color: var(--amber); }

/* 木箱とレコード */
.crate-zone { --J: min(300px, 64vw); position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; max-width: 760px; margin: 6px auto 0; padding: 0 12px; }
.crate-stage { position: relative; height: calc(var(--J) * 1.42); perspective: 1100px; perspective-origin: 50% 0%; touch-action: pan-y; user-select: none; }
.crate { position: absolute; left: 50%; bottom: calc(var(--J) * .16); width: var(--J); height: var(--J); margin-left: calc(var(--J) / -2); transform-style: preserve-3d; }
.rec { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s, filter .4s; will-change: transform; }
.rec-sleeve { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; background: #111; box-shadow: 0 2px 0 rgba(255,255,255,.06) inset, 0 10px 24px rgba(0,0,0,.6); z-index: 2; }
.rec-sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.rec-sleeve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 35%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.rec-badge { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 2px 7px; border-radius: 2px; font-family: var(--sans); font-weight: 700; font-size: .62rem; letter-spacing: .12em; color: #1a0f08; background: var(--amber); }
.rec-badge.box { background: #c8434f; color: #fff; }
/* 盤（ジャケットの後ろから引き出される） */
.rec-vinyl { position: absolute; top: 3%; left: 3%; width: 94%; height: 94%; border-radius: 50%; z-index: 1;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255,255,255,.05) 17.5%, transparent 18.5%),
    repeating-radial-gradient(circle, #121212 0 2px, #1c1c1c 2px 3px),
    #151515;
  box-shadow: 0 6px 18px rgba(0,0,0,.6); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.rec-vinyl::before { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: var(--label) center / cover; box-shadow: 0 0 0 3px #0c0c0c; }
.rec-vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20deg, rgba(255,255,255,.08) 35deg, transparent 50deg 200deg, rgba(255,255,255,.06) 215deg, transparent 230deg); }
.rec.is-out .rec-vinyl { transform: translateX(48%); }
.rec.is-spin .rec-vinyl { animation: recSpin 1.8s linear infinite; }
.rec.is-out.is-spin .rec-vinyl { animation: recSpinOut 1.8s linear infinite; }
@keyframes recSpin { to { transform: rotate(360deg); } }
@keyframes recSpinOut { from { transform: translateX(48%) rotate(0); } to { transform: translateX(48%) rotate(360deg); } }
.rec.is-cur .rec-sleeve { box-shadow: 0 0 0 1px rgba(240,180,90,.5), 0 18px 40px rgba(0,0,0,.7), 0 0 50px rgba(240,180,90,.18); }
.rec.is-out .rec-sleeve { transform: translateX(-14%); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.rec .rec-sleeve { transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }

.crate-front { position: absolute; left: 50%; bottom: 0; width: calc(var(--J) * 1.14); height: calc(var(--J) * .5); transform: translateX(-50%); z-index: 50; pointer-events: none;
  border-radius: 4px 4px 6px 6px;
  background:
    linear-gradient(rgba(0,0,0,.35), transparent 14%, transparent 86%, rgba(0,0,0,.45)),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--J) * .158), rgba(0,0,0,.45) calc(var(--J) * .158) calc(var(--J) * .166)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 3px, transparent 3px 9px),
    linear-gradient(90deg, var(--wood2), var(--wood1) 30%, #6b4628 55%, var(--wood1) 75%, var(--wood2));
  box-shadow: 0 24px 40px rgba(0,0,0,.7), inset 0 2px 0 rgba(255,220,170,.18); }
.crate-front::before { content: ""; position: absolute; left: 50%; top: 14%; width: 26%; height: 16%; transform: translateX(-50%); border-radius: 30px; background: rgba(0,0,0,.55); box-shadow: inset 0 3px 6px rgba(0,0,0,.8); }
.crate-stencil { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font-family: var(--sans); font-weight: 700; letter-spacing: .38em; font-size: calc(var(--J) * .048);
  color: rgba(243, 230, 200, .55); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.crate-tag { position: absolute; right: 6%; bottom: 8%; padding: 2px 8px; background: var(--cream); color: #3a2414; font-family: var(--mincho); font-weight: 800; font-size: .66rem; letter-spacing: .2em; transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.crate-nav { position: relative; z-index: 60; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(240,180,90,.5); background: rgba(20,12,8,.7); color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.crate-nav:hover { background: rgba(240,180,90,.2); }
.crate-hint { grid-column: 1 / -1; text-align: center; color: #8d7d66; font-size: .72rem; margin-top: 12px; }

/* 選んでいる1枚の情報 */
.rec-info { max-width: 560px; margin: 18px auto 0; padding: 0 16px; text-align: center; display: grid; gap: 6px; }
.rec-count { color: var(--amber); font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.rec-title { font-family: var(--mincho); font-weight: 800; font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--cream); letter-spacing: .06em; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.rec-sub { color: #c9b9a0; font-family: var(--mincho); font-size: .9rem; min-height: 1.4em; word-break: keep-all; overflow-wrap: anywhere; }
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.rec-btn { padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(240,180,90,.6); background: rgba(20,12,8,.6); color: var(--cream); font-family: var(--mincho); font-weight: 700; font-size: .88rem; letter-spacing: .08em; cursor: pointer; text-decoration: none; }
.rec-btn:hover { background: rgba(240,180,90,.18); }
.rec-btn.main { background: linear-gradient(#f0b45a, #c98a34); color: #1a0f08; border-color: #f0b45a; box-shadow: 0 0 20px rgba(240,180,90,.3); }
.rec-btn.circus { background: linear-gradient(#8e1d2a, #5a0f18); border-color: #e6c06a; }
.rec-note { color: #8d7d66; font-size: .74rem; }
.rec-actions .trk-dl { width: auto; height: auto; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(240,180,90,.45); background: none; color: var(--cream); font-weight: 700; font-size: .8rem; }
.rec-actions .trk-dl:hover { background: rgba(240,180,90,.15); color: #fff; box-shadow: none; }
.rec-actions .trk-dlcount { position: static; min-width: 0; height: auto; padding: 0; margin-left: -4px; background: none; border: none; color: #8d7d66; font-size: .72rem; line-height: 1; }
.rec-tracks { list-style: none; display: grid; gap: 2px; max-width: 360px; margin: 8px auto 0; text-align: left; }
.rec-tracks li { display: flex; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed rgba(240,180,90,.2); color: #c9b9a0; font-family: var(--mincho); font-size: .86rem; }
.rec-tracks b { color: #e6c06a; font-weight: 700; font-size: .74rem; letter-spacing: .1em; min-width: 3.4em; }

/* 下のプレーヤー */
.deck { position: fixed; left: 50%; bottom: 12px; z-index: 60; width: min(720px, calc(100% - 20px)); transform: translateX(-50%) translateY(20px); opacity: 0;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px;
  background: rgba(18, 12, 10, .94); border: 1px solid rgba(240,180,90,.35); box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 26px rgba(240,180,90,.12); backdrop-filter: blur(10px);
  transition: opacity .3s, transform .3s; }
.deck.show { opacity: 1; transform: translateX(-50%); }
.deck[hidden] { display: none; }
.deck-thumb { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; }
.deck-mid { min-width: 0; display: grid; gap: 6px; }
.deck-row { display: flex; justify-content: space-between; gap: 10px; }
.deck-title { color: var(--cream); font-family: var(--mincho); font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-time { color: #8d7d66; font-size: .72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deck-seek { height: 5px; border-radius: 5px; background: rgba(243,230,200,.12); cursor: pointer; overflow: hidden; }
.deck-seek span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c98a34, #f0b45a); }
.deck-viz { width: 120px; height: 34px; }
.deck-btns { display: flex; gap: 6px; }
.deck-btns button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(240,180,90,.35); background: none; color: var(--cream); font-size: .8rem; cursor: pointer; }
.deck-btns .deck-play { width: 40px; height: 40px; background: var(--amber); color: #1a0f08; border-color: var(--amber); font-size: .95rem; }

/* 歌詞カード */
.cards-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 14px; }
.cards-modal[hidden] { display: none; }
.cards-veil { position: absolute; inset: 0; background: rgba(5, 3, 3, .86); backdrop-filter: blur(6px); }
.cards-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4); color: #fff; font-size: 1.3rem; cursor: pointer; }
.cards-box { position: relative; display: grid; gap: 10px; justify-items: center; }
.cards-title { color: var(--cream); font-family: var(--mincho); font-weight: 700; letter-spacing: .1em; }
.cards-wrap { display: flex; align-items: center; gap: 12px; }
.cards-pages { width: min(78vw, calc((100dvh - 150px) * 9 / 16), 420px); aspect-ratio: 9 / 16; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; background: #111; box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.cards-pages.landscape { width: min(88vw, 760px); aspect-ratio: 3 / 2; }
.cards-pages.portrait-23 { aspect-ratio: 2 / 3; width: min(78vw, calc((100dvh - 150px) * 2 / 3), 460px); }
.cards-pages::-webkit-scrollbar { display: none; }
.cards-page { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; }
.cards-page img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.cards-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; font-size: 1.2rem; cursor: pointer; }
.cards-nav:disabled { opacity: .25; cursor: default; }
.cards-dots { display: flex; gap: 6px; min-height: 6px; }
.cards-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }
.cards-dots span.on { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
body.no-scroll { overflow: hidden; }

/* アルバムの会場はページ内では非表示（入場時に全画面） */
.doke-standalone { padding: 0; background: none; }

@media (max-width: 640px) {
  .crate-zone { grid-template-columns: 1fr; }
  .crate-nav { display: none; }
  .deck { grid-template-columns: auto 1fr auto; }
  .deck-viz { display: none; }
  .cards-nav { display: none; }
  .rec.is-out .rec-vinyl { transform: translateX(34%); }
  @keyframes recSpinOut { from { transform: translateX(34%) rotate(0); } to { transform: translateX(34%) rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .rec, .rec-vinyl, .rec .rec-sleeve { transition: none; }
  .rec.is-spin .rec-vinyl, .rec.is-out.is-spin .rec-vinyl { animation: none; }
}
