* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
:root {
  --bg-base: #000000;
  --surface-primary: rgba(28, 28, 30, 0.6);
  --surface-secondary: rgba(44, 44, 46, 0.8);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --accent: #0a84ff;
  --accent-hover: #0070e0;
  --divider: rgba(84, 84, 88, 0.4);
  --glass-bg: rgba(28, 28, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow:
    0 35px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --spring-easing: cubic-bezier(0.32, 0.72, 0, 1);
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overscroll-behavior-y: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
body.no-scroll {
  overflow: hidden;
}
.app-container {
  width: 100%;
  max-width: 700px;
  padding: calc(40px + env(safe-area-inset-top)) 20px
    calc(40px + env(safe-area-inset-bottom)) 20px;
  position: relative;
}
h2.title {
  text-align: left;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 30px 0;
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.search-wrapper {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
  z-index: 50;
}
.search-input {
  flex: 1;
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 17px;
  outline: none;
  transition: all 0.3s var(--spring-easing);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  user-select: auto;
  -webkit-user-select: auto;
}
.search-input:focus {
  background: var(--surface-secondary);
  border-color: rgba(10, 132, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2);
}
.search-input::placeholder {
  color: var(--text-secondary);
}
.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 24px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}
.search-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.search-btn:active {
  transform: scale(0.92);
}
.results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
}
.result-item {
  display: flex;
  align-items: center;
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  padding: 14px;
  border-radius: 20px;
  transition: all 0.2s var(--spring-easing);
  animation: fadeIn 0.4s ease;
  border: 1px solid var(--glass-border);
}
.result-item:hover {
  background: var(--surface-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.result-item:active {
  transform: scale(0.97);
}
.result-thumbnail {
  margin-right: 16px;
  flex-shrink: 0;
}
.result-thumbnail img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 14px;
  object-fit: cover;
}
.result-info {
  flex: 1;
  min-width: 0;
}
.result-info h3 {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-link-btn {
  background: rgba(10, 132, 255, 0.2);
  color: var(--accent);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  margin-left: 12px;
}
.play-link-btn:hover {
  background: var(--accent);
  color: #fff;
}
.play-link-btn:active {
  transform: scale(0.9);
}
.player-card {
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(40px);
  border-radius: 32px;
  padding: 35px 30px;
  text-align: center;
  margin-bottom: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow-y: auto;
}
.drag-handle-area {
  display: none;
}
.player-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: all 0.3s var(--spring-easing);
}
.artwork-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 28px auto;
  transition: all 0.4s var(--spring-easing);
}
.artwork-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 24px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.artwork-container::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: -10%;
  background: inherit;
  filter: blur(30px);
  opacity: 0.7;
  z-index: 1;
  border-radius: 24px;
  pointer-events: none;
}
.track-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: all 0.3s var(--spring-easing);
}
.track-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-artist {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
  font-weight: 500;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-title {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 28px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.custom-player-ui {
  margin-bottom: 14px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s var(--spring-easing);
}
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 15px;
}
.controls-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}
.controls-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}
.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
}
.time-display {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: "SF Mono", "Menlo", monospace;
  min-width: 45px;
  text-align: center;
  font-weight: 600;
}
.progress-container,
.volume-slider-container {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s var(--spring-easing);
  display: flex;
  align-items: center;
  touch-action: none;
}
.progress-container {
  flex: 1;
  height: 6px;
}
.volume-slider-container {
  width: 140px;
  height: 6px;
}
.progress-container::before,
.volume-slider-container::before {
  content: "";
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: 0;
  right: 0;
  z-index: 1;
}
.progress-filled,
.volume-slider-filled {
  height: 100%;
  background-color: var(--text-primary);
  border-radius: inherit;
  pointer-events: none;
  position: relative;
}
.progress-filled {
  width: 0;
}
.volume-slider-filled {
  width: 100%;
}
.progress-filled::after,
.volume-slider-filled::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--spring-easing);
}
.progress-container:hover,
.progress-container.active,
.volume-slider-container:hover,
.volume-slider-container.active {
  height: 10px;
}
.progress-container:hover .progress-filled::after,
.progress-container.active .progress-filled::after,
.volume-slider-container:hover .volume-slider-filled::after,
.volume-slider-container.active .volume-slider-filled::after {
  transform: translate(50%, -50%) scale(1);
}
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: all 0.3s var(--spring-easing);
}
.play-pause-btn {
  background-color: var(--text-primary);
  color: var(--bg-base);
  border: none;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.play-pause-btn:hover {
  filter: brightness(0.9);
  transform: scale(1.05);
}
.play-pause-btn:active {
  transform: scale(0.9);
  filter: brightness(0.8);
}
.play-pause-btn svg {
  width: 38px;
  height: 38px;
  pointer-events: none;
}
.skip-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--spring-easing);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}
.skip-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}
.skip-btn:active:not(:disabled) {
  transform: scale(0.8);
  background: rgba(255, 255, 255, 0.2);
}
.skip-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.skip-btn svg {
  width: 34px;
  height: 34px;
  pointer-events: none;
}
.player-header-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.volume-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 8px 24px;
  display: inline-block;
  border: 1px solid var(--glass-border);
}
.volume-control-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.volume-control-wrapper svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  opacity: 0.8;
}
.player-bottom-wrap {
  width: 100%;
  padding-bottom: 20px;
}
.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.download-btn {
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px 24px;
  text-decoration: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s var(--spring-easing);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.download-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.download-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.download-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}
.download-all-btn {
  background: linear-gradient(
    135deg,
    rgba(50, 215, 75, 0.8),
    rgba(40, 167, 69, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.download-all-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(50, 215, 75, 1),
    rgba(40, 167, 69, 1)
  );
}
.glass-download-btn {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  align-items: center;
  gap: 10px;
  padding-right: 15px;
  cursor: pointer;
}
.circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.circle-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
  opacity: 0.95;
}
.white-btn {
  background: rgba(255, 255, 255, 0.15);
}
.black-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-download-btn:hover .circle-btn {
  transform: translateX(-3px) scale(1.05);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.glass-download-btn:active .circle-btn {
  transform: scale(0.92);
  filter: brightness(0.8);
}
.glass-download-btn span {
  color: var(--text-primary);
  font-size: 13px;
  opacity: 0.9;
  font-weight: 600;
}
.tracklist-container {
  margin-top: 30px;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 20px 10px 20px 20px;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}
.tracklist-header {
  margin: 0 0 15px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 12px;
  margin-right: 10px;
}
.tracklist-items {
  max-height: 350px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tracklist-items::-webkit-scrollbar {
  width: 5px;
}
.tracklist-items::-webkit-scrollbar-track {
  background: transparent;
}
.tracklist-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.tracklist-item {
  display: flex;
  align-items: center;
  padding: 14px 6px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  margin-bottom: 4px;
}
.tracklist-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.tracklist-item:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.15);
}
.tracklist-item.active {
  background: rgba(10, 132, 255, 0.2);
  border-left: 4px solid var(--accent);
}
.track-number {
  width: 30px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.track-info-mini {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}
.track-title-mini {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.track-artist-mini {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.tracklist-like-btn {
  width: 32px;
  height: 32px;
  margin-left: 10px;
  z-index: 2;
}
.playing-indicator {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
  margin-left: 10px;
}
.playing-indicator .bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: soundBars 0.8s infinite alternate ease-in-out;
}
.playing-indicator .bar:nth-child(1) {
  height: 6px;
  animation-delay: 0.1s;
}
.playing-indicator .bar:nth-child(2) {
  height: 14px;
  animation-delay: 0.3s;
}
.playing-indicator .bar:nth-child(3) {
  height: 8px;
  animation-delay: 0.5s;
}
.artist-page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: fadeIn 0.5s var(--spring-easing);
}
.artist-profile-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 40px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--divider);
  z-index: 1;
}
.artist-bg-blur {
  position: absolute;
  width: 100%;
  top: -50px;
  left: -20px;
  right: -20px;
  height: 300px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(200%);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.artist-avatar {
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.artist-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  text-align: center;
}
.back-link-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  color: var(--accent);
  border: 1px solid var(--glass-border);
  padding: 8px 16px 8px 8px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}
.back-link-btn:hover {
  background: var(--surface-secondary);
  transform: translateX(-3px);
}
.back-link-btn svg {
  width: 22px;
  height: 22px;
}
.artist-section {
  margin-bottom: 40px;
  width: 100%;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 5px;
  letter-spacing: -0.3px;
}
.album-scroller {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 20px;
  padding-top: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.album-scroller::-webkit-scrollbar {
  display: none;
}
.album-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s var(--spring-easing);
}
.album-card:hover {
  transform: scale(1.03);
}
.album-card:active {
  transform: scale(0.97);
}
.album-artwork {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: block;
  overflow: hidden;
}
.album-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-play-overlay {
  position: relative;
  inset: auto;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: all 0.2s ease;
}
.album-controls-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.album-artwork:hover .album-controls-overlay,
.album-card:hover .album-play-overlay {
  opacity: 1;
  transform: translateY(-2px);
}
.album-play-overlay svg {
  width: 20px;
  height: 20px;
}
.album-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-info p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-row {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.track-row:hover {
  background: var(--surface-primary);
  background: rgba(255, 255, 255, 0.05);
}
.track-index {
  width: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.track-thumbnail {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 14px;
  flex-shrink: 0;
}
.track-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-details {
  flex: 1;
  min-width: 0;
}
.track-details h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-play-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}
.track-row:hover .track-play-btn {
  opacity: 1;
  color: var(--accent);
}
.track-play-btn svg {
  width: 24px;
  height: 24px;
}
.user-header {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 8px 8px 8px 16px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--spring-easing);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-profile-container {
  position: relative;
  display: flex;
  align-items: center;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  padding-right: 16px;
  border-right: 1px solid var(--glass-border);
  cursor: pointer;
  transition: opacity 0.2s var(--spring-easing);
}
.user-profile:hover {
  opacity: 0.7;
}
.user-profile svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.1);
  padding: 4px;
  border-radius: 50%;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s var(--spring-easing);
  min-width: 140px;
  z-index: 1001;
}
.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--spring-easing);
}
.header-action-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.header-action-btn:active {
  transform: scale(0.94);
}
.logout-btn {
  width: 100%;
  color: #ff453a;
  background: rgba(255, 69, 58, 0.08);
  justify-content: flex-start;
}
.logout-btn:hover {
  background: rgba(255, 69, 58, 0.15);
  border-color: rgba(255, 69, 58, 0.2);
  box-shadow: 0 6px 12px rgba(255, 69, 58, 0.15);
}
.logout-btn svg {
  color: #ff453a;
  opacity: 1;
}
.action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.add-to-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #b3b3b3;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.add-to-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff3b7c 0%, #d4145a 100%);
  border-color: transparent;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 59, 124, 0.4);
}
.add-to-btn:hover svg path {
  fill: #ffffff !important;
}
.add-to-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.add-to-btn:active svg {
  transform: scale(0.9);
}
.glass-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.glass-alert-overlay.show {
  opacity: 1;
  visibility: visible;
}
.glass-alert-box {
  background: rgba(30, 30, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(200%);
  border-radius: 18px;
  width: 320px;
  max-width: 90%;
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.glass-alert-overlay.show .glass-alert-box {
  transform: scale(1) translateY(0);
}
.glass-alert-content {
  padding: 24px 20px;
}
.glass-alert-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.glass-alert-message {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
.glass-alert-buttons {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-alert-btn {
  flex: 1;
  padding: 16px 0;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
}
.glass-alert-btn:active {
  background: rgba(255, 255, 255, 0.05);
}
.glass-alert-btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-custom-html {
  margin-top: 15px;
  max-height: 250px;
  overflow-y: auto;
  text-align: left;
}
.glass-playlist-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 5px;
}
.glass-playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.glass-playlist-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #fff;
}
.glass-playlist-item.default-pl .glass-playlist-icon {
  background: rgba(255, 45, 85, 0.08);
  border-color: rgba(255, 45, 85, 0.2);
}
.glass-playlist-info h4 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}
.glass-playlist-item.active-in-playlist {
  background: rgba(212, 20, 90, 0.08);
  border: 1px solid rgba(212, 20, 90, 0.2);
}
.glass-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 20px) scale(0.9);
  background: rgba(40, 40, 40, 0.65);
  backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.glass-toast svg {
  width: 16px;
  height: 16px;
}
.alert-box {
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.3);
  backdrop-filter: blur(10px);
  color: #ff453a;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
  display: none;
}
.no-results {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 50px;
  font-weight: 500;
}
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(25px);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.loader-overlay.active {
  opacity: 1;
  visibility: visible;
}
.ios-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--text-primary);
  border-radius: 50%;
  animation: spin 1s infinite;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .album-scroller {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    overflow-x: visible;
    padding-bottom: 0;
  }
}
@media (max-width: 768px) {
  .app-container {
    padding: 15px 12px calc(140px + env(safe-area-inset-bottom)) 12px;
  }
  h2.title {
    font-size: 28px;
    margin: 70px 10px 25px 10px;
  }
  .search-wrapper {
    position: sticky;
    top: 58px;
    z-index: 90;
    gap: 6px;
  }
  .search-input {
    width: 100%;
    background: rgba(28, 28, 30, 0.75);
  }
  .search-btn {
    padding: 0 14px;
  }
  .play-link-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .play-link-btn::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #fff;
  }
  .player-card {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    margin: 0;
    padding: 0;
    z-index: 9999;
    border-radius: 35px 35px 0 0;
    border-top: 1px solid var(--glass-border);
    border-left: none;
    border-right: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    will-change: transform;
    opacity: 0;
  }
  .player-card.is-expanded {
    border-radius: 0;
  }
  .player-card.is-minimized {
    border-radius: 25px 25px 0 0;
    cursor: pointer;
    bottom: env(safe-area-inset-bottom);
    height: auto;
    background: rgba(40, 40, 45, 0.85);
  }
  .player-card.is-minimized:active {
    transform: scale(0.98) translateY(100%);
  }
  .player-card.is-minimized .hide-on-minimize,
  .player-card.is-minimized .progress-bar-wrapper,
  .player-card.is-minimized .volume-section,
  .player-card.is-minimized .player-bottom-wrap,
  .player-card.is-minimized .skip-btn,
  .player-card.is-minimized .album-title {
    display: none !important;
  }
  .player-card.is-minimized .drag-handle-area {
    padding-top: 10px;
    height: 25px;
  }
  .player-card.is-minimized .player-scroll-content {
    padding: 0 20px 15px 20px;
    overflow: hidden;
  }
  .player-card.is-minimized .player-header-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .player-card.is-minimized .artwork-container {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 12px;
  }
  .player-card.is-minimized .artwork-container img {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  .player-card.is-minimized .artwork-container::after {
    display: none;
  }
  .player-card.is-minimized .track-info-wrap {
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .player-card.is-minimized .track-title {
    font-size: 16px;
    margin: 0;
  }
  .player-card.is-minimized .track-artist {
    font-size: 13px;
    margin: 2px 0 0 0;
  }
  .player-card.is-minimized .custom-player-ui {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    max-width: none;
  }
  .player-card.is-minimized .player-controls {
    margin: 0;
    gap: 8px;
  }
  .player-card.is-minimized .play-pause-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
  }
  .player-card.is-minimized .play-pause-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  .drag-handle-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    flex-shrink: 0;
    padding-top: calc(15px + env(safe-area-inset-top));
    padding-bottom: 10px;
    background: transparent;
    z-index: 10;
    touch-action: none;
    transition: all 0.3s ease;
  }
  .drag-handle-indicator {
    display: block;
    width: 45px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
  }
  .player-scroll-content {
    flex: 1;
    width: 100%;
    overflow: hidden;
    padding: 0 20px calc(40px + env(safe-area-inset-bottom)) 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overscroll-behavior-y: contain;
    transition: all 0.3s ease;
  }
  .player-card.is-expanded .player-scroll-content {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .player-scroll-content::-webkit-scrollbar {
    display: none;
  }
  .player-header-wrap {
    flex-shrink: 0;
  }
  .player-bottom-wrap {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding-bottom: 120px;
  }
  .player-card.is-expanded .player-bottom-wrap {
    opacity: 1;
    pointer-events: all;
  }
  .artwork-container {
    width: 65vw;
    height: 65vw;
    max-width: 300px;
    max-height: 300px;
    margin-bottom: 30px;
  }
  .player-card.is-expanded .artwork-container {
    width: 75vw;
    height: 75vw;
  }
  .track-title {
    font-size: 24px;
  }
  .track-artist {
    font-size: 16px;
    margin-bottom: 5px;
    opacity: 0.8;
  }
  .album-title {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .volume-section {
    display: none;
  }
  .play-pause-btn {
    width: 75px;
    height: 75px;
  }
  .action-buttons {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .download-btn {
    max-width: none;
    font-size: 14px;
    padding: 14px 10px;
    margin: 0 5px;
    flex: 1;
  }
  .tracklist-container {
    margin-top: 10px;
    border-radius: 24px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .tracklist-items {
    max-height: none;
    overflow-y: visible;
  }
  .album-info h4 {
    width: 160px;
  }
  .user-header {
    top: 15px;
    right: 15px;
    left: 15px;
    padding: 0 0 0 10px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
  }
  .user-info {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .user-profile {
    padding-right: 10px;
  }
  .header-action-btn {
    padding: 8px 24px;
    border-radius: 14px;
  }
  .header-action-btn svg {
    width: 16px;
    height: 16px;
    margin: 0;
  }
  .profile-dropdown {
    left: 0;
    top: calc(100% + 12px);
  }
  .profile-dropdown .logout-btn span {
    display: inline-block;
  }
  .header-action-btn:active {
    transform: scale(1);
    background: rgb(0 112 224);
  }
  .header-action-btn:hover {
    transform: translateY(0);
  }
}
@media (min-width: 1024px) {
  body {
    align-items: flex-start;
    justify-content: center;
  }
  .app-container {
    max-width: 100%;
    width: 100%;
    padding: 20px 3vw 40px 3vw;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 0 80px;
  }
  h2.title {
    position: sticky;
    top: 20px;
    grid-column: 2;
    grid-row: 1;
    font-size: 42px;
    margin-bottom: 40px;
  }
  .search-wrapper {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 700px;
    transition: max-width 0.4s var(--spring-easing);
  }
  .app-container:has(.results-list > *) .search-wrapper {
    max-width: 100%;
  }
  .alert-box {
    grid-column: 2;
    grid-row: 3;
  }
  .results-list {
    grid-column: 2;
    grid-row: 4;
  }
  .player-card {
    height: calc(100vh - 80px);
    grid-column: 1;
    grid-row: 1 / span 4;
    position: fixed;
    top: 40px;
    width: 420px;
    margin: 0;
    padding: 20px;
    border-radius: 40px;
    background: var(--glass-bg);
    backdrop-filter: saturate(200%) blur(50px);
    -webkit-backdrop-filter: saturate(200%) blur(50px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }
  .player-card {
    scrollbar-width: none;
  }
  .player-card::-webkit-scrollbar {
    width: 0;
  }
  .player-scroll-content {
    max-height: 100%;
    scrollbar-width: none;
  }
  .player-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
  .artwork-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-bottom: 35px;
  }
  .artwork-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
  }
  .artwork-container::after {
    top: 8%;
    bottom: -8%;
    left: 8%;
    right: 8%;
    filter: blur(40px);
  }
  .track-title {
    font-size: 28px;
  }
  .track-artist {
    font-size: 18px;
  }
  .custom-player-ui {
    max-width: 100%;
  }
  .download-btn {
    margin: 0;
  }
  .artist-profile-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-end;
    padding-top: 40px;
  }
  .back-link-btn {
    position: absolute;
    top: 0;
    right: 20px;
  }
  .artist-avatar {
    width: 200px;
    height: 200px;
    margin-bottom: 0;
    margin-right: 30px;
  }
  .artist-title {
    font-size: 48px;
    padding-bottom: 20px;
  }
  .artist-bg-blur {
    top: -100px;
    height: 400px;
  }
  .album-scroller {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .album-card {
    flex: none;
  }
  .album-artwork {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  @supports (animation-timeline: --any-name) {
    .app-container {
      view-timeline-name: --sticky-check;
      view-timeline-axis: block;
    }
    h2.title {
      transition: all 0.8s;
      animation: shrink-font linear forwards;
      animation-timeline: --sticky-check;
      animation-range: entry 20% exit 30%;
    }
    @keyframes shrink-font {
      to {
        font-size: 32px;
        margin-bottom: 40px;
        top: 26px;
      }
    }
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes soundBars {
  0% {
    height: 3px;
  }
  100% {
    height: 14px;
  }
}
.player-side-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  flex-shrink: 0;
}
.player-side-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.player-side-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}
.player-side-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.player-side-btn.like-side-btn:hover {
  color: #ff3b7c;
}
.player-side-btn.like-side-btn:hover svg path {
  fill: #ff3b7c !important;
}
.clickable-artist {
  display: inline-block;
  border-radius: 100px;
  padding: 4px 12px;
  background: #090a0b70;
}
.clickable-artist {
  cursor: pointer;
  text-decoration: underline;
  color: inherit;
}
.clickable-artist:hover {
  opacity: 0.7;
}
