/* ベース */

:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #1f2230;
  background: #f7f6ff;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(120% 100% at 50% 0%, #fefaff 0%, #f6f2ff 55%, #f9f8ff 100%);
  color: #1f2230;
  min-height: 100vh;
}

.constellation-body {
  margin: 0;
  padding: 0;
  background: radial-gradient(140% 100% at 50% 0%, #141b33 0%, #0b1024 50%, #060813 100%);
  position: relative;
  z-index: 0;
  min-height: 100vh;
  color: #e9ecff;
}

/* full-screen starry overlay */
.constellation-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(180% 160% at 20% 20%, rgba(80, 110, 200, 0.12), transparent 45%),
    radial-gradient(200% 140% at 80% 10%, rgba(180, 120, 200, 0.1), transparent 40%),
    url("images/night-sky.jpg") center/cover no-repeat;
  mix-blend-mode: normal;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* keep main content above the overlay */
.site-header,
.page-inner,
.site-footer,
.constellation-panel {
  position: relative;
  z-index: 1;
}

/* 共通ヘッダー・フッター */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 80px 16px 32px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(220, 210, 255, 0.92) 0%, rgba(240, 230, 255, 0.92) 100%),
    url("images/top.jpg") center/cover no-repeat;
  background-blend-mode: lighten;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(160, 120, 255, 0.08);
}

.header-flex {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title-block {
  text-align: left;
}

.hero-link {
  white-space: nowrap;
  background: linear-gradient(135deg, #0f1b47 0%, #15295f 100%);
  border: 1px solid #24366f;
  color: #ffe48a !important;
  box-shadow: 0 3px 12px rgba(15, 27, 71, 0.25);
}

.hero-link:hover {
  background: linear-gradient(135deg, #12225a 0%, #1c3375 100%);
  color: #fff2bf !important;
  border-color: #2d468a;
  box-shadow: 0 6px 16px rgba(15, 27, 71, 0.35);
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px 12px 12px;   /* ← かなりスリムに */
  }

  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-header h1 {
    font-size: 1.25rem;        /* 少しだけ小さく */
    letter-spacing: 0.06em;    /* 詰まりすぎないよう微調整 */
  }

  .site-header p {
    font-size: 0.75rem;        /* ちょっと控えめに */
  }
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: #1f1f2e;
}

.site-header p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #6f6c85;
}

.subtitle-en {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #a7b2e8;
}

.constellation-body .site-header {
  background:
    linear-gradient(135deg, rgba(25,35,70,0.8) 0%, rgba(15,20,40,0.9) 100%),
    radial-gradient(circle at 20% 20%, rgba(90,120,200,0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(200,120,200,0.18), transparent 35%);
  background-blend-mode: screen;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120,150,255,0.14);
  padding: 36px 16px 16px;
}

.constellation-body .site-header h1 {
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: #e9ecff;
}

.constellation-body .site-header p {
  font-size: 0.82rem;
  color: #b8c0ff;
}

.constellation-body .subtitle-en {
  font-size: 0.75rem;
  color: #a7b2e8;
}

.site-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  padding: 16px 0 24px;
}

.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* 戻るリンク */

.back-link {
  display: inline-block;
  margin: 4px 0 12px;
  font-size: 0.95rem;
  color: #c75a8a;
  background: linear-gradient(90deg, #fbeaf3 0%, #fff4fa 100%);
  border: 1px solid #f3c1d8;
  border-radius: 999px;
  padding: 7px 22px 7px 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(200,90,140,0.07);
  text-decoration: none;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.12s;
}

.back-link:hover {
  background: linear-gradient(90deg, #f7d1e6 0%, #fbeaf3 100%);
  color: #a73b6b;
  border-color: #e8a6c2;
  box-shadow: 0 4px 16px rgba(200,90,140,0.13);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

/* ヘッダー右側の星座マップリンク用の上書き */
.back-link.hero-link {
  background: linear-gradient(135deg, #0f1b47 0%, #15295f 100%) !important;
  border: 1px solid #24366f !important;
  color: #ffe48a !important;
  box-shadow: 0 3px 12px rgba(15, 27, 71, 0.25);
}

.back-link.hero-link:hover {
  background: linear-gradient(135deg, #12225a 0%, #1c3375 100%) !important;
  color: #fff2bf !important;
  border-color: #2d468a !important;
  box-shadow: 0 6px 16px rgba(15, 27, 71, 0.35);
}

/* 今日の一曲おみくじ */

.omikuji-section {
  max-width: 960px;
  margin: 16px auto 8px;
  padding: 0 16px;
}

.omikuji-card {
  background: linear-gradient(135deg, #fdf7ff 0%, #f4f8ff 100%);
  border: 1px solid rgba(150, 120, 200, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 18px 16px;
  backdrop-filter: blur(6px);
}

.omikuji-head {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.omikuji-label {
  font-size: 0.85rem;
  color: #7a6c9b;
  margin: 0 0 2px;
}

.omikuji-title {
  font-size: 1.2rem;
  margin: 0;
}

.omikuji-note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.omikuji-button {
  background: linear-gradient(90deg, #c77ad9, #6fa8ff);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(110, 130, 220, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.omikuji-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(110, 130, 220, 0.3);
}

.omikuji-button:active {
  transform: translateY(0);
  opacity: 0.9;
}

.omikuji-result {
  margin-top: 12px;
  border-top: 1px dashed rgba(120, 120, 160, 0.3);
  padding-top: 12px;
}

.omikuji-placeholder {
  margin: 0;
  color: #666;
}

.omikuji-track-title {
  font-size: 1.05rem;
  margin: 0 0 4px;
  font-weight: 700;
}

.omikuji-track-title span {
  font-size: 0.9rem;
  color: #6c6c6c;
  margin-left: 6px;
}

.omikuji-track-meta {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 6px;
}

.omikuji-message {
  margin: 4px 0 10px;
  font-size: 0.95rem;
  color: #4a4a6f;
  font-weight: 600;
}

.omikuji-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.omikuji-link-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(120, 120, 160, 0.2);
  color: #4a4a6f;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.omikuji-link-btn:hover {
  background: #f7f9ff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* アルバムインデックス（index.html） */

.album-index-section {
  max-width: 960px;
  margin: 24px auto 40px;
  padding: 0 16px 32px;
}

.album-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.album-index-card {
  background: #ffffffcc;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.album-index-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background: #ffffffee;
}

.album-card-image {
  width: 100%;
  max-width: 240px;      /* サムネの最大幅（お好みで 200〜280px に調整可） */
  aspect-ratio: 1 / 1;   /* ★ 正方形にする */
  height: auto;
  border-radius: 12px;
  object-fit: cover;     /* サムネイルを自然にトリミング */
  margin: 0 auto 10px;   /* 中央寄せ */
  display: block;
}

.album-card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.album-card-title span {
  font-size: 0.85rem;
  color: #777;
  margin-left: 6px;
}

.album-card-meta {
  font-size: 0.8rem;
  color: #777;
}

.album-card-desc {
  font-size: 0.86rem;
  color: #555;
}

/* アルバム詳細ページのミニヘッダー（戻る＋タイトル） */
.album-page-header {
  position: sticky;
  top: 90px;              /* ← ここを 90 に変更（完全にヘッダーの下に出す） */
  z-index: 80;
  background: radial-gradient(circle at top,
    rgba(253, 251, 255, 0.96),
    rgba(240, 242, 255, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding: 6px 16px 4px;
}

.album-back-and-title {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
}

.album-back-and-title .back-link {
  font-size: 0.86rem;
  text-decoration: none;
}

.album-back-and-title .back-link:hover {
  text-decoration: underline;
}

.album-page-title {
  font-size: 0.9rem;
  color: #999;
}

/* アルバム詳細（album.html） */

.album {
  background: #ffffffcc;
  border-radius: 16px;
  padding: 24px 20px 20px;
  margin-top: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
}

/* アルバム詳細ページの上部カード（スクロールで流す） */
.album-header-card {
  position: static;
  top: auto;
  z-index: auto;
}

.album-header-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.album-jacket-large {
  width: 180px;
  max-width: 40%;
  border-radius: 16px;
  object-fit: cover;
}

.album-header {
  flex: 1;
}

.album-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.album-title span {
  font-size: 0.9rem;
  color: #777;
  margin-left: 6px;
}

.album-meta {
  font-size: 0.8rem;
  color: #777;
  margin-top: 6px;
}

.album-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 10px 0 0;
  line-height: 1.6;
}

/* 曲一覧 */
.album-detail {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.tracks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.track-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card {
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}

.track-card--clickable {
  cursor: pointer;
}

.track-card--clickable:hover {
  background: #f0f4ff;
  border-color: #c5d2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}

/* 左の番号バッジ */
.track-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e0e5ff;
  color: #354072;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* 右側の本文領域 */
.track-main {
  flex: 1;
}

.track-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.track-title span {
  font-size: 0.8rem;
  color: #777;
  margin-left: 6px;
}

.track-note {
  font-size: 0.82rem;
  color: #555;
  margin: 0;
}

.track-title {
  font-size: 1rem;
  font-size: 1rem;
  margin: 0;
}

.track-title span {
  font-size: 0.8rem;
  color: #777;
  margin-left: 6px;
}

.track-note {
  font-size: 0.82rem;
  color: #555;
  margin: 0;
}
/* Spotify専用ボタン */
.track-go-button.spotify {
  background: linear-gradient(90deg, #1db954 0%, #1ed760 100%);
  color: #fff;
  border: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(30,185,84,0.09);
}
.track-go-button.spotify:hover {
  background: linear-gradient(90deg, #17a74a 0%, #1db954 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30,185,84,0.18);
}
.track-go-button.youtube {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff7a59 100%);
  color: #fff;
  border: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(255,77,77,0.12);
}
.track-go-button.youtube:hover {
  background: linear-gradient(90deg, #e84545 0%, #ff5f45 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,77,77,0.18);
}

.track-links {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

/* ▶ ボタン（1つだけ） */

.track-go-button {
  font-size: 1.2rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d0d4ff;
  background: #f9f9ff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.track-go-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  background: #eef0ff;
}

/* 曲詳細（song.html） */

.song-header {
  margin-top: 4px;
  margin-bottom: 10px;
}
.song-player.pending {
  background: #f8f8ff;
  border: 1px dashed #c7ccff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.pending-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #4c5cff;
}
.pending-text {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}
.song-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}

.song-title {
  font-size: 1.4rem;
  margin: 0;
}

.song-title span {
  font-size: 0.9rem;
  color: #777;
  margin-left: 6px;
}

.song-meta {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

.song-back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}

/* プレイヤー */

.song-player {
  margin: 12px 0 16px;
}

.song-player iframe {
  width: 100%;
  max-width: 640px;
  height: 360px;
  border: none;
  border-radius: 12px;
}

/* タブ */

.song-tabs {
  margin-top: 8px;
}

.song-tab-header {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px;
  background: #e5e7ff;
  margin-bottom: 10px;
}

.song-tab-button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  color: #555;
}

.song-tab-button.active {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: #222;
}

.song-tab-panels {
  margin-top: 4px;
}

.song-tab-panel {
  display: none;
}

.song-tab-panel.active {
  display: block;
}

/* 歌詞・解説ブロック */

.lyrics-block {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 12px 10px;
  border-radius: 12px;
  background: #ffffffee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.notice {
  font-size: 0.75rem;
  color: #888;
  margin-top: 6px;
}

.analysis-block {
  background: #ffffffee;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 8px;
}

.analysis-block h3 {
  margin-top: 0;
  font-size: 1rem;
}

.constellation-page {
  padding-top: 12px;
}

.constellation-panel {
  background: rgba(12, 16, 35, 0.8);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 16px;
  margin-top: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 150, 255, 0.15);
}

.constellation-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.constellation-controls label {
  display: block;
  font-size: 0.85rem;
  color: #d3b98a;
  margin-bottom: 4px;
}

.constellation-controls select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #f3d472;
  background: linear-gradient(135deg, #fff7d9 0%, #ffe9a8 100%);
  box-shadow: 0 2px 8px rgba(243, 212, 114, 0.35);
  min-width: 180px;
  color: #4a3b14;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.control-meta {
  font-size: 0.85rem;
  color: #666;
}

.constellation-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 200, 0.25);
  overflow: hidden;
  background:
    radial-gradient(160% 120% at 20% 20%, rgba(80, 110, 200, 0.1), transparent 50%),
    radial-gradient(200% 140% at 80% 10%, rgba(180, 120, 200, 0.08), transparent 40%),
    url("images/night-sky.jpg"),
    #070b18;
  background-size: auto, auto, cover, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-blend-mode: screen, screen, normal, normal;
}

#constellationCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.constellation-tooltip {
  position: absolute;
  background: rgba(10, 14, 30, 0.9);
  border: 1px solid rgba(120, 150, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #e8edff;
  pointer-events: auto;
  min-width: 180px;
  max-width: 280px;
  box-sizing: border-box;
  word-break: break-word;
}

.constellation-tooltip .tt-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.constellation-tooltip .tt-meta {
  color: #a0a8d8;
  margin-bottom: 4px;
}

.constellation-tooltip .tt-const {
  font-size: 0.82rem;
  color: #7a6c9b;
  margin-bottom: 4px;
}

.constellation-tooltip .tt-coord {
  font-size: 0.78rem;
  color: #777;
}

.constellation-tooltip .tt-link {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid #a8b3e6;
  border-radius: 8px;
  background: linear-gradient(135deg, #fefeff 0%, #e6ecff 100%);
  color: #2f365b;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.constellation-tooltip .tt-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.constellation-legend {
  margin-top: 12px;
}

.legend-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d0d6ff;
  margin-bottom: 6px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.legend-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(18, 24, 50, 0.8);
  border: 1px solid rgba(120, 150, 255, 0.18);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-name {
  font-weight: 600;
  color: #e8edff;
}

.legend-keywords {
  font-size: 0.82rem;
  color: #a8b3e6;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.legend-tooltip {
  position: fixed;
  background: rgba(20, 24, 44, 0.92);
  color: #f7f2e8;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 220, 140, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  max-width: 240px;
  z-index: 10;
  pointer-events: none;
  display: none;
}

/* ==== Album Index – Jacket Image Fix ==== */
.album-card img {
  width: 100%;
  max-width: 280px;        /* ← サムネの最大幅（お好みで調整可能） */
  aspect-ratio: 4 / 3;     /* ← 必ず綺麗な比率で切れる */
  object-fit: cover;       /* ← ジャケットを自然にトリミング */
  border-radius: 12px;
  margin: 0 auto 12px;
  display: block;
}

/* ==== Secret Thumbnail Gift Room ==== */

.secret-body {
  background: radial-gradient(160% 120% at 20% 10%, #fefaff 0%, #f6f3ff 50%, #eef2ff 100%);
  color: #1d2140;
}

.secret-header {
  background:
    linear-gradient(135deg, rgba(27, 32, 74, 0.85) 0%, rgba(13, 19, 46, 0.9) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 214, 142, 0.2), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(151, 177, 255, 0.22), transparent 35%);
  background-blend-mode: screen;
  color: #eaf0ff;
  padding: 36px 16px 22px;
}

.secret-header h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.secret-header .subtitle-en {
  color: #c8d6ff;
  text-align: left;
  display: block;
  margin-left: 0;
}

.secret-header-flex {
  align-items: flex-start;
}

.secret-note {
  margin: 8px 0 0;
  color: #c7cdee;
  font-size: 0.9rem;
}

.secret-copy-btn {
  align-self: flex-start;
}

.secret-main {
  margin-top: 14px;
  padding-bottom: 40px;
}

.secret-card {
  background: #ffffffee;
  border: 1px solid rgba(130, 120, 200, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 16px;
}

.secret-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.secret-label {
  margin: 0;
  font-size: 0.85rem;
  color: #736ca0;
  letter-spacing: 0.02em;
}

.secret-title {
  margin: 2px 0 0;
  font-size: 1.2rem;
}

.secret-mini-note {
  font-size: 0.85rem;
  color: #555;
}

.secret-inputs {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secret-input-label {
  font-size: 0.9rem;
  color: #4c4a70;
  font-weight: 600;
}

.secret-textarea {
  width: 100%;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid rgba(120, 120, 170, 0.2);
  padding: 12px;
  font-size: 0.95rem;
  background: #fbfbff;
  resize: vertical;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.secret-input,
.secret-file {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(120, 120, 170, 0.2);
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fbfbff;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.secret-file {
  padding: 10px;
  background: #fff;
}

.secret-hints {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #666;
}

.secret-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.secret-btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.secret-btn.sm {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.secret-btn.primary {
  background: linear-gradient(90deg, #c57aff, #6a9dff);
  border-color: rgba(120, 120, 200, 0.2);
  color: #fff;
  box-shadow: 0 10px 20px rgba(120, 140, 255, 0.25);
}

.secret-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(120, 140, 255, 0.32);
}

.secret-btn.ghost {
  background: #fff;
  border: 1px solid rgba(120, 120, 170, 0.26);
  color: #3e3d60;
}

.secret-btn.ghost:hover {
  background: #f6f7ff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.secret-status {
  font-size: 0.9rem;
  color: #777;
  text-align: right;
}

.secret-status[data-tone="success"] {
  color: #1c8c5f;
}

.secret-status[data-tone="warn"] {
  color: #c45a5a;
}

.secret-status[data-tone="idle"] {
  color: #777;
}

.secret-empty {
  margin: 12px 0;
  color: #777;
  font-size: 0.95rem;
}

.secret-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.thumb-card {
  padding: 0;
  overflow: hidden;
}

.thumb-image-wrap {
  position: relative;
  background: #0e1028;
  min-height: 180px;
  border-radius: 12px 12px 0 0;
  display: grid;
  place-items: center;
}

.thumb-image-wrap.loading {
  background: linear-gradient(135deg, #0d1330, #11153c);
}

.thumb-image {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}

.thumb-audio-wrap {
  min-height: 220px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 142, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(151, 177, 255, 0.22), transparent 35%),
    linear-gradient(135deg, #101532 0%, #171d45 100%);
}

.thumb-audio-cover {
  aspect-ratio: 1 / 1;
  max-width: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.thumb-audio-icon {
  color: #eef3ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.thumb-audio-player {
  padding: 12px 12px 0;
}

.thumb-audio-player audio {
  width: 100%;
}

.thumb-loader {
  color: #c4cbff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thumb-loader.failed {
  color: #f4a2b2;
}

.thumb-meta {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumb-id {
  font-size: 0.9rem;
  color: #3b3a5c;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.thumb-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb-note {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.thumb-kind {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #50608f;
  background: #eef3ff;
  border: 1px solid rgba(120, 140, 200, 0.18);
}

.thumb-direct {
  color: #5a6bff;
  text-decoration: none;
  font-weight: 600;
}

.thumb-direct:hover {
  text-decoration: underline;
}

.secret-footer {
  color: #9aa0c2;
}

@media (max-width: 640px) {
  .secret-header {
    padding: 18px 14px 14px;
  }

  .secret-header h1 {
    font-size: 1.25rem;
  }

  .secret-card {
    padding: 14px;
  }

  .secret-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Orbit discography home
   ========================= */

.discography-home {
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(213, 224, 255, 0.72), transparent 54%),
    linear-gradient(180deg, #f8f6ff 0%, #f7f8ff 48%, #fffaf5 100%);
}

.orbit-site-header {
  padding: 18px 24px;
  background: rgba(250, 248, 255, 0.86);
  background-image: none;
  border-bottom: 1px solid rgba(91, 92, 132, 0.12);
  box-shadow: none;
}

.orbit-site-header .site-title-block h1 {
  font-size: 1.28rem;
  letter-spacing: 0.18em;
}

.orbit-site-header .site-title-block p {
  margin-top: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.home-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.home-nav a {
  color: #514f68;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.home-nav a:hover {
  color: #8a5a9b;
}

.orbit-discography-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 12px;
}

.orbit-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.orbit-kicker {
  margin: 0 0 6px;
  color: #807b99;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.orbit-section-head h2,
.album-list-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

#orbit-heading {
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
}

.album-view-toggle,
.orbit-album-link {
  border: 1px solid rgba(104, 105, 150, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #4d4d68;
  padding: 9px 16px;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.album-view-toggle:hover,
.orbit-album-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 37, 77, 0.12);
}

.album-orbit {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(126, 151, 255, 0.25), transparent 18%),
    radial-gradient(circle at 50% 45%, rgba(180, 128, 205, 0.15), transparent 40%),
    url("images/night-sky.jpg") center / cover no-repeat,
    #080c1d;
  box-shadow: 0 28px 70px rgba(26, 29, 68, 0.22);
  color: #f6f2ff;
}

.album-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.04), rgba(5, 8, 22, 0.6));
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 40%;
  border: 1px solid rgba(210, 220, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: none;
}

.orbit-ring-outer {
  width: 86%;
  height: 65%;
}

.orbit-ring-inner {
  width: 59%;
  height: 42%;
  transform: translate(-50%, -50%) rotate(12deg);
}

.orbit-album-layer {
  position: absolute;
  inset: 0;
}

.orbit-album-star {
  position: absolute;
  z-index: 3;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8f5ff;
  cursor: pointer;
  text-align: center;
  animation: orbit-star-drift 5.5s ease-in-out infinite alternate;
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s ease,
    opacity 0.35s ease;
}

.orbit-album-star img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(235, 239, 255, 0.7);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.orbit-album-star span {
  display: block;
  margin-top: 7px;
  font-size: 0.72rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px #050716;
}

.orbit-album-star:hover img,
.orbit-album-star:focus-visible img {
  box-shadow: 0 0 0 5px rgba(255, 234, 156, 0.18), 0 0 28px rgba(255, 234, 156, 0.5);
}

.orbit-album-star.is-active {
  width: 178px;
  z-index: 5;
  animation-duration: 7s;
}

.orbit-album-star.is-active img {
  border-color: #fff1a9;
  box-shadow: 0 0 0 7px rgba(255, 238, 158, 0.1), 0 0 42px rgba(255, 232, 130, 0.38);
}

.orbit-album-star.is-active span {
  opacity: 0;
}

.orbit-pos-p0 {
  left: calc(50% - 89px);
  top: 68px;
}

.orbit-pos-m1 { left: 16%; top: 128px; animation-delay: -1s; }
.orbit-pos-p1 { right: 16%; top: 138px; animation-delay: -2.5s; }
.orbit-pos-m2 { left: 5%; top: 340px; animation-delay: -3.2s; }
.orbit-pos-p2 { right: 5%; top: 350px; animation-delay: -4.1s; }
.orbit-pos-m3 { left: 22%; bottom: 58px; animation-delay: -2.1s; }
.orbit-pos-p3 { right: 22%; bottom: 54px; animation-delay: -4.8s; }

@keyframes orbit-star-drift {
  from { transform: translate3d(-4px, -5px, 0); }
  to { transform: translate3d(6px, 7px, 0); }
}

.orbit-focus-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 282px;
  width: min(440px, 46%);
  transform: translateX(-50%);
  text-align: center;
}

.orbit-album-meta {
  margin: 0 0 5px;
  color: #bbc4e8;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.orbit-album-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.orbit-album-title-en {
  margin: 6px 0 15px;
  color: #c9cdea;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.orbit-album-description {
  margin: 0 auto 22px;
  color: #e3e5f5;
  font-size: 0.9rem;
  line-height: 1.7;
}

.orbit-album-link {
  display: inline-block;
  border-color: rgba(255, 237, 154, 0.55);
  background: rgba(20, 28, 65, 0.82);
  color: #fff0a6;
}

.orbit-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(8, 12, 29, 0.6);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.orbit-arrow-prev { left: 18px; }
.orbit-arrow-next { right: 18px; }

.orbit-position {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #aeb6db;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.album-index-section--orbit {
  scroll-margin-top: 110px;
}

.album-index-section--orbit[hidden] {
  display: none;
}

.album-list-heading {
  margin-bottom: 18px;
}

.discography-home .omikuji-section {
  margin-top: 42px;
}

@media (max-width: 700px) {
  .orbit-site-header {
    padding: 13px 16px;
  }

  .orbit-site-header .header-flex {
    flex-direction: row;
    align-items: center;
  }

  .home-nav {
    gap: 12px;
  }

  .discography-home .home-nav a:first-child,
  .discography-home .home-nav a:nth-child(2) {
    display: none;
  }

  .profile-page .home-nav a[aria-current="page"] {
    display: none;
  }

  .orbit-section-head {
    align-items: flex-start;
  }

  .album-orbit {
    min-height: 610px;
    border-radius: 20px;
  }

  .orbit-ring-outer {
    width: 120%;
    height: 56%;
  }

  .orbit-ring-inner {
    width: 82%;
    height: 38%;
  }

  .orbit-album-star {
    width: 67px;
  }

  .orbit-album-star.is-active {
    width: 138px;
  }

  .orbit-pos-p0 {
    left: calc(50% - 69px);
    top: 70px;
  }

  .orbit-pos-m1 { left: -10px; top: 185px; }
  .orbit-pos-p1 { right: -10px; top: 185px; }
  .orbit-pos-m2,
  .orbit-pos-p2,
  .orbit-pos-m3,
  .orbit-pos-p3 {
    display: none;
  }

  .orbit-focus-copy {
    top: 278px;
    width: 78%;
  }

  .orbit-arrow {
    top: 47%;
  }

  .orbit-arrow-prev { left: 10px; }
  .orbit-arrow-next { right: 10px; }
}

@media (max-width: 460px) {
  .orbit-discography-section {
    padding-inline: 10px;
  }

  .orbit-section-head {
    padding-inline: 6px;
  }

  .orbit-section-head h2 {
    font-size: 1.35rem;
  }

  .album-view-toggle {
    padding: 8px 12px;
    font-size: 0.76rem;
  }
}

/* =========================
   Cosmic dark theme
   ========================= */

body:not(.constellation-body) {
  color: #edf0ff;
  background:
    radial-gradient(100% 70% at 14% 0%, rgba(70, 88, 160, 0.24), transparent 50%),
    radial-gradient(90% 65% at 86% 12%, rgba(117, 70, 145, 0.18), transparent 48%),
    linear-gradient(180deg, #080d20 0%, #0c1228 48%, #070b18 100%);
  background-attachment: fixed;
}

body:not(.constellation-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 28%, rgba(255,255,255,0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 80%, rgba(255,255,255,0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 22%, rgba(255,255,255,0.76) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 64%, rgba(255,255,255,0.7) 0 1px, transparent 1.5px);
  background-size: 270px 220px, 330px 280px, 290px 250px, 360px 310px, 310px 270px, 340px 300px;
}

body:not(.constellation-body) .site-header,
.orbit-site-header {
  background: rgba(7, 12, 29, 0.82);
  background-image: none;
  border-bottom-color: rgba(168, 181, 240, 0.14);
  backdrop-filter: blur(16px);
}

body:not(.constellation-body) .site-header h1 {
  color: #f4f1ff;
}

body:not(.constellation-body) .site-header p,
body:not(.constellation-body) .subtitle-en {
  color: #aeb8df;
}

body:not(.constellation-body) .home-nav a {
  color: #ccd3f1;
}

body:not(.constellation-body) .home-nav a:hover,
body:not(.constellation-body) .home-nav a[aria-current="page"] {
  color: #ffe9a0;
}

.discography-home,
.profile-page {
  background: transparent;
}

.orbit-section-head h2,
.album-list-heading h2,
.profile-copy h2 {
  color: #f1efff;
}

.orbit-kicker {
  color: #99a7d7;
}

.album-view-toggle {
  border-color: rgba(177, 188, 232, 0.3);
  background: rgba(17, 25, 57, 0.78);
  color: #e7eaff;
}

.album-view-toggle:hover {
  background: rgba(31, 42, 82, 0.94);
}

body:not(.constellation-body) .omikuji-card,
body:not(.constellation-body) .album,
body:not(.constellation-body) .album-index-card,
body:not(.constellation-body) .lyrics-block,
body:not(.constellation-body) .analysis-block,
body:not(.constellation-body) .song-player.pending {
  color: #edf0ff;
  background: linear-gradient(135deg, rgba(24, 33, 70, 0.88), rgba(16, 24, 53, 0.82));
  border: 1px solid rgba(167, 179, 229, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

body:not(.constellation-body) .omikuji-label,
body:not(.constellation-body) .album-card-meta,
body:not(.constellation-body) .album-title span,
body:not(.constellation-body) .album-meta,
body:not(.constellation-body) .song-title span,
body:not(.constellation-body) .song-meta,
body:not(.constellation-body) .notice {
  color: #aeb7da;
}

body:not(.constellation-body) .omikuji-note,
body:not(.constellation-body) .omikuji-placeholder,
body:not(.constellation-body) .omikuji-track-meta,
body:not(.constellation-body) .album-card-desc,
body:not(.constellation-body) .album-desc,
body:not(.constellation-body) .track-note,
body:not(.constellation-body) .pending-text {
  color: #cad0ea;
}

body:not(.constellation-body) .omikuji-message {
  color: #f6e7ae;
}

body:not(.constellation-body) .omikuji-result {
  border-top-color: rgba(172, 184, 227, 0.22);
}

body:not(.constellation-body) .omikuji-link-btn,
body:not(.constellation-body) .song-tab-button {
  border-color: rgba(166, 178, 226, 0.25);
  background: rgba(21, 30, 65, 0.88);
  color: #e4e8ff;
}

body:not(.constellation-body) .album-index-card:hover {
  background: rgba(33, 43, 83, 0.92);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

body:not(.constellation-body) .album-card-title,
body:not(.constellation-body) .album-title,
body:not(.constellation-body) .track-title,
body:not(.constellation-body) .song-title,
body:not(.constellation-body) .analysis-block h3 {
  color: #f2f0ff;
}

body:not(.constellation-body) .album-card-title span,
body:not(.constellation-body) .track-title span {
  color: #aeb7da;
}

body:not(.constellation-body) .album-page-header {
  background: rgba(8, 13, 31, 0.9);
  border-bottom-color: rgba(168, 181, 240, 0.12);
}

body:not(.constellation-body) .album-page-title {
  color: #aeb7da;
}

/* アルバム・曲詳細は作品本文を早く見せるコンパクトヘッダー */
.detail-page .site-header {
  padding: 12px 20px 10px;
}

.detail-page .site-header .header-flex {
  max-width: 960px;
}

.detail-page .site-header h1 {
  font-size: 1.05rem;
  letter-spacing: 0.07em;
}

.detail-page .site-header p {
  margin-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.detail-page .site-header .hero-link {
  margin: 0;
  padding: 6px 11px;
  font-size: 0.76rem;
}

.detail-page .album-page-header {
  top: 58px;
}

@media (max-width: 600px) {
  .detail-page .site-header {
    padding: 10px 12px 8px;
  }

  .detail-page .site-header .header-flex {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .detail-page .site-header h1 {
    font-size: 0.95rem;
  }

  .detail-page .site-header p {
    font-size: 0.6rem;
  }

  .detail-page .site-header .hero-link {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .detail-page .album-page-header {
    top: 50px;
  }
}

body:not(.constellation-body) .track-card {
  color: #edf0ff;
  background: rgba(17, 25, 55, 0.82);
  border-color: rgba(163, 176, 225, 0.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body:not(.constellation-body) .track-card--clickable:hover {
  background: rgba(31, 43, 84, 0.9);
  border-color: rgba(161, 181, 255, 0.38);
}

body:not(.constellation-body) .track-badge {
  background: rgba(120, 140, 220, 0.2);
  color: #e2e8ff;
}

body:not(.constellation-body) .song-tab-header {
  background: rgba(33, 43, 84, 0.9);
}

body:not(.constellation-body) .song-tab-button.active {
  background: #e9edff;
  color: #182044;
}

body:not(.constellation-body) .back-link {
  color: #f4dfa0;
  background: rgba(24, 34, 71, 0.88);
  border-color: rgba(236, 215, 146, 0.3);
}

body:not(.constellation-body) .back-link:hover {
  color: #fff1b5;
  background: rgba(38, 50, 93, 0.96);
  border-color: rgba(241, 221, 153, 0.5);
}

.profile-landscape img {
  border: 1px solid rgba(184, 194, 235, 0.18);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.36);
}

.profile-youtube-copy {
  color: #e4e8f9;
}

.profile-youtube-copy p:nth-child(3) {
  color: #aab4d8;
}

.profile-youtube-link {
  border-color: rgba(177, 188, 232, 0.3);
  background: rgba(20, 29, 63, 0.84);
  color: #f1e4ad;
}

.profile-youtube-link:hover {
  background: rgba(34, 45, 87, 0.96);
}

body:not(.constellation-body) .site-footer {
  color: #8f99bd;
}

@media (prefers-reduced-motion: reduce) {
  .orbit-album-star {
    animation: none;
    transition: none;
  }

  .album-view-toggle,
  .orbit-album-link {
    transition: none;
  }
}

/* =========================
   Profile page
   ========================= */

.profile-page {
  background:
    radial-gradient(100% 65% at 50% 0%, rgba(211, 218, 255, 0.72), transparent 58%),
    #f8f7ff;
}

.profile-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 64px;
}

.profile-landscape {
  margin: 0;
}

.profile-landscape img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(43, 45, 88, 0.14);
}

.profile-copy {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: 32px 70px;
  align-items: start;
  max-width: 920px;
  margin: 46px auto 0;
}

.profile-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.profile-youtube-copy {
  color: #3f3e52;
  font-size: 1rem;
  line-height: 1.9;
}

.profile-youtube-copy p {
  margin: 0 0 12px;
}

.profile-youtube-copy p:nth-child(2) {
  margin-top: 24px;
  font-size: 1.12rem;
}

.profile-youtube-copy p:nth-child(3) {
  color: #77738f;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.profile-youtube-link {
  display: inline-block;
  margin-top: 18px;
  border: 1px solid rgba(104, 105, 150, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #4d4d68;
  padding: 9px 17px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-youtube-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 37, 77, 0.12);
}

@media (max-width: 700px) {
  .profile-main {
    padding: 18px 12px 48px;
  }

  .profile-landscape img {
    border-radius: 16px;
  }

  .profile-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
    padding: 0 8px;
  }
}

/* Dark theme final profile overrides */
.profile-page {
  color: #edf0ff;
  background: transparent;
}

.profile-page .profile-copy h2 {
  color: #f1efff;
}

.profile-page .profile-youtube-copy {
  color: #e4e8f9;
}

.profile-page .profile-youtube-copy p:nth-child(3) {
  color: #aab4d8;
}

.profile-page .profile-youtube-link {
  border-color: rgba(177, 188, 232, 0.3);
  background: rgba(20, 29, 63, 0.84);
  color: #f1e4ad;
}

.profile-page .profile-youtube-link:hover {
  background: rgba(34, 45, 87, 0.96);
}
