/* ════════════════════════════════════
   Self-intro Profile Player — CSS
   ════════════════════════════════════ */

/* --- palette --- */
:root {
  --bg-deep: #0c0011;
  --bg-mid: #5a3157;
  --bg-low: #1a0a1e;
  --text-primary: #fff;
  --text-secondary: rgba(255 255 255 / .65);
  --text-dim: rgba(255 255 255 / .45);
  --accent-green: #1db954;
  --surface-glass: rgba(255 255 255 / .06);
  --rail-bg: rgba(255 255 255 / .22);
  --rail-fill: #fff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  min-height: 100dvh;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; }

/* --- ambient glow --- */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, var(--bg-mid), transparent 72%),
    radial-gradient(ellipse 80% 50% at 60% 55%, rgba(120 40 110 / .35), transparent 70%),
    linear-gradient(180deg, var(--bg-low) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

/* --- page --- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: 100dvh;
  padding: calc(var(--safe-top) + 8px) 20px calc(var(--safe-bottom) + 12px);
  overflow: hidden;
  animation: fadeUp .55s cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 380px) {
  .page { padding-left: 14px; padding-right: 14px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- top bar --- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.nav-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  opacity: .85;
  transition: opacity .15s;
}
.nav-icon:active { opacity: .5; }

.top-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.source-from {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.source-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- artwork --- */
.artwork-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0 0 0 / .5),
    0 2px 8px rgba(0 0 0 / .3);
  margin-bottom: 24px;
  flex-shrink: 1;
  min-height: 0;
  position: relative;
}
.artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.artwork-wrap:hover .artwork { transform: scale(1.015); }

/* --- lyrics pill button (below artwork) --- */
/* (removed — lyrics trigger is now in footer row) */

/* --- track row --- */
.track-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}
.track-text { flex: 1; min-width: 0; padding-right: 12px; }
.track-title {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* like button */
.like-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-top: -2px;
  color: var(--text-secondary);
  transition: color .2s, transform .2s;
}
.like-btn .heart-filled { display: none; }
.like-btn.active {
  color: var(--accent-green);
}
.like-btn.active .heart-outline { display: none; }
.like-btn.active .heart-filled { display: block; }
.like-btn.pulse {
  animation: heartPop .35s cubic-bezier(.4, 0, .2, 1);
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- seekbar --- */
.seekbar { width: 100%; margin-bottom: 12px; }

.rail {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--rail-bg);
  border-radius: 2px;
  overflow: visible;
  cursor: pointer;
}
.rail-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--rail-fill);
  border-radius: 2px;
  transition: width .4s linear;
}
.rail-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 1px 4px rgba(0 0 0 / .3);
  transition: left .4s linear, transform .2s ease;
  pointer-events: none;
}
.seekbar:hover .rail-thumb,
.seekbar:active .rail-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

/* --- transport --- */
.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-bottom: 20px;
}

.transport-btn {
  display: grid;
  place-items: center;
  transition: opacity .15s, transform .1s;
}
.transport-btn:active { transform: scale(.9); opacity: .6; }

.transport-btn.side {
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
}
.transport-btn.med {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  margin: 0 6px;
}

/* --- play button (Spotify signature) --- */
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  margin: 0 16px;
  box-shadow: 0 4px 16px rgba(0 0 0 / .25);
  transition: transform .15s, background .15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(.94); background: #e0e0e0; }

/* play/pause toggle */
.play-btn .icon-play  { display: none; }
.play-btn .icon-pause { display: block; }
.play-btn.paused .icon-play  { display: block; }
.play-btn.paused .icon-pause { display: none; }

/* --- footer row (lyrics / share / queue) --- */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 0 4px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: color .15s, opacity .15s;
}
.footer-icon:active { opacity: .5; }

/* lyrics link — blends as inline footer item */
.lyrics-link {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-secondary);
  transition: color .2s;
}
.lyrics-link:hover { color: var(--text-primary); }
.lyrics-link:active { opacity: .5; }

/* ════════════════════════════════
   LYRICS OVERLAY
   ════════════════════════════════ */
.lyrics-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(ellipse 100% 70% at 50% 30%, #b0336a, transparent 75%),
    linear-gradient(175deg, #6a1b4d 0%, #1a0a1e 100%);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.lyrics-overlay.open {
  transform: translateY(0);
}

.lyrics-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 8px;
}
.lyrics-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  opacity: .85;
}
.lyrics-close:active { transform: scale(.88); }
.lyrics-top-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.lyrics-body-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 32px 28px;
  mask-image: linear-gradient(transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.lyrics-body-scroll p {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  line-height: 1.65;
  color: rgba(255 255 255 / .35);
  transition: color .25s;
}
.lyrics-body-scroll p:nth-child(4),
.lyrics-body-scroll p:nth-child(5) {
  color: #fff;
}

/* lyrics footer — mini player bar */
.lyrics-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px calc(var(--safe-bottom) + 12px);
  background: rgba(0 0 0 / .35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lyrics-mini-art {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.lyrics-mini-info {
  flex: 1;
  min-width: 0;
}
.lyrics-mini-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyrics-mini-artist {
  font-size: 11px;
  color: var(--text-secondary);
}
.lyrics-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .15s;
}
.lyrics-play-btn:active { transform: scale(.9); }
.lyrics-play-btn .lp-play  { display: none; }
.lyrics-play-btn .lp-pause { display: block; }
.lyrics-play-btn.paused .lp-play  { display: block; }
.lyrics-play-btn.paused .lp-pause { display: none; }
.lyrics-mini-progress {
  position: absolute;
  left: 0; right: 0; bottom: calc(var(--safe-bottom) + 62px);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lyrics-mini-rail {
  width: 100%;
  height: 3px;
  background: rgba(255 255 255 / .22);
  border-radius: 2px;
  overflow: hidden;
}
.lyrics-mini-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  transition: width .4s linear;
}
.lyrics-mini-time {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

/* ════════════════════════════════
   QUEUE BOTTOM SHEET
   ════════════════════════════════ */
.queue-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0 0 0 / .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.queue-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.queue-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  max-width: 420px;
  margin: 0 auto;
  max-height: 65dvh;
  background: #282828;
  border-radius: 16px 16px 0 0;
  padding: 10px 16px calc(var(--safe-bottom) + 16px);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  overflow: hidden;
}
.queue-sheet.open {
  transform: translateY(0);
}

.queue-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255 255 255 / .25);
  margin: 0 auto 10px;
}
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.queue-title {
  font-size: 18px;
  font-weight: 700;
}
.queue-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}
.queue-close:active { opacity: .5; }

.queue-sub-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* equalizer bars */
.q-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}
.q-eq span {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--accent-green);
}
.q-eq span:nth-child(1) { height: 60%; animation: eqBar .5s ease-in-out infinite alternate; }
.q-eq span:nth-child(2) { height: 100%; animation: eqBar .5s ease-in-out .15s infinite alternate; }
.q-eq span:nth-child(3) { height: 40%; animation: eqBar .5s ease-in-out .3s infinite alternate; }
@keyframes eqBar {
  0%   { height: 30%; }
  100% { height: 100%; }
}

.q-list {
  list-style: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* queue items */
.q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.q-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.q-text {
  flex: 1;
  min-width: 0;
}
.q-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-highlight { color: var(--accent-green); }
.q-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-green { color: var(--accent-green); font-size: 10px; }

.q-drag {
  flex-shrink: 0;
  color: var(--text-dim);
  cursor: grab;
}

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */

/* Small phones */
@media (max-width: 360px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .artwork-wrap { margin-bottom: 16px; }
  .track-title { font-size: 17px; }
  .transport-btn.med { width: 40px; height: 40px; }
  .play-btn { width: 56px; height: 56px; margin: 0 12px; }
  .play-btn .icon-pause, .play-btn .icon-play { width: 24px; height: 24px; }
  .footer-icon { width: 38px; height: 38px; }
  .lyrics-body-scroll { padding: 24px 20px; }
  .lyrics-body-scroll p { font-size: 20px; }
  .queue-sheet { padding: 10px 12px calc(var(--safe-bottom) + 12px); }
}

/* Tall/normal phones and up */
@media (min-width: 460px) {
  body { display: grid; place-items: center; min-height: 100dvh; }
  .page { min-height: auto; padding-top: 24px; padding-bottom: 24px; }
  .queue-sheet { left: 50%; right: auto; transform: translate(-50%, 100%); }
  .queue-sheet.open { transform: translate(-50%, 0); }
}

/* Short viewport — compress profile player */
@media (max-height: 680px) {
  .artwork-wrap { margin-bottom: 14px; }
  .track-row { margin-bottom: 14px; }
  .transport { margin-bottom: 14px; }
  .seekbar { margin-bottom: 8px; }
}

/* ════════════════════════════════
   LIKE COUNT
   ════════════════════════════════ */
.like-btn {
  flex-direction: column;
  gap: 2px;
  height: auto;
  padding: 4px 0;
}
.like-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.like-btn.active .like-count {
  color: var(--accent-green);
}

/* ════════════════════════════════
   SNS QUEUE ITEMS
   ════════════════════════════════ */

/* アイコン円形ラッパー */
.q-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255 255 255 / .08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  transition: background .2s;
}

/* SNS ブランドカラー on hover */
.q-icon-x:hover         { background: #000; }
.q-icon-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.q-icon-github:hover    { background: #24292e; }
.q-icon-youtube:hover   { background: #ff0000; }
.q-icon-tiktok:hover    { background: #010101; }
.q-icon-bluesky:hover   { background: #0085ff; }
.q-icon-note:hover      { background: #41c9b4; }
.q-icon-website:hover   { background: var(--bg-mid); }

/* SNS リストアイテム */
.q-sns-item {
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
  padding: 8px 4px;
}
.q-sns-item:hover,
.q-sns-item:focus-visible {
  background: rgba(255 255 255 / .05);
  outline: none;
}
.q-sns-item:active {
  background: rgba(255 255 255 / .1);
}

/* prev/next フォーカスハイライト */
.q-sns-item.sns-focus {
  background: rgba(29 185 84 / .12);
  outline: 1px solid rgba(29 185 84 / .4);
}

/* 外部リンクアイコン */
.q-ext-link {
  flex-shrink: 0;
  color: var(--text-dim);
}

/* カウントダウン時刻の強調 */
.countdown-remaining {
  color: var(--text-secondary);
  font-weight: 600;
}


/* ════════════════════════════════════════════
   AUTH PAGES  (login / register / landing)
   ════════════════════════════════════════════ */

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}

.auth-card {
  background: #161119;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 20px;
  padding: 36px 24px;
  width: min(400px, 100%);
}
@media (min-width: 480px) {
  .auth-card { padding: 40px 32px; }
  .auth-page { padding: 24px 16px; }
}

.auth-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .15s;
}
.auth-back:hover { color: var(--text-primary); }

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.auth-errors {
  list-style: none;
  background: #221317;
  border: 1px solid rgba(255 80 80 / .15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #ff8080;
}
.auth-errors li + li { margin-top: 4px; }

.auth-error-single {
  background: #221317;
  border: 1px solid rgba(255 80 80 / .15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #ff8080;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .04em;
}
.auth-field input,
.auth-field textarea,
.auth-field select {
  padding: 12px 14px;
  background: #1e1722;
  border: 1px solid rgba(255 255 255 / .08);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus {
  border-color: var(--accent-green);
  background: #221a28;
}
.auth-field textarea { resize: vertical; min-height: 100px; }
.auth-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.auth-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent-green);
  border: none;
  border-radius: 12px;
  color: #000;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .1s;
  margin-top: 8px;
  letter-spacing: .02em;
}
.auth-submit:hover  { filter: brightness(1.1); }
.auth-submit:active { transform: scale(.98); }

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-switch a { color: var(--accent-green); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── landing page ── */
.lp {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Hero */
.lp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 56px 16px 48px;
  text-align: center;
}
.lp-hero-inner {
  max-width: 520px;
  width: 100%;
}
.lp-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(29 185 84 / .1);
  border: 1px solid rgba(29 185 84 / .2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.lp-headline {
  font-size: clamp(48px, 13vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 10px;
}
.lp-brand {
  background: linear-gradient(135deg, var(--accent-green) 0%, #6ee7a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-beta {
  font-size: clamp(12px, 3vw, 18px);
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(29 185 84 / .12);
  border: 1px solid rgba(29 185 84 / .2);
  border-radius: 6px;
  padding: 2px 8px;
  vertical-align: super;
  letter-spacing: .04em;
}
.beta-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(29 185 84 / .12);
  border: 1px solid rgba(29 185 84 / .2);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: .03em;
}
.lp-headline-sub {
  font-size: clamp(15px, 3.8vw, 22px);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}
.lp-sub {
  font-size: clamp(13px, 3.2vw, 16px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
}
.lp-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 100px;
  background: var(--accent-green);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s;
  white-space: nowrap;
}
.lp-btn-primary:hover { filter: brightness(1.15); }
.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 100px;
  border: 1px solid rgba(255 255 255 / .12);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.lp-btn-ghost:hover {
  border-color: rgba(255 255 255 / .25);
  color: var(--text-primary);
}

/* Mock player card */
.lp-mock-wrap {
  perspective: 900px;
  width: clamp(200px, 60vw, 280px);
  flex-shrink: 0;
}
.lp-mock {
  background: #141018;
  border: 1px solid rgba(255 255 255 / .07);
  border-radius: 16px;
  padding: clamp(14px, 4vw, 20px);
  transform: rotateY(-4deg) rotateX(2deg);
  box-shadow: 0 30px 60px rgba(0 0 0 / .45);
}
.lp-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--text-dim);
}
.lp-mock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255 255 255 / .15);
}
.lp-mock-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e1726 0%, #2a1f33 50%, #1a1520 100%);
  margin-bottom: 14px;
}
.lp-mock-track { margin-bottom: 14px; }
.lp-mock-title-line {
  height: 12px;
  width: 60%;
  border-radius: 4px;
  background: rgba(255 255 255 / .15);
  margin-bottom: 6px;
}
.lp-mock-artist-line {
  height: 9px;
  width: 40%;
  border-radius: 4px;
  background: rgba(255 255 255 / .08);
}
.lp-mock-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.lp-mock-transport > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255 255 255 / .1);
}
.lp-mock-play {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: var(--accent-green) !important;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.lp-mock-seek {
  height: 3px;
  border-radius: 2px;
  background: rgba(255 255 255 / .08);
  position: relative;
}
.lp-mock-seek-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 45%;
  border-radius: 2px;
  background: var(--accent-green);
}
.lp-mock-seek-dot {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Features */
.lp-features {
  padding: 32px 16px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
.lp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lp-feat {
  background: #141018;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 14px;
  padding: 20px;
}
.lp-feat-icon {
  font-size: 22px;
  margin-bottom: 10px;
}
.lp-feat h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}
.lp-feat p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bottom CTA */
.lp-bottom {
  text-align: center;
  padding: 40px 16px 24px;
}
.lp-bottom-title {
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 700;
  margin-bottom: 20px;
}

/* Footer push */
.lp > .site-footer {
  margin-top: auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* ── Small phones (≤360px) ── */
@media (max-width: 360px) {
  .lp-hero { padding: 40px 14px 36px; gap: 24px; }
  .lp-badge { font-size: 11px; padding: 4px 12px; margin-bottom: 12px; }
  .lp-headline { font-size: 44px; }
  .lp-headline-sub { font-size: 14px; }
  .lp-sub { font-size: 12px; margin-bottom: 20px; }
  .lp-btn-primary, .lp-btn-ghost { height: 40px; font-size: 13px; }
  .lp-btn-primary { padding: 0 20px; }
  .lp-btn-ghost { padding: 0 18px; }
  .lp-mock-wrap { width: 180px; }
  .lp-mock { border-radius: 12px; }
  .lp-features { padding: 24px 14px; }
  .lp-feat { padding: 16px; border-radius: 12px; }
  .lp-feat h3 { font-size: 13px; }
  .lp-feat p { font-size: 11px; }
  .lp-bottom { padding: 32px 14px 20px; }
}

/* ── Medium phones (≥400px) ── */
@media (min-width: 400px) {
  .lp-hero { padding: 64px 20px 52px; gap: 36px; }
  .lp-badge { font-size: 13px; }
  .lp-btn-primary { height: 46px; padding: 0 28px; font-size: 15px; }
  .lp-btn-ghost { height: 46px; padding: 0 24px; font-size: 15px; }
  .lp-mock-wrap { width: clamp(220px, 55vw, 280px); }
  .lp-features { padding: 40px 20px; }
  .lp-feat { padding: 22px; }
  .lp-feat h3 { font-size: 15px; }
  .lp-feat p { font-size: 13px; }
}

/* ── 2-col features ── */
@media (min-width: 480px) {
  .lp-features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ── Tablet / wider ── */
@media (min-width: 640px) {
  .lp-hero { padding: 80px 32px 64px; gap: 44px; }
  .lp-badge { margin-bottom: 20px; }
  .lp-sub { margin-bottom: 32px; }
  .lp-btn-primary { height: 48px; padding: 0 32px; }
  .lp-btn-ghost { height: 48px; padding: 0 28px; }
  .lp-mock { padding: 20px; border-radius: 20px; }
  .lp-mock-play { width: 40px !important; height: 40px !important; font-size: 14px; }
  .lp-features { padding: 48px 32px; }
  .lp-features-grid { gap: 16px; }
  .lp-feat { padding: 24px; border-radius: 16px; }
  .lp-bottom { padding: 48px 32px 32px; }
}

/* ── Desktop: side-by-side hero ── */
@media (min-width: 860px) {
  .lp-hero {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: center;
    padding: 120px 48px 80px;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
  }
  .lp-hero-inner { flex: 1 1 480px; max-width: 520px; }
  .lp-cta { justify-content: flex-start; }
  .lp-mock-wrap { width: 300px; flex-shrink: 0; }
  .lp-features { max-width: 900px; }
  .lp-features-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .lp-feat { padding: 24px 20px; }
}

/* ── Wide desktop ── */
@media (min-width: 1100px) {
  .lp-hero { gap: 80px; padding: 140px 64px 100px; }
  .lp-mock-wrap { width: 340px; }
  .lp-headline { font-size: 88px; }
  .lp-headline-sub { font-size: 22px; }
}

/* ── Short viewport (landscape phone) ── */
@media (max-height: 600px) and (max-width: 860px) {
  .lp-hero { padding-top: 32px; padding-bottom: 24px; gap: 20px; }
  .lp-mock-wrap { width: 160px; }
  .lp-headline { font-size: clamp(36px, 10vw, 56px); }
}

/* ── owner bar ── */
.owner-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(29 185 84 / .15);
  border-bottom: 1px solid rgba(29 185 84 / .3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--accent-green);
  backdrop-filter: blur(12px);
  gap: 8px;
}
@media (min-width: 480px) {
  .owner-bar { padding: 8px 20px; font-size: 13px; }
}
.owner-bar a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
}
.owner-bar + .page {
  padding-top: 40px;
}

/* ── no-sns message ── */
.queue-no-sns {
  padding: 16px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

/* ════════════════════════════════════════════
   EDIT PAGE
   ════════════════════════════════════════════ */

body.edit-body {
  overflow: auto;
  background: #0e0912;
}
body.edit-body .ambient-glow {
  display: none;
}

.edit-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0e0912;
  border-bottom: 1px solid rgba(255 255 255 / .06);
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 640px) {
  .edit-header { padding: 14px 24px; }
}
.edit-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.edit-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.edit-preview-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-deep);
  background: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
}
.edit-preview-btn:hover { background: #e0e0e0; }
.edit-logout-btn {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}
.edit-logout-btn:hover { color: var(--text-primary); }

.edit-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  max-width: 640px;
  padding: 20px 12px 80px;
}
@media (min-width: 640px) {
  .edit-main { padding: 24px 16px 80px; }
}

/* 2-column layout */
.edit-layout {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
}

/* Sidebar nav */
.edit-sidebar {
  position: sticky;
  top: 58px;
  width: 180px;
  flex-shrink: 0;
  padding: 24px 0 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: calc(100dvh - 58px);
  overflow-y: auto;
}

.edit-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.edit-nav-item:hover {
  background: #1a1420;
  color: var(--text-secondary);
}

.edit-nav-item.active {
  background: #1e1726;
  color: var(--text-primary);
}

.edit-nav-item svg {
  flex-shrink: 0;
  opacity: .6;
}

.edit-nav-item.active svg {
  opacity: 1;
  stroke: var(--accent-green);
}

@media (max-width: 720px) {
  .edit-layout {
    flex-direction: column;
  }
  .edit-sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px;
    gap: 4px;
    border-bottom: 1px solid rgba(255 255 255 / .05);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .edit-sidebar::-webkit-scrollbar { display: none; }
  .edit-nav-item {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12px;
  }
  .edit-nav-item svg {
    display: none;
  }
  .edit-main {
    max-width: 100%;
  }
}

.edit-flash {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.edit-flash-ok {
  background: #132218;
  border: 1px solid rgba(29 185 84 / .2);
  color: #5de898;
}
.edit-flash-ng {
  background: #221317;
  border: 1px solid rgba(255 80 80 / .15);
  color: #ff8080;
}

.edit-section {
  background: #141018;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 16px;
  padding: 22px 16px;
  margin-bottom: 16px;
}
@media (min-width: 480px) {
  .edit-section { padding: 28px 24px; }
}
.edit-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.edit-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .04em;
}
.edit-field input,
.edit-field textarea,
.edit-field select {
  padding: 11px 14px;
  background: #1a1420;
  border: 1px solid rgba(255 255 255 / .07);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.edit-field input:focus,
.edit-field textarea:focus,
.edit-field select:focus {
  border-color: var(--accent-green);
  background: #1e1726;
}
.edit-field input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}
.edit-field input[type="datetime-local"] { color-scheme: dark; }

.edit-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
  font-weight: 400;
}

.edit-save-btn {
  display: inline-block;
  padding: 11px 28px;
  background: #fff;
  border: none;
  border-radius: 10px;
  color: #0e0912;
  font: 600 13px/1 inherit;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .02em;
}
.edit-save-btn:hover  { background: #e0e0e0; }
.edit-save-btn:active { transform: scale(.97); }

/* URL コピー行 */
.url-row { display: flex; gap: 8px; flex-wrap: wrap; }
.url-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #1a1420;
  border: 1px solid rgba(255 255 255 / .07);
  border-radius: 10px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  outline: none;
}
@media (max-width: 380px) {
  .url-input { font-size: 11px; padding: 10px 10px; }
}
.url-copy-btn {
  padding: 10px 18px;
  background: #1e1726;
  border: 1px solid rgba(255 255 255 / .08);
  border-radius: 10px;
  color: var(--text-primary);
  font: 600 13px/1 inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.url-copy-btn:hover { background: #28203a; }

/* アイコンプレビュー */
.icon-current-wrap { margin-bottom: 16px; }
.icon-current {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255 255 255 / .1);
}

/* SNS リンク行 */
.sns-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 36px;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.sns-row .sns-handle {
  grid-column: 2 / 4;
}
.sns-url-preview {
  grid-column: 2 / 4;
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.sns-url-preview:empty {
  display: none;
}
@media (max-width: 540px) {
  .sns-row {
    grid-template-columns: 1fr 36px;
  }
  .sns-row .sns-icon-sel {
    grid-column: 1;
  }
  .sns-row .sns-handle,
  .sns-row .sns-svcname,
  .sns-row .sns-url,
  .sns-url-preview {
    grid-column: 1 / -1;
  }
}
.sns-row select,
.sns-row input {
  padding: 9px 11px;
  background: #1a1420;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 8px;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  outline: none;
  min-width: 0;
  transition: border-color .2s;
}
.sns-row select:focus,
.sns-row input:focus { border-color: var(--accent-green); }
.sns-del-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #291820;
  border: 1px solid rgba(255 80 80 / .12);
  border-radius: 8px;
  color: #ff8080;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}
.sns-del-btn:hover { background: #341e28; }
.sns-add-btn {
  margin-top: 8px;
  padding: 10px 18px;
  background: #1a1420;
  border: 1px dashed rgba(255 255 255 / .1);
  border-radius: 10px;
  color: var(--text-secondary);
  font: 500 13px/1 inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sns-add-btn:hover { background: #1e1726; color: var(--text-primary); }

/* 統計カード */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 400px) { .stats-cards { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: #161119;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.stat-card-accent { border-color: var(--accent-green); }
.stat-val {
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card-accent .stat-val { color: var(--accent-green); }
.stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stats-chart-wrap {
  background: #131018;
  border: 1px solid rgba(255 255 255 / .05);
  border-radius: 12px;
  padding: 18px;
}
.stats-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 400px) {
  .stats-chart { gap: 2px; height: 64px; }
  .stats-day { font-size: 7px; }
}
.stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.stats-bar {
  width: 100%;
  background: var(--accent-green);
  border-radius: 2px 2px 0 0;
  min-height: 0;
  opacity: .65;
  transition: opacity .2s;
}
.stats-col:hover .stats-bar { opacity: 1; }
.stats-day {
  font-size: 8px;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.stats-no-data {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}

/* ═══════════════════════════════════════════════════════════
   Registration Setup Wizard
   ═══════════════════════════════════════════════════════════ */

.auth-page--setup {
  overflow-y: auto;
  padding-bottom: 60px;
  align-items: flex-start;
  padding-top: 32px;
}
@media (min-width: 480px) {
  .auth-page--setup { padding-top: 48px; }
}
.auth-page--setup .ambient-glow { display: none; }

.auth-card--wide {
  max-width: 520px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
}

/* Step indicator dots */
.setup-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.setup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e1726;
  border: 1.5px solid rgba(255 255 255 / .1);
  transition: all .3s ease;
}

.setup-dot.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(29 185 84 / .15);
}

.setup-dot.done {
  background: var(--accent-green);
  border-color: var(--accent-green);
  opacity: .5;
}

.setup-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.setup-step-title {
  font-size: clamp(20px, 5vw, 22px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.setup-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Wizard Steps */
.setup-step {
  display: none;
  animation: setupFadeIn 0.35s ease forwards;
}

.setup-step.active {
  display: block;
}

@keyframes setupFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.setup-panel {
  background: #141018;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 16px;
  padding: 22px 16px;
}
@media (min-width: 480px) {
  .setup-panel { padding: 28px 24px; }
}

/* Navigation Buttons */
.setup-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.setup-btn-prev,
.setup-btn-next,
.setup-btn-submit {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s;
  letter-spacing: .02em;
}

.setup-btn-prev:active,
.setup-btn-next:active,
.setup-btn-submit:active {
  transform: scale(0.98);
}

.setup-btn-prev {
  background: #1e1726;
  color: var(--text-primary);
  border: 1px solid rgba(255 255 255 / .08);
}
.setup-btn-prev:hover {
  background: #281e36;
}

.setup-btn-next {
  background: #fff;
  color: #0e0912;
}
.setup-btn-next:hover {
  background: #e8e8e8;
}
.setup-btn-next:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.setup-btn-submit {
  background: var(--accent-green);
  color: #000;
  font-weight: 700;
}
.setup-btn-submit:hover {
  filter: brightness(1.1);
}
.setup-btn-submit:disabled {
  opacity: .35;
  cursor: not-allowed;
  filter: none;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 20px;
}

.setup-section {
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.setup-legend {
  display: none;
}

.req {
  color: #e91e63;
  font-weight: 600;
}

.setup-icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 400px) {
  .setup-icon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.setup-icon-preview {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: #1a1420;
  flex-shrink: 0;
  border: 2px solid rgba(255 255 255 / .06);
}

.setup-icon-input {
  flex: 1;
}

.setup-icon-input label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.setup-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .setup-row-2col {
    grid-template-columns: 1fr;
  }
}

.auth-submit--wide {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 14px;
}

/* ═══ Color Picker ═══ */

.color-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-preset-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}

.color-preset-btn:hover {
  transform: scale(1.12);
}

.color-preset-btn.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255 255 255 / .15);
}

.color-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-custom-row input[type="color"] {
  width: 40px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.color-custom-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-custom-row input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255 255 255 / .2);
  border-radius: var(--radius-sm);
}

.color-hex-label {
  font-family: 'Inter', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ═══ Terms Box ═══ */
.terms-box {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.terms-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.terms-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid rgba(255 255 255 / .04);
}
.terms-list li:last-child { border-bottom: none; }
.terms-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--text-dim);
}
.terms-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.terms-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
  flex-shrink: 0;
  cursor: pointer;
}

/* ═══ Site Footer ═══ */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .03em;
}
.site-footer--profile {
  padding: 8px 16px 2px;
  font-size: 11px;
  margin-top: auto;
}

/* ═══ Song Management (edit.php) ═══ */
.song-search-wrap {
  display: flex;
  gap: 8px;
}
.song-search-wrap input {
  flex: 1;
}
.song-results {
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.song-result-item,
.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255 255 255 / .03);
  margin-bottom: 6px;
  transition: background .15s;
}
.song-result-item:hover,
.song-item:hover {
  background: rgba(255 255 255 / .06);
}
.song-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1420;
}
.song-info {
  flex: 1;
  min-width: 0;
}
.song-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-add-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: var(--accent-green);
  color: #000;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .15s;
  font-family: inherit;
}
.song-add-btn:hover { filter: brightness(1.15); }
.song-add-btn:disabled {
  opacity: .4;
  cursor: default;
}
.song-main-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(29 185 84 / .12);
  border: 1px solid rgba(29 185 84 / .2);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
}
.song-list {
  min-height: 40px;
}

/* ═══ Song Queue (profile.php) ═══ */
.q-song-item {
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.q-song-item:hover {
  background: rgba(255 255 255 / .05);
}
.q-song-item:active {
  background: rgba(255 255 255 / .08);
}
.q-song-active {
  background: rgba(29 185 84 / .1) !important;
}
.q-song-active .q-name {
  color: var(--accent-green) !important;
}
.q-song-play-icon {
  flex-shrink: 0;
  color: var(--text-dim);
  opacity: .5;
  transition: opacity .15s;
}
.q-song-item:hover .q-song-play-icon { opacity: 1; }
.q-song-active .q-song-play-icon { color: var(--accent-green); opacity: 1; }

/* Artwork playing state */
.artwork--playing {
  cursor: pointer;
  transition: transform .2s;
}
.artwork--playing:hover {
  transform: scale(1.02);
}

/* ═══ Admin Dashboard ═══ */
.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.admin-header {
  padding: 32px 0 24px;
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
}
.admin-back {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.admin-back:hover { color: var(--text-primary); }

/* Flash */
.admin-flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.admin-flash--ok {
  background: rgba(29 185 84 / .12);
  color: var(--accent-green);
  border: 1px solid rgba(29 185 84 / .2);
}
.admin-flash--err {
  background: rgba(220 53 69 / .12);
  color: #f87171;
  border: 1px solid rgba(220 53 69 / .2);
}

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: #141018;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.admin-stat-num {
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.1;
  margin-bottom: 4px;
}
.admin-stat-label {
  font-size: 12px;
  color: var(--text-dim);
}

/* Section */
.admin-section {
  margin-bottom: 32px;
}
.admin-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255 255 255 / .06);
}

/* Table */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255 255 255 / .06);
  border-radius: 12px;
  background: #141018;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.admin-table th,
.admin-table td {
  padding: 10px 14px;
  text-align: left;
}
.admin-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255 255 255 / .06);
  background: rgba(255 255 255 / .02);
}
.admin-table tbody tr {
  border-bottom: 1px solid rgba(255 255 255 / .04);
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255 255 255 / .02); }
.admin-td-id { color: var(--text-dim); font-size: 12px; }
.admin-td-dim { color: var(--text-secondary); font-size: 12px; }
.admin-td-num { text-align: center; }
.admin-user-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.admin-user-link:hover { text-decoration: underline; }

/* Badges */
.admin-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255 255 255 / .06);
  color: var(--text-secondary);
}
.admin-badge--admin {
  background: rgba(29 185 84 / .15);
  color: var(--accent-green);
}

/* Action buttons */
.admin-td-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.admin-inline-form { display: inline; }
.admin-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.admin-btn--ghost {
  background: rgba(255 255 255 / .06);
  color: var(--text-secondary);
}
.admin-btn--ghost:hover { background: rgba(255 255 255 / .12); color: var(--text-primary); }
.admin-btn--danger {
  background: rgba(220 53 69 / .15);
  color: #f87171;
}
.admin-btn--danger:hover { background: rgba(220 53 69 / .3); }

/* Responsive admin */
@media (max-width: 640px) {
  .admin-wrap { padding: 0 12px; }
  .admin-header { padding: 24px 0 16px; }
  .admin-table th,
  .admin-table td { padding: 8px 10px; font-size: 12px; }
  .admin-stat-card { padding: 16px; }
}
