/* TASTE listening section, on top of the template's bulma + index.css */

html, body { overflow-x: hidden; }

.publication-header .hero-body { padding-bottom: 1.5rem; }
.publication-authors { margin-top: 0.75rem; color: #4a4f57; }
.publication-links { margin-top: 1rem; }
.publication-links .button[disabled] { opacity: 0.55; cursor: not-allowed; }
.publication-links .icon svg { display: block; }

.listen-section { padding-top: 1.5rem; }
.listen-section .title.is-3 { margin-bottom: 1rem; }

/* prompt selector */
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #d7dbe1;
  border-radius: 999px;
  background: #ffffff;
  color: #363b44;
  font: 500 0.9rem 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.prompt-chip:hover { border-color: #9aa3b0; }
.prompt-chip.is-active {
  border-color: #363636;
  background: #363636;
  color: #ffffff;
}
.emotion-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  flex: none;
}
.prompt-chip.is-active .emotion-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }

/* prompt panel */
.prompt-panel {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #f5f6f8;
  margin-bottom: 1.25rem;
}
.imagery-quote {
  margin: 0 0 0.8rem;
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.45;
  color: #1f2430;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid #c9d5ec;
  border-radius: 999px;
  background: #eef3fb;
  font-size: 0.88rem;
  color: #1f2a44;
}
.tag-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5670a3;
}

/* players */
.player-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.player-card {
  min-width: 0;
  padding: 0.75rem 0.85rem 0.6rem;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.35);
}
.player-card.is-playing { border-color: #9fb0c9; }
.player-card.is-loading .roll-stack { opacity: 0.4; }
.player-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.player-name {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #1f2430;
}
.player-time {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: #6b717c;
}
.play-button {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #363636;
  color: #ffffff;
  cursor: pointer;
}
.play-button:hover { background: #1f1f1f; }
.play-button svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.play-button .icon-pause { display: none; }
.player-card.is-playing .icon-play { display: none; }
.player-card.is-playing .icon-pause { display: block; }

.roll-stack {
  position: relative;
  cursor: pointer;
  min-height: 198px;
  touch-action: pan-y;
  user-select: none;
}
.roll-stack canvas { display: block; width: 100%; height: 0; }
.roll-stack .cursor { position: absolute; inset: 0; pointer-events: none; }

.midi-link {
  flex: none;
  padding: 0.1rem 0.5rem;
  border: 1px solid #cfd4db;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4a5160;
}
.midi-link:hover { border-color: #363636; color: #1f2430; }
.player-note {
  margin: -0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: #5f6570;
}

.compare-note {
  font-size: 0.9rem;
  color: #5f6570;
}
.compare-toggle { margin: 1rem 0 0.9rem; }
.compare-toggle .toggle-arrow { display: inline-block; margin-right: 0.35rem; transition: transform 0.15s; }
.compare-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(90deg); }
.compare-note { margin: 1rem 0 0.75rem; }
.compare-panel { margin-bottom: 0.5rem; }

/* overview */
.overview-block {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.overview-block:last-child { margin-bottom: 0; }
.overview-block .title.is-4 { margin-bottom: 0.75rem; }
.overview-figure a { display: block; cursor: zoom-in; }
.overview-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
}
.overview-block p {
  margin-top: 0.8rem;
  color: #363b44;
  text-align: justify;
}

@media (max-width: 767px) {
  .imagery-quote { font-size: 1.12rem; }
  .prompt-panel { padding: 0.85rem 0.9rem; }
  .publication-title.is-2 { font-size: 1.45rem; }
  .publication-authors.is-size-5 { font-size: 1rem !important; margin-top: 0.5rem; }
  .publication-links .button { font-size: 0.85rem; }
  .publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
  .section { padding: 1.75rem 1rem; }
  .hero-body { padding: 1.5rem 1rem 1rem; }
  .listen-section { padding-top: 1rem; }
  .prompt-chips { gap: 0.35rem; }
  .prompt-chip { padding: 0.25rem 0.6rem; font-size: 0.82rem; }
}
