/* --------------------------------------------------------------------------
   SongRank — Contemporary Billboard Design System
   Zero Overlap & Strict Calculated Vertical Rhythm
   -------------------------------------------------------------------------- */

:root {
  --bg: #090e17;
  --bg-card: #0f172a;
  --bg-card-hover: #141f36;
  --panel: #111a2e;
  --border: rgba(148, 163, 184, 0.14);
  --border-focus: rgba(56, 189, 248, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --upvote-color: #22c55e;
  --upvote-bg: rgba(34, 197, 94, 0.12);
  --downvote-color: #f43f5e;
  --downvote-bg: rgba(244, 63, 94, 0.12);
  --video-accent: #a855f7;
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select {
  font-family: inherit;
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── APP HEADER ───────────────────────────────────────────────────────── */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 14, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--accent);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.btn-publish {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.btn-publish:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.6);
  color: #e9d5ff;
}

.btn-auth {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-auth:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-passkey {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-passkey:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #334155, #475569);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--downvote-color);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
  text-decoration: underline;
}

.full-width {
  width: 100%;
}

/* ─── MAIN CONTENT ─────────────────────────────────────────────────────── */

.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── CONTROLS CARD (Search, Sort, Filter Pills) ────────────────────────── */

.controls-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-sort-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.search-input-wrap input:focus {
  border-color: var(--border-focus);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

.sort-wrap {
  position: relative;
  min-width: 180px;
}

.sort-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-wrap select:focus {
  border-color: var(--border-focus);
}

.sort-wrap .chevron-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.filter-pills-row::-webkit-scrollbar {
  height: 4px;
}

.filter-pills-row::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
}

.pill-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-main);
}

.pill-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pill-video {
  border-color: rgba(168, 85, 247, 0.3);
}

.pill-video.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--video-accent);
  color: #e9d5ff;
}

.pill-exclusive {
  border-color: rgba(251, 191, 36, 0.3);
}

.pill-exclusive.active {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  color: #fef3c7;
}

/* ─── BILLBOARD TIMELINE FEED ─────────────────────────────────────────── */

.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.timeline-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-left: 4px;
}

.feed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── SONG CARD (Faithful to Reference UI Screenshot) ─────────────────── */

.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.22s ease;
  position: relative;
}

.song-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.song-card.is-playing {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px -4px rgba(56, 189, 248, 0.18);
}

/* Card Header: Title, Label Chip, Genre, Action Links */
.song-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.song-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.song-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.song-artist {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}

.song-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.song-genre-dot {
  color: var(--text-dim);
  font-size: 13.5px;
}

.song-genre-text {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
}

.song-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-video {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.badge-video:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--video-accent);
  color: #fff;
}

.badge-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-drop-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ─── WAVEFORM & PLAYBACK ROW (Central visual element from screenshot) ─── */

.song-playback-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Circular Play Button */
.play-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-btn:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.play-btn.playing {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* Waveform Canvas Container */
.waveform-container {
  flex: 1;
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

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

/* Duration label beside waveform */
.duration-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 42px;
  text-align: right;
}

/* Right-side Voting & Social Controls */
.song-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.vote-btn.vote-up:hover {
  background: var(--upvote-bg);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--upvote-color);
}

.vote-btn.vote-up.active {
  background: var(--upvote-bg);
  border-color: var(--upvote-color);
  color: var(--upvote-color);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.vote-btn.vote-down:hover {
  background: var(--downvote-bg);
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--downvote-color);
}

.vote-btn.vote-down.active {
  background: var(--downvote-bg);
  border-color: var(--downvote-color);
  color: var(--downvote-color);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.share-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.share-action-btn:hover {
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.3);
}

.share-action-btn.btn-x:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.share-action-btn.btn-fb:hover {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
}

/* ─── FLOATING NOW PLAYING BAR ─────────────────────────────────────────── */

.floating-player-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, calc(100% - 32px));
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  z-index: 90;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-player-bar.hidden {
  display: none;
}

.player-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.now-playing-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-cover-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.p-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.p-play-btn:hover {
  transform: scale(1.08);
}

.player-time-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.player-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.share-icon-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ─── MODALS ───────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.1);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-video-card {
  width: min(880px, 100%);
}

.modal-publish-card {
  width: min(680px, 100%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.modal-badge.video-badge {
  color: var(--video-accent);
}

.modal-badge.publish-badge {
  color: #34d399;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.close-modal-btn {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.close-modal-btn:hover {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-main);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Passkey box inside modal */
.passkey-login-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.passkey-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.passkey-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.passkey-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin: 4px 0;
}

.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.modal-divider span {
  padding: 0 10px;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select {
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
}

.role-chip input[type="radio"] {
  accent-color: var(--accent);
}

.otp-code-input {
  letter-spacing: 0.3em;
  font-family: var(--font-mono);
  font-size: 22px !important;
  text-align: center;
  font-weight: 700;
}

.demo-otp-hint {
  font-size: 12px;
  color: #38bdf8;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

.demo-otp-hint:empty {
  display: none;
}

.auth-status-msg {
  font-size: 13px;
  min-height: 20px;
  text-align: center;
}

.auth-status-msg.error {
  color: var(--downvote-color);
}

.auth-status-msg.success {
  color: var(--upvote-color);
}

/* Video Modal */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.video-song-info h3 {
  font-size: 18px;
  font-weight: 700;
}

.video-song-info p {
  color: var(--text-muted);
  font-size: 13.5px;
}

.share-pill-btn {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.share-pill-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent);
}

/* Account Profile Card */
.profile-card-details {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.detail-row .lbl {
  color: var(--text-muted);
}

.val-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}

.passkey-cta-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passkey-cta-text h3 {
  font-size: 15px;
  font-weight: 700;
}

.passkey-cta-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.ai-preview-notice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: #bae6fd;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-sparkle {
  font-size: 15px;
}

/* Feed Loader & Empty State */
.feed-loader, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ─── MOBILE RESPONSIVE OPTIMIZATIONS ──────────────────────────────────── */

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .logo-text {
    font-size: 18px;
  }

  .live-pill {
    display: none;
  }

  .btn-publish span {
    display: none;
  }

  .btn-publish {
    padding: 8px 10px;
  }

  .search-sort-row {
    flex-direction: column;
  }

  .sort-wrap {
    width: 100%;
  }

  .song-card {
    padding: 14px 14px;
    gap: 12px;
  }

  .song-playback-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .waveform-container {
    order: 1;
    width: calc(100% - 60px);
    height: 40px;
  }

  .duration-label {
    order: 2;
  }

  .song-actions-row {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
  }

  .vote-btn {
    flex: 1;
  }
}
