body {
  min-height: 100vh;
  margin: 0;
  background: #1a1d1e;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  transition: background 0.4s ease;
}

/* Theme variations */
body[data-theme="ocean"] {
  background: #0f1419;
}

body[data-theme="ocean"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(14, 116, 144, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body[data-theme="coffee"] {
  background: #1a1512;
}

body[data-theme="coffee"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 90, 43, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body[data-theme="amethyst"] {
  background: #16131a;
}

body[data-theme="amethyst"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(138, 43, 226, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.focus-mode {
  background: #0f1011;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Stars Canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none;
}

body.focus-mode #stars-canvas {
  opacity: 1;
}

/* Background Toggle Button */
.bg-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(35, 37, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bg-toggle-btn:hover {
  background: rgba(29, 185, 84, 0.9);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

/* Settings Modal */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.settings-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.settings-content {
  background: rgba(28, 30, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  width: 90vw;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.settings-content h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.settings-section h4 {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.theme-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.theme-option {
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.theme-option.active {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.3);
  color: rgba(29, 185, 84, 0.95);
}

/* Auth section */
.auth-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-buttons {
  display: flex;
  gap: 0.75rem;
}

.auth-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: 8px;
  color: rgba(29, 185, 84, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: rgba(29, 185, 84, 0.18);
  border-color: rgba(29, 185, 84, 0.35);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.auth-form input {
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(29, 185, 84, 0.4);
}

.auth-error {
  color: rgba(255, 77, 79, 0.95);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 77, 79, 0.1);
  border-radius: 6px;
}

/* Avatar section */
.avatar-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.avatar-frame {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.avatar-frame:hover {
  border-color: rgba(29, 185, 84, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-frame.empty::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>') center/contain no-repeat;
}

.avatar-upload-btn {
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-upload-btn:hover {
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.25);
  color: rgba(29, 185, 84, 0.95);
}

.avatar-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.avatar-info-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

#profile-pic-upload {
  display: none;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-field label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.account-field input[type="text"],
.account-field input[type="file"] {
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.account-field input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(29, 185, 84, 0.3);
}

.account-field input[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.setting-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-close {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

/* Stats section */
.stats-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-icon {
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(29, 185, 84, 0.95);
  flex-shrink: 0;
}

.stats-content {
  flex: 1;
}

.stats-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.container {
  background: rgba(22, 24, 26, 0.6);
  backdrop-filter: blur(20px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 920px;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Now Playing UI */
.now-playing {
  width: 100%;
  background: rgba(28, 30, 32, 0.3);
  border: 1px solid rgba(29, 185, 84, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  min-height: 56px;
  transition: all 0.3s ease;
  position: relative;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.now-playing.hidden {
  opacity: 0;
  pointer-events: none;
  min-height: 0;
  padding: 0;
  margin-bottom: 0;
  border-color: transparent;
}

.now-playing-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.equalizer .bar {
  width: 3px;
  background: #1DB954;
  border-radius: 2px;
  animation: equalize 0.8s ease-in-out infinite;
}

.equalizer .bar:nth-child(1) {
  animation-delay: 0s;
}

.equalizer .bar:nth-child(2) {
  animation-delay: 0.2s;
}

.equalizer .bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes equalize {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

.now-playing-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.now-playing-info .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.now-playing-info .track-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.toggle-np-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.toggle-np-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

#youtube-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#youtube-form input[type="text"] {
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(6px);
}

#youtube-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#youtube-form button {
  padding: 0.54rem 0.9rem;
  background: rgba(29, 185, 84, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#youtube-form button:hover {
  background: rgba(29, 185, 84, 0.18);
  border-color: rgba(29, 185, 84, 0.28);
  color: rgba(255, 255, 255, 0.95);
}

#video-embed {
  width: 100%;
  display: flex;
  justify-content: center;
}

#video-embed iframe {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  background: #181a1b;
}

.welcome-message {
  text-align: center;
  margin-bottom: 2rem;
}

#random-image {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

#music-player {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}

@media (max-width: 900px) {
  #music-player {
    grid-template-columns: 1fr;
  }
}

/* Queue Filters */
.queue-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.filter-chip.active {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.3);
  color: rgba(29, 185, 84, 0.95);
}

/* Pomodoro timer styles */
.pomodoro-section {
  width: 100%;
  transition: all 0.3s ease;
}

.pomodoro-section.hidden {
  display: none;
}

.timer-mode-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
}

.mode-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mode-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  background: rgba(22, 24, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.35rem 0;
  width: 200px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.mode-dropdown.hidden {
  display: none;
}

.mode-option {
  width: 100%;
  padding: 0.55rem 0.9rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.mode-option.active {
  color: rgba(29, 185, 84, 0.95);
  background: rgba(29, 185, 84, 0.12);
}

#timer-display {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}

.timer-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.mode-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
}

.mode-btn.active {
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.3);
  color: rgba(29, 185, 84, 0.95);
}

.timer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.timer-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.timer-btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

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

#toggle-timer-btn {
  background: rgba(29, 185, 84, 0.15);
  color: rgba(29, 185, 84, 0.95);
  border: 1px solid rgba(29, 185, 84, 0.25);
}

#toggle-timer-btn:hover {
  background: rgba(29, 185, 84, 0.22);
  border-color: rgba(29, 185, 84, 0.35);
}

.video-facade {
  position: relative;
  border-radius: 10px;
  overflow: visible;
  background: rgba(35, 37, 38, 0.6);
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s, border 0.3s, opacity 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  gap: 8px;
  min-height: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: grab;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

.video-facade:active {
  cursor: grabbing;
}

.video-facade.dragging {
  opacity: 0.4;
  transform: scale(0.95);
  cursor: grabbing;
}

.video-facade.drag-over {
  border-top: 3px solid #1DB954;
  margin-top: 8px;
}

/* Audio-Only Mode: Hide iframe, show custom UI */
.video-facade iframe {
  display: none !important;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-facade.playing {
  border: 1px solid rgba(29, 185, 84, 0.5);
  background: linear-gradient(180deg, rgba(29, 185, 84, 0.08), rgba(29, 185, 84, 0.04));
}

.video-facade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.video-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: filter 0.2s;
}

.video-facade:hover .video-thumb {
  filter: brightness(0.85);
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.progress-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.video-facade.playing .progress-bar {
  background: #1DB954;
}

.progress-container:hover .progress-bar {
  background: #1ed760;
}

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

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: none;
}

.control-btn svg {
  width: 16px;
  height: 16px;
}

.play-button {
  display: none;
}

.delete-btn {
  display: none !important;
}

/* Context Menu */
.context-menu {
  position: fixed;
  background: rgba(28, 30, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 3000;
  display: none;
}

.context-menu.visible {
  display: block;
}

.context-menu-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.context-menu-item.danger {
  color: rgba(255, 77, 79, 0.9);
}

.context-menu-item.danger:hover {
  background: rgba(255, 77, 79, 0.12);
  color: rgba(255, 77, 79, 1);
}

.overflow-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  flex-shrink: 0;
}

.overflow-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.delete-btn:hover {
  background: #ff4d4f;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(255, 77, 79, 0.4);
}

form[name="add-video"] {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

form[name="add-video"] input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #232323;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

form[name="add-video"] button {
  padding: 0.75rem 1.25rem;
  background: #1DB954;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

form[name="add-video"] button:hover {
  background: #17a74a;
}

/* Playlist Groups */
.playlist-group {
  margin-bottom: 1.5rem;
  background: rgba(35, 37, 38, 0.3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.playlist-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.playlist-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.collapse-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s;
}

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

.playlist-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.playlist-controls {
  display: flex;
  gap: 0.5rem;
}

.playlist-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-btn:hover {
  background: rgba(29, 185, 84, 0.3);
  transform: scale(1.05);
}

.delete-playlist-btn {
  font-size: 1.25rem;
  font-weight: bold;
}

.delete-playlist-btn:hover {
  background: rgba(255, 77, 79, 0.3);
}

.playlist-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
} 