/* player-styles.css - Spotify-like Music Player Styles */

:root {
  --bg-primary: #121212;
  --bg-secondary: #181818;
  --bg-elevated: #282828;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-subdued: #6a6a6a;
  --accent-green: #1db954;
  --accent-green-hover: #1ed760;
  --sidebar-width: 240px;
  --now-playing-height: 90px;
  --header-height: 60px;
  --bottom-nav-height: 65px;  /* Bottom navigation height - for proper layering */
}

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

body {
  font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  user-select: none;
}

.player-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.player-header {
  background: var(--bg-elevated);
  height: var(--header-height);
  border-bottom: 1px solid #282828;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.back-button {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-button:hover {
  color: var(--text-primary);
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--text-subdued);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.logout-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Main Layout */
.player-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding-bottom: calc(var(--now-playing-height) + var(--bottom-nav-height) + 16px);  /* Player + Nav + spacing */
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #000;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #282828;
  z-index: 50;
}

.nav-menu {
  padding: 24px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-green);
  padding-left: 21px;
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid #282828;
}

/* Content Area */
.content-area {
  flex: 1;
  background: var(--bg-primary);
  overflow-y: auto;
  padding: 24px 32px;
}

/* Search Bar */
.search-container {
  margin-bottom: 24px;
}

.search-input {
  background: var(--bg-elevated);
  border: none;
  border-radius: 500px;
  color: var(--text-primary);
  padding: 10px 36px 10px 16px;
  width: 100%;
  max-width: 400px;
  font-size: 14px;
  outline: none;
  transition: background 0.2s;
}

.search-input::placeholder {
  color: var(--text-subdued);
}

.search-input:focus {
  background: #333;
}

/* Track List */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-item {
  display: grid;
  grid-template-columns: 40px 1fr 100px 40px 40px 40px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.track-item:hover {
  background: var(--bg-elevated);
}

.track-item.active {
  background: var(--bg-elevated);
}

.track-item.active .track-name {
  color: var(--accent-green);
}

.track-number {
  color: var(--text-subdued);
  font-size: 14px;
  text-align: center;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
}

.track-name {
  font-size: 14px;
  color: var(--text-primary);
}

.track-artist-small {
  font-size: 12px;
  color: var(--text-secondary);
}

.track-duration {
  color: var(--text-subdued);
  font-size: 14px;
  text-align: right;
}

.track-favorite {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: transform 0.2s;
}

.track-favorite:hover {
  transform: scale(1.1);
}

.track-favorite.active {
  color: var(--accent-green);
}

/* ===================================
   ADD TO PLAYLIST BUTTON FIX
   Making it visible and accessible
=================================== */
.add-to-playlist-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: all 0.2s;
  opacity: 1; /* Always visible */
  position: relative;
}

.add-to-playlist-btn:hover {
  color: var(--accent-green);
  transform: scale(1.1);
}

/* Success state for add to playlist */
.add-to-playlist-btn.success {
  color: var(--accent-green);
}

/* Remove track button for user playlists */
.remove-track-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: all 0.2s;
  opacity: 1;
}

.remove-track-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

/* Track actions container */
.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Playlist Modal Styles */
#addToPlaylistModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

#addToPlaylistModal.show {
  display: flex;
}

#addToPlaylistModal .modal-content {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow-y: auto;
}

#addToPlaylistModal .modal-header {
  margin-bottom: 20px;
}

#addToPlaylistModal .modal-header h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

#addToPlaylistModal .modal-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.playlist-option {
  display: block;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.playlist-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-green);
  transform: translateY(-1px);
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-secondary);
}

.empty-state p {
  margin-bottom: 16px;
}

/* Tooltip for first-time users */
.playlist-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
  animation: tooltipBounce 0.5s ease;
  font-weight: 600;
}

.tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--accent-green);
}

@keyframes tooltipBounce {
  0% { transform: translateX(-50%) translateY(10px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent-green);
  color: #000;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 10000;
  font-weight: 600;
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast.error {
  background: #ef4444;
  color: white;
}

/* Now Playing Bar */
.now-playing-bar {
  position: fixed;
  bottom: var(--bottom-nav-height);  /* Sits above bottom navigation */
  left: 0;
  right: 0;
  height: var(--now-playing-height);
  background: var(--bg-elevated);
  border-top: 1px solid #282828;
  z-index: 100;
}

.now-playing-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  height: 100%;
  padding: 0 16px;
}

/* Track Info Section */
.track-info-section {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.album-art {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-secondary);
}

.track-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  transition: color 0.2s;
}

.favorite-btn:hover {
  color: var(--text-primary);
}

/* Player Controls Section */
.player-controls-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  transition: all 0.2s;
}

.control-btn:hover {
  color: var(--text-primary);
  transform: scale(1.06);
}

.play-btn {
  background: #fff;
  color: #000;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
}

.time {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
  background: var(--accent-green);
}

.progress-bar:hover .progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

/* Extra Controls Section */
.extra-controls-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-secondary);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.volume-slider:hover::-webkit-slider-thumb {
  opacity: 1;
}

.control-btn.active {
  color: var(--accent-green);
}

/* Playlist View */
.playlist-view {
  padding: 24px 0;
}

.playlist-view h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

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

.playlist-card {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
}

.playlist-card:hover {
  background: #282828;
}

.playlist-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.playlist-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.playlist-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.create-new {
  border: 2px dashed var(--text-subdued);
  background: transparent;
}

.create-new:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

/* Loading States */
.loading-spinner {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
}

.error-message {
  text-align: center;
  padding: 48px;
  color: #f44336;
}

.no-tracks {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
}

/* Album Art Placeholder */
.album-art[src=""],
.album-art:not([src]) {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4d 100%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}

.album-art[src=""]::after,
.album-art:not([src])::after {
  content: "🎵";
  font-size: 24px;
  color: var(--text-subdued);
}

/* Share Button Styles */
.share-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  transition: all 0.2s;
  position: relative;
}

.share-btn:hover {
  color: var(--accent-green);
  transform: scale(1.1);
}

.track-share {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: all 0.2s;
  margin-left: 8px;
}

.track-share:hover {
  color: var(--accent-green);
  transform: scale(1.1);
}

/* Share Modal */
#share-modal-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  pointer-events: none;
}

.share-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 10001 !important;
  pointer-events: all !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.share-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 24px;
  z-index: 10002 !important;
  max-width: 400px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  pointer-events: all !important;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.share-option {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.share-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.share-option-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.share-option-name {
  font-size: 14px;
  color: var(--text-primary);
}

.share-reward {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}

.share-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent-green);
  color: #000;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 10003;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Hide sidebar completely on mobile - use bottom nav instead */
  .sidebar {
    display: none;
  }

  /* Make main content full width when sidebar hidden */
  .player-main {
    grid-template-columns: 1fr;
  }

  .nav-item span:not(.nav-icon) {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  /* Fix header overlap */
  .header-content {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .header-center-group {
    order: 2;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .header-title {
    text-align: right;
  }

  .search-container {
    margin-top: 8px;
  }

  /* Hide username on mobile, smaller profile pic */
  #userSoulPrint {
    display: none !important;
  }

  .profile-avatar-btn img,
  #userProfilePic {
    width: 36px !important;
    height: 36px !important;
  }

  #userProfileEmoji {
    font-size: 28px !important;
  }

  .user-info {
    align-items: center;
  }

  .now-playing-content {
    grid-template-columns: 1fr;
  }

  .track-info-section,
  .extra-controls-section {
    display: none;
  }

  .content-area {
    padding: 16px;
  }

  /* Adjust track grid for mobile - 6 columns for 6 elements */
  .track-item {
    grid-template-columns: 30px 1fr 50px 30px 30px 30px;
    padding: 12px 8px;
    gap: 6px;
  }

  /* Ensure buttons are visible and accessible on mobile */
  .track-actions {
    display: flex !important;
    gap: 4px;
  }

  .add-to-playlist-btn,
  .remove-track-btn,
  .track-favorite {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .share-modal {
    width: calc(100% - 32px);
    padding: 20px;
    max-width: none;
  }

  .share-options {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .share-option {
    padding: 12px;
  }

  .share-option-icon {
    font-size: 28px;
  }

  .share-option-name {
    font-size: 12px;
  }

  /* Sunday Drop Styles */
  .clipboard-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }

  .clipboard-confirm-modal .modal-content {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
  }

  .clipboard-confirm-modal h3 {
    margin-bottom: 12px;
  }

  .clipboard-confirm-modal button {
    margin: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .clipboard-confirm-modal .confirm-btn {
    background: #10b981;
    color: white;
    border: none;
  }

  .clipboard-confirm-modal .cancel-btn {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #94a3b8;
  }

  .clipboard-confirm-modal button:hover {
    transform: translateY(-1px);
  }

  #sundayDropDisplay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
  }

  .drop-icon {
    font-size: 1.2em;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .add-to-playlist-btn,
  .remove-track-btn,
  .track-favorite {
    opacity: 1 !important;
  }
}

/* ==============================================
   TIER-BASED ACCESS CONTROL STYLES
   ============================================== */

/* Locked Track Styles - Subtle Grayed Out */
.track-locked {
    opacity: 0.5;
    cursor: pointer; /* Still clickable to show toast */
}

.track-locked .track-name,
.track-locked .track-artist-small,
.track-locked .track-duration {
    color: rgba(255, 255, 255, 0.4) !important;
}

.track-locked button {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Drag-and-drop styles for playlist reordering */
.track-item[draggable="true"] {
    cursor: grab;
}

.track-item[draggable="true"]:active {
    cursor: grabbing;
}

.track-item.dragging {
    opacity: 0.5;
    background: rgba(255, 158, 66, 0.1);
}

.track-item.drag-over {
    border-top: 2px solid rgba(255, 158, 66, 0.8);
    border-radius: 4px;
}

.drag-handle {
    color: rgba(255, 158, 66, 0.6);
    margin-right: 8px;
    font-size: 14px;
    cursor: grab;
}

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

/* Small Tier Requirement Badge */
.tier-requirement-badge {
    padding: 3px 8px;
    background: rgba(255, 158, 66, 0.2);
    color: #FFD365;
    border: 1px solid rgba(255, 158, 66, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

/* Upgrade Toast Notification */
.upgrade-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(28, 22, 18, 0.98) 0%, rgba(40, 30, 25, 0.98) 100%);
    border: 2px solid rgba(255, 158, 66, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    max-width: 400px;
    will-change: opacity;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

.toast-cta {
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF9E42 0%, #FFD365 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s;
    white-space: nowrap;
}

.toast-cta:hover {
    transform: translateY(-2px);
}

.toast-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFD365;
    font-size: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
}

.toast-close:hover {
    background: rgba(255, 158, 66, 0.2);
}

/* Toast Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .upgrade-toast {
        top: 20px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    /* Improve locked track readability on mobile */
    .track-locked {
        opacity: 0.65;  /* Increased from 0.5 for better mobile readability */
    }

    .track-locked .track-name,
    .track-locked .track-artist-small,
    .track-locked .track-duration {
        color: rgba(255, 255, 255, 0.65) !important;  /* Increased from 0.4 */
    }

    .track-locked button {
        opacity: 0.5;  /* Slightly brighter buttons on mobile */
    }

    /* Improve tier badge contrast on mobile */
    .tier-requirement-badge {
        background: rgba(255, 158, 66, 0.3);  /* Increased from 0.2 */
        border: 1px solid rgba(255, 158, 66, 0.5);  /* Increased from 0.3 */
    }
}