:root {
  color-scheme: dark;
  --bg: #050506;
  --ink: #f8f7f4;
  --muted: #b5b0ad;
  --line: rgba(255, 255, 255, 0.13);
  --panel: #111113;
  --panel-2: #18181b;
  --accent: #ef1744;
  --accent-2: #ffffff;
  --soft: rgba(239, 23, 68, 0.12);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -110px, rgba(239, 23, 68, 0.28), transparent 330px),
    linear-gradient(180deg, #101012 0, #050506 340px),
    var(--bg);
  color: var(--ink);
}

.update-notice {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  left: 12px;
  z-index: 60;
  display: flex;
  width: min(calc(100% - 24px), 720px);
  min-height: 52px;
  margin: 0 auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(24, 24, 27, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.update-notice[hidden] {
  display: none;
}

.update-notice span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.update-notice-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.update-notice button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.update-notice button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: auto;
  max-width: none;
  margin: 0 16px;
  padding: max(14px, env(safe-area-inset-top)) 0 292px;
}

.app-shell.player-compact {
  padding-bottom: 158px;
}

.topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0 16px;
}

.topbar.compact {
  padding-bottom: 12px;
}

.topbar.compact .eyebrow {
  margin: 0;
}

.brand-logo {
  display: block;
  grid-column: 2;
  width: min(64vw, 280px);
  max-width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.icon-button,
.favorite-button,
.play-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #ef1744, #8d0922);
  box-shadow: 0 10px 22px rgba(239, 23, 68, 0.28);
  color: #fff;
  justify-self: start;
}

.topbar-action {
  grid-column: 3;
  grid-row: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.topbar-action.active {
  border-color: rgba(255, 205, 91, 0.52);
  background: rgba(255, 205, 91, 0.14);
  color: #ffd166;
}

.search-panel {
  display: grid;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.94);
  box-shadow: var(--shadow);
}

.search-box span {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: rgba(248, 247, 244, 0.42);
}

.clear-search-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.clear-search-button[hidden] {
  display: none;
}

.search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
}

.playlist-compact-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 52px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.94);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.playlist-compact-button span {
  color: var(--accent);
  font-size: 1rem;
}

.playlist-compact-button strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-history {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.search-history[hidden] {
  display: none;
}

.search-history::-webkit-scrollbar {
  display: none;
}

.search-history button {
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-wrap {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.78);
}

.select-wrap span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.select-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.playlist-box {
  display: grid;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.78);
}

.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.playlist-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.playlist-box[hidden] {
  display: none;
}

.playlist-head div {
  display: flex;
  gap: 6px;
}

.new-list-button,
.delete-list-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}

.delete-list-button {
  color: #ff8da2;
}

.sr-only-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.playlist-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.playlist-chips::-webkit-scrollbar {
  display: none;
}

.playlist-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.82rem;
}

.playlist-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.playlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.playlist-form[hidden] {
  display: none;
}

.playlist-form input,
.playlist-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.playlist-form input {
  min-width: 0;
  padding: 0 12px;
  outline: 0;
}

.playlist-form button {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.add-track-panel {
  margin-top: 12px;
}

.add-track-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 205, 91, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 205, 91, 0.08), rgba(239, 23, 68, 0.08)),
    rgba(17, 17, 19, 0.9);
  box-shadow: var(--shadow);
}

.add-track-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.add-track-heading strong {
  color: #ffd166;
  font-size: 0.92rem;
}

.add-track-heading button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.add-mode-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.add-mode-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 900;
}

.add-mode-tabs button.active {
  border-color: rgba(255, 205, 91, 0.58);
  background: rgba(255, 205, 91, 0.14);
  color: #ffd166;
}

.batch-file-drop {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 38px 24px;
  border: 3px dashed rgba(255, 205, 91, 0.48);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 205, 91, 0.15), transparent 48%),
    rgba(255, 205, 91, 0.06);
  color: #ffe1a1;
  cursor: pointer;
  text-align: center;
}

.batch-file-drop.dragging {
  border-color: #ffd166;
  background: rgba(255, 205, 91, 0.14);
}

.batch-file-drop input {
  width: min(100%, 480px);
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 205, 91, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.batch-drop-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 205, 91, 0.52);
  border-radius: 50%;
  color: #ffd166;
  font-size: 2.2rem;
  line-height: 1;
}

.batch-file-drop strong {
  margin-top: 16px;
  color: #ffe1a1;
  font-size: 1.25rem;
}

.batch-file-drop small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.batch-empty,
.batch-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.batch-progress {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 205, 91, 0.28);
  border-radius: 10px;
  background: rgba(255, 205, 91, 0.07);
}

.batch-progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #ffe1a1;
}

.batch-progress-percent {
  color: #ffd166;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.batch-progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.batch-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ffd166);
  transition: width 180ms ease;
}

.batch-progress.complete .batch-progress-track span {
  background: linear-gradient(90deg, #3aa76d, #8ee0b4);
}

.batch-progress small {
  color: var(--muted);
}

.batch-bulk {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.batch-bulk input,
.batch-bulk button {
  min-width: 0;
  min-height: 38px;
}

.batch-bulk label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.batch-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.batch-table {
  width: 100%;
  min-width: 1460px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.batch-table th,
.batch-table td {
  padding: 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.batch-table th {
  position: sticky;
  top: 0;
  background: #171719;
  color: var(--muted);
  white-space: nowrap;
}

.batch-table input:not([type="checkbox"]),
.batch-table select {
  width: 128px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.batch-table td:nth-child(2) input {
  width: 180px;
}

.batch-table td:nth-child(5) input {
  width: 190px;
}

.batch-table td:nth-child(6) input {
  width: 180px;
}

.batch-status {
  max-width: 84px;
  color: #ffd166;
  font-weight: 900;
}

.batch-rating {
  display: flex;
  gap: 1px;
  white-space: nowrap;
}

.batch-rating button {
  min-width: 24px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.32);
  font-size: 1.16rem;
}

.batch-rating button.active {
  color: #ffd166;
}

.batch-feedback-row td {
  padding: 9px 12px 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.75rem;
}

.batch-feedback-row strong {
  display: inline-block;
  margin-right: 12px;
}

.batch-feedback-row ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  margin: 0;
  padding-left: 18px;
}

.batch-feedback-row.warning td {
  background: rgba(255, 205, 91, 0.08);
  color: #ffe1a1;
}

.batch-feedback-row.error td {
  background: rgba(239, 23, 68, 0.09);
  color: #ffb7c5;
}

.batch-feedback-row.ok td {
  color: rgba(142, 224, 180, 0.72);
}

.batch-status.success {
  color: #8ee0b4;
}

.batch-status.error {
  color: #ff8da3;
}

.batch-actions button:last-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (max-width: 560px) {
  .batch-bulk {
    grid-template-columns: 1fr 1fr;
  }
}

body.batch-only .topbar,
body.batch-only .search-panel,
body.batch-only .status-row,
body.batch-only .daily-pick,
body.batch-only .track-list,
body.batch-only .pager,
body.batch-only .player {
  display: none;
}

body.batch-only .app-shell {
  width: min(1500px, calc(100% - 32px));
  max-width: none;
  padding-bottom: 32px;
}

body.batch-only .add-track-panel {
  margin-top: 24px;
}

body.batch-only .add-track-heading strong::after {
  content: " — PC専用";
  color: var(--muted);
  font-size: 0.76rem;
}

body.batch-only .add-mode-tabs {
  display: none;
}


.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.chip.active::before {
  content: "✓";
  margin-right: 5px;
  font-size: 0.72rem;
}

.chip.karaoke-filter {
  border-color: rgba(239, 23, 68, 0.42);
  color: #ffb7c5;
}

.chip.karaoke-filter.active {
  color: #fff;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 2px 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.daily-pick {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(239, 23, 68, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 23, 68, 0.16), rgba(18, 107, 90, 0.12)),
    rgba(255, 255, 255, 0.05);
}

.daily-pick-avatar {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.daily-pick-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.daily-pick-label {
  color: #ffb7c5;
  font-size: 0.72rem;
  font-weight: 900;
}

.daily-pick strong,
.daily-pick small,
.daily-pick em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-pick strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.daily-pick small {
  color: var(--muted);
  font-size: 0.78rem;
}

.daily-pick em {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 205, 91, 0.28);
  border-radius: 8px;
  background: rgba(255, 205, 91, 0.1);
  color: #ffe1a1;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.daily-pick-actions {
  display: flex;
  gap: 6px;
}

.daily-pick button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(239, 23, 68, 0.48);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.daily-pick button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.track-list {
  display: grid;
  gap: 10px;
}

.track-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  min-height: 106px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.92);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.track-card.active {
  border-color: rgba(239, 23, 68, 0.72);
  background: linear-gradient(90deg, rgba(239, 23, 68, 0.22), rgba(17, 17, 19, 0.98));
  box-shadow: inset 4px 0 0 var(--accent);
}

.track-card.is-playing {
  border-color: rgba(255, 205, 91, 0.42);
  background:
    linear-gradient(90deg, rgba(239, 23, 68, 0.26), rgba(18, 107, 90, 0.16)),
    rgba(17, 17, 19, 0.98);
  box-shadow:
    inset 4px 0 0 var(--accent),
    0 12px 24px rgba(239, 23, 68, 0.18);
}

.track-card.stage-launch {
  animation: cardStageLaunch 900ms ease-out;
}

.track-card.expanded {
  grid-template-rows: auto auto;
  border-color: rgba(239, 23, 68, 0.62);
  background: #151518;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.play-button {
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(145deg, #ef1744, #8d0922);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(239, 23, 68, 0.28);
  font-size: 1rem;
}

.track-main {
  min-width: 0;
}

.track-main h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.stage-transfer-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 250, 224, 1) 0 16%, rgba(255, 205, 91, 0.9) 34%, rgba(239, 23, 68, 0.42) 62%, transparent 74%);
  box-shadow:
    0 0 20px rgba(255, 235, 168, 0.85),
    0 0 42px rgba(239, 23, 68, 0.48),
    0 0 70px rgba(18, 107, 90, 0.22);
  pointer-events: none;
  z-index: 60;
  transform: translate(calc(var(--from-x) - 12px), calc(var(--from-y) - 12px)) scale(0.8);
  animation: stageTransferLight 920ms cubic-bezier(0.18, 0.75, 0.18, 1) forwards;
}

.stage-transfer-light::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -50px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 205, 91, 0.72), rgba(239, 23, 68, 0.36));
  filter: blur(1px);
  transform: translateY(-50%) rotate(-12deg);
  transform-origin: right center;
}

.title-text {
  min-width: 0;
}

.now-indicator {
  display: inline-grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  gap: 2px;
  flex: 0 0 auto;
  width: 15px;
  height: 16px;
}

.now-indicator i {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: #ffd166;
  opacity: 0.85;
}

.track-card.is-playing .now-indicator i {
  animation: nowPlayingBars 780ms ease-in-out infinite;
}

.track-card.is-playing .now-indicator i:nth-child(2) {
  animation-delay: 120ms;
}

.track-card.is-playing .now-indicator i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes nowPlayingBars {
  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 15px;
  }
}

@keyframes cardStageLaunch {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 4px 0 0 var(--accent),
      0 0 0 rgba(255, 205, 91, 0);
  }

  28% {
    transform: translateY(-1px) scale(1.012);
    border-color: rgba(255, 205, 91, 0.68);
    box-shadow:
      inset 4px 0 0 #ffd166,
      0 0 0 7px rgba(255, 205, 91, 0.13),
      0 16px 34px rgba(239, 23, 68, 0.3),
      0 0 42px rgba(255, 205, 91, 0.12);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 4px 0 0 var(--accent),
      0 12px 24px rgba(239, 23, 68, 0.12);
  }
}

@keyframes stageTransferLight {
  0% {
    opacity: 0;
    transform: translate(calc(var(--from-x) - 12px), calc(var(--from-y) - 12px)) scale(0.5);
  }

  18% {
    opacity: 1;
  }

  68% {
    opacity: 0.98;
    transform: translate(calc((var(--from-x) + var(--to-x)) / 2 - 12px), calc((var(--from-y) + var(--to-y)) / 2 - 56px)) scale(1.18);
  }

  100% {
    opacity: 0;
    transform: translate(calc(var(--to-x) - 12px), calc(var(--to-y) - 12px)) scale(0.36);
  }
}

.karaoke-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(239, 23, 68, 0.14);
  font-size: 15px;
  line-height: 1;
}

.track-main p,
.track-stats,
.track-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.track-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
}

.track-meta {
  min-height: 1em;
  text-align: right;
  color: rgba(243, 238, 240, 0.42);
  font-size: 0.72rem;
}

.stat-pill {
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.stat-pill {
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stat-pill.stars {
  padding-left: 0;
  background: transparent;
  color: #ff5575;
  font-size: 0.86rem;
  letter-spacing: 0.5px;
}

.stat-pill.date {
  color: rgba(243, 238, 240, 0.54);
}

.stat-pill.retake {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.stat-pill.not-ready {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.stat-pill.genre { color:#9db0b4; }
.stat-pill.post-ready { color:#75e5eb; }
.stat-pill.post-excluded { color:#88979b; }
.stat-pill.post-posted { color:#7fe0ad; }
.stat-pill.post-unset { color:#a5afb2; }
.stat-pill.pc-decision { display: none; }

.stars {
  color: #ff5575;
}

.favorite-button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  font-size: 1.2rem;
}

.favorite-button.active {
  border-color: rgba(239, 23, 68, 0.62);
  background: rgba(239, 23, 68, 0.16);
  color: #ff5575;
}

.inline-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--line);
}

.song-detail-groups {
  display: grid;
  gap: 18px;
}

.song-detail-group {
  min-width: 0;
}

.song-detail-group h4 {
  margin: 0 0 9px;
  color: #b8c7ca;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.song-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.song-detail-cell {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.song-detail-cell small,
.song-detail-cell strong {
  display: block;
}

.song-detail-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.song-detail-cell small {
  color: #809398;
  font-size: 0.68rem;
}

.song-detail-cell strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.song-detail-cell.multiline {
  grid-column: 1 / -1;
}

.song-detail-cell.multiline strong {
  white-space: pre-wrap;
}

.song-detail-cell.management strong {
  color: #98a7aa;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
}

.song-detail-cell strong.post-posted { color: #7fe0ad; }
.song-detail-cell strong.post-ready { color: #75e5eb; }
.song-detail-cell strong.post-excluded,
.song-detail-cell strong.post-unset { color: #a5afb2; }

.song-post-history {
  display: grid;
  gap: 9px;
}

.song-post-entry,
.song-post-empty {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.song-post-entry > strong {
  display: block;
  font-size: 0.9rem;
}

.song-post-entry > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
  color: #b8c7ca;
  font-size: 0.78rem;
}

.song-post-entry p {
  margin: 9px 0 0;
  color: #d7e0e2;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.song-post-entry > small {
  display: block;
  margin-top: 8px;
  color: #718388;
  font: 0.68rem "Space Grotesk", sans-serif;
  overflow-wrap: anywhere;
}

.song-post-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid rgba(117, 229, 235, 0.32);
  border-radius: 999px;
  background: rgba(117, 229, 235, 0.09);
  color: #8cecf0;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.song-post-edit-link:hover,
.song-post-edit-link:focus-visible {
  border-color: rgba(117, 229, 235, 0.72);
  background: rgba(117, 229, 235, 0.16);
}

.song-post-empty {
  color: #87999e;
  font-size: 0.84rem;
}

.song-detail-groups.compact {
  gap: 14px;
}

.song-detail-groups.compact .song-detail-cell {
  padding: 9px 10px;
}

.song-detail-groups.compact .song-detail-management {
  opacity: 0.78;
}

/* 曲を選ぶ判断材料を主役にする。 */
.song-detail-singing {
  padding: 16px;
  border: 1px solid rgba(117, 229, 235, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 229, 235, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.song-detail-singing h4 {
  color: #d8e7e9;
  font-size: 0.86rem;
}

.song-detail-singing .song-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.song-detail-singing .song-detail-cell {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  background: rgba(6, 14, 18, 0.5);
}

.song-detail-singing .song-detail-cell.emphasis-rating {
  grid-column: 1 / -1;
  min-height: 66px;
  border-color: rgba(255, 209, 102, 0.25);
  background: linear-gradient(100deg, rgba(255, 209, 102, 0.09), rgba(255, 255, 255, 0.025));
}

.song-detail-singing .emphasis-rating strong {
  color: #ffd166;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.song-detail-singing .emphasis-decision strong {
  color: #f2f8f9;
  font: 700 1.08rem "Space Grotesk", "Noto Sans JP", sans-serif;
}

.song-detail-singing .emphasis-karaoke-ready {
  border-color: rgba(117, 229, 235, 0.34);
}

.song-detail-singing .emphasis-karaoke-ready strong {
  color: #75e5eb;
  font-size: 1rem;
}

.song-detail-singing .emphasis-karaoke-unset strong {
  color: #85969a;
}

.song-detail-classification .song-detail-grid,
.song-detail-playlists .song-detail-grid {
  grid-template-columns: 1fr;
}

.song-detail-classification .song-detail-cell,
.song-detail-playlists .song-detail-cell {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 560px) {
  .song-detail-singing .song-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .song-detail-singing .song-detail-cell.emphasis-rating {
    grid-column: 1 / -1;
  }
}

.inline-memo {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.inline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inline-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inline-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inline-info-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  line-height: 1;
}

.inline-info-label {
  display: inline-flex;
  align-items: center;
  color: rgba(243, 238, 240, 0.52);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.inline-info-value {
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.inline-section {
  display: grid;
  gap: 7px;
}

.inline-section-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.inline-fact,
.membership-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.inline-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.membership-chip {
  border: 1px solid rgba(239, 23, 68, 0.36);
  background: rgba(239, 23, 68, 0.14);
  color: #ffb7c5;
}

.membership-chip button {
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inline-actions button,
.inline-actions select {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.82rem;
  text-align: center;
  text-decoration: none;
}

.inline-actions select {
  max-width: 100%;
}

.inline-actions .primary-action {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.inline-share-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inline-share-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
}

.edit-sync-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 205, 91, 0.34);
  border-radius: 8px;
  background: rgba(255, 205, 91, 0.1);
  color: #ffd166;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.edit-sync-status.saving,
.edit-sync-status.syncing {
  border-color: rgba(239, 23, 68, 0.4);
  background: rgba(239, 23, 68, 0.14);
  color: #ffb7c5;
}

.edit-sync-status.success {
  border-color: rgba(85, 204, 145, 0.42);
  background: rgba(85, 204, 145, 0.14);
  color: #8ee0b4;
}

.edit-sync-status.warning,
.edit-sync-status.error {
  border-color: rgba(255, 96, 120, 0.5);
  background: rgba(255, 96, 120, 0.14);
  color: #ffb7c5;
}

.card-edit-status {
  margin-top: 8px;
}

.inline-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(239, 23, 68, 0.24);
  border-radius: 8px;
  background: rgba(20, 18, 21, 0.48);
}

.inline-edit-form.merged-detail-editor {
  gap: 12px 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.merged-detail-editor .edit-group-heading {
  margin-top: 9px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8c7ca;
  font-size: 0.8rem;
}

.merged-detail-editor .edit-group-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.merged-detail-editor .edit-rating-field {
  grid-column: span 2;
}

.merged-detail-editor .edit-actions {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 2;
  padding: 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(21, 21, 24, 0.94);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.edit-group-heading {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: rgba(243, 238, 240, 0.48);
  font-size: 0.7rem;
  font-weight: 900;
}

.edit-field,
.edit-check {
  min-width: 0;
  color: rgba(243, 238, 240, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
}

.edit-field {
  display: grid;
  gap: 5px;
}

.edit-field-wide,
.edit-actions,
.edit-error {
  grid-column: 1 / -1;
}

.edit-field input,
.edit-field select,
.edit-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.edit-field input,
.edit-field select {
  min-height: 36px;
  padding: 0 9px;
}

.edit-field select {
  color-scheme: dark;
  background-color: #172126;
  color: #eef7f8;
}

.edit-field select option {
  background: #172126;
  color: #eef7f8;
}

.edit-field textarea {
  min-height: 74px;
  padding: 9px;
  resize: vertical;
}

.wav-file-field input {
  padding: 8px;
}

.wav-upload-button {
  min-height: 36px;
  border: 1px solid rgba(255, 205, 91, 0.46);
  border-radius: 8px;
  background: rgba(255, 205, 91, 0.13);
  color: #ffd166;
  font-weight: 900;
}

.wav-upload-button:disabled {
  opacity: 0.6;
}

.wav-upload-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.wav-upload-token-reset {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 238, 240, 0.72);
  font-weight: 900;
  white-space: nowrap;
}

.wav-file-field small {
  color: rgba(243, 238, 240, 0.52);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.wav-file-field small.warning {
  color: #ffd166;
}

.add-track-diagnosis {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(255, 205, 91, 0.26);
  border-radius: 8px;
  background: rgba(255, 205, 91, 0.08);
}

.add-track-diagnosis span,
.add-track-diagnosis strong {
  display: flex;
  align-items: center;
  min-height: 26px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.add-track-diagnosis strong {
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  font-weight: 900;
}

.add-track-diagnosis strong.create {
  background: rgba(85, 204, 145, 0.16);
  color: #8ee0b4;
}

.add-track-diagnosis strong.overwrite {
  background: rgba(255, 205, 91, 0.16);
  color: #ffd166;
}

.add-track-diagnosis small {
  color: rgba(243, 238, 240, 0.56);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.secret-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.secret-dialog {
  display: grid;
  gap: 12px;
  width: min(100%, 340px);
  padding: 16px;
  border: 1px solid rgba(255, 205, 91, 0.32);
  border-radius: 8px;
  background: #111113;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.54);
}

.secret-dialog strong {
  color: #ffd166;
  font-size: 0.98rem;
}

.secret-dialog p {
  margin: 0;
  color: rgba(243, 238, 240, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
}

.secret-dialog input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 0 10px;
  font-size: 16px;
}

.secret-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.secret-dialog-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 900;
}

.secret-dialog-actions button[type="submit"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.edit-check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.edit-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.edit-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edit-tag-suggestions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.edit-tag-suggestions button.active {
  border-color: rgba(239, 23, 68, 0.5);
  background: rgba(239, 23, 68, 0.16);
  color: #ffb7c5;
}

.edit-rating-field {
  grid-column: span 2;
}

.edit-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.edit-rating button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(243, 238, 240, 0.42);
  font-size: 1.38rem;
  line-height: 1;
}

.edit-rating button.active {
  border-color: rgba(255, 205, 91, 0.62);
  background: rgba(255, 205, 91, 0.14);
  color: #ffd166;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.edit-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 800;
}

.edit-actions button[type="submit"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.edit-actions .danger-action {
  margin-right: auto;
  border-color: rgba(255, 96, 120, 0.42);
  background: rgba(255, 96, 120, 0.1);
  color: #ffb7c5;
  font-size: 0.78rem;
}

.edit-actions button:disabled {
  opacity: 0.62;
}

.edit-error {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(239, 23, 68, 0.14);
  color: #ffb7c5;
  font-size: 0.8rem;
  font-weight: 800;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty p {
  margin: 0;
}

.empty button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(239, 23, 68, 0.42);
  border-radius: 8px;
  background: rgba(239, 23, 68, 0.14);
  color: #ffb7c5;
  font-size: 0.82rem;
}

.pager {
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
}

.pager button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.pager button:disabled {
  opacity: 0.38;
}

.pager span {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% -18%, rgba(255, 205, 91, 0.18), transparent 220px),
    linear-gradient(135deg, rgba(239, 23, 68, 0.18), rgba(18, 107, 90, 0.12)),
    rgba(8, 8, 9, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.58);
  z-index: 20;
}

.player.is-playing {
  border-top-color: rgba(255, 205, 91, 0.32);
  background:
    radial-gradient(ellipse at 28% -18%, rgba(255, 205, 91, 0.28), transparent 230px),
    radial-gradient(ellipse at 74% 8%, rgba(239, 23, 68, 0.2), transparent 210px),
    linear-gradient(135deg, rgba(239, 23, 68, 0.24), rgba(18, 107, 90, 0.16)),
    rgba(8, 8, 9, 0.98);
  box-shadow:
    0 -18px 44px rgba(0, 0, 0, 0.62),
    0 -10px 34px rgba(239, 23, 68, 0.14);
  animation: playerLiveGlow 5200ms ease-in-out infinite;
}

.player.stage-receive {
  animation: playerStageReceive 900ms ease-out;
}

.inline-admin {
  margin: 0;
  color: rgba(243, 238, 240, 0.5);
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.player-inner {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
}

.player-inner::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: min(58%, 320px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 205, 91, 0.7), rgba(239, 23, 68, 0.68), transparent);
  opacity: 0.45;
  transform: translateX(-50%);
}

.player-inner::after {
  content: "";
  position: absolute;
  inset: 34px 12px auto;
  height: 88px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 205, 91, 0.15), transparent 62%),
    radial-gradient(ellipse at 24% 50%, rgba(18, 107, 90, 0.16), transparent 48%);
  opacity: 0;
  pointer-events: none;
  filter: blur(14px);
  transform: translateY(8px);
}

.player.is-playing .player-inner::after {
  opacity: 1;
  animation: playerAura 4200ms ease-in-out infinite;
}

.player.is-playing .player-inner::before {
  opacity: 0.9;
  animation: playerStageLine 1800ms ease-in-out infinite;
}

.compact-player-button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  z-index: 3;
}

.immersive-player-button {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.compact-player-button::before,
.compact-player-button::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.compact-player-button::before {
  transform: translateY(-3px) rotate(18deg);
}

.compact-player-button::after {
  transform: translateY(3px) rotate(-18deg);
}

.player.compact .compact-player-button::before {
  transform: translateY(-3px) rotate(-18deg);
}

.player.compact .compact-player-button::after {
  transform: translateY(3px) rotate(18deg);
}

.now-playing,
.wave-wrap,
.time-row,
.player-controls {
  position: relative;
  z-index: 2;
}

.now-playing {
  display: grid;
  gap: 3px;
  margin: 0 0 8px;
  min-height: 58px;
  justify-items: center;
  text-align: center;
}

.now-playing p,
.now-playing span,
.now-playing small {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing p {
  font-size: 1.05rem;
  font-weight: 800;
}

.player.is-playing .now-playing p {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 205, 91, 0.2);
}

.now-playing span {
  color: var(--muted);
  font-size: 0.82rem;
}

.now-playing small {
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.playback-status {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 241, 236, 0.52);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-status.is-empty {
  opacity: 0;
}

.playback-status[data-status="error"] {
  color: #ffb7c5;
}

audio {
  display: none;
}

.wave-wrap {
  position: relative;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 24% 50%, rgba(75, 212, 221, 0.1), transparent 48%),
    linear-gradient(90deg, #0a1115, #0d181c 54%, #091014);
  overflow: hidden;
}

.player.is-playing .wave-wrap {
  border-color: rgba(75, 212, 221, 0.28);
  box-shadow:
    inset 0 0 22px rgba(75, 212, 221, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.2);
}

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

#seekRange {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.time-row {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) minmax(0, 3fr) minmax(42px, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.time-row > :last-child {
  text-align: right;
}

.player-controls {
  display: grid;
  grid-template-columns: 48px 48px 68px 48px 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.player-controls button {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 900;
}

.player-controls .main-play {
  position: relative;
  height: 62px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(145deg, #ef1744, #8d0922);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 12px 30px rgba(239, 23, 68, 0.38);
}

.player.is-playing .player-controls .main-play {
  box-shadow:
    0 14px 34px rgba(239, 23, 68, 0.45),
    0 0 0 7px rgba(239, 23, 68, 0.12);
}

.player-controls .main-play::before,
.player-controls .main-play::after {
  content: "";
  display: block;
}

.player-controls .main-play::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid currentColor;
}

.player-controls .main-play::after {
  display: none;
}

.player-controls .main-play.is-playing {
  grid-template-columns: 8px 8px;
  justify-content: center;
  column-gap: 6px;
}

.player-controls .main-play.is-playing::before,
.player-controls .main-play.is-playing::after {
  display: block;
  width: 8px;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: currentColor;
}

.player-controls button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@keyframes playerStageLine {
  0%,
  100% {
    transform: translateX(-50%) scaleX(0.88);
  }

  50% {
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes playerLiveGlow {
  0%,
  100% {
    border-top-color: rgba(255, 205, 91, 0.32);
    box-shadow:
      0 -18px 44px rgba(0, 0, 0, 0.62),
      0 -10px 34px rgba(239, 23, 68, 0.14);
  }

  50% {
    border-top-color: rgba(255, 205, 91, 0.56);
    box-shadow:
      0 -18px 44px rgba(0, 0, 0, 0.62),
      0 -14px 42px rgba(255, 205, 91, 0.16),
      0 -8px 38px rgba(239, 23, 68, 0.2);
  }
}

@keyframes playerAura {
  0%,
  100% {
    transform: translateY(8px) scaleX(0.96);
    opacity: 0.76;
  }

  50% {
    transform: translateY(2px) scaleX(1.04);
    opacity: 1;
  }
}

@keyframes playerStageReceive {
  0%,
  48% {
    box-shadow:
      0 -18px 44px rgba(0, 0, 0, 0.62),
      0 -10px 34px rgba(239, 23, 68, 0.14);
  }

  68% {
    border-top-color: rgba(255, 205, 91, 0.7);
    box-shadow:
      0 -18px 44px rgba(0, 0, 0, 0.62),
      0 -12px 42px rgba(255, 205, 91, 0.22),
      0 -8px 38px rgba(239, 23, 68, 0.26);
  }

  100% {
    box-shadow:
      0 -18px 44px rgba(0, 0, 0, 0.62),
      0 -10px 34px rgba(239, 23, 68, 0.14);
  }
}

.player.compact {
  padding-top: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.player.compact .now-playing {
  min-height: 0;
  margin-bottom: 8px;
  padding: 0 44px;
}

.player.compact .now-playing span,
.player.compact .now-playing small,
.player.compact .wave-wrap,
.player.compact .time-row {
  display: none;
}

.player.compact .now-playing p {
  max-width: min(100%, 520px);
  justify-self: center;
  font-size: 0.96rem;
}

.player.compact .player-controls {
  grid-template-columns: 42px 42px 56px 42px 42px;
  margin-top: 0;
}

.player.compact .player-controls button {
  height: 40px;
  font-size: 1.02rem;
}

.player.compact .player-controls .main-play {
  height: 48px;
}

body.immersive-player-open {
  overflow: hidden;
}

.immersive-player {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  background: #0b1115;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.immersive-player[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.immersive-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-color: rgba(117, 229, 235, 0.34) transparent;
}

.immersive-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 25%, rgba(53, 217, 230, 0.28), transparent 44vh),
    radial-gradient(circle at 82% 84%, rgba(126, 82, 205, 0.18), transparent 48vh),
    linear-gradient(180deg, #10262d, #0a1015 60%, #11101a);
}

.immersive-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  color: #bdc9cc;
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.immersive-header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #f4fbfc;
  cursor: pointer;
  font-size: 1.35rem;
}

.immersive-disc {
  position: relative;
  display: grid;
  width: min(58vw, 280px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  margin: clamp(18px, 6vh, 54px) auto clamp(18px, 4vh, 34px);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 30px 100px rgba(65,218,229,.25);
}

.immersive-disc img { width: 100%; height: 100%; object-fit: contain; }

.immersive-disc::before {
  content: "";
  display: none;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #0b1013 0 13%, #b9f6f8 14% 17%, #3d98a3 18% 100%);
  box-shadow: 0 0 34px rgba(117,229,235,.34);
}

.immersive-disc span {
  position: absolute;
  display: none;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
}

.immersive-player.is-playing .immersive-disc,
.immersive-player.is-playing .immersive-mini-disc {
  animation: immersiveDiscSpin 18s linear infinite;
}

.immersive-title {
  text-align: center;
}

.immersive-title small,
.immersive-sticky-player small,
.immersive-info header small {
  color: #75e5eb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.immersive-title h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.3;
}

.immersive-title p {
  margin: 0;
  color: #aab9bc;
  font-size: 0.9rem;
}

.immersive-wave {
  position: relative;
  height: 44px;
  margin: clamp(18px, 4vh, 32px) auto 0;
  width: min(100%, 580px);
  overflow: hidden;
  opacity: .9;
  border-radius:10px;
  background:
    radial-gradient(ellipse at 24% 50%, rgba(75,212,221,.1), transparent 48%),
    rgba(5,13,17,.46);
}

.immersive-wave canvas { display:block; width:100%; height:100%; }

.immersive-seek {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.immersive-time {
  display: flex;
  width: min(100%, 580px);
  justify-content: space-between;
  margin: 0 auto;
  color: #83969b;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.immersive-controls {
  display: grid;
  grid-template-columns: 48px 56px 72px 56px 48px;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 14px);
  margin-top: clamp(12px, 3vh, 24px);
}

.immersive-controls button {
  display: grid;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #dce7e9;
  cursor: pointer;
  font-size: 1.45rem;
}

.immersive-controls button.active {
  color: #75e5eb;
  background: rgba(117,229,235,.11);
}

.immersive-controls .immersive-main-play {
  height: 72px;
  background: #58dce4;
  color: #082126;
  box-shadow: 0 10px 34px rgba(88,220,228,.25);
  font-size: 1.45rem;
  font-weight: 900;
}

.immersive-scroll-hint {
  display: grid;
  gap: 1px;
  margin: auto auto 0;
  padding: 14px 18px 0;
  border: 0;
  background: transparent;
  color: #82969b;
  cursor: pointer;
  font-size: 0.68rem;
}

.immersive-scroll-hint i {
  color: #75e5eb;
  font-size: 1rem;
  font-style: normal;
}

.immersive-details {
  min-height: 100svh;
  background: linear-gradient(180deg, #0c1519, #111018 78%);
}

.immersive-sticky-player {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 10px max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(117,229,235,.2);
  background: rgba(12,24,29,.94);
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
}

.immersive-mini-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle,#0b1013 0 12%,#74dce2 13% 17%,#234d57 18% 50%,#10181c 51% 100%);
  box-shadow: 0 0 20px rgba(88,220,228,.18);
}

.immersive-sticky-player > div {
  min-width: 0;
}

.immersive-sticky-player strong,
.immersive-sticky-player span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.immersive-sticky-player strong {
  margin-top: 2px;
  font-size: 0.86rem;
}

.immersive-sticky-player span {
  color: #94a5a9;
  font-size: 0.68rem;
}

.immersive-sticky-player i {
  display: block;
  height: 2px;
  margin-top: 6px;
  background: rgba(255,255,255,.13);
}

.immersive-sticky-player i b {
  display: block;
  width: 0;
  height: 100%;
  background: #75e5eb;
}

.immersive-sticky-player > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #58dce4;
  color: #082126;
  cursor: pointer;
  font-weight: 900;
}

.immersive-info {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 18px max(50px, env(safe-area-inset-bottom));
}

.immersive-info > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.immersive-info h3 {
  margin: 5px 0 0;
  font-size: 1.4rem;
}

.immersive-info > header > span {
  color: #87999e;
  font-size: 0.7rem;
}

.immersive-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.immersive-facts > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
}

.immersive-facts small {
  display: block;
  color: #809398;
  font-size: 0.64rem;
}

.immersive-facts strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.immersive-all-info { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.immersive-all-info > div { min-width:0; padding:13px; border:1px solid rgba(255,255,255,.07); border-radius:11px; background:rgba(255,255,255,.035); }
.immersive-all-info small { display:block; color:#809398; font-size:.64rem; }
.immersive-all-info strong { display:block; margin-top:4px; overflow-wrap:anywhere; font-size:.86rem; }
.immersive-detail-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.09); }
.immersive-detail-actions button,.immersive-detail-actions select { min-height:46px; padding:0 18px; border:1px solid rgba(255,255,255,.15); border-radius:10px; background:#172126; color:#eef7f8; font-weight:800; }

#immersiveMemoForm {
  margin-top: 24px;
}

#immersiveMemoForm label {
  display: block;
  margin-bottom: 8px;
  color: #b5c3c6;
  font-size: 0.82rem;
  font-weight: 700;
}

#immersiveMemo {
  width: 100%;
  min-height: 132px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  outline: none;
  background: #090f13;
  color: #eef7f8;
  font: inherit;
  font-size: 1rem;
  line-height: 1.65;
  resize: vertical;
}

#immersiveMemo:focus {
  border-color: #58dce4;
  box-shadow: 0 0 0 3px rgba(88,220,228,.11);
}

#immersiveMemoForm > div {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

#immersiveSaveStatus {
  color: #8da0a4;
  font-size: 0.7rem;
}

#immersiveMemoForm button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: #58dce4;
  color: #082126;
  cursor: pointer;
  font-weight: 800;
}

#immersiveMemoForm button:disabled,
#immersiveMemo:disabled {
  opacity: .58;
}

@keyframes immersiveDiscSpin {
  to { transform: rotate(360deg); }
}

@media (min-width: 900px) {
  .immersive-hero {
    padding-right: max(32px, calc((100vw - 800px) / 2));
    padding-left: max(32px, calc((100vw - 800px) / 2));
  }

  .immersive-disc {
    width: min(36vh, 320px);
  }
}

@media (max-height: 700px) {
  .immersive-disc {
    width: min(44vw, 190px);
    margin-top: 12px;
    margin-bottom: 14px;
  }

  .immersive-wave {
    margin-top: 14px;
  }

  .immersive-controls {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .immersive-player.is-playing .immersive-disc,
  .immersive-player.is-playing .immersive-mini-disc {
    animation: none;
  }
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.62);
}

.detail-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 10px 16px max(22px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.44);
}

.sheet-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
}

.detail-header p,
.detail-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-header h2 {
  margin-top: 2px;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.detail-actions button,
.detail-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.detail-actions button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.detail-actions button:disabled,
.detail-actions a[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.detail-grid section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-grid h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.detail-grid dl {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.detail-grid dt,
.detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.35;
}

.detail-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-memo {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (min-width: 720px) {
  .app-shell {
    width: calc(100% - 44px);
    max-width: 760px;
    margin: 0 auto;
  }

  .track-card {
    min-height: 86px;
  }

  .detail-sheet {
    width: min(720px, calc(100% - 28px));
    right: 14px;
    left: auto;
  }
}

@media (min-width: 900px) {
  body.has-suite-nav .track-list {
    align-items: start;
  }

  body.has-suite-nav .track-card.expanded {
    grid-column: 1 / -1;
    padding: 18px 20px 20px;
  }

  body.has-suite-nav .stat-pill.pc-decision {
    display: inline-flex;
    border: 1px solid rgba(117, 229, 235, 0.18);
    background: rgba(117, 229, 235, 0.07);
    color: #c9f4f6;
  }

  body.has-suite-nav .track-card:not(.expanded) .track-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
  }

  body.has-suite-nav .track-card:not(.expanded) {
    align-self: start;
    height: auto;
  }

  body.has-suite-nav .track-card:not(.expanded) .track-main h2,
  body.has-suite-nav .track-card:not(.expanded) .track-main p {
    grid-column: 1;
  }

  body.has-suite-nav .track-card:not(.expanded) .track-stats {
    grid-column: 1 / -1;
  }

  body.has-suite-nav .track-card:not(.expanded) .track-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 100px;
  }

  body.has-suite-nav .inline-detail {
    margin-top: 8px;
    padding-top: 18px;
  }

  body.has-suite-nav .song-detail-groups.compact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-singing {
    grid-column: 1 / 8;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-memo {
    grid-column: 8 / -1;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-classification {
    grid-column: 1 / 5;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-playlists {
    grid-column: 5 / 8;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-posting {
    grid-column: 8 / -1;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-results {
    grid-column: 1 / -1;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-memo .song-detail-cell {
    min-height: 144px;
  }

  body.has-suite-nav .song-detail-groups.compact .song-detail-posting .song-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.has-suite-nav .inline-detail > .merged-detail-editor {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.has-suite-nav .inline-detail > .merged-detail-editor .edit-field-wide,
  body.has-suite-nav .inline-detail > .merged-detail-editor .edit-actions,
  body.has-suite-nav .inline-detail > .merged-detail-editor .edit-error,
  body.has-suite-nav .inline-detail > .merged-detail-editor .edit-group-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .daily-pick {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .daily-pick-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .daily-pick-avatar {
    width: 42px;
    height: 42px;
  }

  .inline-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edit-rating-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .inline-edit-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-card.stage-launch,
  .stage-transfer-light,
  .player.is-playing,
  .player.stage-receive,
  .player.is-playing .player-inner::before,
  .player.is-playing .player-inner::after,
  .track-card.is-playing .now-indicator i {
    animation: none;
  }

  .stage-transfer-light {
    display: none;
  }
}
