:root {
  --bg: #0a0a0c;
  --fg: #f4f1ec;
  --fg-dim: #a5a09a;
  --line: rgba(244, 241, 236, 0.16);
  --panel: rgba(18, 18, 21, 0.72);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: var(--s5) var(--s3);
}
/* 背景：カバー画像をぼかして敷く（参考ページと同じ表現） */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: blur(48px) saturate(1.1) brightness(0.5);
  transform: scale(1.15);
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.cover {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: #15151a;
}

.head {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  text-align: center;
}
.title {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* 案内文とサービス一覧は1つのグループ。カード内の他ブロックより近くに置く */
.picker {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.lead {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.play {
  flex: none;
  padding: var(--s1) var(--s3);
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.play:hover,
.play:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

/* プレイリスト未作成でアーティストページへ飛ばす行。押せるが、主たる導線ではないので一段落とす */
.service[data-status='artist'] .play {
  border-color: var(--line);
  color: var(--fg-dim);
  /* 文言が長いぶん、サービス名を押し出さないよう一段小さくする */
  font-size: 12px;
  padding: var(--s1) var(--s2);
  letter-spacing: 0.02em;
}
.service[data-status='artist'] .play:hover,
.service[data-status='artist'] .play:focus-visible {
  background: var(--fg-dim);
  color: var(--bg);
}

.foot {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.bg-shade {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
}
.show-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 24px;
}
.show-list a {
  color: inherit;
  text-decoration: none;
}
.show-list img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
}
.season {
  color: var(--fg-dim);
  font-size: 12px;
}
.note {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
.preview-bar {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #17171c;
}
.preview-bar button {
  margin: 8px 0;
  padding: 12px;
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.preview-bar p {
  font-size: 13px;
}
.empty-cover {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--fg-dim);
}
.errors {
  color: #ffb5b5;
}
.result {
  white-space: pre-wrap;
}
@media (max-width: 370px) {
  body {
    padding: 24px 16px;
  }
  .service {
    gap: 8px;
    padding: 12px;
  }
  .name {
    font-size: 14px;
  }
  .service[data-status='artist'] .play {
    padding: 8px;
    font-size: 11px;
  }
}
