:root {
  --spotify-black: #121212;
  --spotify-dark: #000000;
  --spotify-surface: #242424;
  --spotify-surface-highlight: #2a2a2a;
  --spotify-card: #181818;
  --spotify-green: #1db954;
  --spotify-green-pressed: #1aa34a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --nav-bar-bg: rgba(0, 0, 0, 0.95);
  --mini-player-bg: #282828;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Circular", "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: var(--spotify-dark);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.spotify-mobile-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--spotify-black);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* Header */
.spotify-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 20;
}

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

.user-avatar {
  width: 32px;
  height: 32px;
  background-color: #535353;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.filter-pills-top {
  display: flex;
  gap: 8px;
}

.pill {
  background-color: #2a2a2a;
  border: none;
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pill.active {
  background-color: var(--spotify-green);
  color: #000;
  font-weight: 600;
}

.apk-badge {
  background-color: rgba(29, 185, 84, 0.15);
  border: 1px solid var(--spotify-green);
  color: var(--spotify-green);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Main Feed */
.feed-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 130px 16px;
}

.view-section {
  display: none;
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.38s cubic-bezier(0.32, 0.72, 0, 1), transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, opacity;
}
.view-section.active {
  display: block;
  animation: iosPageEnter 0.36s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes iosPageEnter {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Quick 6-Grid */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.quick-card {
  height: 56px;
  background-color: #2a2a2a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s;
}
.quick-card:active {
  background-color: #383838;
}
.quick-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.quick-card span {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Shelf Sections */
.shelf-section {
  margin-bottom: 24px;
}
.shelf-title-row {
  margin-bottom: 12px;
}
.shelf-title-row h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.horizontal-shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.horizontal-shelf::-webkit-scrollbar {
  display: none;
}

.album-card {
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
}
.album-card img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #282828;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.album-card .album-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.album-card .album-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Search Tab View */
.search-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.search-input-box {
  background-color: #ffffff;
  border-radius: 6px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  color: #121212;
  margin-bottom: 24px;
}
.search-input-box i {
  font-size: 18px;
  color: #121212;
}
.search-input-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #121212;
}
.search-input-box input::placeholder {
  color: #555555;
}
.clear-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

.sub-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.browse-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.category-card {
  height: 90px;
  border-radius: 6px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.category-card span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  max-width: 70%;
}
.category-card i {
  position: absolute;
  right: -8px;
  bottom: -4px;
  font-size: 48px;
  opacity: 0.8;
  transform: rotate(20deg);
}

/* Vertical Song List */
.song-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  cursor: pointer;
}
.song-row:active {
  opacity: 0.7;
}
.song-row img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #282828;
}
.song-meta {
  flex: 1;
  overflow: hidden;
}
.song-meta .song-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.song-meta .song-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-row.active .song-title {
  color: var(--spotify-green);
}

/* Library & Profile View */
.profile-banner-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: var(--spotify-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-img {
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: #333;
}

.profile-info-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 12px;
  position: relative;
}

.avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--spotify-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  border: 3px solid var(--spotify-black);
  margin-top: -30px;
  flex-shrink: 0;
}

.profile-texts {
  flex: 1;
  overflow: hidden;
}

.profile-texts h2 {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-id-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--spotify-green);
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.btn-edit-banner {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-actions-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.action-chip {
  flex: 1;
  background-color: var(--spotify-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.action-chip:active {
  background-color: var(--spotify-surface-highlight);
}
.action-chip.logout {
  flex: 0 0 auto;
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.section-block {
  margin-bottom: 24px;
}
.block-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--spotify-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.device-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--spotify-green);
}
.device-info-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.device-badge-current {
  background-color: rgba(30, 215, 96, 0.2);
  color: #1ed760;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}
.device-info-col p {
  font-size: 11px;
  color: var(--text-secondary);
}
.btn-logout-device {
  background-color: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-logout-device:hover {
  background-color: rgba(255, 107, 107, 0.25);
}

.friends-horizontal-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
  cursor: pointer;
}
.friend-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #3e3e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  border: 2px solid var(--spotify-green);
}
.friend-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.empty-hint {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* Modals */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 360px;
  background-color: #242424;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.close-modal-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.modal-subhint {
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input {
  background-color: #121212;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.form-group input:focus {
  border-color: var(--spotify-green);
}

.spotify-btn-primary {
  background-color: var(--spotify-green);
  color: #000;
  border: none;
  border-radius: 500px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.spotify-btn-danger {
  background-color: #e91429;
  color: #fff;
  border: none;
  border-radius: 500px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.auth-toggle-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 8px;
  color: var(--text-secondary);
}
.auth-toggle-row a {
  color: var(--spotify-green);
  text-decoration: none;
  font-weight: 600;
}

.jam-live-badge {
  background-color: rgba(29, 185, 84, 0.15);
  border: 1px solid var(--spotify-green);
  color: var(--spotify-green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Theme Variants */
body[data-theme="ios26"] {
  --spotify-black: #0c0f1d;
  --spotify-dark: #060810;
  --spotify-surface: rgba(25, 30, 52, 0.65);
  --spotify-surface-highlight: rgba(38, 46, 80, 0.75);
  --spotify-card: rgba(22, 27, 46, 0.6);
  --spotify-green: #0a84ff;
  --spotify-green-pressed: #0071e3;
  --nav-bar-bg: rgba(12, 15, 29, 0.7);
  --mini-player-bg: rgba(25, 30, 52, 0.75);
}
body[data-theme="ios26"] .spotify-mobile-container {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: radial-gradient(circle at 10% 20%, rgba(10,132,255,0.18) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(94,92,230,0.18) 0%, transparent 45%),
              var(--spotify-black);
}
body[data-theme="ios26"] .quick-card,
body[data-theme="ios26"] .mini-player,
body[data-theme="ios26"] .bottom-nav,
body[data-theme="ios26"] .profile-banner-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.37);
}

body[data-theme="hyperos3"] {
  --spotify-black: #110d18;
  --spotify-dark: #0a0610;
  --spotify-surface: #1e162a;
  --spotify-surface-highlight: #2c203d;
  --spotify-card: #181224;
  --spotify-green: #ff6700;
  --spotify-green-pressed: #e05b00;
  --nav-bar-bg: rgba(17, 13, 24, 0.92);
  --mini-player-bg: #241935;
}
body[data-theme="hyperos3"] .spotify-mobile-container {
  background: linear-gradient(135deg, rgba(255,103,0,0.12) 0%, rgba(255,0,85,0.1) 50%, var(--spotify-black) 100%);
}
body[data-theme="hyperos3"] .pill.active,
body[data-theme="hyperos3"] .spotify-btn-primary {
  background: linear-gradient(90deg, #ff6700, #ff0055);
  color: #fff;
}

body[data-theme="oled"] {
  --spotify-black: #000000;
  --spotify-dark: #000000;
  --spotify-surface: #101010;
  --spotify-surface-highlight: #1a1a1a;
  --spotify-card: #0a0a0a;
  --spotify-green: #00ff66;
  --spotify-green-pressed: #00cc52;
  --nav-bar-bg: #000000;
  --mini-player-bg: #101010;
}
body[data-theme="oled"] .spotify-mobile-container {
  background-color: #000000;
}

/* Custom Background Canvas or Image */
.spotify-mobile-container.custom-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.spotify-mobile-container.custom-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 1;
}
.spotify-mobile-container.custom-bg > * {
  z-index: 2;
}

/* Liquid Glass Classes & Elements */
.glass-ui-cards .quick-card,
.glass-ui-cards .album-card img,
.glass-ui-cards .song-row,
.glass-ui-cards .category-card,
.glass-ui-cards .profile-banner-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.glass-ui-buttons .pill,
.glass-ui-buttons .action-chip,
.glass-ui-buttons .spotify-btn-primary,
.glass-ui-buttons .spotify-btn-secondary,
.glass-ui-buttons .apk-badge,
.glass-ui-buttons .control-play-big {
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.glass-ui-player .bottom-nav {
  background: rgba(18, 18, 28, 0.45) !important;
  backdrop-filter: blur(35px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(220%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.glass-ui-player .bottom-nav .nav-tab {
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.2s;
}
.glass-ui-player .bottom-nav .nav-tab.active {
  color: #fff !important;
  text-shadow: 0 0 12px rgba(29, 185, 84, 0.7);
}
.glass-ui-player .bottom-nav .nav-tab.active i {
  color: var(--spotify-green) !important;
  filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.9));
}
.glass-ui-player .mini-player {
  background: rgba(26, 26, 40, 0.55) !important;
  backdrop-filter: blur(28px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}
.glass-ui-player .full-player-modal {
  background: rgba(15, 15, 22, 0.85) !important;
  backdrop-filter: blur(40px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
}

/* Glass Toggles in Settings */
.glass-toggles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
}
.glass-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--spotify-green);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Theme Modal UI */
.modal-box-large {
  max-width: 420px;
}
.form-label-section {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}
.theme-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--spotify-surface);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.theme-chip.active {
  border-color: var(--spotify-green);
  background-color: var(--spotify-surface-highlight);
}
.preview-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Painting Studio */
.paint-studio-wrapper {
  background-color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#paintCanvas {
  background-color: #121212;
  border-radius: 6px;
  width: 100%;
  max-width: 320px;
  height: 170px;
  cursor: crosshair;
  touch-action: none;
}
.paint-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.paint-toolbar input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
.paint-toolbar input[type="range"] {
  flex: 1;
  accent-color: var(--spotify-green);
}
.tool-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-btn.active {
  background: var(--spotify-green);
  color: #000;
}

/* Custom Image Uploader */
.custom-bg-uploader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spotify-btn-secondary {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 500px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.url-input-row {
  display: flex;
  gap: 6px;
}
.url-input-row input {
  flex: 1;
  background-color: #121212;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
}
.action-btn-pill {
  background-color: var(--spotify-surface-highlight);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Mini Player Bar */
.mini-player {
  position: absolute;
  bottom: 58px;
  left: 8px;
  right: 8px;
  height: 56px;
  background-color: var(--mini-player-bg);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  cursor: pointer;
  overflow: hidden;
}

.mini-player-progress-bar {
  width: 100%;
  height: 2px;
  background-color: rgba(255,255,255,0.2);
}
.mini-progress-fill {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
}

.mini-player-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
}

.mini-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #1a1a1a;
}
.mini-track-info {
  flex: 1;
  overflow: hidden;
}
.mini-title {
  font-size: 13px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-artist {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}
.action-btn.play-circle {
  font-size: 20px;
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background-color: var(--nav-bar-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 40;
}

.nav-tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}
.nav-tab i {
  font-size: 18px;
}
.nav-tab.active {
  color: var(--text-primary);
}

/* Fullscreen Player Modal */
.full-player-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #3d1c1c 0%, #121212 50%, #121212 100%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 36px 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.full-player-modal.open {
  transform: translateY(0);
}

.full-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.full-playlist-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
}
.icon-btn-ghost {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.full-cover-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.full-cover-wrapper img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.full-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.meta-texts {
  overflow: hidden;
}
.full-title {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.full-artist {
  font-size: 15px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-btn-large {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.full-progress-area {
  margin-bottom: 24px;
}
.full-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.full-fill {
  width: 0%;
  height: 100%;
  background-color: #fff;
  border-radius: 2px;
}
.full-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.full-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.control-ghost {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}
.control-ghost.active {
  color: var(--spotify-green);
}
.control-skip {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.control-play-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #fff;
  border: none;
  color: #000;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.skeleton {
  background: linear-gradient(90deg, #242424 25%, #303030 50%, #242424 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* iOS Spring & Haptic-style Interactive Feedback */
button,
.nav-tab,
.action-chip,
.pill,
.song-card,
.song-item-vertical,
.quick-card,
.avatar-pill,
.btn-edit-banner,
.spotify-btn-primary,
.spotify-btn-secondary,
.control-play-big,
.icon-btn-ghost,
.theme-chip,
.mini-player,
.tool-btn {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, filter 0.25s ease;
  will-change: transform;
}

button:active,
.action-chip:active,
.pill:active,
.avatar-pill:active,
.btn-edit-banner:active,
.spotify-btn-primary:active,
.spotify-btn-secondary:active,
.control-play-big:active,
.theme-chip:active,
.tool-btn:active {
  transform: scale(0.91) !important;
  opacity: 0.82;
}

.nav-tab:active {
  transform: scale(0.86) !important;
  opacity: 0.7;
}

.song-card:active,
.song-item-vertical:active,
.quick-card:active {
  transform: scale(0.96) !important;
  opacity: 0.88;
}

.mini-player:active {
  transform: scale(0.98) !important;
}

.control-play-big:active {
  transform: scale(0.88) !important;
  filter: brightness(1.2);
}

/* ----------------- Tanya AI Styling ----------------- */
#viewTanyaAI {
  padding-bottom: 120px;
  display: none;
  flex-direction: column;
  height: 100%;
}

#viewTanyaAI.active {
  display: flex;
}

.ai-header-wrapper {
  padding: 16px 16px 8px 16px;
}

.ai-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-badge-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.ai-badge-title i {
  font-size: 22px;
  color: var(--spotify-green);
  text-shadow: 0 0 12px rgba(29, 185, 84, 0.6);
}

.ai-badge-title h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ai-header-actions {
  display: flex;
  gap: 8px;
}

.ai-icon-btn {
  background: var(--spotify-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ai-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ai-chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-welcome-card {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.15) 0%, rgba(18, 18, 18, 0.8) 100%);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 8px;
}

.ai-sparkle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.2);
  color: var(--spotify-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 10px auto;
}

.ai-welcome-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ai-welcome-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.ai-suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ai-chip-prompt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chip-prompt:hover {
  background: rgba(29, 185, 84, 0.25);
  border-color: var(--spotify-green);
}

.ai-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background-color: var(--spotify-green);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background-color: #242424;
  color: #fff;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-card-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-song-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.ai-song-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-song-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.ai-song-info {
  flex: 1;
  overflow: hidden;
}

.ai-song-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-song-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-play-btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--spotify-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ai-playlist-banner {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.2), rgba(0, 0, 0, 0.5));
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ai-theme-preview-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-input-bar {
  position: absolute;
  bottom: 120px;
  left: 12px;
  right: 12px;
  z-index: 45;
}

.ai-input-form {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.ai-input-form:focus-within {
  border-color: var(--spotify-green);
}

.ai-input-form input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.ai-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--spotify-green);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}

/* ----------------- Dynamic Island / Super Island (iOS & HyperOS) ----------------- */
.dynamic-island-wrapper {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dynamic-island {
  pointer-events: auto;
  background-color: #000000;
  color: #ffffff;
  border-radius: 26px;
  width: 125px;
  height: 35px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.2);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              padding 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

/* Compact Active State */
.dynamic-island.active {
  width: 200px;
  height: 36px;
  padding: 0 10px;
}

/* Expanded State */
.dynamic-island.expanded {
  width: 330px;
  height: 84px;
  border-radius: 36px;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.island-compact {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dynamic-island.expanded .island-compact {
  display: none;
}

.island-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.island-mini-art {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  animation: islandSpin 6s linear infinite;
}

@keyframes islandSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.island-marquee {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

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

.island-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.island-bars .bar {
  width: 2.5px;
  background-color: var(--spotify-green);
  border-radius: 2px;
}

.island-bars.animating .bar-1 { animation: islandBounce 0.8s ease-in-out infinite alternate; height: 12px; }
.island-bars.animating .bar-2 { animation: islandBounce 0.6s ease-in-out 0.2s infinite alternate; height: 16px; }
.island-bars.animating .bar-3 { animation: islandBounce 0.9s ease-in-out 0.4s infinite alternate; height: 8px; }

@keyframes islandBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Expanded Layout Inside */
.island-expanded {
  display: none;
  width: 100%;
  align-items: center;
  gap: 12px;
}

.dynamic-island.expanded .island-expanded {
  display: flex;
}

.island-expanded-art {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.island-expanded-info {
  flex: 1;
  overflow: hidden;
}

.island-expanded-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-expanded-artist {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.island-expanded-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.island-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.island-ctrl-btn.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}



