/* Shared foundations, controls and YouTube players for viewer, editor and review.
   Viewer-only catalog, graph and relation styles live in viewer.css. */
:root {
  color-scheme: light;
  --ink: #25303b;
  --muted: #5c6773;
  --line: #dce2e7;
  --paper: #fff;
  --wash: #f7f9fb;
  --accent: #315c88;
  --accent-bg: #eef4fa;
  --series: #1d686c;
  --series-bg: #eaf5f3;
  --reprise: #535894;
  --reprise-bg: #f0f0f9;
  --quote: #865827;
  --quote-bg: #fbf2e6;
  --radius: 12px;
  font-family: 'BIZ UDPGothic', 'BIZ UDPゴシック', 'Yu Gothic', Meiryo, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  color: inherit;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2869ae;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.6;
}
button svg {
  flex-shrink: 0;
}
button {
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  padding: 10px;
  background: #fff;
  z-index: 100;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.brand svg {
  color: var(--accent);
}
.page {
  max-width: 1344px;
  margin: auto;
  padding: 46px 32px 0;
}
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.025em;
}
h1 {
  margin: 13px 0 12px;
  font-size: 30px;
  line-height: 1.55;
  letter-spacing: 0.025em;
}
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
  padding: 7px 0;
  text-underline-offset: 4px;
}
.text-button:hover {
  text-decoration: underline;
}
.primary-button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 11px 16px;
  font-size: 14px;
  min-height: 46px;
  font-weight: 700;
}
.primary-button:hover:not(:disabled) {
  background: #23496f;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer > p {
  margin: 0 0 8px;
}
.site-footer details {
  max-width: 760px;
}
.site-footer summary {
  cursor: pointer;
  width: fit-content;
}
.site-footer details p {
  margin: 12px 0;
}
.listening-song {
  margin: 17px 0 12px;
  min-height: 68px;
}
.listening-song .eyebrow {
  font-size: 11px;
}
.listening-song h3 {
  font-size: 15px;
  margin: 3px 0 0;
  line-height: 1.8;
}
.source-choice {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.source-choice select {
  flex: 1;
  width: 100%;
  min-width: 0;
  font-size: 12px;
  background: white;
  padding: 6px;
  border: 1px solid #aebbc7;
  border-radius: 5px;
}
.player-frame {
  aspect-ratio: 16/9;
  min-height: 200px;
  width: 100%;
  position: relative;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
  border-radius: 8px;
}
.player-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
  gap: 13px;
  padding: 14px;
  text-align: center;
  color: #536779;
  background: linear-gradient(140deg, #f5f8fb, #edf2f7);
}
.player-placeholder p {
  margin: 0;
  font-size: 12px;
}
.player-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 24px;
  border: 1px solid #d1d0dc;
  background: #f0f0f5;
  color: #535365;
  text-align: center;
}
.player-unavailable strong {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.player-frame iframe,
.player-frame #youtube-player {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  min-height: 200px;
  border: 0;
}
.player-status {
  line-height: 1.9;
  color: var(--muted);
  margin: 10px 0;
  min-height: 42px;
}
.player-status.is-error {
  color: #9b3838;
}
.player-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  font-size: 11px;
}
.player-links .text-button {
  font-size: 11px;
}
.youtube-terms {
  color: var(--muted);
  line-height: 1.85;
  margin: 18px 0 0;
}
.youtube-terms a {
  color: var(--muted);
}
@media (min-width: 1500px) {
  .page {
    padding-top: 54px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding: 0 30px;
  }
  .page {
    padding: 36px 24px 0;
  }
}
@media (max-width: 820px) {
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 650px) {
  .site-header {
    height: 66px;
  }
  .brand {
    font-size: 12px;
    gap: 9px;
  }
  .brand svg {
    width: 27px;
    height: 27px;
  }
  .page {
    padding: 28px 18px 0;
  }
  .eyebrow {
    font-size: 12px;
  }
  h1 {
    font-size: 23px;
    letter-spacing: 0;
    line-height: 1.65;
    margin-top: 11px;
  }
  .site-footer {
    margin-top: 30px;
    font-size: 11px;
  }
  .listening-song {
    margin: 0 0 8px;
    min-height: 0;
    display: flex;
    gap: 9px;
    align-items: baseline;
  }
  .listening-song .eyebrow {
    font-size: 10px;
    flex-shrink: 0;
  }
  .listening-song h3 {
    margin: 0;
    line-height: 1.7;
  }
  .player-frame {
    min-height: 200px;
    max-height: 200px;
    aspect-ratio: auto;
  }
  .player-placeholder {
    min-height: 200px;
    gap: 9px;
  }
  .player-placeholder p {
    font-size: 11px;
  }
  .player-frame iframe,
  .player-frame #youtube-player {
    min-height: 200px;
  }
  .player-status {
    font-size: 10px;
    margin: 6px 0 0;
    min-height: 0;
    line-height: 1.7;
  }
  .player-links {
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    margin-top: 3px;
    font-size: 10px;
  }
  .player-links .text-button {
    font-size: 10px;
    min-height: 28px;
    padding: 4px 0;
  }
  .youtube-terms {
    margin: 4px 0 0;
  }
  .source-choice {
    font-size: 10px;
    margin: 5px 0 8px;
  }
  .source-choice select {
    font-size: 16px;
    padding: 3px 6px;
  }
}
.youtube-terms {
  font-size: 11px;
}
.player-status {
  font-size: 12px;
}
.player-links,
.player-links .text-button {
  font-size: 12px;
}
@media (max-width: 650px) {
  .listening-song h3 {
    font-size: 13px;
  }
  .player-status,
  .player-links,
  .player-links .text-button {
    font-size: 11px;
  }
  .youtube-terms {
    font-size: 10px;
  }
}

@media (min-width: 821px) {
  .site-header {
    max-width: none;
  }
  .page {
    max-width: none;
  }
}
.site-header {
  height: auto;
  min-height: 80px;
  padding: 18px 32px;
}
.brand {
  min-width: 0;
}
.brand svg {
  flex-shrink: 0;
}
.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0;
}
.page {
  padding-top: 28px;
}
.listening-song {
  margin-top: 0;
}
.player-status:empty {
  display: none;
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 24px;
  }
  .page {
    padding-top: 24px;
  }
}
@media (max-width: 650px) {
  .site-header {
    min-height: 66px;
    padding: 14px 18px;
  }
  .brand h1 {
    font-size: 15px;
  }
  .page {
    padding-top: 20px;
  }
}
.comparison-player + .comparison-player {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.comparison-player .listening-song {
  min-height: 0;
  margin: 0 0 12px;
}
.comparison-player .player-frame iframe,
.comparison-player [data-field='mount'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}
.comparison-player .player-status {
  min-height: 0;
  margin: 8px 0;
}
.comparison-player .player-links {
  margin-top: 9px;
}
.segment-choices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.segment-choice {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  min-height: 36px;
  background: white;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.segment-choice[aria-pressed='true'] {
  background: #eef3f7;
  border-color: #9baab8;
}
@media (max-width: 650px) {
  .comparison-player + .comparison-player {
    margin-top: 18px;
    padding-top: 18px;
  }
  .segment-choice {
    min-height: 42px;
  }
}
.provisional-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px;
  border: 1px solid #c7bda8;
  border-radius: 0;
  background: transparent;
  color: #75664e;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
