/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
  /* Colors */
  --color-bg-primary: #faf8f5;
  --color-bg-pink: #fce7f3;
  --color-bg-card: #ffffff;
  --color-text-primary: #0a0a0a;
  --color-text-secondary: #525252;
  --color-text-muted: #a1a1aa;
  --color-accent-blue: #3b82f6;
  --color-accent-yellow: #fbbf24;
  --color-accent-pink: #fce7f3;
  --color-border: #0a0a0a;
  --color-success: #22c55e;
  --color-error: #ef4444;

  /* Typography */
  --font-family: 'Outfit', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --tracking-tight: -0.02em;

  /* Borders & Radius */
  --border-width: 3px;
  --border: var(--border-width) solid var(--color-border);
  --border-thin: 2px solid var(--color-border);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows (offset brutalist style) */
  --shadow-sm: 2px 2px 0 var(--color-border);
  --shadow-md: 4px 4px 0 var(--color-border);
  --shadow-lg: 6px 6px 0 var(--color-border);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Global Styles
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-pink) 100%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 3px solid var(--color-accent-blue);
  outline-offset: 2px;
}

/* ========================================
   Login Screen
   ======================================== */
#login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 24px;
  animation: fadeInUp 0.5s ease-out;
}

.login-card {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#login-screen h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  line-height: 1.1;
}

.squiggle {
  color: var(--color-accent-yellow);
  margin-top: -8px;
}

#login-screen p {
  color: var(--color-text-secondary);
  max-width: 320px;
  text-align: center;
  line-height: 1.5;
}

.connect-prompt {
  margin-top: 16px;
  color: var(--color-accent-blue);
  font-weight: 600;
}

#spotify-connect-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ========================================
   Buttons
   ======================================== */

/* Google Sign-In Button */
.btn-google {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border: var(--border);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-google:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-google:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn-google svg {
  flex-shrink: 0;
}

/* Primary Button */
.btn-primary {
  background: var(--color-accent-blue);
  color: #fff;
  border: var(--border);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* Secondary Button */
.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border: var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-accent-pink);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.75rem;
}

/* ========================================
   Header
   ======================================== */
.app-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border-bottom: var(--border);
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

.player-controls {
  display: flex;
  gap: 8px;
}

.control-btn {
  background: var(--color-bg-card);
  border: var(--border-thin);
  color: var(--color-text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--color-accent-yellow);
  transform: scale(1.05);
}

.now-playing {
  flex: 1;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: var(--border-thin);
  object-fit: cover;
}

/* ========================================
   Three-Column Layout
   ======================================== */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  height: calc(100vh - 73px);
  background: transparent;
}

.col-search,
.col-playlist,
.col-chat {
  padding: 20px;
  overflow-y: auto;
}

.col-search {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-right: var(--border);
}

.col-playlist {
  background: rgba(255, 255, 255, 0.85);
}

.col-chat {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-left: var(--border);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 24px 0 12px;
  color: var(--color-text-secondary);
}

/* ========================================
   Form Inputs
   ======================================== */
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-family: var(--font-family);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]::placeholder {
  color: var(--color-text-muted);
}

input[type="text"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#search-input {
  margin-bottom: 16px;
}

/* ========================================
   Queue
   ======================================== */
.sortable-list {
  min-height: 100px;
}

.queue-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.queue-actions .btn-primary,
.queue-actions .btn-secondary {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  font-size: 0.8rem;
}

/* Empty queue state */
.empty-queue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-queue-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-queue-text {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.empty-queue-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Hide empty state when queue has card items */
.sortable-list:has(.card) .empty-queue {
  display: none;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin: 12px 0;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.card.playing {
  background: var(--color-accent-pink);
  border-color: var(--color-success);
}

.card.dragging {
  opacity: 0.5;
}

.card.commentary {
  border-left-width: 6px;
  border-left-color: var(--color-accent-blue);
}

.card.track {
  border-left-width: 6px;
  border-left-color: var(--color-accent-yellow);
}

.card img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-play-btn {
  background: var(--color-accent-blue);
  border: var(--border-thin);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.card:hover .card-play-btn {
  opacity: 1;
}

.card-play-btn:hover {
  transform: scale(1.1);
}

.card-remove-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.card:hover .card-remove-btn {
  opacity: 1;
}

.card-remove-btn:hover {
  color: var(--color-error);
}

.drag-handle {
  color: var(--color-text-muted);
  cursor: grab;
  padding: 4px;
  font-size: 1rem;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.card.dragging {
  opacity: 0.5;
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-blue);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.card-icon.pending {
  background: var(--color-text-secondary);
  color: #fff;
}

/* Editable commentary text */
.commentary-text {
  width: 100%;
  background: var(--color-bg-card);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  padding: 8px 10px;
  resize: none;
  font-family: var(--font-family);
  line-height: 1.4;
}

.commentary-text:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Placeholder text */
.placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* ========================================
   Search Results & Playlist Items
   ======================================== */
.search-item,
.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: 2px solid transparent;
}

.search-item:hover,
.playlist-item:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

.search-item img,
.playlist-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
  object-fit: cover;
}

.search-item-info,
.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title,
.playlist-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-artist,
.playlist-item-count {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.add-btn {
  background: var(--color-bg-card);
  border: var(--border-thin);
  color: var(--color-text-primary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.add-btn:hover {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  color: #fff;
  transform: scale(1.1);
}

.back-btn {
  margin-bottom: 12px;
  width: 100%;
}

.add-all-btn {
  margin-bottom: 12px;
  width: 100%;
}

.playlist-header {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

#search-results {
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

/* Search Tabs */
.search-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}

.search-tab {
  flex: 1;
  background: var(--color-bg-card);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-tab:hover {
  background: var(--color-accent-pink);
}

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

/* Show More Button */
.btn-show-more {
  width: 100%;
  background: transparent;
  border: 2px dashed var(--color-text-muted);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--transition-fast);
}

.btn-show-more:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

/* Playlist Owner Badge */
.playlist-owner {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.playlist-owner-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.playlist-owner-badge.yours {
  background: var(--color-accent-yellow);
  color: var(--color-text-primary);
}

.playlist-owner-badge.public {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-secondary);
}

#playlists {
  margin-top: 8px;
  max-height: calc(100vh - 450px);
  overflow-y: auto;
}

/* Saved Playlists */
#saved-playlists {
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.saved-playlist {
  border-left: 3px solid var(--color-accent-blue);
  background: rgba(59, 130, 246, 0.04);
  padding-left: 12px;
}

.delete-playlist-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.playlist-item:hover .delete-playlist-btn {
  opacity: 1;
}

.delete-playlist-btn:hover {
  color: var(--color-error);
}

/* ========================================
   Chat Styles
   ======================================== */
.col-chat {
  display: flex;
  flex-direction: column;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  max-width: 85%;
  font-size: 0.875rem;
  line-height: 1.6;
}

.chat-message.user {
  background: var(--color-accent-blue);
  color: #fff;
  align-self: flex-end;
  border: none;
  border-bottom-right-radius: 4px;
}

.chat-message.assistant {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  align-self: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 4px;
}

.chat-message.loading {
  color: var(--color-text-secondary);
  font-style: italic;
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.2);
}

.generate-audio-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.draft-actions {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  flex-wrap: wrap;
}

.draft-actions .btn-primary,
.draft-actions .btn-secondary {
  font-size: 0.875rem;
}

#chat-input {
  flex-shrink: 0;
}

/* ========================================
   Chat Quick Actions
   ======================================== */
.chat-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--color-text-muted);
}

.quick-actions-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-card);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.quick-action-btn:hover {
  background: var(--color-accent-pink);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}

.quick-action-icon {
  font-size: 1.25rem;
}

.quick-action-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Learn Options (reuse quick-action-btn styling) */
.learn-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.learn-options .quick-action-btn {
  padding: 10px 14px;
}

/* ========================================
   Commentary Draft Cards
   ======================================== */
.drafts-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draft-card {
  background: var(--color-bg-card);
  border: var(--border);
  border-left-width: 4px;
  border-left-color: var(--color-accent-blue);
  border-radius: var(--radius-md);
  padding: 12px;
}

.draft-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.draft-card-number {
  background: var(--color-accent-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.draft-card-track {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-card-text {
  width: 100%;
  background: var(--color-bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  resize: none;
  font-family: var(--font-family);
  min-height: 60px;
}

.draft-card-text:focus {
  outline: none;
  border-color: var(--color-accent-blue);
}

/* Track Limit Warning */
.track-limit-warning {
  background: var(--color-accent-yellow);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-limit-warning-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========================================
   Voice Selector
   ======================================== */
.voice-selector {
  max-height: 350px;
  overflow-y: auto;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  padding: 12px;
}

.voice-category {
  margin-bottom: 16px;
}

.voice-category:last-child {
  margin-bottom: 0;
}

.voice-category-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--color-text-muted);
}

.voice-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-card {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}

.voice-card.selected {
  background: var(--color-accent-pink);
  border-color: var(--color-accent-blue);
}

.voice-card.playing {
  border-color: var(--color-success);
}

.voice-info {
  flex: 1;
  min-width: 0;
}

.voice-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.voice-labels {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.voice-label {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.voice-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid;
  flex-shrink: 0;
}

.voice-badge.cloned {
  background: var(--color-accent-yellow);
  border-color: var(--color-border);
}

.voice-badge.premade,
.voice-badge.generated {
  background: transparent;
  border-color: var(--color-text-muted);
  color: var(--color-text-secondary);
}

.voice-preview-btn {
  background: var(--color-bg-card);
  border: var(--border-thin);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.voice-preview-btn:hover {
  background: var(--color-accent-blue);
  color: #fff;
}

.voice-preview-btn.playing {
  background: var(--color-accent-blue);
  color: #fff;
}

.voice-loading,
.voice-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ========================================
   Modal
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.modal-close {
  background: var(--color-bg-card);
  border: var(--border-thin);
  color: var(--color-text-primary);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-accent-pink);
}

.modal-body {
  padding: 24px;
}

.modal-body h3 {
  color: var(--color-accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px 0;
}

.setting-group {
  margin-bottom: 20px;
}

.setting-group label {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.setting-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.setting-group select:focus {
  outline: none;
  border-color: var(--color-accent-blue);
}

.setting-group input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--color-accent-pink);
  border-radius: var(--radius-full);
  appearance: none;
  cursor: pointer;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-accent-blue);
  border: var(--border-thin);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.setting-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.setting-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-accent-blue);
  border: var(--border-thin);
  border-radius: var(--radius-full);
  cursor: pointer;
}

#save-settings,
#save-ai-settings {
  width: 100%;
  margin-top: 8px;
}

/* ========================================
   Settings Tabs
   ======================================== */
.settings-tabs {
  display: flex;
  border-bottom: var(--border);
  background: var(--color-bg-primary);
}

.settings-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.settings-tab:hover {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
}

.settings-tab.active {
  background: var(--color-bg-card);
  color: var(--color-accent-blue);
  border-bottom-color: var(--color-accent-blue);
}

.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: block;
}

/* AI Settings specific styles */
.setting-hint {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  font-style: italic;
}

.setting-description {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.prompt-textarea {
  width: 100%;
  background: var(--color-bg-primary);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.8rem;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
  transition: border-color var(--transition-fast);
}

.prompt-textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.prompt-textarea::placeholder {
  color: var(--color-text-muted);
}

.btn-reset-prompt {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.btn-reset-prompt:hover {
  color: var(--color-accent-blue);
}

/* ========================================
   Mobile Tab Navigation
   ======================================== */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border-top: var(--border);
  z-index: 100;
  padding: 8px 0;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.mobile-tabs-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.mobile-tab-icon {
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.mobile-tab.active {
  color: var(--color-accent-blue);
}

.mobile-tab.active .mobile-tab-icon {
  background: var(--color-accent-pink);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.mobile-tab:hover {
  color: var(--color-text-primary);
}

/* Keep Awake Indicator */
.keep-awake-indicator {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--color-accent-yellow);
  color: var(--color-text-primary);
  border: var(--border-thin);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 99;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.keep-awake-indicator.active {
  display: flex;
}

.keep-awake-dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

/* ========================================
   Mobile Responsive Styles
   ======================================== */
@media (max-width: 768px) {
  /* Show mobile tabs */
  .mobile-tabs {
    display: block;
  }

  /* Header adjustments */
  .app-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .logo {
    display: none;
  }

  .player-controls {
    order: 1;
    flex: 0;
  }

  .control-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .now-playing {
    order: 2;
    flex: 1;
    min-width: 0;
  }

  #now-playing-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-info {
    order: 3;
  }

  #user-name {
    display: none;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
  }

  /* Stack columns vertically and show only active one */
  .app-container {
    display: block;
    height: calc(100vh - 65px - 75px); /* Header + mobile tabs */
    overflow: hidden;
    position: relative;
  }

  .col-search,
  .col-playlist,
  .col-chat {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    display: none;
    border: none;
    padding: 16px;
    padding-bottom: 16px;
    background: rgba(255, 255, 255, 0.4);
  }

  .col-search.mobile-active,
  .col-playlist.mobile-active,
  .col-chat.mobile-active {
    display: flex !important;
    flex-direction: column;
  }

  /* Queue column adjustments */
  .col-playlist h2 {
    flex-shrink: 0;
  }

  .sortable-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .queue-actions {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
  }

  .queue-actions .btn-primary,
  .queue-actions .btn-secondary {
    font-size: 0.8rem;
    padding: 12px 14px;
  }

  /* Chat column adjustments - flex-direction set when mobile-active */
  #chat-messages {
    flex: 1;
    min-height: 0;
  }

  /* Search column adjustments */
  .col-search h3 {
    margin-top: 12px;
  }

  #playlists {
    max-height: none;
    flex: 1;
    min-height: 0;
  }

  #saved-playlists {
    max-height: 120px;
  }

  #search-results {
    max-height: 200px;
  }

  /* Cards */
  .card {
    padding: 10px 12px;
    gap: 10px;
    margin: 10px 0;
  }

  .card img,
  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-subtitle {
    font-size: 0.75rem;
  }

  .card-play-btn,
  .card-remove-btn {
    opacity: 1;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    max-height: 80vh;
  }

  /* Login screen */
  .login-card {
    padding: 32px 24px;
    margin: 16px;
  }

  #login-screen h1 {
    font-size: 1.8rem;
  }

  /* Keep awake indicator position */
  .keep-awake-indicator {
    bottom: 90px;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .queue-actions {
    flex-direction: column;
  }

  .queue-actions .btn-primary,
  .queue-actions .btn-secondary {
    min-width: 100%;
  }

  .mobile-tab {
    padding: 8px 12px;
    font-size: 0.65rem;
  }

  .mobile-tab-icon {
    font-size: 1.1rem;
  }

  .login-card {
    padding: 24px 20px;
  }

  #login-screen h1 {
    font-size: 1.5rem;
  }
}

/* ========================================
   Library Page
   ======================================== */
#library-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.3s ease-out;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border-bottom: var(--border);
}

.library-header h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

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

.btn-back {
  background: var(--color-bg-card);
  border: var(--border-thin);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: var(--color-accent-pink);
}

.library-content {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.library-section {
  margin-bottom: 40px;
}

.library-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.library-section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.library-playlist-card {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.library-playlist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.library-playlist-card.subscribed {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-accent-pink) 100%);
}

.library-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.library-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.subscription-badge {
  background: var(--color-accent-yellow);
  border: 2px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.library-card-meta {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.library-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-library-action {
  background: var(--color-bg-card);
  border: var(--border-thin);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-library-action:hover {
  background: var(--color-accent-pink);
}

.btn-library-action.btn-play {
  background: var(--color-accent-blue);
  color: white;
  border-color: var(--color-border);
}

.btn-library-action.btn-play:hover {
  background: #2563eb;
}

.btn-library-action.btn-delete:hover {
  background: var(--color-error);
  color: white;
}

/* ========================================
   Share Modal
   ======================================== */
.share-modal-content {
  max-width: 480px;
}

.share-link-container {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.share-link-container input {
  flex: 1;
  padding: 12px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.875rem;
  background: var(--color-bg-primary);
}

.share-link-container .btn-primary {
  padding: 12px 20px;
}

.share-note {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.share-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-danger {
  background: var(--color-error);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ========================================
   Paste Text Confirmation Modal
   ======================================== */
.paste-confirm-content {
  max-width: 420px;
}

.paste-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.paste-stat {
  background: var(--color-bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.paste-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.paste-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.paste-warning {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #92400e;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.paste-note {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ========================================
   Shared Playlist Player Page
   ======================================== */
#shared-playlist-page {
  min-height: 100vh;
  animation: fadeInUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

/* Mobile Warning Banner */
.shared-mobile-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 2px solid #f59e0b;
  padding: 16px 24px;
  text-align: center;
}

.mobile-warning-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-warning-icon {
  font-size: 1.5rem;
}

.mobile-warning-content p {
  color: #92400e;
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.shared-player-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Main panel - playlist (takes remaining space above fixed player) */
.shared-playlist-panel {
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-bottom: 100px; /* Space for fixed player bar */
}

.shared-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border-bottom: var(--border);
}

.shared-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.shared-header-actions {
  display: flex;
  gap: 8px;
}

.shared-playlist-info {
  padding: 24px;
  background: var(--color-bg-card);
  border-bottom: var(--border);
}

.shared-playlist-info h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 4px;
}

.shared-meta {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* Track list */
.shared-track-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.shared-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.shared-track-item:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

.shared-track-item.playing {
  background: var(--color-accent-pink);
  border-color: var(--color-border);
}

.shared-track-item.commentary {
  background: rgba(251, 191, 36, 0.1);
}

.shared-track-item.commentary.playing {
  background: var(--color-accent-yellow);
}

.shared-track-number {
  width: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.shared-track-item.playing .shared-track-number {
  color: var(--color-accent-blue);
  font-weight: 700;
}

.shared-track-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  object-fit: cover;
  flex-shrink: 0;
}

.shared-commentary-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-yellow);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.shared-track-details {
  flex: 1;
  min-width: 0;
}

.shared-track-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.shared-track-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fixed bottom player bar */
.shared-now-playing-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-bg-card);
  border-top: var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  z-index: 100;
}

.shared-bar-album-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: var(--border);
  object-fit: cover;
  background: var(--color-bg-primary);
  flex-shrink: 0;
}

.shared-bar-track-info {
  flex: 1;
  min-width: 0;
}

.shared-bar-track-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-bar-track-artist {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.shared-bar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--border);
  background: var(--color-bg-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shared-bar-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.shared-bar-btn.shared-bar-play-btn {
  width: 48px;
  height: 48px;
  background: var(--color-accent-blue);
  color: white;
  font-size: 1.25rem;
}

.shared-bar-progress {
  width: 200px;
  flex-shrink: 0;
}

/* Keep these for backwards compat but no longer used */
.shared-album-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: var(--border);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  margin-bottom: 24px;
  background: var(--color-bg-primary);
}

.shared-track-info {
  margin-bottom: 24px;
}

.shared-track-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.shared-track-artist {
  color: var(--color-text-secondary);
}

.shared-progress-bar {
  height: 6px;
  background: var(--color-bg-primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.shared-progress-fill {
  height: 100%;
  background: var(--color-accent-blue);
  width: 0%;
  transition: width 0.1s linear;
}

/* Login prompt */
.shared-login-prompt {
  text-align: center;
  padding: 40px;
}

.shared-login-prompt p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.shared-login-prompt .connect-prompt {
  margin-top: 16px;
  color: var(--color-accent-blue);
  font-weight: 600;
}

/* Responsive - Shared Player */
@media (max-width: 768px) {
  .shared-now-playing-bar {
    height: 72px;
    padding: 0 12px;
    gap: 10px;
  }

  .shared-bar-album-art {
    width: 48px;
    height: 48px;
  }

  .shared-bar-track-name {
    font-size: 0.9rem;
  }

  .shared-bar-progress {
    display: none; /* Hide progress on mobile to save space */
  }

  .shared-playlist-panel {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .shared-now-playing-bar {
    height: 64px;
    padding: 0 8px;
    gap: 8px;
  }

  .shared-bar-album-art {
    width: 44px;
    height: 44px;
  }

  .shared-bar-btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .shared-bar-btn.shared-bar-play-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .shared-bar-controls {
    gap: 4px;
  }

  .shared-playlist-panel {
    padding-bottom: 72px;
  }
}

/* Library page responsive */
@media (max-width: 768px) {
  .library-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .library-header h1 {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .library-content {
    padding: 16px;
  }

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