/* Çalma listesi dahili sekme alanı */
.tabbed-content { display: none; }
.tabbed-content.is-active { display: block; }
/* Playlists pane inside same page */
#playlistsPane[aria-hidden="true"] { display: none; }
body.modal-open { overflow: hidden; }
/* Play tuşu oynarken nabız animasyonu */
.control.control--primary.is-playing {
  animation: selodioPulse 1.2s ease-in-out infinite;
}

@keyframes selodioPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(29,185,84,0)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(29,185,84,0.5)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(29,185,84,0)); }
}
/* Smooth theme transitions */
* {
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* Prevent transition on page load */
.theme-transitioning * {
  transition: none !important;
}

:root,
[data-theme="dark-green"] {
  --bg: #0f1115;
  --bg-primary: #0f1115;
  --bg-secondary: #161a22;
  --bg-elev: #161a22;
  --bg-elev-2: #1d2230;
  --bg-hover: #1a1f2e;
  --text: #e9ecf1;
  --text-primary: #e9ecf1;
  --text-secondary: #aab2c0;
  --text-dim: #aab2c0;
  --brand: #1db954;
  --brand-2: #18a84c;
  --accent-color: #1db954;
  --accent-hover: #18a84c;
  --muted: #2a3040;
  --card: #151925;
  --border-color: #2a3040;
  /* RGB versions for transparency */
  --bg-rgb: 15, 17, 21;
  --bg-primary-rgb: 15, 17, 21;
  --bg-secondary-rgb: 22, 26, 34;
  --bg-elev-rgb: 22, 26, 34;
}

/* Midnight Blue Theme */
[data-theme="midnight-blue"] {
  --bg: #0a0e1a;
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-elev: #111827;
  --bg-elev-2: #1e293b;
  --bg-hover: #1e293b;
  --text: #e2e8f0;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #94a3b8;
  --brand: #3b82f6;
  --brand-2: #2563eb;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --muted: #334155;
  --card: #1e293b;
  --border-color: #334155;
  /* RGB versions for transparency */
  --bg-rgb: 10, 14, 26;
  --bg-primary-rgb: 10, 14, 26;
  --bg-secondary-rgb: 17, 24, 39;
  --bg-elev-rgb: 17, 24, 39;
}

/* Rose Garden Theme */
[data-theme="rose-garden"] {
  --bg: #1a0f1a;
  --bg-primary: #1a0f1a;
  --bg-secondary: #2d1b2d;
  --bg-elev: #2d1b2d;
  --bg-elev-2: #3d2b3d;
  --bg-hover: #3d2b3d;
  --text: #fce7f3;
  --text-primary: #fce7f3;
  --text-secondary: #d8b4fe;
  --text-dim: #d8b4fe;
  --brand: #f43f5e;
  --brand-2: #e11d48;
  --accent-color: #f43f5e;
  --accent-hover: #e11d48;
  --muted: #4c1d4c;
  --card: #3d1a3d;
  --border-color: #4c1d4c;
  /* RGB versions for transparency */
  --bg-rgb: 26, 15, 26;
  --bg-primary-rgb: 26, 15, 26;
  --bg-secondary-rgb: 45, 27, 45;
  --bg-elev-rgb: 45, 27, 45;
}

/* Deep Purple Theme */
[data-theme="deep-purple"] {
  --bg: #0f0a1a;
  --bg-primary: #0f0a1a;
  --bg-secondary: #1a1226;
  --bg-elev: #1a1226;
  --bg-elev-2: #2d2142;
  --bg-hover: #2d2142;
  --text: #ede9fe;
  --text-primary: #ede9fe;
  --text-secondary: #c4b5fd;
  --text-dim: #c4b5fd;
  --brand: #8b5cf6;
  --brand-2: #7c3aed;
  --accent-color: #8b5cf6;
  --accent-hover: #7c3aed;
  --muted: #4c1d95;
  --card: #2d1b5e;
  --border-color: #4c1d95;
  /* RGB versions for transparency */
  --bg-rgb: 15, 10, 26;
  --bg-primary-rgb: 15, 10, 26;
  --bg-secondary-rgb: 26, 18, 38;
  --bg-elev-rgb: 26, 18, 38;
}

/* Ocean Depths Theme */
[data-theme="ocean-depths"] {
  --bg: #0a1628;
  --bg-primary: #0a1628;
  --bg-secondary: #0f2027;
  --bg-elev: #0f2027;
  --bg-elev-2: #1a365d;
  --bg-hover: #1a365d;
  --text: #e0f2fe;
  --text-primary: #e0f2fe;
  --text-secondary: #7dd3fc;
  --text-dim: #7dd3fc;
  --brand: #0ea5e9;
  --brand-2: #0284c7;
  --accent-color: #0ea5e9;
  --accent-hover: #0284c7;
  --muted: #075985;
  --card: #164e63;
  --border-color: #075985;
  /* RGB versions for transparency */
  --bg-rgb: 10, 22, 40;
  --bg-primary-rgb: 10, 22, 40;
  --bg-secondary-rgb: 15, 32, 39;
  --bg-elev-rgb: 15, 32, 39;
}

/* Ember Orange Theme */
[data-theme="ember-orange"] {
  --bg: #1a0f0a;
  --bg-primary: #1a0f0a;
  --bg-secondary: #2d1b10;
  --bg-elev: #2d1b10;
  --bg-elev-2: #3d2817;
  --bg-hover: #3d2817;
  --text: #fed7aa;
  --text-primary: #fed7aa;
  --text-secondary: #fdba74;
  --text-dim: #fdba74;
  --brand: #f97316;
  --brand-2: #ea580c;
  --accent-color: #f97316;
  --accent-hover: #ea580c;
  --muted: #9a3412;
  --card: #451a03;
  --border-color: #9a3412;
  /* RGB versions for transparency */
  --bg-rgb: 26, 15, 10;
  --bg-primary-rgb: 26, 15, 10;
  --bg-secondary-rgb: 45, 27, 16;
  --bg-elev-rgb: 45, 27, 16;
}

/* Emerald Night Theme */
[data-theme="emerald-night"] {
  --bg: #0a1a0f;
  --bg-primary: #0a1a0f;
  --bg-secondary: #0f2d1b;
  --bg-elev: #0f2d1b;
  --bg-elev-2: #1a3d2b;
  --bg-hover: #1a3d2b;
  --text: #d1fae5;
  --text-primary: #d1fae5;
  --text-secondary: #86efac;
  --text-dim: #86efac;
  --brand: #10b981;
  --brand-2: #059669;
  --accent-color: #10b981;
  --accent-hover: #059669;
  --muted: #065f46;
  --card: #064e3b;
  --border-color: #065f46;
  /* RGB versions for transparency */
  --bg-rgb: 10, 26, 15;
  --bg-primary-rgb: 10, 26, 15;
  --bg-secondary-rgb: 15, 45, 27;
  --bg-elev-rgb: 15, 45, 27;
}

/* Cherry Blossom Theme */
[data-theme="cherry-blossom"] {
  --bg: #1a1015;
  --bg-primary: #1a1015;
  --bg-secondary: #2d1525;
  --bg-elev: #2d1525;
  --bg-elev-2: #3d2535;
  --bg-hover: #3d2535;
  --text: #fce7f3;
  --text-primary: #fce7f3;
  --text-secondary: #f9a8d4;
  --text-dim: #f9a8d4;
  --brand: #ec4899;
  --brand-2: #db2777;
  --accent-color: #ec4899;
  --accent-hover: #db2777;
  --muted: #831843;
  --card: #701a75;
  --border-color: #831843;
  /* RGB versions for transparency */
  --bg-rgb: 26, 16, 21;
  --bg-primary-rgb: 26, 16, 21;
  --bg-secondary-rgb: 45, 21, 37;
  --bg-elev-rgb: 45, 21, 37;
}

/* Friends Ad Slot */
.friends-ad-slot {
  margin-top: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
}
.friends-ad-slot .ad-placeholder {
  display: grid;
  place-items: center;
  height: 250px; /* common ad size fits left sidebar */
  color: var(--text-dim);
  font-size: 12px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

/* Right Ad Slot */
.right-ad-slot {
  margin-top: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
}
.right-ad-slot.hidden { display: none; }
.right-ad-slot .ad-placeholder {
  display: grid;
  place-items: center;
  height: 600px; /* 300x600 billboard fits right sidebar */
  color: var(--text-dim);
  font-size: 12px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

/* Playlists page blocks */
.playlist-block { background: var(--card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.playlist-block__header { display:flex; align-items:center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.playlist-block__header h3 { margin: 0; font-size: 18px; color: var(--text-primary); }
.playlist-block__header button { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.playlist-block__header button:hover { background: var(--bg-hover); color: var(--text-primary); }
.playlist-block__tracks { display: grid; gap: 8px; padding-top: 10px; }
.playlist-block.collapsed .playlist-block__tracks { display: none; }
.playlist-track { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; }
.playlist-track__title { font-weight: 600; }
.playlist-track__artist { color: var(--text-dim); font-size: 13px; }
.playlist-track button { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.playlist-track button:nth-of-type(2) { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.playlist-track button:hover { filter: brightness(1.05); }

/* Add to playlist mini button - Top Left */
.add-to-playlist-btn {
  background: rgba(29, 185, 84, 0.9) !important;
  color: white !important;
  font-weight: 600;
}

.add-to-playlist-btn:hover {
  background: var(--brand) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.6) !important;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app { display: grid; grid-template-columns: 260px 1fr 300px; grid-template-rows: 1fr auto; min-height: 100dvh; }

/* Landing */
.landing { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; background: radial-gradient(1000px 600px at 50% 10%, #192033, transparent), var(--bg); z-index: 50; }
.landing__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.landing__logo { font-weight: 800; letter-spacing: 0.4px; font-size: 24px; color: var(--brand); }
.landing__center { display: grid; place-items: center; text-align: center; gap: 5px; padding: 60px 20px; }
.landing__brandmark { font-size: 64px; }

/* Dragon Logo */
.dragon-logo { 
  width: 700px; 
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain;
  animation: landingLogoPulse 2.5s ease-in-out infinite;
}

/* Landing Page Logo Pulse Animation */
@keyframes landingLogoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--brand));
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
    filter: drop-shadow(0 0 24px var(--brand)) drop-shadow(0 0 40px rgba(29, 185, 84, 0.3));
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--brand));
  }
}

/* Hide app shell until login */
[aria-hidden="true"] { display: none !important; }

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border-right: 1px solid var(--muted);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: grid;
  grid-template-columns: 0.7fr auto 1.3fr;
  align-items: center;
  margin: 0 0 32px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.brand__logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: visible;
  background: transparent;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  position: relative;
}
.brand__logo:hover {
  transform: scale(1.05);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: logoPulse 2s ease-in-out infinite;
}

/* Logo Pulse Animation */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--brand));
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
    filter: drop-shadow(0 0 12px var(--brand)) drop-shadow(0 0 20px rgba(29, 185, 84, 0.4));
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--brand));
  }
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 24px 0;
  flex: 1;
}

.nav__item {
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 15px;
}

.nav__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav__item:hover::before {
  left: 100%;
}

.nav__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav__item--active {
  background: var(--brand);
  color: #031;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.nav__item--active:hover {
  background: var(--brand-2);
  transform: translateX(4px);
}

.nav__item--button {
  background: none;
  border: none;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 15px;
}

.nav__item--button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav__item--button:hover::before {
  left: 100%;
}

.nav__item--button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav__item i,
.nav__item--button i {
  font-size: 20px;
  width: 24px;
  text-align: center;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.nav__item:hover i,
.nav__item--button:hover i {
  opacity: 1;
  transform: scale(1.1);
}

.nav__item--active i {
  opacity: 1;
  color: #031;
}
.sidebar__footer { margin-top: auto; }

/* Takip Edilen Arkadaşlar Bölümü */
.friends-section {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.friends-section__title {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding: 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
}
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.friends-list::-webkit-scrollbar {
  width: 6px;
}

.friends-list::-webkit-scrollbar-track {
  background: transparent;
}

.friends-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.friends-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}
.friend-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}
.friend-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1db954;
  border: 2px solid var(--bg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Apple-style image quality improvements */
.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: all 0.2s ease;
}
.friend-item:hover .friend-avatar {
  border-color: var(--brand);
  transform: scale(1.05);
}
.friend-item:hover .friend-avatar::after {
  opacity: 1;
}
.friend-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  min-height: 32px;
}
.friend-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.friend-status {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.3;
  max-width: 140px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-status.online {
  color: #1db954;
  font-weight: 500;
  opacity: 1;
}

/* Şu an dinlenen müzik için özel stil */
.friend-status.online {
  position: relative;
}

.currently-playing {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.9;
  margin-top: 2px;
  padding: 4px 8px;
  background: rgba(29, 185, 84, 0.1);
  border-radius: 8px;
  border-left: 2px solid var(--brand);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  line-height: 1.2;
}

.music-note {
  color: var(--brand);
  margin-right: 4px;
  font-size: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Friends list scrolling improvements */
.friends-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.friends-list::-webkit-scrollbar {
  width: 6px;
}

.friends-list::-webkit-scrollbar-track {
  background: transparent;
}

.friends-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.friends-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Friend item animations */
.friend-item {
  animation: slideInFromLeft 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced hover effects for friends */
.friend-item:hover .friend-avatar {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.friend-item:hover .friend-name {
  color: var(--brand);
}
.unfollow-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.friend-item:hover .unfollow-btn {
  opacity: 1;
  background: rgba(255, 59, 48, 0.1);
  transform: scale(1);
}
.unfollow-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

/* Friend Actions Container */
.friend-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
}

.friend-item:hover .friend-actions {
  opacity: 1;
}

/* Visit Profile Button */
.visit-profile-btn {
  background: var(--brand);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  flex-shrink: 0;
}

.visit-profile-btn:hover {
  background: var(--brand-2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.visit-profile-btn:active {
  transform: scale(0.95);
}

/* Visit Profile Button for Modal */
.visit-profile-btn-modal {
  background: var(--brand);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 70px;
}

.visit-profile-btn-modal:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.3);
}

.visit-profile-btn-modal:active {
  transform: translateY(0);
}

/* Modern Collapse Button */
.modern-collapse-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.modern-collapse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.modern-collapse-btn:hover {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.2);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.2);
}

.modern-collapse-btn:hover::before {
  left: 100%;
}

.modern-collapse-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

/* Rotate icon when collapsed */
.modern-collapse-btn[aria-expanded="false"] i {
  transform: rotate(180deg);
  color: var(--text-dim);
}

.modern-collapse-btn[aria-expanded="false"]:hover i {
  color: var(--brand);
}

/* Updated Unfollow Button */
.unfollow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.friend-item:hover .unfollow-btn {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
}

.unfollow-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  color: #ff3b30;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.unfollow-btn:active {
  transform: scale(0.95);
}

.btn { border: 0; background: var(--muted); color: var(--text); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.btn--primary { background: var(--brand); color: #031; font-weight: 600; }
.btn--block { width: 100%; }

/* Main */
.main { padding: 0; }
.profile-header {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cover-photo {
  width: 100%;
  height: 100%;
  position: relative;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cover-photo:hover .cover-img {
  transform: scale(1.05);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cover-photo:hover .cover-overlay {
  opacity: 1;
}

.profile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9));
  padding: 80px 30px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.profile-name-container {
  flex: 1;
}

.profile-name {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.profile-username {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.edit-profile-btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-profile-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.edit-profile-btn i {
  font-size: 16px;
}

.content { padding: 20px; }
.music-section {
  margin-bottom: 40px;
}

.section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.section__title span {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-actions {
  display: flex;
  gap: 8px; /* Changed from 12px to 8px for consistency with the second definition */
  align-items: center;
  padding: 0 4px; /* Added from the second definition */
}

.youtube-btn, .import-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Fixed size like our New Playlist button */
  height: 40px;
  padding: 0;
  border-radius: 8px; /* Rounded corners like sidebar buttons */
  font-size: 16px; /* Bigger icon */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.youtube-btn {
  background: var(--bg-elev);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.youtube-btn:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.import-btn {
  background: var(--bg-elev);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.import-btn:hover {
  background: #1db954;
  border-color: #1db954;
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
}

.youtube-btn::before, .import-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.youtube-btn:hover::before, .import-btn:hover::before {
  left: 100%;
}

.youtube-btn i, .import-btn i {
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.youtube-btn i {
  color: #ff0000;
}

.import-btn i {
  color: #1db954;
}

.youtube-btn:hover i,
.import-btn:hover i {
  color: white;
  transform: scale(1.1);
}

/* YouTube Modal - Instagram Style */
.youtube-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.youtube-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.youtube-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e8ed;
  background: linear-gradient(135deg, #fff, #f8f9fa);
}

.youtube-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.youtube-modal-close {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.youtube-modal-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: 1;
}

.youtube-modal-close:hover::before {
  width: 120%;
  height: 120%;
}

.youtube-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.youtube-modal-close i {
  position: relative;
  z-index: 2;
}

.youtube-modal-body {
  padding: 24px;
}

.youtube-input-section {
  margin-bottom: 24px;
}

.youtube-input-group {
  position: relative;
  margin-bottom: 8px;
}

.youtube-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff0000;
  font-size: 16px;
  z-index: 1;
}

.youtube-input {
  width: 100%;
  padding: 14px 50px 14px 48px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.youtube-input:focus {
  outline: none;
  border-color: #ff0000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.youtube-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.youtube-search-btn:hover {
  background: #e60000;
  transform: translateY(-50%) scale(1.05);
}

.youtube-input-help {
  margin: 0;
  font-size: 12px;
  color: #666;
  padding-left: 4px;
}

.youtube-results {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-loading {
  text-align: center;
  color: #666;
}

.youtube-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.youtube-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
}

.youtube-result-cover {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.youtube-result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-result-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.youtube-result-item:hover .youtube-result-play-overlay {
  opacity: 1;
}

.youtube-result-play-overlay i {
  color: white;
  font-size: 20px;
}

.youtube-result-info {
  flex: 1;
  min-width: 0;
}

.youtube-result-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.youtube-result-info p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
}

.youtube-result-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

.youtube-add-btn {
  background: #1db954;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.youtube-add-btn:hover {
  background: #1aa34a;
  transform: translateY(-1px);
}

.youtube-no-results {
  text-align: center;
  color: #666;
}

.youtube-no-results i {
  font-size: 48px;
  color: #ff0000;
  margin-bottom: 16px;
}

.youtube-no-results h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}

.youtube-no-results p {
  margin: 0;
  font-size: 14px;
}

/* Müzik İçe Aktar Modal - Instagram Style */
.import-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.import-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.import-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.3s ease-out;
}

.import-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e8ed;
  background: linear-gradient(135deg, #fff, #f8f9fa);
}

.import-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.import-modal-close {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.import-modal-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: 1;
}

.import-modal-close:hover::before {
  width: 120%;
  height: 120%;
}

.import-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.import-modal-close i {
  position: relative;
  z-index: 2;
}

.import-modal-body {
  padding: 24px;
}

.import-drop-zone {
  border: 2px dashed #e1e8ed;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f8f9fa;
  margin-bottom: 20px;
}

.import-drop-zone:hover,
.import-drop-zone.dragover {
  border-color: #1db954;
  background: rgba(29, 185, 84, 0.05);
}

.import-drop-zone.dragover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.2);
}

.import-upload-icon {
  font-size: 48px;
  color: #1db954;
  margin-bottom: 16px;
}

.import-drop-zone h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.import-drop-zone p {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
}

.import-select-btn {
  background: #1db954;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.import-select-btn:hover {
  background: #1aa34a;
  transform: translateY(-1px);
}

.import-file-types {
  margin: 8px 0 0;
  font-size: 12px;
  color: #999;
}

.import-file-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.import-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #e1e8ed;
  transition: all 0.2s ease;
}

.import-file-item:hover {
  background: #f0f0f0;
}

.import-file-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1db954, #1ed760);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.import-file-info {
  flex: 1;
  min-width: 0;
}

.import-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.import-file-size {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.import-file-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.import-file-remove:hover {
  background: #e1e8ed;
  color: #ff4444;
}

.import-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e1e8ed;
}

.import-cancel-btn {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.import-cancel-btn:hover {
  background: #e1e8ed;
  color: #333;
}

.import-confirm-btn {
  background: #1db954;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.import-confirm-btn:hover {
  background: #1aa34a;
  transform: translateY(-1px);
}

.import-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-secondary);
  color: var(--text-dim);
}

.import-confirm-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.music-item {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.music-item:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.music-cover {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #2a3147, #1f2437);
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.music-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(29, 185, 84, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Better image fitting for uploaded album covers */
.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.music-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.music-item:hover .music-cover::before {
  opacity: 1;
}

.music-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.music-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.music-info p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
}

.music-cover .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: var(--brand);
  color: #031;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.music-item:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.music-item .play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.5);
  background: var(--brand-2);
}




/* Context Menu Styles */
.music-context-menu {
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
  animation: contextMenuAppear 0.15s ease-out;
}

@keyframes contextMenuAppear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s ease;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.context-menu-item:last-child {
  border-bottom: none;
}

.context-menu-item:hover {
  background: var(--bg-hover);
}

.context-menu-item i {
  width: 16px;
  color: var(--brand);
  text-align: center;
}

.context-menu-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Right Sidebar - Instagram Style */
.right-sidebar {
  background: var(--bg-elev);
  border-left: 1px solid var(--muted);
  padding: 20px;
  overflow-y: auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Collapsible sections - Minimal & Elegant Toggle */
.collapsible .collapse-toggle {
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-radius: 20px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
}

.collapsible .collapse-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--brand);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: -1;
}

.collapsible .collapse-toggle:hover {
  color: var(--text-primary);
  transform: scale(1.05);
}

.collapsible .collapse-toggle:hover::before {
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.collapsible .collapse-toggle:active {
  transform: scale(0.95);
}

.collapsible .collapse-toggle[aria-expanded="false"]::after {
  content: "⌄";
  font-size: 18px;
  transform: rotate(-90deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible .collapse-toggle[aria-expanded="true"]::after {
  content: "⌄";
  font-size: 18px;
  transform: rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-controls,
.leaderboard-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Enhanced controls positioning */
.trending-controls {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.trending-section:hover .trending-controls,
.leaderboard-section:hover .leaderboard-controls {
  opacity: 1;
}

.leaderboard-controls {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Hidden state */
.collapsible .trending-content,
.collapsible .leaderboard-content {
  transition: max-height 0.25s ease, opacity 0.2s ease;
  overflow: hidden;
}
.collapsible.is-collapsed .trending-content,
.collapsible.is-collapsed .leaderboard-content {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Status Composer Section */
.status-composer-section {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.status-composer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.status-composer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.status-composer-header i {
  color: var(--brand);
  font-size: 14px;
}

.status-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-composer-input {
  flex: 1;
  min-width: 0;
}

.status-composer-input textarea {
  width: 100%;
  min-height: 80px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

.status-composer-input textarea:focus {
  background: var(--bg-primary);
  border: 1px solid var(--brand);
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.1);
}

.status-composer-input textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.status-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.status-char-count {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.status-char-count.warning {
  color: #ff9500;
}

.status-char-count.error {
  color: #ff3b30;
}

.status-share-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.status-share-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.status-share-btn:disabled {
  background: var(--text-dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-share-btn i {
  font-size: 12px;
}

/* Status Feed Section */
.status-feed-section {
  background: linear-gradient(135deg, var(--card) 0%, rgba(26, 31, 46, 0.95) 100%);
  border: 1px solid var(--muted);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.status-feed-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent-color));
  border-radius: 20px 20px 0 0;
}

.status-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-feed-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-feed-header i {
  color: var(--brand);
  font-size: 16px;
  animation: pulse 2s infinite;
}

.status-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}

.status-feed::-webkit-scrollbar {
  width: 6px;
}

.status-feed::-webkit-scrollbar-track {
  background: transparent;
}

.status-feed::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 3px;
}

.status-feed::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.status-item {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(42, 48, 64, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.status-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-item:hover {
  background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(42, 48, 64, 0.9) 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.3);
}

.status-item:hover::before {
  opacity: 1;
}

.status-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}

.status-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.status-item-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(29, 185, 84, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-item:hover .status-item-avatar {
  border-color: var(--brand);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.status-item:hover .status-item-avatar::after {
  opacity: 1;
}

.status-item-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.status-item:hover .status-item-name {
  color: var(--brand);
}

.status-item-username {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  font-weight: 500;
  opacity: 0.8;
}

.status-item-content {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
  word-wrap: break-word;
  font-weight: 400;
  position: relative;
}

.status-item-content::before {
  content: '"';
  font-size: 24px;
  color: var(--brand);
  opacity: 0.3;
  position: absolute;
  top: -8px;
  left: -12px;
  font-family: serif;
}

.status-item-content::after {
  content: '"';
  font-size: 24px;
  color: var(--brand);
  opacity: 0.3;
  position: absolute;
  bottom: -16px;
  right: -12px;
  font-family: serif;
}

.status-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.status-item-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  opacity: 0.8;
}

.status-item-time i {
  font-size: 11px;
  color: var(--brand);
}

/* Time Remaining Indicator */
.status-time-remaining {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  background: rgba(29, 185, 84, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(29, 185, 84, 0.2);
}

.status-time-remaining i {
  font-size: 10px;
  animation: pulse 2s infinite;
}

.status-time-remaining.warning {
  color: #ff9500;
  background: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.2);
}

.status-time-remaining.danger {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.2);
}

.status-item-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.status-action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.status-action-btn:hover::before {
  width: 120%;
  height: 120%;
}

.status-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-action-btn:active {
  transform: translateY(0);
}

.status-action-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.status-action-btn:hover i {
  transform: scale(1.1);
}

.status-action-btn.liked {
  color: #e0245e;
  background: rgba(224, 36, 94, 0.1);
  border: 1px solid rgba(224, 36, 94, 0.2);
}

.status-action-btn.liked i {
  color: #e0245e;
}

/* Delete Button */
.status-delete-btn {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(10px);
  position: absolute;
  top: 12px;
  right: 12px;
}

.status-item:hover .status-delete-btn {
  opacity: 1;
  transform: translateX(0);
}

.status-delete-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.status-delete-btn i {
  font-size: 10px;
}

/* Empty status feed state */
.status-feed-empty {
  text-align: center;
  padding: 60px 30px;
  color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(42, 48, 64, 0.5) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.status-feed-empty::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(29, 185, 84, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(29, 185, 84, 0.03) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.status-feed-empty i {
  font-size: 64px;
  color: var(--brand);
  margin-bottom: 20px;
  display: block;
  opacity: 0.7;
  animation: bounce 2s infinite;
  position: relative;
  z-index: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.status-feed-empty h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.status-feed-empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* Loading state for status feed */
.status-feed-loading {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(42, 48, 64, 0.5) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.status-feed-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(29, 185, 84, 0.05), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.status-feed-loading i {
  font-size: 32px;
  color: var(--brand);
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.3));
}

.status-feed-loading p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* iPhone-Style Create Button */
.iphone-create-section {
  margin-bottom: 20px;
}

.iphone-create-btn {
  width: 100%;
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.iphone-create-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.iphone-create-btn:hover::before {
  left: 100%;
}

.iphone-create-btn:hover {
  background: linear-gradient(135deg, #0056cc, #4240b8);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.iphone-create-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.iphone-create-btn i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.iphone-create-btn:hover i {
  transform: rotate(90deg);
}

/* Create Options */
.create-options {
  display: flex;
  gap: 0;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.create-options.show {
  opacity: 1;
  transform: translateY(0);
}

.option-btn {
  flex: 1;
  background: linear-gradient(135deg, #007aff, #5856d6);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.option-btn:hover::before {
  left: 100%;
}

.option-btn:hover {
  background: linear-gradient(135deg, #0056cc, #4240b8);
  transform: translateY(-2px);
}

.option-btn:active {
  transform: translateY(0);
}

.option-btn i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.option-btn:hover i {
  transform: rotate(90deg);
}

.option-btn-left {
  border-radius: 0;
}

.option-btn-right {
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Create Section */
.create-section {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.create-main-btn {
  position: relative;
  background: linear-gradient(135deg, #1db954, #1ed760);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.create-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.5);
}

.create-options {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.create-circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.create-circle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}






/* Suggestions Section */
.suggestions-section {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 20px;
}

.suggestions-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestions-title i {
  color: var(--brand);
}

.suggested-tracks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggested-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggested-track:hover {
  background: var(--bg-hover);
}

.track-cover {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.suggested-track:hover .track-play-overlay {
  opacity: 1;
}

.track-play-overlay i {
  color: white;
  font-size: 16px;
}

.track-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.track-info p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}


/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #e1e8ed;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1db954;
}

.footer-copyright {
  font-size: 11px;
  color: #999;
  text-align: center;
}


.compose-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.compose-input-container {
  flex: 1;
  min-width: 0;
}

.compose-input {
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  margin-bottom: 12px;
}

.compose-input::placeholder {
  color: var(--text-dim);
}

.compose-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--muted);
}

.compose-attachments {
  display: flex;
  gap: 8px;
}

.attachment-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.attachment-btn:hover {
  background: var(--bg-elev);
  color: var(--brand);
}

.compose-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row;
}

.char-count {
  font-size: 14px;
  color: var(--text-dim);
}

.char-count.warning {
  color: #ffa500;
}

.char-count.danger {
  color: #ff4444;
}


.status-update {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.status-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.user-info span {
  font-size: 12px;
  color: var(--text-dim);
}

.status-content {
  display: grid;
  gap: 12px;
}


.action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.action-btn:hover {
  color: var(--brand);
}

.comments-section h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--muted);
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
}

.comment-time {
  font-size: 12px;
  color: var(--text-dim);
}

.comment-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.comment-actions {
  display: flex;
  gap: 12px;
}

.comment-action {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-action:hover {
  color: var(--brand);
}

.chat-icon {
  font-size: 16px;
}

/* Paylaşılan Şarkı Önizlemesi */
.shared-song-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.shared-song-preview .song-cover {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2a3147, #1f2437);
  border-radius: 6px;
  flex-shrink: 0;
}

.shared-song-preview .song-info {
  flex: 1;
  min-width: 0;
}

.shared-song-preview .song-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-song-preview .song-info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-song-preview .play-btn {
  background: var(--brand);
  color: #031;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.shared-song-preview .play-btn:hover {
  transform: scale(1.1);
}

/* Modern Instagram-Style Messaging */
.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatModalFadeIn 0.3s ease-out;
}

.chat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.chat-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  max-height: 600px;
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: chatSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-color);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  height: 60px;
  box-sizing: border-box;
}

.chat-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
  display: none;
}

.back-btn:hover {
  background: #f0f0f0;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #1db954;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.chat-user-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.user-status {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-action-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.close-chat-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-chat-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  transform: scale(1.1);
}

/* Chat Messages Area */
.chat-messages-area {
  flex: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.chat-messages {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Message Styles */
.message {
  display: flex;
  margin-bottom: 4px;
  animation: messageSlideIn 0.3s ease-out;
}

.message.sent {
  justify-content: flex-end;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 8px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.sent .message-avatar {
  display: none;
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message.sent .message-content {
  align-items: flex-end;
}

.message-bubble {
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 8px 12px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  word-wrap: break-word;
  max-width: 100%;
}

.message.sent .message-bubble {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.message-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.message.sent .message-bubble p {
  color: #fff;
}

.message-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  padding: 0 4px;
}

.message.sent .message-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

/* Shared Song Styles */
.shared-song {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.message.sent .shared-song {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.shared-song:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.song-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-info p {
  margin: 0;
  font-size: 12px;
  color: #8e8e8e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-shared-btn {
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.play-shared-btn:hover {
  background: #1aa34a;
  transform: scale(1.1);
}

/* Chat Input Area */
.chat-input-area {
  background: #fff;
  border-top: 1px solid #e1e8ed;
  padding: 12px 16px;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  border-radius: 24px;
  padding: 4px;
}

.attach-btn {
  background: none;
  border: none;
  color: #65676b;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attach-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1db954;
}

.message-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.message-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 15px;
  color: #333;
  outline: none;
  resize: none;
  min-height: 20px;
  max-height: 100px;
}

.message-input::placeholder {
  color: #65676b;
}

.emoji-btn {
  background: none;
  border: none;
  color: #65676b;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.emoji-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1db954;
}

.voice-btn {
  background: none;
  border: none;
  color: #65676b;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.voice-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1db954;
}

.send-btn {
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.send-btn:hover {
  background: #1aa34a;
  transform: scale(1.1);
}

.send-btn:disabled {
  background: #e4e6ea;
  color: #bcc0c4;
  cursor: not-allowed;
  transform: none;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #65676b;
  font-size: 14px;
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #65676b;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .chat-container {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .chat-header {
    padding: 8px 12px;
  }

  .chat-messages {
    padding: 12px;
  }

  .message-bubble {
    max-width: 85%;
  }

  .chat-input-area {
    padding: 8px 12px;
  }
}

.section { margin: 18px 0 8px; }
.section__title { margin: 8px 0 12px; font-size: 20px; }

.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--muted); border-radius: 12px; overflow: hidden; transition: transform .15s ease, background .2s ease; cursor: pointer; }
.card:hover { transform: translateY(-3px); background: var(--bg-hover); }
.card__cover { background: linear-gradient(135deg, #2a3147, #1f2437); height: 120px; }
.card__body { padding: 12px; }
.card__title { margin: 0 0 6px; font-size: 15px; }
.card__meta { margin: 0; color: var(--text-dim); font-size: 13px; }

.rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--muted); border-radius: 12px; padding: 12px; align-items: center; }
.row__cover { height: 80px; background: linear-gradient(135deg, #343c55, #242a3f); border-radius: 8px; }
.row__info h3 { margin: 0 0 4px; font-size: 16px; }
.row__info p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* Enhanced Player */
.player {
  position: fixed;
  left: 260px;
  right: 300px;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--bg-primary-rgb), 0.95) 0%, rgba(var(--bg-secondary-rgb), 0.95) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.player:hover {
  background: linear-gradient(135deg, rgba(var(--bg-primary-rgb), 0.98) 0%, rgba(var(--bg-secondary-rgb), 0.98) 100%);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

/* Mini Player Toggle */
.mini-player-toggle {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev-2);
  border: 1px solid var(--muted);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1001;
}

.player:hover .mini-player-toggle {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Left Section - Album Art & Track Info */
.player__left {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.album-art {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.album-art:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.album-art-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-art:hover .album-art-overlay {
  opacity: 1;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.track {
  min-width: 0;
}

.track__title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.3s ease;
}

.track__artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.3s ease;
}

.track-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.track-action {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 12px;
}

.track-action:hover {
  color: var(--brand);
  background: rgba(29, 185, 84, 0.1);
}

.track-action.active {
  color: var(--brand);
}

/* Center Section - Main Controls & Progress */
.player__center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.main-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.control {
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
  color: var(--text);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.control::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.control:hover::before {
  width: 120%;
  height: 120%;
}

.control:hover {
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-elev-2) 100%);
  border-color: var(--border-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--bg-primary-rgb), 0.1);
}

.control:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.1s ease;
}

.control--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #041;
  font-weight: 700;
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.control--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.control--primary.is-playing {
  animation: selodioPulse 1.2s ease-in-out infinite;
}

.shuffle-btn.active,
.repeat-btn.active {
  color: var(--brand);
  background: rgba(29, 185, 84, 0.1);
  border-color: var(--brand);
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.time-display {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 35px;
  text-align: center;
}

.progress-container {
  flex: 1;
  position: relative;
  height: 4px;
  cursor: pointer;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--muted);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.1s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-container:hover .progress-handle {
  opacity: 1;
}

input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* Right Section - Additional Controls & Volume */
.player__right {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-self: end;
}

.additional-controls {
  display: flex;
  gap: 8px;
}

.queue-btn,
.device-btn,
.share-btn {
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.queue-btn:hover,
.device-btn:hover,
.share-btn:hover {
  background: var(--bg-elev-2);
  color: var(--text);
  border-color: var(--border-color);
}

.volume-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.volume-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.volume-slider-container {
  position: relative;
  width: 80px;
  height: 4px;
  cursor: pointer;
}

.volume-bar {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--muted);
  border-radius: 2px;
  overflow: hidden;
}

.volume-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.1s ease;
}

/* Expanded Player */
.expanded-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 90px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-player[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
}

.expanded-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0.3;
}

.expanded-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
}

.expanded-album-art {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.expanded-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expanded-album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expanded-album-art:hover .expanded-album-overlay {
  opacity: 1;
}

.expanded-play-btn {
  width: 80px;
  height: 80px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.4);
  font-size: 24px;
  color: #041;
}

.expanded-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(29, 185, 84, 0.5);
}

.expanded-track-info {
  text-align: center;
}

.expanded-track-info h2 {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.expanded-track-info p {
  color: var(--text-dim);
  font-size: 18px;
  margin: 0;
}

.expanded-progress {
  width: 100%;
  max-width: 400px;
}

.expanded-progress-container {
  position: relative;
  margin-bottom: 8px;
}

.expanded-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--muted);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.expanded-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.1s ease;
}

input#expandedSeek {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.expanded-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.expanded-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.expanded-control {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.expanded-control:hover {
  background: rgba(42, 48, 64, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.expanded-play-pause-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #041;
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.expanded-play-pause-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .player {
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .player__left {
    order: 1;
    justify-content: center;
  }

  .player__center {
    order: 2;
    max-width: none;
  }

  .player__right {
    order: 3;
    justify-self: center;
  }

  .additional-controls {
    display: none;
  }

  .expanded-player {
    bottom: 80px;
  }

  .expanded-content {
    padding: 20px;
    gap: 20px;
  }

  .expanded-album-art {
    width: 250px;
    height: 250px;
  }

  .expanded-track-info h2 {
    font-size: 24px;
  }

  .expanded-track-info p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .player {
    padding: 8px 12px;
  }

  .album-art {
    width: 48px;
    height: 48px;
  }

  .track__title {
    font-size: 13px;
  }

  .track__artist {
    font-size: 11px;
  }

  .control {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(42, 48, 64, 0.9) 0%, rgba(26, 31, 46, 0.9) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .control:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(29, 185, 84, 0.08);
  }

  .control--primary {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .expanded-album-art {
    width: 200px;
    height: 200px;
  }

  .expanded-play-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .expanded-control {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .expanded-play-pause-btn {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}

/* Status Feed Responsive Design */
@media (max-width: 1100px) {
  .status-feed-section {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  .status-feed-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .status-feed-header h3 {
    font-size: 16px;
  }

  .status-feed {
    gap: 16px;
    max-height: 450px;
  }

  .status-item {
    padding: 16px;
    border-radius: 14px;
  }

  .status-item:hover {
    transform: translateY(-2px);
  }

  .status-item-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .status-item-avatar {
    width: 40px;
    height: 40px;
  }

  .status-item-name {
    font-size: 15px;
  }

  .status-item-username {
    font-size: 12px;
  }

  .status-item-content {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .status-item-footer {
    margin-top: 14px;
    padding-top: 14px;
    font-size: 12px;
  }

  .status-item-time {
    gap: 4px;
  }

  .status-item-actions {
    gap: 10px;
  }

  .status-action-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .status-delete-btn {
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .status-time-remaining {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 840px) {
  .status-feed-section {
    padding: 16px 12px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .status-feed-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .status-feed-header h3 {
    font-size: 15px;
  }

  .status-feed {
    gap: 14px;
    max-height: 400px;
  }

  .status-item {
    padding: 14px;
    border-radius: 12px;
  }

  .status-item:hover {
    transform: translateY(-1px);
  }

  .status-item-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .status-item-avatar {
    width: 36px;
    height: 36px;
  }

  .status-item-name {
    font-size: 14px;
  }

  .status-item-username {
    font-size: 11px;
  }

  .status-item-content {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .status-item-footer {
    margin-top: 12px;
    padding-top: 12px;
    font-size: 11px;
  }

  .status-item-time {
    gap: 3px;
  }

  .status-item-actions {
    gap: 8px;
  }

  .status-action-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .status-action-btn i {
    font-size: 12px;
  }

  .status-delete-btn {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .status-time-remaining {
    font-size: 9px;
    padding: 2px 5px;
  }

  .status-feed-empty,
  .status-feed-loading {
    padding: 50px 20px;
  }

  .status-feed-empty i,
  .status-feed-loading i {
    font-size: 56px;
  }

  .status-feed-empty h4 {
    font-size: 16px;
  }

  .status-feed-empty p,
  .status-feed-loading p {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .status-feed-section {
    padding: 12px 10px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .status-feed-header {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .status-feed-header h3 {
    font-size: 14px;
  }

  .status-feed {
    gap: 12px;
    max-height: 350px;
  }

  .status-item {
    padding: 12px;
    border-radius: 10px;
  }

  .status-item:hover {
    transform: none;
  }

  .status-item-header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .status-item-avatar {
    width: 32px;
    height: 32px;
  }

  .status-item-name {
    font-size: 13px;
  }

  .status-item-username {
    font-size: 10px;
  }

  .status-item-content {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .status-item-footer {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 10px;
  }

  .status-item-time {
    gap: 2px;
  }

  .status-item-actions {
    gap: 6px;
  }

  .status-action-btn {
    padding: 4px 6px;
    font-size: 10px;
  }

  .status-action-btn i {
    font-size: 11px;
  }

  .status-delete-btn {
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .status-time-remaining {
    font-size: 8px;
    padding: 2px 4px;
  }

  .status-feed-empty,
  .status-feed-loading {
    padding: 40px 16px;
  }

  .status-feed-empty i,
  .status-feed-loading i {
    font-size: 48px;
  }

  .status-feed-empty h4 {
    font-size: 15px;
  }

  .status-feed-empty p,
  .status-feed-loading p {
    font-size: 13px;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 840px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s ease; width: 80%; max-width: 300px; z-index: 20; }
  .sidebar.is-open { transform: translateX(0); }
  .burger { display: inline-block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rows { grid-template-columns: 1fr; }
  .main { padding-bottom: 140px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr; row-gap: 8px; }
  .player__right { justify-self: start; }
}

/* Landing Buttons */
.landing__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Arkadaşlarımı Bul Modal Styles */
.find-friends-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1004;
  backdrop-filter: blur(4px);
}

.find-friends-modal[aria-hidden="true"] {
  display: none;
}

.find-friends-window {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.find-friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.find-friends-header h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.close-find-friends-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-find-friends-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.find-friends-content {
  padding: 24px;
}

.search-section {
  margin-bottom: 24px;
}

.search-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-group input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s ease;
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.1);
}

.search-input-group input::placeholder {
  color: var(--text-secondary);
}

.search-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.search-results {
  min-height: 60px;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.user-card:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-info h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.user-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 4px 0;
}

.user-status {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 500;
}

.add-friend-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-friend-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.add-friend-btn.added {
  background: var(--text-secondary);
  cursor: default;
}

.add-friend-btn.added:hover {
  transform: none;
}


/* Instagram-Style Modal Overlays */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Giriş Yap Modal Styles */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
}

.login-modal[aria-hidden="true"] {
  display: none;
}

.login-window {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.login-header h2 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
}

.close-login-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.05);
}

.login-content {
  padding: 24px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

.login-form-section {
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.login-form .form-group label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.login-form .form-group input {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.1);
  transform: translateY(-1px);
}

.login-form .form-group input::placeholder {
  color: var(--text-dim);
  opacity: 0.8;
}

.error-message {
  color: #ff4444;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 16px;
}

.error-message.show {
  opacity: 1;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.remember-me label {
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.forgot-password {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #031;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #031;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: spin 1s linear infinite;
}

.btn-loader.show {
  opacity: 1;
}

.btn-loader.show + .btn-text {
  opacity: 0;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.social-login h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px 0;
  text-align: center;
}

.login-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-footer p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.login-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Üye Ol Modal Styles */
.signup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.signup-modal[aria-hidden="true"] {
  display: none;
}

.signup-window {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.signup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.signup-header h2 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
  text-align: center;
}

.close-signup-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-signup-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.05);
}

.signup-content {
  padding: 24px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

.social-signup {
  margin-bottom: 24px;
}

.social-signup h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px 0;
  text-align: center;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-btn:hover::before {
  left: 100%;
}

.social-btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
}

.social-btn--instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225, 48, 108, 0.4);
}

.social-btn--google {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

.social-btn--google:hover {
  background: linear-gradient(135deg, #3367d6, #2d8f47);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(66, 133, 244, 0.4);
}

.social-btn--twitter {
  background: linear-gradient(135deg, #1da1f2, #42a5f5);
  color: white;
  box-shadow: 0 4px 16px rgba(29, 161, 242, 0.3);
}

.social-btn--twitter:hover {
  background: linear-gradient(135deg, #0d8bd9, #1976d2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 161, 242, 0.4);
}

.social-icon {
  font-size: 20px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  text-align: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.email-signup h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 20px 0;
  text-align: center;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signup-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.signup-form .form-group label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.signup-form .form-group input {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.signup-form .form-group input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.1);
  transform: translateY(-1px);
}

.form-help {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

.checkbox-group {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  width: auto;
}

.checkbox-group label {
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.signup-submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #031;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.signup-submit-btn:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.signup-submit-btn:active {
  transform: translateY(0);
}

.signup-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.signup-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.signup-footer p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.signup-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.signup-footer a:hover {
  text-decoration: underline;
}

/* Profil Düzenleme Modal Styles */
.profile-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  backdrop-filter: blur(4px);
}

.profile-edit-modal[aria-hidden="true"] {
  display: none;
}

.profile-edit-window {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.profile-edit-header h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.close-profile-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-profile-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.profile-edit-content {
  padding: 24px;
}

.profile-photo-section {
  margin-bottom: 32px;
}

.current-photo {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.current-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.change-photo-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.change-photo-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.profile-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.profile-edit-actions {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

.cancel-btn,
.save-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 16px;
}

.cancel-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cancel-btn:hover {
  background: var(--bg-hover);
}

.save-btn {
  background: var(--accent-color);
  color: white;
}

.save-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Profil Düzenleme Modal - Minimal & Tema Uyumlu */
.profile-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-edit-modal[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
}

.profile-edit-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.profile-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--bg-rgb), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-edit-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-edit-modal[aria-hidden="false"] .profile-edit-content {
  transform: scale(1);
}

.profile-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-edit-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.profile-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.profile-edit-body {
  padding: 24px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

.profile-edit-body::-webkit-scrollbar {
  width: 6px;
}

.profile-edit-body::-webkit-scrollbar-track {
  background: var(--bg-elev);
}

.profile-edit-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.profile-edit-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Profil Avatar Bölümü */
.profile-avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(var(--bg-rgb), 0.3);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(var(--bg-rgb), 0.5);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(var(--bg-rgb), 0.4);
  transition: all 0.2s ease;
}

.avatar-edit-btn:hover {
  background: var(--brand-2);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(var(--bg-rgb), 0.6);
}

/* Kapak Fotoğrafı Bölümü - Minimal & Tema Uyumlu */
.profile-cover-section {
  margin-bottom: 24px;
}

.profile-cover-header {
  margin-bottom: 12px;
}

.profile-cover-container {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-elev);
  transition: all 0.3s ease;
}

.profile-cover-container:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(var(--brand), 0.1);
}

.profile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.cover-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.profile-cover-container:hover .cover-edit-overlay {
  opacity: 1;
}

.cover-edit-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(var(--brand), 0.3);
}

.cover-edit-btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--brand), 0.4);
}

.cover-edit-btn i {
  font-size: 12px;
}

.cover-file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-elev);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.cover-file-info i {
  color: var(--brand);
  font-size: 11px;
}

/* Tema Seçici Stilleri */
.theme-selector {
  position: relative;
  width: 100%;
}

.theme-selector-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 12px;
}

.theme-selector-btn:hover {
  border-color: #1db954;
  background: #fff;
}

.theme-selector-btn:focus {
  outline: none;
  border-color: #1db954;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.theme-colors {
  display: flex;
  align-items: center;
  gap: 2px;
}

.color-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-dot:hover {
  transform: scale(1.5);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.theme-name {
  font-weight: 500;
  color: #333;
  flex: 1;
  text-align: left;
}

.theme-selector-btn i {
  color: #666;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.theme-selector-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Tema Dropdown */
.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  max-height: 300px;
  overflow-y: auto;
  animation: dropdownSlideIn 0.3s ease;
}

.theme-dropdown[aria-hidden="true"] {
  display: none;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 12px;
  border-bottom: 1px solid #f1f3f4;
}

.theme-option:last-child {
  border-bottom: none;
}

.theme-option:hover {
  background: #f8f9fa;
  transform: translateX(4px);
}

.theme-option.selected {
  background: rgba(29, 185, 84, 0.1);
  border-left: 3px solid #1db954;
}

.theme-option .theme-colors {
  display: flex;
  gap: 1.5px;
}

.theme-option .color-dot {
  width: 5px;
  height: 5px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.08);
}

.theme-option .theme-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.theme-check {
  color: #1db954;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.theme-option.selected .theme-check {
  opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-dropdown {
    max-height: 250px;
  }
  
  .theme-option {
    padding: 10px 14px;
  }
  
  .color-dot {
    width: 5px;
    height: 5px;
  }
}

/* Form Bölümü */
.profile-form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-label i {
  color: var(--brand);
  font-size: 16px;
}

.profile-input,
.profile-textarea {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-elev);
  color: var(--text-primary);
}

.profile-input::placeholder,
.profile-textarea::placeholder {
  color: var(--text-dim);
}

.profile-input:focus,
.profile-textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-elev-2);
  box-shadow: 0 0 0 3px rgba(var(--brand), 0.1);
}

.profile-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--muted);
}

.profile-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Footer */
.profile-edit-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-elev);
}

.profile-cancel-btn {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-cancel-btn:hover {
  background: var(--muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.profile-save-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(var(--brand), 0.3);
}

.profile-save-btn:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--brand), 0.4);
}

.profile-save-btn:disabled {
  background: var(--muted);
  color: var(--text-dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .profile-edit-content {
    max-width: 95vw;
    margin: 0 10px;
  }
  
  .profile-edit-header {
    padding: 20px 20px 16px;
  }
  
  .profile-edit-header h2 {
    font-size: 18px;
  }
  
  .profile-edit-body {
    padding: 20px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-edit-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .profile-avatar-section {
    margin-bottom: 24px;
  }
  
  .profile-form-section {
    gap: 20px;
  }
  
  .profile-edit-footer {
    padding: 20px;
    gap: 10px;
    flex-direction: column;
  }
  
  .profile-cancel-btn,
  .profile-save-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .privacy-options {
    gap: 0.75rem;
  }
  
  .privacy-label {
    padding: 0.875rem;
    gap: 0.875rem;
  }
  
  .privacy-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .privacy-content h4 {
    font-size: 0.95rem;
  }
  
  .privacy-content p {
    font-size: 0.8rem;
  }
  
  /* Cover photo mobile */
  .profile-cover-container {
    height: 120px;
  }
  
  .cover-edit-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .cover-file-info {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* Instagram Tarzı Bildirim */
.instagram-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  animation: slideDown 0.3s ease-out;
  border: 1px solid #e1e8ed;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  width: 24px;
  height: 24px;
  background: var(--brand);
  color: #031;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.notification-text {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Takip Bırakma Modal */
.unfollow-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease-out;
}

.unfollow-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.unfollow-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #e1e8ed;
}

.unfollow-user-info img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.unfollow-user-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.unfollow-user-details p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #8e8e8e;
}

.unfollow-actions {
  display: flex;
  border-top: 1px solid #e1e8ed;
}

.unfollow-actions button {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.unfollow-cancel-btn {
  color: #333;
  border-right: 1px solid #e1e8ed;
}

.unfollow-cancel-btn:hover {
  background: #f8f8f8;
}

.unfollow-confirm-btn {
  color: #ed4956;
}

.unfollow-confirm-btn:hover {
  background: #fef2f2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Song Sharing Modal */
.song-share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.song-share-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.song-share-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
}

.song-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.song-share-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.song-share-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.song-share-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.song-share-body {
  padding: 24px;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}

.song-share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-secondary);
  margin-bottom: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.song-share-item:hover {
  background: var(--bg-hover);
  border-color: var(--brand);
  transform: translateX(2px);
}

.song-share-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.song-share-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-share-info {
  flex: 1;
  min-width: 0;
}

.song-share-info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-share-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-share-send {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.song-share-send:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Minimal Playlist Picker Modal */
.playlist-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}

.playlist-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: overlayFadeIn 0.2s ease-out;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.playlist-picker-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  max-height: 75vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
}

.playlist-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
}

.playlist-picker-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.playlist-picker-close {
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  font-size: 16px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.playlist-picker-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.playlist-picker-body {
  padding: 20px;
  max-height: calc(75vh - 120px);
  overflow-y: auto;
}

.playlist-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-picker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.playlist-picker-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.playlist-picker-item:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.playlist-picker-cover {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
}

.playlist-picker-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.4;
}

.playlist-picker-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.playlist-picker-create {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.playlist-picker-create:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.playlist-picker-create:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.playlist-picker-create i {
  font-size: 16px;
}

/* Focus and Accessibility */
.playlist-picker-item:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  background: var(--bg-hover);
  border-color: var(--brand);
}

.playlist-picker-create:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.playlist-picker-close:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Instagram-Style Create Playlist Button */
.instagram-create-playlist-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.2px;
  margin: 20px 0;
  width: 100%;
  justify-content: center;
}

.instagram-create-playlist-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.instagram-create-playlist-btn:hover::before {
  left: 100%;
}

.instagram-create-playlist-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.instagram-create-playlist-btn:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s ease;
}

.instagram-create-playlist-btn i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.instagram-create-playlist-btn:hover i {
  transform: rotate(90deg);
}

/* Minimal Create Playlist Modal */
.create-playlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}

.create-playlist-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: overlayFadeIn 0.2s ease-out;
}

.create-playlist-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
}

.create-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
}

.create-playlist-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.create-playlist-close {
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  font-size: 16px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.create-playlist-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.create-playlist-body {
  padding: 24px;
}

.create-playlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-playlist-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.create-playlist-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-playlist-label i {
  color: var(--brand);
  font-size: 14px;
}

.create-playlist-input {
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: var(--bg-elev);
  color: var(--text-primary);
  font-family: inherit;
}

.create-playlist-input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(var(--bg-primary-rgb), 0.1);
}

.create-playlist-input::placeholder {
  color: var(--text-dim);
  opacity: 0.8;
}

.create-playlist-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.create-playlist-cancel-btn {
  flex: 1;
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-playlist-cancel-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.create-playlist-create-btn {
  flex: 2;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-playlist-create-btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.create-playlist-create-btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.create-playlist-create-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Modern Success Notification */
.playlist-success-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 185, 84, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
  animation: slideDown 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90vw;
}

.playlist-success-notification .notification-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.playlist-success-notification .notification-text {
  color: white;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Instagram-Style Chat Interface */
.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.chat-container {
  position: relative;
  background: var(--bg-primary);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  height: 90vh;
  max-height: 600px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* Conversations View */
.conversations-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: calc(100vh - 200px);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: relative;
}

.conversation-item:hover {
  background: var(--bg-hover);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conversation-item:last-child {
  border-bottom: none;
}

.conversation-item:active {
  background: var(--bg-secondary);
  transform: translateX(1px);
}

.conversation-item .conversation-avatar {
  position: relative;
  flex-shrink: 0;
}

.conversation-item .conversation-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.conversation-item:hover .conversation-avatar img {
  border-color: var(--brand);
  transform: scale(1.05);
}

.conversation-item .conversation-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conversation-item .conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-item .conversation-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item .conversation-time {
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.conversation-item .conversation-preview {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.conversation-avatar {
  position: relative;
  flex-shrink: 0;
}

.conversation-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.conversation-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.conversation-time {
  font-size: 12px;
  color: var(--text-dim);
}

.conversation-preview {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat View */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.back-to-conversations {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.back-to-conversations:hover {
  background: var(--bg-hover);
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chat-avatar {
  position: relative;
  flex-shrink: 0;
}

.chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-user-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-user-details .user-status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Online Indicator */
.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1db954;
  border: 2px solid var(--bg-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.online-indicator.online {
  opacity: 1;
}

/* Messages */
.chat-messages-area {
  overflow-y: auto;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
  height: calc(100% - 140px);
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 80px;
  padding-top: 20px;
  scroll-behavior: smooth;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  min-height: 0;
  box-sizing: border-box;
}

.message-group {
  display: flex;
  margin-bottom: 16px;
  max-width: 85%;
}

.message-group.sent {
  align-self: flex-end;
  justify-content: flex-end;
}

.message-group.received {
  align-self: flex-start;
  justify-content: flex-start;
}

.message-avatar {
  flex-shrink: 0;
  margin-top: 4px;
}

.message-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-primary);
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 44px);
}

.message-avatar {
  flex-shrink: 0;
}

.message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-bubble {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 100%;
  word-wrap: break-word;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.message.sent .message-bubble {
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.message-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.message-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.8;
}

.message.sent .message-time {
  text-align: right;
}

.message.received .message-time {
  text-align: left;
}

/* Modern Input Area */
.chat-input-area {
  border-top: 1px solid var(--border-color);
  padding: 16px;
  background: var(--bg-primary);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.input-container:focus-within {
  border-color: var(--brand);
  background: var(--bg-primary);
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.1);
}

.emoji-btn,
.attach-btn,
.voice-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.emoji-btn:hover,
.attach-btn:hover,
.voice-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}

.message-input-wrapper {
  flex: 1;
  min-width: 0;
}

.message-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  font-family: inherit;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.send-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.send-btn:disabled {
  background: var(--text-dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Playlist Track Action Buttons - Instagram Style */
.playlist-track-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.playlist-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.playlist-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.playlist-fav-btn:hover {
  background: rgba(255, 20, 147, 0.2);
  border-color: #ff1493;
  color: #ff1493;
}

.playlist-fav-btn.active {
  background: #ff1493;
  border-color: #ff1493;
  color: white;
}

.playlist-fav-btn.active i::before {
  content: "\f004"; /* Solid heart */
}

.playlist-remove-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #ff3b30;
  color: #ff3b30;
}

/* Modern Song Sharing Cards */
.song-share-bubble {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 8px;
}

.song-share-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  max-width: 280px;
}

.song-share-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.song-share-cover {
  position: relative;
  flex-shrink: 0;
}

.song-share-cover img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--bg-primary);
}

.song-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.song-share-card:hover .song-play-overlay {
  opacity: 1;
}

.song-play-overlay i {
  color: white;
  font-size: 20px;
  margin-left: 2px;
}

.song-share-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.song-share-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.song-share-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.song-share-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.song-play-btn,
.song-add-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.song-add-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.song-play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.song-add-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message Status */
.message-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-dim);
}

.message-status i {
  font-size: 10px;
}

.message-status.sent i {
  color: var(--brand);
}

.message-status.delivered i {
  color: var(--text-secondary);
}

.message-status.read i {
  color: #0095f6;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .login-modal .login-window,
  .signup-modal .signup-window {
    width: 95%;
    max-width: none;
    margin: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  .login-modal .login-header h2,
  .signup-modal .signup-header h2 {
    font-size: 18px;
  }

  .login-modal .login-content,
  .signup-modal .signup-content {
    padding: 16px;
    max-height: none;
  }

  .signup-form .form-group input,
  .login-form .form-group input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 14px;
  }

  .signup-submit-btn,
  .login-submit-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .social-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .login-form-section,
  .email-signup {
    padding: 16px;
  }

  .divider {
    margin: 16px 0;
  }

  .divider span {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .login-modal .login-window,
  .signup-modal .signup-window {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }

  .login-modal .login-header,
  .signup-modal .signup-header {
    padding: 16px 20px;
  }

  .login-modal .login-content,
  .signup-modal .signup-content {
    padding: 12px;
  }

  .signup-form .form-group,
  .login-form .form-group {
    gap: 4px;
  }

  .signup-form .form-group label,
  .login-form .form-group label {
    font-size: 13px;
  }

  .signup-form .form-group input,
  .login-form .form-group input {
    padding: 10px 12px;
  }

  .signup-submit-btn,
  .login-submit-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .login-footer,
  .signup-footer {
    padding: 16px 20px;
  }

  .login-footer p,
  .signup-footer p {
    font-size: 13px;
  }

  .close-login-btn,
  .close-signup-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .login-modal .login-window,
  .signup-modal .signup-window {
    transform: none;
    animation: none;
  }
}

/* Enhanced Loading States and Feedback */
.signup-submit-btn.loading,
.login-submit-btn.loading,
.import-confirm-btn.loading {
  pointer-events: none;
  position: relative;
  opacity: 0.9;
}

.signup-submit-btn.loading::after,
.login-submit-btn.loading::after,
.import-confirm-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #031;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.signup-submit-btn.success,
.login-submit-btn.success {
  animation: successPulse 0.6s ease-out;
  background: linear-gradient(135deg, #1db954, #1ed760);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.signup-submit-btn.error,
.login-submit-btn.error {
  animation: errorShake 0.5s ease-out;
  background: linear-gradient(135deg, #ff4444, #ff6666);
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* Loading overlay for modals */
.modal-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(29, 185, 84, 0.2);
  border-top: 3px solid #1db954;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Skeleton loading for music items */
.music-item.skeleton {
  pointer-events: none;
}

.music-item.skeleton .music-cover {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
}

.music-item.skeleton .music-info h3,
.music-item.skeleton .music-info p {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  color: transparent;
  border-radius: 4px;
}

@keyframes skeletonLoading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Button loading states */
.btn.loading {
  pointer-events: none;
  position: relative;
  opacity: 0.8;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Keyboard Navigation Enhancements */
.nav__item:focus,
.nav__item--button:focus,
.btn:focus,
.create-circle-btn:focus,
.music-item:focus,
.playlist-picker-item:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

.modal-content:focus,
.youtube-modal-content:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Focus visible for better accessibility */
.nav__item:focus-visible,
.nav__item--button:focus-visible,
.btn:focus-visible,
.create-circle-btn:focus-visible,
.music-item:focus-visible,
.playlist-picker-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav__item:hover,
  .nav__item--button:hover,
  .btn:hover,
  .create-circle-btn:hover {
    border: 2px solid var(--brand);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nav__item,
  .nav__item--button,
  .btn,
  .create-circle-btn,
  .music-item,
  .modal-content,
  .youtube-modal-content {
    transition: none;
  }

  .nav__item::before,
  .nav__item--button::before {
    transition: none;
  }

  .music-item.skeleton .music-cover,
  .music-item.skeleton .music-info h3,
  .music-item.skeleton .music-info p {
    animation: none;
  }

  .modal-loading-overlay .loading-spinner,
  .signup-submit-btn.loading::after,
  .login-submit-btn.loading::after,
  .import-confirm-btn.loading::after,
  .btn.loading::after {
    animation: none;
  }
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Form Field States */
.form-group.error input {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
  animation: errorGlow 0.3s ease-out;
}

.form-group.error label {
  color: #ff4444;
  animation: errorGlow 0.3s ease-out;
}

.form-group.success input {
  border-color: #1db954;
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
  animation: successGlow 0.3s ease-out;
}

.form-group.success label {
  color: #1db954;
  animation: successGlow 0.3s ease-out;
}

@keyframes errorGlow {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes successGlow {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Header Notifications Button */
.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-notifications-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-notifications-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.header-notification-badge.show {
  opacity: 1;
  visibility: visible;
  animation: badgePulse 0.5s ease-out;
}

@keyframes badgePulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Instagram-style Notification Enhancement */
.instagram-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90vw;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.instagram-notification.success {
  background: rgba(29, 185, 84, 0.95);
  border-color: rgba(29, 185, 84, 0.3);
}

.instagram-notification.error {
  background: rgba(255, 68, 68, 0.95);
  border-color: rgba(255, 68, 68, 0.3);
}

.instagram-notification.warning {
  background: rgba(255, 193, 7, 0.95);
  border-color: rgba(255, 193, 7, 0.3);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.instagram-notification.success .notification-icon {
  background: rgba(255, 255, 255, 0.3);
  color: #1db954;
}

.instagram-notification.error .notification-icon {
  background: rgba(255, 255, 255, 0.3);
  color: #ff4444;
}

.instagram-notification.warning .notification-icon {
  background: rgba(255, 255, 255, 0.3);
  color: #ff8f00;
}

.notification-text {
  color: white;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

/* Input Focus Enhancements */
.signup-form input:focus,
.login-form input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Hover Effects */
.signup-submit-btn:hover,
.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
}

.signup-submit-btn:active,
.login-submit-btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Social Button Hover Effects */
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Modal Animation Enhancements */
.login-modal .login-window,
.signup-modal .signup-window {
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Loading Overlay for Forms */
.form-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.form-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.form-loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(29, 185, 84, 0.2);
  border-top: 3px solid #1db954;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}




/* Friend Music Action Buttons */
.friend-music-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.friend-item:hover .friend-music-actions {
  opacity: 1;
}

.friend-music-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.friend-music-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.friend-music-btn.play-btn {
  background: var(--brand);
}

.friend-music-btn.add-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.friend-music-btn.add-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* Music Discovery Section */
.music-discovery-section {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.music-discovery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.music-discovery-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-discovery-header h3 i {
  color: var(--brand);
  font-size: 14px;
}

.refresh-discovery-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 12px;
}

.refresh-discovery-btn:hover {
  background: var(--brand);
  color: white;
  transform: rotate(180deg);
  border-color: var(--brand);
}

.music-discovery-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.music-discovery-list::-webkit-scrollbar {
  width: 6px;
}

.music-discovery-list::-webkit-scrollbar-track {
  background: transparent;
}

.music-discovery-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.music-discovery-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.discovery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.discovery-item:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.discovery-cover {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.discovery-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discovery-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.discovery-item:hover .discovery-play-overlay {
  opacity: 1;
}

.discovery-play-overlay i {
  color: white;
  font-size: 16px;
}

.discovery-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discovery-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.discovery-info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.discovery-reason {
  font-size: 11px;
  color: var(--brand);
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.8;
}

.discovery-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.discovery-item:hover .discovery-actions {
  opacity: 1;
}

.discovery-action-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.discovery-action-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.discovery-action-btn.add-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.discovery-action-btn.add-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--brand);
}

/* Empty state for music discovery */
.music-discovery-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.music-discovery-empty i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
  display: block;
}

.music-discovery-empty h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.music-discovery-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Loading state for music discovery */
.music-discovery-loading {
  text-align: center;
  padding: 40px 20px;
}

.music-discovery-loading i {
  font-size: 24px;
  color: var(--brand);
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.music-discovery-loading p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Notifications Styles */
.notifications-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: auto;
}

.notifications-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: scale(1.05);
}

.notifications-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border: 2px solid var(--bg);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.notifications-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* Notifications Modal */
.notifications-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.notifications-modal[aria-hidden="true"] {
  display: none;
}

.notifications-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.notifications-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  position: relative;
}

.notifications-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.3), transparent);
}

.notifications-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notifications-close {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.notifications-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.notifications-close:hover::before {
  width: 100%;
  height: 100%;
}

.notifications-close:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notifications-body {
  padding: 0;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}

.notifications-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
  background: var(--bg-primary);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--bg-hover);
  transform: translateX(2px);
}

.notification-avatar {
  position: relative;
  flex-shrink: 0;
}

.notification-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px;
  transition: all 0.2s ease;
}

.notification-avatar img:hover {
  transform: scale(1.05);
}

.notification-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.notification-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 400;
}

.notification-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

.notification-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.notification-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.notification-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.notification-btn:active {
  transform: translateY(0);
}

.accept-btn {
  background: var(--brand);
}

.decline-btn {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2);
}

.decline-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  color: #ff3b30;
}

/* Empty notifications state */
.notifications-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border-radius: 16px;
  margin: 20px;
}

.notifications-empty i {
  font-size: 64px;
  color: var(--border-color);
  margin-bottom: 20px;
  display: block;
  opacity: 0.6;
}

.notifications-empty h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.notifications-empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 280px;
  margin: 0 auto;
}

/* Loading state for notifications */
.notifications-loading {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border-radius: 16px;
  margin: 20px;
}

.notifications-loading i {
  font-size: 32px;
  color: var(--brand);
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
  display: block;
}

.notifications-loading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

/* Friends Modal */
.friends-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.friends-modal[aria-hidden="true"] {
  display: none;
}

.friends-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.friends-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.friends-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.friends-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.friends-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.friends-body {
  padding: 0;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}

.friends-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.friend-item-modal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
  animation: slideInFromLeft 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.friend-item-modal:last-child {
  border-bottom: none;
}

.friend-item-modal:hover {
  background: var(--bg-hover);
  transform: translateX(2px);
}

.friend-avatar-modal {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  transition: all 0.2s ease;
  overflow: hidden;
  background: var(--bg-secondary);
}

.friend-item-modal:hover .friend-avatar-modal {
  border-color: var(--brand);
  transform: scale(1.05);
}

/* Apple-style image quality improvements for modal avatars */
.friend-avatar-modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: all 0.2s ease;
}

.friend-info-modal {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-info-modal h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-info-modal p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.friend-status-modal {
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.friend-status-modal i {
  font-size: 10px;
}

.friend-actions-modal {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.friend-remove-btn {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-remove-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  transform: translateY(-1px);
}

.friend-remove-btn:active {
  transform: translateY(0);
}

/* Friends loading state */
.friends-loading {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
}

.friends-loading i {
  font-size: 24px;
  color: var(--brand);
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
  display: block;
}

.friends-loading p {
  margin: 0;
  font-size: 14px;
}

/* Friends empty state */
.friends-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
}

.friends-empty i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
  display: block;
}

.friends-empty h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.friends-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsive design for friends modal */
@media (max-width: 768px) {
  .friends-content {
    width: 95%;
    max-width: none;
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  .friends-header {
    padding: 16px 20px;
  }

  .friends-body {
    max-height: calc(100vh - 120px);
  }

  .friend-item-modal {
    padding: 12px 20px;
    gap: 12px;
  }

  .friend-avatar-modal {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .friend-info-modal h4 {
    font-size: 15px;
  }

  .friend-info-modal p {
    font-size: 13px;
  }

  .friend-actions-modal {
    gap: 6px;
  }

  .friend-remove-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Hide mini player toggle button */
.mini-player-toggle {
  display: none !important;
}

/* Player auto-hide functionality */
.player {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1), right 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
}

/* Hidden player width (kept equal to toggle width) */
:root {
  --player-hidden-width: 20px; /* .content padding-left ile aynı (şarkı kartı - sidebar mesafesi) */
}

.player.player-hidden {
  right: auto;
  width: var(--player-hidden-width);
  overflow: hidden;
  transform: none;
  pointer-events: auto; /* İnce şeritte tıklanabilir olsun */
}

/* Gizli durumdayken sadece konteyner tıklanabilir olsun */
.player.player-hidden * {
  pointer-events: none;
}

/* Gizli durumda içerik tamamen görünmesin */
.player.player-hidden .player__left,
.player.player-hidden .player__center,
.player.player-hidden .player__right,
.player.player-hidden .expanded-player {
  opacity: 0;
}

/* Albüm görseli ve gölgeleri tamamen kaldırılır */
.player.player-hidden .album-art,
.player.player-hidden .album-art img,
.player.player-hidden .album-art-overlay {
  display: none !important;
  box-shadow: none !important;
}

/* Player toggle button */
.player-toggle-btn {
  position: fixed;
  left: 260px; /* sol sidebar çizgisi */
  bottom: 50px;
  width: var(--player-hidden-width);
  height: calc(var(--player-hidden-width) * 0.3);
  background: var(--brand);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

/* İnce şerit için ikon gizle */
.player-toggle-btn i {
  display: none;
}

.player-toggle-btn.show {
  opacity: 1;
  transform: translateX(0);
}

.player-toggle-btn:hover {
  background: var(--brand-2);
  transform: translateX(0) scale(1.05);
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.6);
}

.player-toggle-btn:active {
  transform: translateX(0) scale(0.95);
}

/* When player is hidden, adjust toggle button position */
.player.player-hidden + .player-toggle-btn {
  left: 260px; /* sol çizgiyi referans al */
}


/* ===== THEME SELECTOR MODAL ===== */

/* Theme Modal Overlay */
.theme-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.theme-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Theme Modal Content */
.theme-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-modal[aria-hidden="false"] .theme-modal-content {
  transform: scale(1);
}

/* Theme Modal Header */
.theme-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-color);
}

.theme-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-modal-title i {
  font-size: 24px;
  color: var(--brand);
}

.theme-modal-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text);
  transform: rotate(90deg);
}

/* Theme Modal Body */
.theme-modal-body {
  padding: 28px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.theme-modal-body::-webkit-scrollbar {
  width: 8px;
}

.theme-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.theme-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.theme-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.theme-modal-description {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Theme Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Theme Cards */
.theme-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--bg-elev);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.theme-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--brand);
}

.theme-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--bg-hover);
}

/* Theme Preview */
.theme-preview {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.preview-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.9;
}

.preview-content {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  opacity: 0.7;
}

.preview-sidebar {
  width: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-header {
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.preview-player {
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  margin-top: auto;
}

/* Theme Info */
.theme-info {
  padding: 20px;
  text-align: center;
}

.theme-colors {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.theme-colors .color-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.08);
  position: relative;
}

.theme-colors .color-dot::after {
  content: '';
  position: absolute;
  inset: -0.5px;
  border-radius: 50%;
  background: inherit;
  filter: blur(0.3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.theme-card:hover .color-dot {
  transform: scale(1.4);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.theme-card:hover .color-dot::after {
  opacity: 0.2;
}

.theme-title {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.theme-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.8;
}

/* Theme Check Icon */
.theme-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.theme-card.selected .theme-check {
  opacity: 1;
  transform: scale(1);
}

.theme-card:hover .theme-check {
  opacity: 0.6;
  transform: scale(0.8);
}

.theme-card.selected:hover .theme-check {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .theme-modal {
    padding: 16px;
  }

  .theme-modal-content {
    max-height: 90vh;
    border-radius: 16px;
  }

  .theme-modal-header {
    padding: 20px 24px;
  }

  .theme-modal-title h2 {
    font-size: 20px;
  }

  .theme-modal-body {
    padding: 20px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .theme-card {
    max-width: none;
  }

  .theme-modal-description {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .theme-modal-header {
    padding: 16px 20px;
  }

  .theme-modal-title h2 {
    font-size: 18px;
  }

  .theme-modal-body {
    padding: 16px;
  }

  .theme-preview {
    height: 120px;
  }

  .theme-info {
    padding: 16px;
  }

  .theme-title {
    font-size: 16px;
  }

  .theme-subtitle {
    font-size: 13px;
  }
}

/* Animation for theme change */
@keyframes themeChangeGlow {
  0% { box-shadow: 0 0 0 0 var(--brand); }
  50% { box-shadow: 0 0 0 10px rgba(29, 185, 84, 0.2); }
  100% { box-shadow: 0 0 0 0 var(--brand); }
}

.theme-card.changing {
  animation: themeChangeGlow 0.6s ease-out;
}


/* Brand Actions Container */
.brand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}

/* Theme Modal Trigger Button - Sidebar Version */
.theme-selector-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-selector-btn-sidebar:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
}

.theme-selector-btn-sidebar:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(29, 185, 84, 0.2);
}

.theme-selector-btn-sidebar i {
  color: var(--brand);
  transition: all 0.3s ease;
  font-size: 14px;
}

.theme-selector-btn-sidebar:hover i {
  color: white;
  transform: rotate(10deg) scale(1.1);
}

/* Hover glow effect */
.theme-selector-btn-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 7px;
}

.theme-selector-btn-sidebar:hover::before {
  opacity: 1;
}

.theme-selector-btn-sidebar i {
  position: relative;
  z-index: 1;
}

/* Responsive sidebar theme button */
@media (max-width: 768px) {
  .brand {
    padding: 16px;
  }
  
  .theme-selector-btn-sidebar {
    width: 32px;
    height: 32px;
  }
  
  .theme-selector-btn-sidebar i {
    font-size: 12px;
  }
  
  .logout-btn-sidebar {
    width: 32px;
    height: 32px;
  }
  
  .logout-btn-sidebar i {
    font-size: 12px;
  }
  
  .brand-actions {
    gap: 6px;
  }
}

/* Logout Button - Sidebar Version */
.logout-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* ===== MODERN LOGOUT MODAL ===== */

.logout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.logout-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logout-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-modal[aria-hidden="false"] .logout-modal-content {
  transform: scale(1) translateY(0);
}

.logout-modal-icon {
  margin-bottom: 20px;
}

.logout-icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  animation: logoutIconPulse 2s ease-in-out infinite;
}

@keyframes logoutIconPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(220, 53, 69, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  }
}

.logout-icon-circle i {
  font-size: 32px;
  color: white;
}

.logout-modal-header h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.logout-modal-header p {
  margin: 0 0 28px 0;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.logout-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.logout-cancel-btn,
.logout-confirm-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  min-height: 50px;
}

.logout-cancel-btn {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.logout-cancel-btn:hover {
  background: var(--bg-secondary);
  color: var(--text);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logout-confirm-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.logout-confirm-btn:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.logout-confirm-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
  .logout-modal-content {
    padding: 24px;
    margin: 16px;
  }
  
  .logout-icon-circle {
    width: 64px;
    height: 64px;
  }
  
  .logout-icon-circle i {
    font-size: 24px;
  }
  
  .logout-modal-header h2 {
    font-size: 24px;
  }
  
  .logout-modal-actions {
    flex-direction: column;
    gap: 8px;
  }
}

.logout-btn-sidebar:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.logout-btn-sidebar:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

.logout-btn-sidebar i {
  color: #dc3545;
  transition: all 0.3s ease;
  font-size: 14px;
}

.logout-btn-sidebar:hover i {
  color: white;
  transform: scale(1.1);
}

/* Hover glow effect for logout */
.logout-btn-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #dc3545, #c82333);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 7px;
}

.logout-btn-sidebar:hover::before {
  opacity: 1;
}

.logout-btn-sidebar i {
  position: relative;
  z-index: 1;
}

/* Prevent logout button spinner from spinning indefinitely */
.logout-btn-sidebar:disabled i.fa-spinner {
  animation: fa-spin 1s infinite linear;
}

.logout-btn-sidebar:not(:disabled) i.fa-spinner {
  animation: none;
}

/* Reset logout button when landing page is shown */
.landing:not([aria-hidden="true"]) ~ * .logout-btn-sidebar {
  pointer-events: none;
  opacity: 0.5;
}

.landing:not([aria-hidden="true"]) ~ * .logout-btn-sidebar i {
  animation: none !important;
}

/* Notifications Button - Sidebar Version */
.notifications-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.notifications-btn-sidebar:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
}

.notifications-btn-sidebar:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(29, 185, 84, 0.2);
}

.notifications-btn-sidebar i {
  color: var(--brand);
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.notifications-btn-sidebar:hover i {
  color: white;
  transform: scale(1.1);
}

/* Notification badge styling for sidebar */
.notifications-btn-sidebar .header-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  z-index: 2;
  transform: scale(0);
  transition: all 0.2s ease;
}

.notifications-btn-sidebar .header-notification-badge:not(:empty) {
  transform: scale(1);
}

/* Profile Edit Button - Sidebar Version */
.profile-edit-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-edit-btn-sidebar:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
}

.profile-edit-btn-sidebar:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(29, 185, 84, 0.2);
}

.profile-edit-btn-sidebar i {
  color: var(--brand);
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.profile-edit-btn-sidebar:hover i {
  color: white;
  transform: scale(1.1);
}

/* Responsive adjustments for new buttons */
@media (max-width: 768px) {
  .notifications-btn-sidebar,
  .profile-edit-btn-sidebar {
    width: 32px;
    height: 32px;
  }
  
  .notifications-btn-sidebar i,
  .profile-edit-btn-sidebar i {
    font-size: 12px;
  }
  
  .notifications-btn-sidebar .header-notification-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -1px;
    right: -1px;
  }
  
  /* YouTube and Import buttons responsive */
  .youtube-btn,
  .import-btn {
    width: 36px;
    height: 36px;
  }
  
  .youtube-btn i,
  .import-btn i {
    font-size: 14px;
  }
}

/* =========================== */
/* AUTH MODAL STYLES */
/* =========================== */

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.auth-modal[aria-hidden="true"] .auth-modal-content {
  transform: scale(0.9);
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.auth-modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.auth-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.auth-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.auth-input-group {
  margin-bottom: 1rem;
}

.auth-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.auth-input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-input-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.auth-submit-btn {
  width: 100%;
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 1rem 0;
}

.auth-submit-btn:hover {
  background: #1aa44c;
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
}

.auth-switch p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.875rem;
}

.auth-switch a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* =========================== */
/* MEDIA QUERIES */
/* =========================== */

/* Ana container */
.music-search-section {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.music-search-header {
  margin-bottom: 16px;
}

.music-search-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-search-header h3 i {
  color: var(--brand);
  font-size: 16px;
}

/* Input section */
.music-search-input {
  position: relative;
  margin-bottom: 20px;
}

.music-search-input input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 48px 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.music-search-input input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.music-search-input input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.1);
  background: var(--bg-elev);
}

.music-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-search-btn:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

/* Results container */
.music-search-results {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.music-search-results::-webkit-scrollbar {
  width: 6px;
}

.music-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.music-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Search result rows */
.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.search-result-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.1), transparent);
  transition: left 0.5s ease;
}

.search-result-row:hover::before {
  left: 100%;
}

.search-result-row:hover {
  background: var(--bg-hover);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.15);
}

.result-main {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.result-artist {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.8;
}

.meta-plays,
.meta-versions {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Action buttons */
.result-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-row:hover .result-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-play,
.action-heart {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
}

.action-play:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.action-heart:hover {
  background: #ff3b30;
  border-color: #ff3b30;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.action-heart.favorited {
  background: #ff3b30;
  border-color: #ff3b30;
  color: white;
}

.action-heart.favorited:hover {
  background: #d70015;
  border-color: #d70015;
}

/* Status messages */
.search-loading,
.search-error,
.no-search-results {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
  font-size: 14px;
}

.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.search-error {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 12px;
  margin: 8px 0;
}

.no-search-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 8px 0;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive design for music search */
@media (max-width: 768px) {
  .music-search-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .music-search-header h3 {
    font-size: 16px;
  }
  
  .search-result-row {
    padding: 10px;
    gap: 10px;
  }
  
  .result-title {
    font-size: 13px;
  }
  
  .result-artist {
    font-size: 11px;
  }
  
  .action-play,
  .action-heart {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}


/* Friends Modal */
.friends-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.friends-modal[aria-hidden="true"] {
  display: none;
}

.friends-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.friends-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.friends-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.friends-header h2 i {
  color: var(--brand);
}

.friends-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.friends-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.friends-body {
  padding: 0;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}

.friends-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.friend-item-modal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
}

.friend-item-modal:last-child {
  border-bottom: none;
}

.friend-item-modal:hover {
  background: var(--bg-hover);
  transform: translateX(2px);
}

.friend-avatar-modal {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  transition: all 0.2s ease;
  overflow: hidden;
  background: var(--bg-secondary);
}

.friend-item-modal:hover .friend-avatar-modal {
  border-color: var(--brand);
  transform: scale(1.05);
}

.friend-info-modal {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-info-modal h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-info-modal p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.friend-status-modal {
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.friend-status-modal i {
  font-size: 10px;
}

.friend-actions-modal {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.friend-remove-btn {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-remove-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  transform: translateY(-1px);
}

/* Empty friends state */
.friends-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
}

.friends-empty i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
  display: block;
}

.friends-empty h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.friends-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Loading state for friends */
.friends-loading {
  text-align: center;
  padding: 40px 24px;
}

.friends-loading i {
  font-size: 24px;
  color: var(--brand);
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.friends-loading p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Responsive design for friends modal */
@media (max-width: 768px) {
  .friends-content {
    width: 95%;
    max-width: none;
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  .friends-header {
    padding: 16px 20px;
  }

  .friends-body {
    max-height: calc(100vh - 120px);
  }

  .friend-item-modal {
    padding: 12px 20px;
    gap: 12px;
  }

  .friend-avatar-modal {
    width: 40px;
    height: 40px;
  }

  .friend-info-modal h4 {
    font-size: 15px;
  }

  .friend-info-modal p {
    font-size: 13px;
  }

  .friend-actions-modal {
    gap: 6px;
  }

  .friend-remove-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

