/* The Lads Go to Evenmere — player styles (ported from Evenmere Player.dc.html, night palette) */

:root {
  --bg: #131A2B;
  --panel: #1B2540;
  --card: #22304F;
  --sheet: #161F35;
  --ink: #ECE1C8;
  --sub: rgba(236, 225, 200, .55);
  --faint: rgba(236, 225, 200, .18);
  --line: rgba(236, 225, 200, .1);
  --gold: #C9A55E;
  --gold-2: #E3C37F;
  --gold-ink: #131A2B;
  --green: #7FA06A;
  --purple: #9186C9;
  --red: #C96A5E;
  --blue: #8FA0C6;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.mono { font-family: ui-monospace, Menlo, monospace; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

@keyframes ev-pulse { 0% { box-shadow: 0 0 0 0 rgba(201,165,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(201,165,94,0); } 100% { box-shadow: 0 0 0 0 rgba(201,165,94,0); } }
@keyframes ev-spin { to { transform: rotate(360deg); } }
@keyframes ev-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes ev-wiggle { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes ev-drop { from { transform: translateY(-240%); } to { transform: translateY(0); } }
@keyframes ev-swing { 0% { transform: rotate(-9deg); } 22% { transform: rotate(6.5deg); } 45% { transform: rotate(-4deg); } 65% { transform: rotate(2.2deg); } 82% { transform: rotate(-1deg); } 100% { transform: rotate(0deg); } }
@keyframes ev-wipe { to { clip-path: inset(0 0 100% 0); } }

/* intro: the tavern sign drops in on ropes, swings to rest, then the cover wipes away */
.intro {
  position: fixed; inset: 0; z-index: 60; background: #F0E7D2;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  clip-path: inset(0 0 0 0);
  animation: ev-wipe .65s cubic-bezier(.72,0,.3,1) 3.2s forwards;
  cursor: pointer;
}
.intro-drop { display: flex; flex-direction: column; align-items: center; animation: ev-drop .85s cubic-bezier(.34,1.3,.52,1) both; }
.intro-bar { width: 300px; height: 9px; border-radius: 5px; background: linear-gradient(180deg,#6E5136,#4A3722); box-shadow: 0 2px 5px rgba(43,36,23,.3); }
.intro-swing { display: flex; flex-direction: column; align-items: center; transform-origin: 50% -8px; animation: ev-swing 2.5s ease-in-out .8s both; }
.intro-ropes { display: flex; gap: 170px; }
.intro-ropes div { width: 2.5px; height: 26px; background: #5A4630; }
.intro-sign {
  transform: rotate(-1.2deg); background: linear-gradient(180deg,#2A3450,#1B2540);
  border: 2px solid #C9A55E; border-radius: 12px; padding: 26px 36px 22px;
  text-align: center; box-shadow: 0 16px 34px rgba(43,36,23,.32);
}
.intro-lads { font-family: 'Grenze Gotisch', serif; font-weight: 600; font-size: 42px; line-height: 1; color: #ECE1C8; }
.intro-goto { font-size: 11px; letter-spacing: .42em; color: #C9A55E; font-weight: 700; margin: 9px 0 6px; padding-left: .42em; }
.intro-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 29px; letter-spacing: .14em; color: #E3C37F; padding-left: .14em; }
.intro-motto { margin-top: 13px; font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; letter-spacing: .2em; color: rgba(236,225,200,.5); }

.scrollbox { overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(236,225,200,.18) transparent; }
.scrollbox::-webkit-scrollbar { width: 8px; height: 8px; }
.scrollbox::-webkit-scrollbar-thumb { background: rgba(236,225,200,.14); border-radius: 99px; }
.scrollbox::-webkit-scrollbar-track { background: transparent; }

/* ---------- shared atoms ---------- */

.label-caps { font-size: 9.5px; letter-spacing: .22em; font-weight: 800; color: rgba(236,225,200,.45); }

.modechip {
  padding: 7px 13px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em;
  cursor: pointer; user-select: none;
  border: 1px solid var(--faint); background: transparent; color: var(--sub);
  white-space: nowrap;
}
.modechip.on { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); }

.btn-round {
  border-radius: 50%; border: 1px solid rgba(236,225,200,.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: rgba(236,225,200,.75); cursor: pointer; user-select: none;
  background: transparent;
}
.btn-play {
  border-radius: 50%; background: var(--gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; cursor: pointer; user-select: none; flex: none;
}

.speed-pill {
  min-width: 46px; height: 32px; border-radius: 999px;
  border: 1px solid rgba(227,195,127,.45); background: rgba(201,165,94,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; color: var(--gold-2);
  cursor: pointer; user-select: none; padding: 0 10px; box-sizing: border-box; flex: none;
}
.d-bar .speed-pill { min-width: 42px; height: 28px; font-size: 10.5px; padding: 0 9px; }

/* offline download button: ↓ idle → conic progress ring with % → ✓ done */
.dl-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid rgba(236,225,200,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: rgba(236,225,200,.75);
  cursor: pointer; user-select: none;
}
.dl-btn.hide { display: none; }
.dl-btn .ring { position: absolute; inset: -1px; border-radius: 50%; display: none; pointer-events: none; }
.dl-btn.downloading { border-color: transparent; }
.dl-btn.downloading .dl-glyph { font-size: 10px; color: var(--gold-2); font-family: ui-monospace, Menlo, monospace; }
.dl-btn.downloading .ring {
  display: block;
  background: conic-gradient(var(--gold-2) calc(var(--p, 0) * 1%), rgba(236,225,200,.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
}
.dl-btn.ready { border-color: rgba(201,165,94,.6); color: var(--gold-2); cursor: default; }
.dl-btn.error { border-color: rgba(201,106,94,.65); color: var(--red); }
.sh-now .dl-btn { width: 30px; height: 30px; font-size: 12px; margin-left: auto; }

.demo-pill {
  font-family: ui-monospace, Menlo, monospace; font-size: 9px; letter-spacing: .14em;
  color: var(--gold-2); border: 1px solid rgba(201,165,94,.45); border-radius: 999px;
  padding: 3px 9px; white-space: nowrap; flex: none;
}

/* ---------- stage (scenes / karaoke / transcript / map) ---------- */

.stage { position: relative; overflow: hidden; background: var(--panel); }
.stage .lay { position: absolute; inset: 0; }
.stage .lay.hide { display: none; }

.sc-slot { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.sc-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(24px) brightness(.5) saturate(1.1); }
.sc-fg { position: absolute; inset: 0; background-repeat: no-repeat; background-position: center; background-size: cover; }
.sc-ph {
  position: absolute; inset: 0; background-color: var(--panel);
  background-image: repeating-linear-gradient(45deg, rgba(236,225,200,.05) 0 14px, transparent 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.sc-ph div { font-family: ui-monospace, Menlo, monospace; font-size: 9px; letter-spacing: .14em; color: rgba(236,225,200,.5); text-align: center; padding: 0 24px; }
.sc-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(180deg, rgba(10,14,24,0), rgba(10,14,24,.78)); }
.sc-chip {
  position: absolute; top: 10px; left: 12px; background: rgba(10,14,24,.55);
  backdrop-filter: blur(6px); border: 1px solid rgba(236,225,200,.14); border-radius: 999px;
  padding: 5px 12px; font-size: 9.5px; letter-spacing: .12em; font-weight: 800; color: var(--gold-2);
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-bubble {
  position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 9px;
  background: rgba(10,14,24,.6); backdrop-filter: blur(6px); border: 1px solid rgba(236,225,200,.14);
  border-radius: 999px; padding: 5px 14px 5px 6px; z-index: 4;
}
.sp-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--gold-ink);
}
.playing .sp-av { animation: ev-pulse 1.8s infinite; }
.sp-name { font-size: 11.5px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.sp-who { font-size: 9.5px; color: var(--sub); line-height: 1.2; }

.time-pill {
  position: absolute; right: 10px; bottom: 8px; background: rgba(10,14,24,.6);
  backdrop-filter: blur(6px); border: 1px solid rgba(236,225,200,.14); color: var(--gold-2);
  border-radius: 999px; padding: 4px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; z-index: 6;
}

.quip {
  position: absolute; inset: 0; z-index: 6; background: rgba(10,14,24,.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.quip .spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(201,165,94,.25); border-top-color: var(--gold-2); animation: ev-spin .8s linear infinite; }
.quip div:last-child { font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .12em; color: var(--gold-2); }

/* karaoke + transcript rows */

.k-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px;
  cursor: pointer; transition: background .3s, opacity .3s; opacity: .5;
}
.k-row.on { background: var(--card); opacity: 1; }
.k-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--gold-ink); background: var(--c);
}
.playing .k-row.on .k-av { animation: ev-pulse 1.8s infinite; }
.k-head { display: flex; align-items: baseline; gap: 8px; }
.k-name { font-size: 10.5px; letter-spacing: .1em; font-weight: 800; color: var(--c); text-transform: uppercase; }
.k-ts { font-size: 9px; color: rgba(236,225,200,.35); font-family: ui-monospace, Menlo, monospace; }
.k-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 16.5px; line-height: 1.3; font-weight: 600; color: var(--sub); transition: color .3s; }
.k-row.on .k-text { font-size: 18.5px; color: var(--ink); }

.t-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.t-row.on { background: var(--card); }
.t-av {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: var(--gold-ink); background: var(--c);
}
.t-head { display: flex; align-items: baseline; gap: 7px; }
.t-name { font-size: 10px; letter-spacing: .08em; font-weight: 800; color: var(--c); text-transform: uppercase; }
.t-ts { font-size: 9px; color: rgba(236,225,200,.35); font-family: ui-monospace, Menlo, monospace; }
.t-text { font-size: 13px; line-height: 1.5; color: var(--sub); }
.t-row.on .t-text { color: var(--ink); }
.row-body { flex: 1; min-width: 0; }

/* karaoke cards (word-synced, Spotify-style) */

.kar-stage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px 36px; gap: 14px; }
.kar-spk { display: flex; align-items: center; gap: 10px; }
.kar-av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--gold-ink);
  background-size: cover; background-position: center;
}
.playing .kar-av { animation: ev-pulse 1.8s infinite; }
.kar-name { font-size: 11px; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; }
.kar-line {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 27px; line-height: 1.34; font-weight: 600;
  animation: kar-in .35s ease; transition: opacity .4s;
}
.kw { color: rgba(236,225,200,.26); transition: color .13s ease; }
.kw.lit { color: var(--ink); }
.kw.now { color: var(--gold-2); }
.kar-next {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 17px; line-height: 1.3;
  color: rgba(236,225,200,.3); cursor: pointer; min-height: 22px;
}
.kar-dots { display: none; gap: 9px; align-items: center; }
.kar-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: kar-dot 1.5s ease-in-out infinite; }
.kar-dots span:nth-child(2) { animation-delay: .25s; }
.kar-dots span:nth-child(3) { animation-delay: .5s; }
.kar-stage.idle .kar-line { opacity: .35; }
.kar-stage.idle .kar-dots { display: flex; }
@keyframes kar-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kar-dot { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: .95; transform: scale(1); } }
.mob .kar-stage { padding: 16px 20px; gap: 10px; }
.mob .kar-line { font-size: 19.5px; }
.mob .kar-next { font-size: 14px; }
.mob .kar-av { width: 28px; height: 28px; font-size: 11px; }

/* map */

.map-img { position: absolute; inset: 0; background-image: url('assets/evenmere-map.jpeg'); background-size: cover; background-position: 50% 50%; }
.map-veil { position: absolute; inset: 0; background: rgba(19,26,43,.28); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 3; pointer-events: none; }
.pin-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(236,225,200,.9); box-shadow: 0 0 0 2px rgba(10,14,24,.7); }
.pin.on .pin-dot { background: var(--gold-2); animation: ev-pulse 1.8s infinite; }
.pin-lbl { background: rgba(10,14,24,.65); color: var(--ink); padding: 2px 7px; border-radius: 99px; font-size: 8.5px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.pin.on .pin-lbl { color: var(--gold-2); }
.token { position: absolute; transform: translate(-50%,-50%); z-index: 5; display: flex; transition: left .25s linear, top .25s linear; }
.tk {
  width: 19px; height: 19px; border-radius: 50%; color: var(--gold-ink);
  font-size: 8.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.tk + .tk { margin-left: -6px; }
.playing .tk:first-child { animation: ev-pulse 1.8s infinite; }
.map-legend {
  /* top-left so the speaker bubble owns the bottom-left corner */
  position: absolute; left: 12px; top: 10px; display: flex; gap: 12px; align-items: center;
  background: rgba(10,14,24,.6); backdrop-filter: blur(6px); border: 1px solid rgba(236,225,200,.14);
  border-radius: 999px; padding: 6px 14px; z-index: 6;
}
.map-legend span { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; color: rgba(236,225,200,.75); }

/* seek bar */

.seek { position: relative; cursor: pointer; touch-action: none; }
.seek-track { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 5px; border-radius: 99px; background: rgba(236,225,200,.14); }
.seek-fill { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 5px; background: var(--gold); border-radius: 99px; z-index: 2; }
.seek-dot { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 8px; height: 8px; border-radius: 50%; cursor: pointer; z-index: 3; }
.seek-knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(227,195,127,.25); z-index: 4; pointer-events: none; }

.tip {
  position: absolute; bottom: 36px; transform: translateX(-50%); width: 196px;
  background: var(--card); border: 1px solid rgba(236,225,200,.16); border-radius: 12px; padding: 10px;
  z-index: 30; box-shadow: 0 14px 34px rgba(4,7,14,.6); pointer-events: none;
}
.tip-thumb { height: 72px; border-radius: 9px; margin-bottom: 8px; background-color: var(--panel); background-size: 260%; }
.tip-label { font-size: 12px; font-weight: 800; color: var(--ink); }
.tip-desc { font-size: 10.5px; color: var(--sub); margin-top: 2px; }

/* episode rows */

.ep-chip { font-size: 8.5px; letter-spacing: .14em; font-weight: 800; color: rgba(236,225,200,.45); white-space: nowrap; }
.ep-chip.hot { color: var(--gold-2); }
.ep-bar { height: 3px; border-radius: 99px; background: rgba(236,225,200,.14); overflow: hidden; }
.ep-fill { height: 100%; background: var(--gold); border-radius: 99px; }
.ep-thumb { border-radius: 12px; flex: none; background-image: url('assets/evenmere-map.jpeg'); background-size: 340%; box-shadow: inset 0 0 0 1px rgba(236,225,200,.14); }
.upcoming { opacity: .5; cursor: default; }
.wiggling { animation: ev-wiggle .3s ease; }

.eq { display: flex; gap: 2.5px; align-items: flex-end; height: 13px; flex: none; }
.eq span { width: 3px; height: 13px; background: var(--gold-2); border-radius: 2px; transform-origin: bottom; animation: ev-eq .7s ease-in-out infinite alternate; }
.eq span:nth-child(2) { animation-delay: -.25s; }
.eq span:nth-child(3) { animation-delay: -.5s; }
.eq.paused span { animation-play-state: paused; }

/* ---------- desktop: command center (1f) ---------- */

.desk { height: 100dvh; display: grid; grid-template-columns: 262px minmax(0,1fr) 318px; grid-template-rows: minmax(0,1fr) 92px; }

.d-side { border-right: 1px solid var(--line); padding: 20px 14px 14px; display: flex; flex-direction: column; overflow: hidden; }
.crest { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.crest-ring { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.crest-d20 { width: 16px; height: 16px; transform: rotate(45deg); border: 1.5px solid var(--gold-2); display: flex; align-items: center; justify-content: center; }
.crest-d20 span { transform: rotate(-45deg); font-size: 7.5px; font-weight: 800; color: var(--gold-2); font-family: ui-monospace, Menlo, monospace; }
.crest-over { font-size: 8px; letter-spacing: .28em; color: var(--sub); font-weight: 700; padding-left: .28em; }
.crest-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 20px; letter-spacing: .06em; color: var(--ink); line-height: 1.1; }

.d-eps { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.d-ep { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.d-ep.on { background: var(--panel); border-color: rgba(201,165,94,.3); }
.d-ep .n2 { font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: var(--gold); font-weight: 700; padding-top: 2px; }
.d-ep .ttl { font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.d-ep .meta { font-size: 10.5px; color: rgba(236,225,200,.45); margin-top: 1px; }
.d-ep .ep-bar { height: 2.5px; margin-top: 6px; }

.d-party { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.d-party .who { font-size: 10px; color: rgba(236,225,200,.5); line-height: 1.3; }
.avs { display: flex; }
.av {
  width: 26px; height: 26px; border-radius: 50%; color: var(--gold-ink); font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.av + .av { margin-left: -8px; }

.d-main { display: flex; flex-direction: column; padding: 18px 22px 14px; overflow: hidden; min-width: 0; }
.d-head { display: flex; align-items: flex-end; justify-content: space-between; flex: none; padding-bottom: 12px; gap: 14px; }
.d-now { font-size: 9.5px; letter-spacing: .22em; font-weight: 800; color: var(--gold); }
.d-scene { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--ink); margin-top: 2px; }
.d-modes { display: flex; gap: 7px; flex: none; }
.d-stage { flex: 1; border-radius: 18px; min-height: 0; }
.d-stage .sc-grad { height: 90px; }
.d-stage .sc-chip { font-size: 9.5px; }
.d-stage .sp-bubble { left: 14px; bottom: 12px; gap: 10px; padding: 6px 16px 6px 7px; }
.d-stage .sp-name { font-size: 12.5px; }
.d-stage .sp-who { font-size: 10px; }

.d-rail { border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px 12px; overflow: hidden; }
.d-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; flex: none; }
.live { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; color: var(--green); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ev-pulse 1.8s infinite; }
.d-rail .scrollbox { flex: 1; position: relative; }
.d-rail-hint { padding: 10px 6px 0; font-size: 10px; color: rgba(236,225,200,.35); flex: none; }

.d-bar { grid-column: 1 / 4; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 22px; position: relative; }
.d-bar .btn-round { width: 38px; height: 38px; font-size: 10px; }
.d-bar .btn-play { width: 50px; height: 50px; font-size: 17px; }
.d-ep-now { flex: none; width: 180px; }
.d-ep-now .lbl { font-size: 9px; letter-spacing: .18em; font-weight: 800; color: var(--gold); }
.d-ep-now .ttl { font-size: 12.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-bar .seek { flex: 1; height: 30px; }
.d-times { flex: none; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--sub); display: flex; align-items: center; gap: 12px; }

/* ---------- mobile: Nightfall (1d) ---------- */

.mob { height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }

.m-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 2px; flex: none; }
.m-brand { display: flex; align-items: center; gap: 9px; }
.m-dash { width: 26px; border-top: 2px dashed rgba(201,165,94,.7); }
.m-over { font-size: 8px; letter-spacing: .26em; color: var(--sub); font-weight: 700; }
.m-name { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 19px; line-height: 1; color: var(--ink); }
.m-mark { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.m-mark div { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold-2); }

.m-hero { margin: 12px 16px 0; height: 232px; border-radius: 20px; flex: none; }
.m-modes { display: flex; gap: 7px; padding: 12px 16px 8px; flex: none; overflow: auto; scrollbar-width: none; }
.m-modes::-webkit-scrollbar { display: none; }
.m-eps-label { font-size: 10px; letter-spacing: .22em; font-weight: 800; color: rgba(236,225,200,.45); padding: 8px 20px 4px; flex: none; }
.m-eps { flex: 1; padding: 0 12px 130px; }
.m-ep { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; margin-bottom: 2px; }
.m-ep.on { background: var(--panel); border-color: rgba(201,165,94,.35); }
.m-ep .ep-thumb { width: 46px; height: 46px; }
.m-ep .row1 { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.m-ep .n2 { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--gold); font-weight: 700; }
.m-ep .ttl { font-size: 13.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-ep .meta { font-size: 11px; color: rgba(236,225,200,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.m-ep .right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.m-ep .ep-bar { width: 44px; }

.minibar {
  position: absolute; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-radius: 16px; background: var(--card); box-shadow: 0 10px 30px rgba(5,8,16,.6);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; z-index: 8; overflow: hidden;
}
.minibar .ep-thumb { width: 40px; height: 40px; border-radius: 10px; }
.minibar .ttl { font-size: 12.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minibar .meta { font-size: 10px; color: rgba(236,225,200,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minibar .btn-play { width: 36px; height: 36px; font-size: 13px; }
.mini-track { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 99px; background: rgba(236,225,200,.12); overflow: hidden; }
.mini-fill { height: 100%; background: var(--gold-2); border-radius: 99px; }

.drawer { position: absolute; inset: 0; z-index: 9; visibility: hidden; overflow: hidden; }
.drawer.open { visibility: visible; }
.scrim { position: absolute; inset: 0; background: rgba(6,9,17,.55); opacity: 0; transition: opacity .32s ease; }
.drawer.open .scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 76px;
  background: var(--sheet); border-radius: 26px 26px 0 0; box-shadow: 0 -14px 44px rgba(3,5,10,.6);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(104%); transition: transform .38s cubic-bezier(.32,.72,.22,1);
}
.drawer.open .sheet { transform: translateY(0); }
.grab { padding: 10px 0 2px; display: flex; justify-content: center; cursor: pointer; flex: none; }
.grab div { width: 38px; height: 4px; border-radius: 99px; background: rgba(236,225,200,.25); }
.sh-head { padding: 6px 22px 0; flex: none; }
.sh-now { font-size: 9.5px; letter-spacing: .22em; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.sh-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--ink); margin-top: 2px; }
.sh-hero { margin: 12px 18px 0; border-radius: 18px; flex: 1; min-height: 130px; }
.sh-modes { display: flex; gap: 7px; padding: 12px 18px 0; flex: none; overflow: auto; scrollbar-width: none; }
.sh-modes::-webkit-scrollbar { display: none; }
.sh-seek-wrap { padding: 10px 20px 0; flex: none; }
.sh-seek { height: 26px; }
.sh-times { display: flex; justify-content: space-between; font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: rgba(236,225,200,.45); margin-top: 2px; }
.sh-controls { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 8px 0 4px; flex: none; }
.sh-controls .btn-round { width: 46px; height: 46px; font-size: 11.5px; }
.sh-controls .btn-play { width: 62px; height: 62px; font-size: 21px; box-shadow: 0 8px 24px rgba(201,165,94,.3); }
.sh-moments-label { font-size: 9.5px; letter-spacing: .22em; font-weight: 800; color: rgba(236,225,200,.4); padding: 8px 22px 6px; flex: none; }
.sh-moments { display: flex; gap: 8px; overflow: auto; padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 20px); flex: none; scrollbar-width: none; }
.sh-moments::-webkit-scrollbar { display: none; }
.moment {
  display: flex; align-items: center; gap: 7px; flex: none;
  background: var(--card); border: 1px solid rgba(236,225,200,.12); border-radius: 999px;
  padding: 7px 13px; cursor: pointer;
}
.moment i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.moment b { font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.moment span { font-size: 9px; font-family: ui-monospace, Menlo, monospace; color: rgba(236,225,200,.45); }

/* layout switch */
.desk { display: none; }
.mob { display: flex; }
@media (min-width: 920px) {
  .desk { display: grid; }
  .mob { display: none; }
}
