@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'SpotifyMixUI';
  src: url('https://encore.scdn.co/fonts/SpotifyMixUI-Regular-76c92fb1a35c462f73429fa8865163eb.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SpotifyMixUI';
  src: url('https://encore.scdn.co/fonts/SpotifyMixUI-Bold-09c45a3a0ce9d2971e62cb26e97760fb.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-black: #000000;
  --bg-surface: #121212;
  --bg-card: #181818;
  --bg-card-hover: #222222;
  --bg-elevated: #1f1f1f;
  --bg-elevated-hover: #2a2a2a;
  --bg-chip: #232323;
  --bg-chip-hover: #2a2a2a;

  --text-base: #ffffff;
  --text-subdued: #b3b3b3;
  --text-muted: #727272;

  --spotify-green: #1ed760;
  --spotify-green-hover: #3be477;
  --spotify-green-active: #169c46;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 500px;

  --topbar-height: 64px;
  --player-height: 90px;
  --sidebar-width: 380px;
  --right-panel-width: 380px;

  --font-family: 'SpotifyMixUI', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-black);
  color: var(--text-base);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* TOPBAR */
.spotify-top-bar {
  height: var(--topbar-height);
  background-color: var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spotify-logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 8px 0 0;
}
.spotify-logo-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  transition: transform 0.15s ease;
}
.spotify-logo-btn:hover svg {
  transform: scale(1.05);
}

.home-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.home-circle-btn:hover {
  background-color: var(--bg-elevated-hover);
  transform: scale(1.04);
}
.home-circle-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.search-pill-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-pill);
  height: 48px;
  width: 474px;
  padding: 0 16px;
  gap: 12px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.search-pill-container:hover {
  background-color: var(--bg-elevated-hover);
}
.search-pill-container:focus-within {
  border-color: #ffffff;
  background-color: #242424;
}
.search-icon-left {
  width: 20px;
  height: 20px;
  fill: var(--text-subdued);
  flex-shrink: 0;
}
.search-pill-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-base);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
}
.search-pill-input::placeholder {
  color: var(--text-subdued);
}
.search-divider {
  width: 1px;
  height: 24px;
  background-color: #3e3e3e;
}
.browse-icon-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.browse-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pill-white-btn {
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pill-white-btn:hover {
  transform: scale(1.04);
}
.pill-dark-btn {
  background-color: var(--bg-black);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pill-dark-btn:hover {
  transform: scale(1.04);
}
.pill-dark-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.circle-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.circle-icon-btn:hover {
  color: #ffffff;
  background-color: var(--bg-elevated);
  transform: scale(1.05);
}
.circle-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #535353;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.user-avatar-btn:hover {
  transform: scale(1.05);
}

/* User Profile Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 220px;
  background-color: #282828;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(0,0,0,0.6);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}
.user-dropdown-menu.active {
  display: flex;
}
.user-dropdown-header {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}
.user-dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.user-dropdown-sub {
  font-size: 12px;
  color: var(--text-subdued);
}
.user-dropdown-divider {
  height: 1px;
  background-color: rgba(255,255,255,0.1);
  margin: 6px 0;
}
.user-dropdown-item {
  background: none;
  border: none;
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.user-dropdown-item:hover {
  background-color: rgba(255,255,255,0.1);
}

/* 3-PANEL GRID */
.app-grid-container {
  display: flex;
  flex: 1;
  gap: 8px;
  padding: 0 8px;
  height: calc(100vh - var(--topbar-height) - var(--player-height));
  overflow: hidden;
}

/* LEFT LIBRARY PANEL */
.left-library-panel {
  width: var(--sidebar-width);
  min-width: 280px;
  max-width: 440px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  overflow: hidden;
}
.library-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.library-heading-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text-subdued);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.library-heading-btn:hover {
  color: #ffffff;
}
.library-heading-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.create-pill-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.create-pill-btn:hover {
  color: #ffffff;
  background-color: var(--bg-elevated);
}
.create-pill-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.library-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.lib-chip {
  background-color: var(--bg-chip);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lib-chip.active {
  background-color: #ffffff;
  color: #000000;
}

.library-items-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.library-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.library-entry:hover {
  background-color: var(--bg-card-hover);
}
.library-entry-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: #282828;
}
.library-entry-thumb.liked-gradient {
  background: linear-gradient(135deg, #450af5, #c4efd9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.library-entry-thumb.liked-gradient svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}
.library-entry-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}
.library-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-entry-sub {
  font-size: 12px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.library-entry-sub .pin-icon {
  width: 12px;
  height: 12px;
  fill: var(--spotify-green);
  flex-shrink: 0;
}

/* MIDDLE MAIN PANEL */
.middle-main-panel {
  flex: 1;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px 24px 80px 24px;
}
.main-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 0;
}
.main-chip {
  background-color: var(--bg-chip);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.main-chip.active {
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
}

.quick-six-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.quick-six-card {
  display: flex;
  align-items: center;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}
.quick-six-card:hover {
  background-color: rgba(255, 255, 255, 0.16);
}
.quick-card-art {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}
.quick-card-details {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  overflow: hidden;
  flex: 1;
  gap: 2px;
}
.quick-card-title-text {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-card-sub-text {
  font-size: 12px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-green-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--spotify-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.quick-six-card:hover .quick-green-play {
  opacity: 1;
  transform: translateY(0);
}
.quick-green-play svg {
  width: 18px;
  height: 18px;
  fill: #000000;
  margin-left: 2px;
}

.shelf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.shelf-heading {
  font-size: 22px;
  font-weight: 800;
}
.shelf-show-all {
  color: var(--text-subdued);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.shelf-show-all:hover {
  text-decoration: underline;
}

.shelf-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.album-card-item {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.album-card-item:hover {
  background-color: var(--bg-card-hover);
}
.album-cover-box {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background-color: #282828;
}
.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-card-play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--spotify-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.album-card-item:hover .album-card-play-btn {
  opacity: 1;
  transform: translateY(0);
}
.album-card-play-btn svg {
  width: 20px;
  height: 20px;
  fill: #000000;
  margin-left: 2px;
}
.album-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-artist-text {
  font-size: 13px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RIGHT PANEL */
.right-now-playing-panel {
  width: var(--right-panel-width);
  min-width: 300px;
  max-width: 440px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 16px;
}
.right-panel-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.right-panel-song-title {
  font-size: 15px;
  font-weight: 700;
}
.right-big-artwork-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  background-color: #282828;
}
.right-big-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.right-track-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.right-track-text-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 4px;
}
.right-meta-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.right-meta-artist {
  font-size: 14px;
  color: var(--text-subdued);
}
.circle-add-icon-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.circle-add-icon-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}
.circle-add-icon-btn.liked {
  color: var(--spotify-green) !important;
}
.circle-add-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* PLAYER BAR */
.spotify-player-bar {
  height: var(--player-height);
  background-color: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
}
.player-bar-left {
  width: 30%;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.player-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.player-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #282828;
}
.player-title-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}
.player-song-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-song-artist {
  font-size: 11px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar-center {
  width: 40%;
  max-width: 722px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.controls-buttons-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.player-ctrl-btn:hover {
  color: #ffffff;
}
.player-ctrl-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.player-ctrl-btn.active {
  color: var(--spotify-green);
}
.center-play-pause-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.center-play-pause-btn:hover {
  transform: scale(1.06);
}
.center-play-pause-btn svg {
  width: 16px;
  height: 16px;
  fill: #000000;
}
.player-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.playback-time-text {
  font-size: 11px;
  color: var(--text-subdued);
  min-width: 36px;
  text-align: center;
}
.seek-bar-track-wrap {
  flex: 1;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  touch-action: none;
}
.seek-bar-bg {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  position: relative;
  transition: height 0.1s ease;
}
.seek-bar-track-wrap:hover .seek-bar-bg,
.seek-bar-track-wrap.dragging .seek-bar-bg,
.volume-control-wrap:hover .seek-bar-bg,
.volume-control-wrap.dragging .seek-bar-bg {
  height: 6px;
}
.seek-bar-fill {
  position: relative;
  height: 100%;
  background-color: #ffffff;
  border-radius: var(--radius-pill);
  width: 0%;
  transition: background-color 0.15s ease;
}
.seek-bar-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
.seek-bar-track-wrap:hover .seek-bar-fill,
.seek-bar-track-wrap.dragging .seek-bar-fill,
.volume-control-wrap:hover .seek-bar-fill,
.volume-control-wrap.dragging .seek-bar-fill {
  background-color: var(--spotify-green);
}
.seek-bar-track-wrap:hover .seek-bar-thumb,
.seek-bar-track-wrap.dragging .seek-bar-thumb,
.volume-control-wrap:hover .seek-bar-thumb,
.volume-control-wrap.dragging .seek-bar-thumb {
  opacity: 1;
}
.player-bar-right {
  width: 30%;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.volume-control-wrap {
  width: 96px;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  touch-action: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background-color: #282828;
  border-radius: var(--radius-md);
  padding: 24px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
}
.modal-field {
  background-color: #3e3e3e;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ffffff;
  padding: 12px;
  font-size: 14px;
  outline: none;
}
.modal-field:focus {
  border-color: #ffffff;
}
.modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.modal-btn-cancel {
  background: none;
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
}
.modal-btn-submit {
  background-color: var(--spotify-green);
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-weight: 700;
  cursor: pointer;
}
.modal-btn-submit:hover {
  background-color: var(--spotify-green-hover);
}

/* Track rows */
.track-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.track-row:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.track-row.playing .track-row-title {
  color: var(--spotify-green);
}

/* Search results overlay */
.search-results-overlay {
  display: none;
  flex-direction: column;
  gap: 24px;
}
.search-results-overlay.active {
  display: flex;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background-color: #2e77d0;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SPOTIFY MOBILE COMPONENTS & BROWSE CATEGORIES
   ========================================================================== */

/* Browse categories on Search */
.search-categories-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.category-card {
  position: relative;
  height: 96px;
  border-radius: var(--radius-md);
  padding: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  user-select: none;
}
.category-card:hover {
  transform: scale(1.02);
}
.category-card .cat-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  z-index: 2;
  word-break: break-word;
}
.category-card .cat-card-img {
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 60px;
  height: 60px;
  object-fit: cover;
  transform: rotate(25deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

/* Category Gradient Palettes (Spotify Official) */
.cat-pop { background: linear-gradient(135deg, #e8115b, #b31046); }
.cat-hiphop { background: linear-gradient(135deg, #bc59cf, #8c3b9b); }
.cat-rock { background: linear-gradient(135deg, #e91429, #9b0e1b); }
.cat-dance { background: linear-gradient(135deg, #1e3264, #142243); }
.cat-chill { background: linear-gradient(135deg, #27856a, #165241); }
.cat-turkce { background: linear-gradient(135deg, #8d67ab, #5e4373); }

/* Mobile Search Box */
.mobile-search-header-wrap {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.mobile-section-heading {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}
.mobile-search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 6px;
  padding: 10px 14px;
}
.mobile-search-input-box svg {
  width: 20px;
  height: 20px;
  fill: #000000;
  flex-shrink: 0;
}
.mobile-search-input-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
}
.mobile-search-input-box input::placeholder {
  color: #535353;
}

/* 1. Mobile Floating Mini Player */
.mobile-mini-player {
  display: none;
  position: fixed;
  bottom: 64px;
  left: 8px;
  right: 8px;
  height: 56px;
  background-color: #242424;
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 8px;
  z-index: 500;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mini-player-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.mini-player-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.mini-player-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}
.mini-player-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player-artist {
  font-size: 11px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mini-action-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: color 0.15s ease;
}
.mini-action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.mini-action-btn.play-btn {
  color: #ffffff;
}
.mini-action-btn.liked {
  color: var(--spotify-green) !important;
}
.mini-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
}
.mini-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #ffffff;
}

/* 2. Mobile Full-Screen Player Modal */
.mobile-full-player {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #3d2b2f 0%, #1a1a1a 45%, #121212 100%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 24px 36px 24px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
  overflow-y: auto;
}
.mobile-full-player.active {
  transform: translateY(0);
}
.full-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.full-player-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.full-player-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.full-player-header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.fs-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subdued);
}
.fs-playlist-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.full-player-art-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}
.full-player-artwork {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}
.full-player-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}
.full-player-text-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 4px;
}
.full-player-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-player-artist {
  font-size: 15px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-player-like-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 6px;
}
.full-player-like-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.full-player-like-btn.liked {
  color: var(--spotify-green) !important;
}
.full-player-seek-container {
  width: 100%;
  margin-bottom: 20px;
}
.full-player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-subdued);
  margin-top: 6px;
}
.full-player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}
.fs-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-ctrl-btn.active {
  color: var(--spotify-green);
}
.fs-ctrl-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.fs-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.fs-play-btn svg {
  width: 26px;
  height: 26px;
  fill: #000000;
}
.full-player-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.fs-aux-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
}
.fs-aux-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 3. Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: space-around;
  z-index: 600;
  padding: 0 12px;
}
.mob-nav-item {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-subdued);
  cursor: pointer;
  transition: color 0.15s ease;
}
.mob-nav-item.active {
  color: #ffffff;
}
.mob-nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.mob-nav-item span {
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE RESPONSIVE MEDIA QUERIES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide Desktop Player Bar & Desktop Right Panel */
  .spotify-player-bar {
    display: none !important;
  }
  .right-now-playing-panel {
    display: none !important;
  }

  /* Show Mobile Nav & Mobile Mini Player */
  .mobile-bottom-nav {
    display: flex !important;
  }
  .mobile-mini-player {
    display: flex !important;
  }

  /* Adjust Top Navigation Bar */
  .spotify-top-bar {
    height: 56px;
    padding: 0 12px;
  }
  .topbar-left .spotify-logo-btn {
    width: 32px;
    height: 32px;
  }
  .topbar-left .home-circle-btn {
    display: none;
  }
  .search-pill-container {
    display: none !important;
  }

  /* Main Container: 1-Column Responsive */
  .app-grid-container {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 0 8px;
    height: calc(100vh - 56px);
  }

  /* Middle Panel: Padded for Mini Player + Nav Dock */
  .middle-main-panel {
    padding: 12px 12px 140px 12px !important;
    overflow-y: auto;
  }

  /* Left Library Panel on Mobile (Switched via Tab) */
  .left-library-panel {
    display: none;
    width: 100% !important;
    padding: 12px 12px 140px 12px !important;
    overflow-y: auto;
  }
  .left-library-panel.mobile-tab-active {
    display: flex !important;
  }

  /* Quick Six Grid on Mobile: 2 Columns */
  .quick-six-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .quick-card {
    height: 52px !important;
  }
  .quick-card-thumb {
    width: 52px !important;
    height: 52px !important;
  }
  .quick-card-title {
    font-size: 13px !important;
  }

  /* Shelf Grid: Responsive */
  .shelf-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Show Mobile Search Header in Search View */
  .mobile-search-header-wrap {
    display: flex !important;
  }
}

