:root {
    --color-background: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-primary: #00ffaa; /* Neon green for crypto vibe */
    --color-secondary: #7b61ff; /* Neon purple accent */
    --color-text: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --color-error: #ff4d4d;
    --player-height: 70px; /* Updated to match fixed player height */
    --gradient-primary: linear-gradient(135deg, #00ffaa 0%, #7b61ff 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(0, 255, 170, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: var(--player-height);
    padding-top: 80px; /* Push content below fixed header */
}

/* --- HEADER --- */
.site-header {
    background-color: var(--color-surface);
    color: #fff;
    padding: 12px 16px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1f1f1f;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
}

.db-status {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Hamburger Icon */
.hamburger {
    display: inline-block;
    cursor: pointer;
    padding: 10px;
 position: relative; /* needed for z-index */
    z-index: 101;       /* above filter-section */

}

.bar1, .bar2, .bar3 {
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    margin: 6px 0;
    transition: 0.4s;
}

/* Dropdown Menu */
.menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: var(--color-surface);
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.menu a {
    color: var(--color-text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- CONTAINER --- */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1, h2 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

/* --- TABLE --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    background-color: var(--color-surface);
}

th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

th a {
    color: var(--color-primary);
    text-decoration: none;
}

tr {
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
    border-radius: 8px;
}

tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

tr.playing {
    background: linear-gradient(90deg, rgba(0, 255, 170, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

tr.clickable-row {
    cursor: pointer;
}

/* --- FILTER SECTION --- */
.filter-section {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-row label,
.options-row label {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.filter-row input[type="text"] {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    flex-grow: 1;
    transition: border 0.2s;
}

.filter-row input[type="text"]:focus {
    border-color: var(--color-primary);
    outline: none;
}

.filter-row button {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.filter-row button:hover {
    transform: scale(1.05);
}

.options-row {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- SWITCH --- */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    width: 50px;
    height: 26px;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background-color: white;
    transition: .4s;
    top: 2px;
    left: 2px;
}

input:checked + .slider {
    background: var(--gradient-primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.label-text {
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* --- GENRE CLOUD --- */
.genre-cloud {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.genre-cloud a {
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 15px;
    margin: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.genre-cloud a:hover {
    color: var(--color-primary);
    transform: scale(1.1) rotate(3deg);
    box-shadow: var(--shadow-glow);
    background: rgba(0, 255, 170, 0.1);
}

.genre-cloud a span {
    color: var(--color-text-secondary);
    font-size: 0.8em;
    margin-left: 8px;
}

/* Base ensures border exists so the highlight is visible */
.genre-cloud .genre-link,
.genre-grid  .genre-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* Selected state with higher specificity than generic .genre-cloud a rules */
.genre-cloud .genre-link.selected,
.genre-grid .genre-link.selected {
  border: 2px solid #00ffcc;                  /* crypto border highlight */
  background-color: rgba(0, 255, 204, 0.1);   /* faint tint so it still looks subtle */
  color: #00ffcc;                             /* text highlight */
}

/* --- DJ MODE --- */
.dj-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0;
}

.dj-deck {
  flex: 1;
  background: var(--color-surface);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.dj-deck h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.deck-playlist {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.deck-playlist li {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.deck-playlist li:hover {
  background: rgba(255,255,255,0.05);
}

.dj-controls {
  flex: 0.5;
  text-align: center;
  background: var(--color-surface);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dj-controls h3 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.dj-controls button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--gradient-primary);
  color: white;
}

.crossfader {
  margin-top: 1rem;
}

.crossfader input[type=range] {
  width: 100%;
}

/* --- ARTWORK --- */
.artwork-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- TOP TRACKS LINK --- */
.top-tracks-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.top-tracks-link:hover {
    transform: scale(1.05);
}

/* --- PLAYLIST SECTION --- */
.playlist-section {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    display: none;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.playlist-list {
    list-style: none;
    padding: 0;
}

.playlist-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-link {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.playlist-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-public-badge {
    font-size: 0.85em;
    color: var(--color-text-secondary);
    margin-left: 10px;
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-surface);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-soft);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.add-to-playlist-btn {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: 1rem;
    transition: all 0.2s;
}

.add-to-playlist-btn:hover {
    background: rgba(0, 255, 170, 0.1);
    box-shadow: var(--shadow-glow);
}

/* --- DELETE BUTTONS --- */
.delete-btn,
.playlist-delete-btn {
    background: transparent;
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: 1rem;
    transition: all 0.2s;
}

.delete-btn:hover,
.playlist-delete-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

/* --- CHAT SECTION --- */
.chat-section {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    display: none;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chat-messages {
    height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    font-size: 0.95em;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.chat-message .username {
    font-weight: 600;
    color: var(--color-primary);
}

.chat-message .timestamp {
    color: var(--color-text-secondary);
    font-size: 0.8em;
    margin-left: 0.5rem;
}

.chat-input {
    display: flex;
    gap: 1rem;
}

.chat-input input[type="text"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.chat-input button {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.chat-input button:hover {
    transform: scale(1.05);
}

.error {
    color: var(--color-error);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* --- LOADING STATE --- */
.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
 .container {
        padding: 0 1rem;
    }

    .site-header {
        padding: 10px;
        height: auto;
        flex-wrap: wrap;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 12px 15px;
    }

    /* ✅ ADD THESE LINES TO FIX MOBILE LAYOUT */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .site-header {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .playlist-section {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #track-list {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

}

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    top: 70px; /* below header */
    left: 0;
    width: 250px;
    height: calc(100% - 70px);
    background-color: var(--color-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
    padding: 1.5rem 1rem;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

/* Shift main container when sidebar is open */
.container.sidebar-open {
    margin-left: 250px;
    transition: margin 0.3s ease;
}

/* --- SEARCH + SORT CONTROLS --- */
.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    transition: border 0.2s;
}

.search-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.sort-select {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    cursor: pointer;
}

.sort-select:hover {
    border-color: var(--color-primary);
}

/* --- PINNED ROWS --- */
tr.pinned {
    background: rgba(0, 255, 170, 0.08);
    box-shadow: var(--shadow-glow);
}

tr.pinned:hover {
    background: rgba(0, 255, 170, 0.12);
}

/* --- BADGES (e.g. new, hot) --- */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.badge-new {
    background: var(--color-primary);
    color: #000;
}

.badge-hot {
    background: var(--color-secondary);
    color: #fff;
}

.galaxy-container {
  width: 100%;
  height: 500px;
  background: var(--color-bg, #000);
  overflow: hidden;
  position: relative;
}

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

/* DJ Deck playlists */
.deck-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.deck-playlist li {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

.deck-playlist li:hover {
  background: rgba(255,255,255,0.05);
}

/* Bottom player styling */
.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0b0b0b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.8);
  font-family: 'Inter', sans-serif;
  height: var(--player-height);
}

#btn-repeat.active {
  color: #00ffcc;
  text-shadow: 0 0 6px rgba(0,255,204,0.6);
}

#btn-shuffle.active {
  color: #ff9900;
  text-shadow: 0 0 6px rgba(255,153,0,0.6);
}

#player-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Genre grid styling */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.genre-link {
  display: block;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 18px 14px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.genre-link:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.genre-name {
  display: block;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.genre-count {
  display: block;
  font-size: 0.8em;
  color: var(--color-text-secondary);
}

.genre-card.selected {
  border-color: #00ffcc;
  background-color: #111;
  color: #00ffcc;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.custom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #0b0b0b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.8);
  font-family: 'Inter', sans-serif;
  z-index: 9999;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-artwork {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #222;
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-title {
    font-size: 0.85rem; /* or 12px, 11px, etc. — adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* optional: helps with truncation */
}
.track-artist {
  font-size: 12px;
  color: #aaa;
}

.player-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.btn:hover {
  transform: scale(1.2);
  color: #00ffcc;
}

.seek-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 240px;
}

.seek-slider, .volume-slider {
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #333;
  outline: none;
}

.seek-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ffcc;
  cursor: pointer;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Filter section styling for mobile */
.header-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}

.header-filters input,
.header-filters select,
.header-filters button {
  background: #282828;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  box-sizing: border-box;
}

.header-filters input[type="text"]::placeholder {
  color: #aaa;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .header-filters {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    margin-left: 20px;
  }

  .header-filters input,
  .header-filters select,
  .header-filters button {
    flex: none;
    min-width: 100px;
  }
}

/* Results summary styling */
.results-summary {
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

/* No tracks styling */
.no-tracks {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Playlist info styling */
.playlist-info {
  background-color: var(--color-surface);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

/* Chat section styling */
#genre-chat-section {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}

/* Loading indicator */
.loading::after {
  content: ' Loading...';
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

#voiceBtn.listening {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


#btn-like.voted {
    color: red; /* filled heart style */
}


.genre-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    border-radius: 4px;
    color: #0ff;
    font-size: 0.85rem;
    cursor: default;
    transition: all 0.2s ease;
}
.genre-pill:hover {
    background-color: rgba(0, 255, 255, 0.2);
}



/* 📱 Mobile: Make bottom player scrollable */
@media (max-width: 768px) {
    .custom-player {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px;
        justify-content: flex-start;
        gap: 16px;
    }

    .player-left,
    .player-center,
    .player-right {
        flex: 0 0 auto;
        min-width: fit-content;
    }

    /* Shrink artwork */
    .player-artwork {
        width: 40px !important;
        height: 40px !important;
    }

    /* Reduce font size for titles */
    .track-title {
        font-size: 0.8rem !important;
    }
    .track-artist {
        font-size: 0.7rem !important;
    }

    /* Make seek bar smaller */
    .seek-bar {
        min-width: 200px !important;
        max-width: 300px !important;
    }

    /* Shrink volume slider */
    .volume-slider {
        width: 50px !important;
    }

    /* Make buttons smaller */
    .btn {
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 6px !important;
        font-size: 14px !important;
    }
}



