/* ══════════════════════════════════════════════════════════════
   SOUND X — Spotify-Authentic Design System
   Color Primario: NEGRO (#000000 / #121212)
   Color Secundario: ROJO (#ff2a44 / #e50914)
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Spotify Pitch Black & Panel Surfaces */
  --bg-primary: #000000;
  --bg-main: #000000;
  --bg-sidebar: #121212;
  --bg-surface: #121212;
  --bg-card: #181818;
  --bg-card-hover: #282828;
  --bg-player: #000000;
  --bg-input: #242424;
  --bg-hover: rgba(255, 255, 255, 0.08);

  /* Color Secundario: Rojo Eléctrico / Carmesí Spotify */
  --accent-red: #ff2a44;
  --accent-red-hover: #ff475d;
  --accent-red-glow: rgba(255, 42, 68, 0.45);
  --accent-red-subtle: rgba(255, 42, 68, 0.16);
  --accent-gradient: linear-gradient(135deg, #ff2a44 0%, #b91c1c 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ff475d 0%, #dc2626 100%);

  /* Compatibilidad con reglas previas */
  --accent-purple: #ff2a44;
  --accent-purple-glow: rgba(255, 42, 68, 0.4);
  --accent-emerald: #ff2a44;
  --accent-emerald-glow: rgba(255, 42, 68, 0.4);

  /* Spotify Typography */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #727272;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.18);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── Custom Scrollbar (Spotify Thin Dark) ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── Spotify Web Player Island Architecture (Flexbox) ── */
.spotify-app,
.app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000000;
  position: relative;
}

/* ── 1. Top Bar (64px Spotify Header) ── */
.spotify-topbar,
.title-bar {
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #000000;
  z-index: 100;
  -webkit-app-region: drag;
  gap: 12px;
}

.topbar-left,
.title-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 680px;
  -webkit-app-region: no-drag;
}

/* Official SOUND X Brand Icon (Spotify Solo Icon Style) */
.spotify-brand-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  overflow: hidden;
}

.spotify-brand-icon-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 42, 68, 0.65));
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.modal-logo-img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(255, 42, 68, 0.45);
  margin-bottom: 8px;
}

/* Circular Home Button (Spotify Style) */
.spotify-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1f1f1f;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.spotify-circle-btn:hover {
  background: #2a2a2a;
  transform: scale(1.05);
}

.spotify-circle-btn:active,
.spotify-circle-btn.active {
  background: #242424;
  color: #ffffff;
}

/* Spotify Search Capsule Pill */
.spotify-search-pill {
  display: flex;
  align-items: center;
  height: 48px;
  width: 480px;
  max-width: 44vw;
  background: #1f1f1f;
  border-radius: 500px;
  padding: 0 16px;
  gap: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 1;
}

.spotify-search-pill:hover {
  background: #282828;
  border-color: rgba(255, 255, 255, 0.15);
}

.spotify-search-pill:focus-within {
  background: #242424;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.search-pill-icon {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spotify-search-pill input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}

.spotify-search-pill input::placeholder {
  color: #727272;
}

.clear-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.15s;
}

.clear-pill-btn:hover {
  color: #ffffff;
}

.clear-pill-btn.hidden {
  display: none !important;
}

.search-pill-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

.search-pill-browse {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.15s;
}

.search-pill-browse:hover {
  color: #ffffff;
}

/* Topbar Right Actions */
.topbar-right,
.title-bar-center {
  display: flex;
  align-items: center;
  gap: 16px;
  -webkit-app-region: no-drag;
  flex-shrink: 0;
}

.topbar-text-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 8px;
  transition: color 0.15s, transform 0.15s;
}

.topbar-text-link:hover {
  color: #ffffff;
  transform: scale(1.04);
}

.topbar-vdivider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.topbar-install-btn,
.spotify-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 500px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.topbar-install-btn:hover,
.spotify-pill-btn:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121212;
  padding: 4px 12px 4px 4px;
  border-radius: 500px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}

.user-pill:hover {
  background: #1f1f1f;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #000000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.plan-badge.vip,
.plan-badge.premium {
  background: var(--accent-red);
  color: #000000;
}

/* ── 2. Middle Body: Island Workspace ── */
.spotify-middle {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  padding: 0 8px 8px 8px;
  overflow: hidden;
  min-height: 0;
}

/* Left Island: Tu biblioteca (Floating Rounded 8px Panel, 380px) */
.spotify-sidebar,
.sidebar {
  flex: 0 0 380px;
  width: 380px;
  min-width: 360px;
  max-width: 420px;
  background: #121212;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border: none;
  margin: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sidebar-header-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
}

.sidebar-header-btn:hover {
  color: #ffffff;
}

.circle-hover-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.circle-hover-btn:hover {
  background: #1f1f1f;
  color: #ffffff;
  transform: scale(1.06);
}

/* Filter Chips (Spotify style) */
.sidebar-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-chips::-webkit-scrollbar {
  display: none;
}

.sidebar-chip {
  background: #242424;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 500px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.sidebar-chip:hover {
  background: #2e2e2e;
}

.sidebar-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

/* Callout Cards inside Sidebar (Clean, No Inner Scrollbar Clutter) */
.sidebar-callouts-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-callouts-scroll::-webkit-scrollbar {
  display: none;
}

.sidebar-callout {
  background: #1f1f1f;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s;
}

.sidebar-callout:hover {
  background: #242424;
}

.sidebar-callout h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-callout p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.spotify-white-pill {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  width: fit-content;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s, background 0.15s;
}

.spotify-white-pill:hover {
  transform: scale(1.04);
  background: #f0f0f0;
}

.skips-callout,
.skips-box,
#skipsBox {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.skips-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.skips-header strong {
  color: #ffffff;
  font-size: 13px;
}

.skips-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin: 4px 0 2px;
}

.skips-bar {
  height: 100%;
  background: var(--accent-red);
  border-radius: 2px;
}

.skips-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sidebar Footer (Legal & Settings) */
.sidebar-footer {
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.sidebar-links-grid a {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-links-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.lang-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #727272;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 500px;
  width: fit-content;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.lang-pill-btn:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

/* Right Island: Main Content (Floating Rounded 8px Panel, flex: 1) */
.spotify-main,
.main-content {
  flex: 1 1 auto;
  background: #121212;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 24px 24px 140px 24px;
  min-width: 0;
  border: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.view {
  display: none;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 100%;
}

.view.active {
  display: flex;
}

.content-header {
  padding: 24px 32px 16px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 42, 68, 0.15) 0%, rgba(18, 18, 18, 0) 100%);
}

.content-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.content-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.content-scroll {
  flex: 1 0 auto;
  overflow: visible;
  padding: 0 0 40px 0;
}

/* ── Search Bar (Spotify Style Pill) ── */
.search-container {
  padding: 20px 32px 12px;
  flex-shrink: 0;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #242424;
  border: 1px solid transparent;
  border-radius: 500px;
  padding: 0 16px;
  max-width: 460px;
  height: 48px;
  gap: 12px;
  transition: var(--transition-fast);
}

.search-input-wrap:hover {
  background: #2a2a2a;
}

.search-input-wrap:focus-within {
  border-color: #ffffff;
  background: #2a2a2a;
  box-shadow: 0 0 0 2px var(--accent-red-glow);
}

.search-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}

#searchInput::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

.clear-search-btn.hidden {
  display: none;
}

/* ── Cards & Carousels (Spotify Signature Look) ── */
.section-row {
  margin-bottom: 32px;
}

.section-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-row-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: none;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.card-thumb-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #242424;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-play-overlay {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 16px var(--accent-red-glow);
  transition: all var(--transition-normal);
}

.card:hover .card-play-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-play-overlay:hover {
  transform: scale(1.08);
  background: var(--accent-red-hover);
}

.card-play-overlay svg {
  margin-left: 2px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Explicit Badge [ E ] Spotify Authentic */
.badge-explicit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #727272;
  color: #121212;
  font-size: 9px;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  line-height: 1;
  flex-shrink: 0;
}

/* Circular Artist Card (Spotify Authentic) */
.card.artist-card .card-thumb-wrap {
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.card.artist-card .card-thumb {
  border-radius: 50%;
}

.card.artist-card .card-subtitle {
  color: var(--text-muted);
}

.section-show-all {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.section-show-all:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ── Track List (Spotify Table Row Style) ── */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-row {
  display: grid;
  grid-template-columns: 36px 48px 1fr 180px 70px;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.track-row.playing {
  background: rgba(255, 42, 68, 0.12);
}

.track-row.playing .track-title {
  color: var(--accent-red);
}

.track-row.playing .track-index {
  color: var(--accent-red);
}

.track-index {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.track-row:hover .track-index {
  display: none;
}

.track-hover-play {
  display: none;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.track-row:hover .track-hover-play {
  display: flex;
}

.track-img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
}

.track-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.track-album {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Genre Grid (Explore view) ── */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.genre-card {
  height: 110px;
  border-radius: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-start;
}

.genre-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ── Bottom Wrapper: Spotify Bottom Promo Banner & 72px Player Bar ── */
.spotify-bottom-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: #000000;
  z-index: 100;
  position: relative;
  width: 100%;
}

/* Spotify Bottom Red Gradient Banner (Exact match to Spotify Free/Guest banner) */
.spotify-bottom-banner {
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 30%, #ff2a44 75%, #991b1b 100%);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 105;
}

.spotify-bottom-banner.hidden {
  display: none !important;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.banner-desc {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.spotify-white-pill.large-cta {
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  border-radius: 500px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.spotify-white-pill.large-cta:hover {
  transform: scale(1.04);
  background: #f8f8f8;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.banner-dismiss-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 500px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.banner-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: scale(1.03);
}

/* ── Bottom Player Bar (Spotify Authentic Pure Black 72px) ── */
.player-bar {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  height: 72px;
  min-height: 72px;
  width: 100%;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player-track-img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: #242424;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.player-track-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-track-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.player-like-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.player-like-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.player-like-btn.liked {
  color: var(--accent-red);
}

.player-like-btn.liked svg {
  fill: var(--accent-red);
  stroke: var(--accent-red);
}

/* ── Center Controls & Progress (Spotify Exact Interaction) ── */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.player-btn:hover {
  color: var(--text-primary);
  transform: scale(1.08);
}

.player-btn.active {
  color: var(--accent-red);
}

.player-btn.premium-only-locked {
  opacity: 0.42;
  position: relative;
}

.player-btn.premium-only-locked:hover {
  opacity: 0.8;
  color: var(--accent-red);
}

.btn-locked-shake {
  animation: btnShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

@keyframes btnShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.play-pause-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.play-pause-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.player-time {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 35px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-wrap:hover {
  height: 6px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  position: relative;
  transition: background 0.15s ease;
}

.progress-bar-wrap:hover .progress-bar {
  background: var(--accent-red);
}

.progress-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.progress-bar-wrap:hover .progress-thumb {
  opacity: 1;
}

/* ── Right Controls (Volume + Queue) ── */
.player-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-bar-wrap {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.volume-bar-wrap:hover {
  height: 6px;
}

.volume-bar {
  height: 100%;
  width: 80%;
  background: #ffffff;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.volume-bar-wrap:hover .volume-bar {
  background: var(--accent-red);
}

/* ── Queue Side Drawer ── */
.queue-panel {
  position: fixed;
  top: 44px;
  right: -360px;
  width: 360px;
  bottom: 84px;
  background: #121212;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 500;
  transition: right var(--transition-normal);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.7);
}

.queue-panel.open {
  right: 0;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.queue-title {
  font-size: 16px;
  font-weight: 700;
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.queue-item.active {
  background: rgba(255, 42, 68, 0.15);
}

.queue-item.active .queue-item-title {
  color: var(--accent-red);
}

.queue-item-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
}

.queue-item-meta {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Loading, Empty States & Placeholders ── */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  color: var(--text-muted);
  font-size: 13px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search-placeholder, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 14px;
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 18px;
}

.liked-header {
  padding: 32px 32px 20px;
}

.liked-banner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Hidden Background Webview ── */
.hidden-webview {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
  z-index: -1;
}

/* ══════════════════════════════════════════════════════════════
   SOUND X — Premium & Auth Design System (Spotify Clean Black & Red)
   ══════════════════════════════════════════════════════════════ */

/* ── Title Bar User Pill & Upgrade ── */
.title-bar-center {
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-app-region: no-drag;
}

.upgrade-btn-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: 500px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--accent-red-glow);
  transition: var(--transition-fast);
}

.upgrade-btn-header:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px var(--accent-red-glow);
  background: var(--accent-gradient-hover);
}

.upgrade-icon {
  font-size: 13px;
}

.upgrade-btn-header.hidden {
  display: none;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px 4px 5px;
  border-radius: 500px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-pill:hover {
  background: #282828;
  border-color: rgba(255, 255, 255, 0.16);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a44, #991b1b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Badges ── */
.plan-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 500px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-badge.free {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.plan-badge.premium {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-red-glow);
  animation: pulseRed 2.5s infinite;
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 42, 68, 0.35); }
  50% { box-shadow: 0 0 16px rgba(255, 42, 68, 0.7); }
}

.badge-mini {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  margin-left: auto;
}

.badge-mini.gold {
  background: rgba(255, 42, 68, 0.2);
  color: #ff475d;
}

/* ── Sidebar Skips Box ── */
.skips-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skips-box.hidden {
  display: none;
}

.skips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.skips-header strong {
  color: var(--text-primary);
}

.skips-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.skips-bar {
  height: 100%;
  background: var(--accent-red);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.skips-hint {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Modals General ── */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.modal-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Auth Modal ── */
.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-fast);
}

.auth-tab.active {
  background: #282828;
  color: var(--text-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group input {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--accent-red-glow);
}

.auth-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.auth-error.hidden {
  display: none;
}

.primary-btn {
  background: var(--accent-red);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 500px;
  padding: 12px 24px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.primary-btn:hover {
  background: var(--accent-red-hover);
  transform: scale(1.02);
}

.gold-btn {
  background: linear-gradient(135deg, #ff2a44 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--accent-red-glow);
}

.gold-btn:hover {
  background: linear-gradient(135deg, #ff475d 0%, #dc2626 100%);
}

.secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  border-radius: 500px;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.secondary-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Account & Redeem Modal ── */
.account-box {
  max-width: 520px;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-avatar-large {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a44, #991b1b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
}

.account-plan-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.acc-expiry-text {
  font-size: 12px;
  color: var(--text-muted);
}

.premium-perks-box {
  background: rgba(255, 42, 68, 0.08);
  border: 1px solid rgba(255, 42, 68, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.perk-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #ff475d;
  margin-bottom: 10px;
}

.perk-title svg {
  color: #ffb800;
  flex-shrink: 0;
}

.perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perk-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #d1d5db;
}

.perk-list li svg {
  flex-shrink: 0;
  color: #ff2a44;
}

.telegram-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 42, 68, 0.08);
  border: 1px solid rgba(255, 42, 68, 0.25);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.tg-info strong {
  display: block;
  font-size: 13px;
  color: #ff475d;
}

.tg-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tg-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient, linear-gradient(135deg, #ff2a44, #b91c1c));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 500px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(255, 42, 68, 0.3);
}

.tg-btn:hover {
  background: linear-gradient(135deg, #ff475d, #dc2626);
  transform: scale(1.04);
}

.device-box {
  margin-bottom: 16px;
}

.device-box label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.device-code-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 10px;
}

.device-code-wrap code {
  flex: 1;
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--accent-emerald);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.redeem-box {
  margin-bottom: 20px;
}

.redeem-box label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.redeem-input-wrap {
  display: flex;
  gap: 8px;
}

.redeem-input-wrap input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: Consolas, monospace;
  outline: none;
}

.redeem-input-wrap input:focus {
  border-color: var(--accent-purple);
}

.redeem-input-wrap button {
  width: auto;
  padding: 0 16px;
  white-space: nowrap;
}

.redeem-msg {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.redeem-msg.success {
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: #6ee7b7;
}

.redeem-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.redeem-msg.hidden {
  display: none;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.logout-btn:hover {
  color: #ef4444;
}

/* ── Limit Modal ── */
.limit-box {
  text-align: center;
  max-width: 440px;
}

.limit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.limit-icon svg {
  color: #ff2a44;
  filter: drop-shadow(0 0 16px rgba(255, 42, 68, 0.45));
}

.limit-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.limit-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Quality Modal ── */
.quality-box {
  max-width: 440px;
}

.quality-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-card {
  background: var(--bg-input);
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quality-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.quality-card.active {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.quality-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.quality-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.quality-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.quality-tag.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* ── Language Selector Modal (Spotify Global Style) ── */
.language-box {
  max-width: 680px;
  width: 92%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 20px;
}

.lang-modal-header {
  margin-bottom: 14px;
}

.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 500px;
  padding: 8px 16px;
  margin-top: 14px;
  transition: var(--transition-fast);
}

.lang-search-wrap:focus-within {
  border-color: #ffffff;
  background: #2a2a2a;
}

.lang-search-wrap svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lang-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
}

.lang-grid-container {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding-right: 4px;
  margin-top: 6px;
  max-height: 52vh;
}

.lang-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.lang-item-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.lang-item-card.active {
  background: rgba(255, 42, 68, 0.12);
  border-color: var(--accent-red);
}

.lang-item-info {
  display: flex;
  flex-direction: column;
}

.lang-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.lang-item-native {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.lang-item-check {
  display: none;
  color: var(--accent-red);
  flex-shrink: 0;
}

.lang-item-card.active .lang-item-check {
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   SOUND X — PWA, Mobile & Responsive Styles (iOS & Android)
   ══════════════════════════════════════════════════════════════ */

/* Hidden Player Container (Kept in viewport bounds for iOS Safari WebKit audio) */
.hidden-player-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 80px;
  opacity: 0.001;
  pointer-events: none;
  z-index: -10;
}

/* Install PWA Button */
.pwa-install-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pwa-install-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-active);
}

.pwa-install-btn.hidden {
  display: none;
}

/* Desktop Only Elements */
.desktop-only {
  display: flex;
}

/* Mobile Bottom Navigation (Hidden on PC by default) */
.mobile-bottom-nav {
  display: none;
}

/* Mobile Now Playing Overlay (Hidden by default) */
.mobile-now-playing {
  display: none;
}

/* ── Mobile Responsive Breakpoint (< 768px) ── */
@media (max-width: 768px) {
  .spotify-app,
  .app-container {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for iOS */
  }

  .spotify-sidebar,
  .sidebar {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .spotify-topbar,
  .title-bar {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding-bottom: 8px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    height: auto;
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .topbar-text-link,
  .topbar-vdivider,
  .topbar-install-btn,
  .search-pill-browse,
  .search-pill-divider,
  .home-circle-btn {
    display: none !important;
  }

  .spotify-brand-icon-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .spotify-search-pill {
    max-width: none;
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
  }

  .spotify-search-pill input {
    font-size: 13px;
    min-width: 0;
  }

  .topbar-left {
    flex: 1;
    min-width: 0;
    gap: 8px;
    display: flex;
    align-items: center;
  }

  .topbar-right {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .user-pill {
    padding: 3px 6px;
    height: 34px;
    gap: 6px;
  }

  .user-avatar {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .user-name {
    display: none !important;
  }

  .plan-badge {
    padding: 2px 5px;
    font-size: 9px;
  }

  .spotify-middle {
    padding: 0;
  }

  .spotify-main,
  .main-content {
    border-radius: 0;
    padding: 16px 14px 120px 14px;
  }

  .spotify-bottom-banner {
    display: none !important;
  }

  .user-name {
    display: none;
  }

  .content-header {
    padding: 16px 20px 8px;
  }

  .content-header h1 {
    font-size: 22px;
  }

  .content-scroll {
    padding: 0 16px 140px; /* Extra padding for bottom player + nav */
  }

  .search-container {
    padding: 12px 16px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .card {
    padding: 10px;
  }

  .card-play-overlay {
    opacity: 1; /* Always visible on mobile touch */
    transform: none;
    width: 38px;
    height: 38px;
  }

  .track-row {
    grid-template-columns: 24px 44px 1fr 50px;
    gap: 10px;
    padding: 6px 8px;
  }

  .track-album {
    display: none;
  }

  /* ── Sleek Mini Player Bar above Bottom Nav (Spotify Mobile Island) ── */
  .player-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    height: 56px;
    border-radius: 8px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    grid-template-columns: 1fr auto;
    padding: 0 12px;
    z-index: 1000;
    margin: 0;
  }

  .player-track-info {
    cursor: pointer;
  }

  .player-track-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
  }

  .player-track-title {
    font-size: 12px;
    max-width: 140px;
  }

  .player-track-artist {
    font-size: 11px;
    max-width: 140px;
  }

  .player-controls {
    width: auto;
    margin: 0;
  }

  .player-buttons {
    gap: 12px;
  }

  .play-pause-btn {
    width: 32px;
    height: 32px;
  }

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

  /* ── Mobile Bottom Navigation Bar (iOS & Android) ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: var(--transition-fast);
  }

  .mobile-nav-item svg {
    stroke: var(--text-muted);
    transition: var(--transition-fast);
  }

  .mobile-nav-item.active {
    color: var(--accent-red);
  }

  .mobile-nav-item.active svg {
    stroke: var(--accent-red);
  }

  .mobile-nav-item.mobile-nav-premium {
    color: #ffc107;
  }

  .mobile-nav-item.mobile-nav-premium svg {
    fill: #ffc107;
    stroke: none;
  }

  .mobile-nav-item.mobile-nav-premium.active {
    color: var(--accent-red);
  }

  .mobile-nav-item.mobile-nav-premium.active svg {
    fill: var(--accent-red);
    stroke: none;
  }

  /* ── Fullscreen Mobile Now Playing Screen (Spotify Mobile Style) ── */
  .mobile-now-playing {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #380a11 0%, #160608 45%, #000000 100%);
    z-index: 3000;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .mobile-now-playing.open {
    transform: translateY(0);
  }

  .mnp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .mnp-close-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mnp-header-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
  }

  .mnp-art-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    background: #111;
  }

  .mnp-art-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mnp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .mnp-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
  }

  .mnp-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
  }

  .mnp-progress-wrap {
    margin-bottom: 24px;
  }

  .mnp-progress-wrap .progress-bar-wrap {
    height: 6px;
  }

  .mnp-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
  }

  .mnp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
  }

  .play-pause-btn.large {
    width: 64px;
    height: 64px;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  }

  .play-pause-btn.large svg {
    width: 28px;
    height: 28px;
  }
}

/* ══════════════════════════════════════════════════════════════
   OFFLINE & DOWNLOADS STYLES (PREMIUM VIP)
   ══════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.offline-banner.hidden {
  display: none !important;
}

.offline-banner {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

.offline-banner svg {
  flex-shrink: 0;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.liked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.liked-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.liked-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-all-btn {
  background: linear-gradient(135deg, rgba(255, 42, 68, 0.18), rgba(185, 28, 28, 0.18));
  border: 1px solid rgba(255, 42, 68, 0.45);
  color: #ff475d;
  padding: 10px 20px;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.download-all-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-red-glow);
}

.vip-pill-mini {
  background: linear-gradient(135deg, #ff2a44, #b91c1c);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 500px;
  letter-spacing: 0.5px;
}

.download-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.download-progress-wrap .progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.download-progress-wrap .progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff2a44, #991b1b);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.download-progress-wrap span {
  font-size: 11px;
  color: var(--text-secondary);
}

.badge-mini.vip-gold {
  background: linear-gradient(135deg, #ff2a44, #b91c1c);
  color: #ffffff;
  font-weight: 700;
}

/* Individual Track Download Button */
.track-download-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 4px;
}

.track-download-btn:hover {
  color: var(--accent-red);
  background: rgba(255, 42, 68, 0.12);
}

.track-download-btn.downloaded {
  color: var(--accent-red);
}

.track-download-btn.downloading {
  color: var(--accent-red);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.offline-track-tag {
  font-size: 10px;
  background: rgba(255, 42, 68, 0.15);
  color: #ff475d;
  border: 1px solid rgba(255, 42, 68, 0.4);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   GOOGLE AUTHENTICATION STYLES
   ══════════════════════════════════════════════════════════════ */
.google-auth-wrap {
  margin: 16px 0 12px;
}

.google-gate-box {
  max-width: 420px;
  text-align: center;
  padding: 36px 30px;
}

.large-google-btn {
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.google-gate-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 14px;
}

.shake {
  animation: shakeAnimation 0.4s ease-in-out;
}

@keyframes shakeAnimation {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid #dadce0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

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

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  padding: 0 12px;
}

.quick-google-account-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  color: #ffffff;
  text-align: left;
}

.quick-google-account-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.qg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.qg-info {
  display: flex;
  flex-direction: column;
}

.qg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.qg-email {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════
   NATIVE IN-APP PROMOTIONAL BANNERS (SPOTIFY STYLE)
   ══════════════════════════════════════════════════════════════ */
.in-app-upgrade-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.in-app-upgrade-banner.hidden {
  display: none !important;
}

.in-app-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.in-app-banner-info {
  flex: 1;
}

.in-app-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.in-app-banner-desc {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.in-app-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.in-app-upgrade-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a0f00;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.in-app-upgrade-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.in-app-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.in-app-dismiss-btn:hover {
  color: #fff;
}

/* Mini Promo Bar Above Player */
.player-promo-bar {
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 30%, #ff2a44 75%, #991b1b 100%);
  border-top: 1px solid rgba(255, 42, 68, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #ffffff;
  z-index: 15;
}

.player-promo-bar.hidden {
  display: none !important;
}

.promo-bar-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.promo-pill {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.promo-bar-text strong {
  color: #fbbf24;
}

.promo-bar-btn {
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 500px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}

.promo-bar-btn:hover {
  transform: scale(1.04);
  background: #f0f0f0;
}

/* Search Promo Box */
.search-promo-box {
  background: rgba(245, 158, 11, 0.09);
  border: 1px dashed rgba(245, 158, 11, 0.38);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 12px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-promo-box.hidden {
  display: none !important;
}

.search-promo-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.search-promo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.search-promo-info strong {
  color: #fbbf24;
  font-size: 13px;
}

.search-promo-btn {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.search-promo-btn:hover {
  background: #f59e0b;
  color: #000;
}

@media (max-width: 768px) {
  .in-app-upgrade-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }
  .in-app-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .in-app-upgrade-btn {
    flex: 1;
    text-align: center;
  }
  .player-promo-bar {
    padding: 6px 12px;
    font-size: 11px;
  }
  .promo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
  }
}

/* ── Seek Locked Notice Toast ── */
.seek-locked-toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 42, 68, 0.4);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 500px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 42, 68, 0.25);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.seek-locked-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #ffffff;
}

.toast-content svg {
  flex-shrink: 0;
  color: #ff2a44;
}

.toast-upgrade-btn {
  background: var(--accent-gradient, linear-gradient(135deg, #ff2a44, #b91c1c));
  color: #ffffff;
  border: none;
  padding: 5px 14px;
  border-radius: 500px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.toast-upgrade-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 42, 68, 0.5);
}

/* ── Progress Bar Seek Locked State for Free Users ── */
.progress-bar-wrap.seek-locked {
  cursor: not-allowed !important;
}

.progress-bar-wrap.seek-locked:hover .progress-thumb {
  display: none !important;
  opacity: 0 !important;
}

.progress-bar-wrap.seek-locked:active {
  animation: seekShake 0.3s ease;
}

@keyframes seekShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Interstitial Ad Modal for Free Users (Every 2 Songs) ── */
.ad-backdrop {
  z-index: 1000;
}

.ad-box {
  max-width: 440px;
  width: 90%;
  background: #121212;
  border: 1px solid rgba(255, 42, 68, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 42, 68, 0.25);
  border-radius: 16px;
  padding: 26px 24px;
  text-align: center;
  position: relative;
}

.ad-tag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.ad-countdown {
  font-size: 12px;
  color: var(--text-muted);
}

.ad-countdown b {
  color: #ff2a44;
  font-size: 14px;
}

.ad-media-card {
  padding: 8px 0 16px;
}

.ad-brand-img {
  width: 100%;
  max-width: 320px;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 42, 68, 0.2);
  margin: 0 auto 16px;
  display: block;
}

.ad-media-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.ad-media-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto 18px;
}

.ad-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.ad-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient, linear-gradient(90deg, #ff2a44, #dc2626));
  border-radius: 3px;
  transition: width 1s linear;
}

.ad-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.ad-actions .primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
}

.ad-actions .secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ad-actions .secondary-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.ad-lock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
}

.ad-lock-badge svg {
  color: #ff2a44;
  flex-shrink: 0;
}

.ad-backdrop.ad-transition .ad-box {
  animation: adSwitchPulse 0.4s ease;
}

@keyframes adSwitchPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); opacity: 0.85; filter: brightness(1.2); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

/* ══════════════════════════════════════════════════════════════
   Estudio de Anuncios SOUND X (Creador de Anuncios Spotify)
   ══════════════════════════════════════════════════════════════ */
.studio-box {
  max-width: 580px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 42, 68, 0.15);
}

.studio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.studio-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 42, 68, 0.15);
  border: 1px solid rgba(255, 42, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.studio-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.studio-header .modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.studio-tabs {
  display: flex;
  gap: 8px;
  background: #121212;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.studio-tab-btn:hover {
  color: #ffffff;
}

.studio-tab-btn.active {
  background: #282828;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.studio-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-top: 14px;
}

.studio-label:first-of-type {
  margin-top: 0;
}

.studio-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 500px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-chip:hover {
  background: rgba(255, 42, 68, 0.2);
  border-color: #ff2a44;
  transform: translateY(-1px);
}

.studio-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-textarea:focus {
  outline: none;
  border-color: #ff2a44;
  box-shadow: 0 0 0 3px rgba(255, 42, 68, 0.2);
}

.textarea-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.studio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.studio-field {
  display: flex;
  flex-direction: column;
}

.studio-select {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.studio-select:focus {
  outline: none;
  border-color: #ff2a44;
}

.generate-ad-btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff2a44, #dc2626);
  box-shadow: 0 4px 18px rgba(255, 42, 68, 0.4);
}

.generate-ad-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 42, 68, 0.55);
}

.generate-ad-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-fast);
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #ff2a44;
  background: rgba(255, 42, 68, 0.06);
}

.upload-dropzone p {
  color: #ffffff;
  font-size: 14px;
  margin: 10px 0 4px;
}

.upload-dropzone span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mic Recorder Box */
.recorder-box {
  background: #121212;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.recorder-timer {
  font-size: 36px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.recorder-timer.recording {
  color: #ff2a44;
  animation: pulseRecording 1s infinite alternate;
}

@keyframes pulseRecording {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

#recordPrompt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.recorder-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.record-btn {
  background: #ff2a44;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 500px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 16px rgba(255, 42, 68, 0.4);
}

.record-btn:hover {
  transform: scale(1.05);
}

.stop-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 500px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stop-btn:hover {
  transform: scale(1.05);
}

.studio-status-text {
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
  min-height: 18px;
}

.studio-status-text.success {
  color: #22c55e;
}

.studio-status-text.error {
  color: #ff2a44;
}

/* Studio Preview Bar (Footer) */
.studio-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121212;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 22px -28px -28px;
  padding: 16px 28px;
  border-radius: 0 0 16px 16px;
}

.preview-info {
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preview-name {
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
}

.preview-play-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preview-play-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: scale(1.03);
}

.preview-play-btn.playing {
  background: #ff2a44;
  border-color: #ff2a44;
}

/* Button in Account Modal */
.studio-link-btn {
  width: 100%;
  background: rgba(255, 42, 68, 0.12);
  color: #ff2a44;
  border: 1px solid rgba(255, 42, 68, 0.25);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 10px;
}

.studio-link-btn:hover {
  background: rgba(255, 42, 68, 0.22);
  border-color: #ff2a44;
  color: #ffffff;
}

.studio-beat-box {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 18px;
}

.studio-beat-box .studio-row {
  margin-top: 0;
}

/* ══════════════════════════════════════════════════════════════
   Sección Radio con IA / Mix Inteligente (Spotify Style)
   ══════════════════════════════════════════════════════════════ */
.ai-radio-section {
  background: linear-gradient(180deg, rgba(255, 42, 68, 0.08) 0%, rgba(18, 18, 18, 0) 100%);
  border: 1px solid rgba(255, 42, 68, 0.18);
  border-radius: 14px;
  padding: 20px 22px 14px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.ai-radio-section.hidden {
  display: none !important;
}

.ai-radio-header {
  margin-bottom: 16px;
}

.ai-sparkle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 42, 68, 0.15);
  border: 1px solid rgba(255, 42, 68, 0.35);
  color: #ff2a44;
  padding: 4px 10px;
  border-radius: 500px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.ai-sparkle-pill svg {
  color: #ff2a44;
}

.ai-radio-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.ai-radio-header .content-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.ai-radio-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ai-radio-carousel::-webkit-scrollbar {
  height: 6px;
}

.ai-radio-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.ai-radio-carousel .card {
  flex: 0 0 170px;
  max-width: 170px;
}

/* ── Liked Songs Shuffle Button & Pick Limit Modal Styles ── */
.liked-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.spotify-play-pill-btn {
  background: var(--accent-red, #ff2a44);
  color: #ffffff;
  border: none;
  border-radius: 500px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 18px rgba(255, 42, 68, 0.45);
}

.spotify-play-pill-btn:hover {
  transform: scale(1.04);
  background: #ff475d;
  box-shadow: 0 6px 24px rgba(255, 42, 68, 0.6);
}

.spotify-play-pill-btn:active {
  transform: scale(0.98);
}

.vertical-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ad-watch-btn {
  background: linear-gradient(135deg, #ff2a44 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-weight: 700 !important;
  border-radius: 500px !important;
  padding: 12px 20px !important;
  box-shadow: 0 4px 14px rgba(255, 42, 68, 0.35) !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ad-watch-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 42, 68, 0.5) !important;
}

.shuffle-pick-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 500px !important;
  padding: 11px 18px !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shuffle-pick-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.shuffle-pill-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  border-radius: 500px !important;
  padding: 11px 20px !important;
  cursor: pointer;
  transition: all 0.18s ease;
}

.shuffle-pill-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.04);
}

.order-play-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ══════════════════════════════════════════════════════════════
   LANDING SCREEN (Estilo Mi Bancolombia / Cuervo App)
   ══════════════════════════════════════════════════════════════ */
.landing-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #1c1c1e;
  color: #ffffff;
  z-index: 99999;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 20px 48px;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.landing-screen.hidden {
  display: none !important;
}

.landing-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  max-width: 90vw;
  width: 380px;
  background: #28282a;
  border: 1px solid rgba(255, 42, 68, 0.4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: landingFadeIn 0.25s ease-out;
}

.landing-toast.hidden {
  display: none !important;
}

@keyframes landingFadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.landing-container {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-header {
  padding-top: 16px;
  padding-bottom: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease;
}

.landing-header:active {
  transform: scale(0.97);
}

.landing-logo-ring {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 42, 68, 0.25);
  border: 2px solid rgba(255, 42, 68, 0.4);
}

.landing-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.landing-brand-title .brand-x {
  color: #ff2a44;
}

.landing-tagline {
  margin-top: 8px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #e6e6e6;
  max-width: 300px;
}

.landing-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.landing-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #252527;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.landing-quick-card:hover {
  background: #2c2c2f;
}

.landing-quick-card:active {
  transform: scale(0.97);
}

.quick-card-icon {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-card-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.landing-install-btn {
  width: 100%;
  background: #ff2a44;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 42, 68, 0.4);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.landing-install-btn:hover {
  background: #ff475e;
  box-shadow: 0 6px 24px rgba(255, 42, 68, 0.5);
}

.landing-install-btn:active {
  transform: scale(0.98);
}

.landing-web-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.landing-web-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.landing-web-btn:active {
  transform: scale(0.98);
}

.landing-instructions-box {
  width: 100%;
  background: #252527;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  text-align: left;
}

.landing-instructions-box.active-device {
  border-color: rgba(255, 42, 68, 0.35);
  box-shadow: 0 4px 18px rgba(255, 42, 68, 0.1);
}

.instructions-heading {
  color: #ff2a44;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #d6d6d8;
  line-height: 1.5;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  font-weight: 700;
  color: #ffffff;
  min-width: 16px;
}

.instructions-list strong {
  color: #ffffff;
  font-weight: 600;
}

.landing-warning-box {
  margin-top: 16px;
  background: #332e18;
  border: 1px solid rgba(253, 218, 36, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.warning-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.warning-text {
  font-size: 12px;
  line-height: 1.45;
  color: #fef08a;
  margin: 0;
  font-weight: 500;
}

.warning-text strong {
  font-weight: 700;
  color: #fff;
}

.landing-footer {
  text-align: center;
  font-size: 13px;
  color: #8e8e93;
  padding-top: 16px;
  padding-bottom: 8px;
  line-height: 1.5;
}

.landing-owner-link {
  color: #ff2a44;
  text-decoration: underline;
  font-weight: 600;
}

.landing-owner-link:hover {
  filter: brightness(1.2);
}

.creator-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 42, 68, 0.16);
  border: 1px solid rgba(255, 42, 68, 0.45);
  color: #ff2a44;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════
   ⭐ SOUND X PREMIUM PLANS VIEW & DEVICE SELECTORS ⭐
   ══════════════════════════════════════════════════════════════════ */
.premium-view-header {
  text-align: center;
  padding: 30px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.premium-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 42, 68, 0.2), rgba(255, 183, 3, 0.2));
  border: 1px solid rgba(255, 183, 3, 0.5);
  color: #ffc107;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 500px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.premium-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.premium-hero-desc {
  font-size: 14px;
  color: #a7a7a7;
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto;
}

.premium-content-scroll {
  padding: 10px 24px 160px;
  max-width: 1200px;
  margin: 0 auto;
}

.premium-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.premium-plan-card {
  position: relative;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.premium-plan-card.popular {
  border: 1.5px solid rgba(255, 42, 68, 0.6);
  background: linear-gradient(180deg, rgba(255, 42, 68, 0.08) 0%, #181818 40%);
  box-shadow: 0 8px 28px rgba(255, 42, 68, 0.15);
}

.premium-plan-card.savings {
  border: 1.5px solid rgba(255, 183, 3, 0.6);
  background: linear-gradient(180deg, rgba(255, 183, 3, 0.08) 0%, #181818 40%);
  box-shadow: 0 8px 28px rgba(255, 183, 3, 0.15);
}

.plan-card-tag {
  position: absolute;
  top: -11px;
  left: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 500px;
  text-transform: uppercase;
}

.plan-card-tag.basic {
  background: #282828;
  color: #b3b3b3;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-card-tag.popular {
  background: #ff2a44;
  color: #ffffff;
}

.plan-card-tag.value {
  background: #0077b6;
  color: #ffffff;
}

.plan-card-tag.savings {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #000000;
}

.plan-card-header {
  margin-bottom: 16px;
}

.plan-card-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.plan-card-term {
  font-size: 12px;
  color: #a7a7a7;
}

/* Device Selector Pills */
.plan-devices-selector {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.devices-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.device-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dev-pill {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.dev-pill:hover {
  background: #303030;
  border-color: rgba(255, 255, 255, 0.2);
}

.dev-pill.active {
  background: #ff2a44;
  border-color: #ff2a44;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 42, 68, 0.4);
}

.premium-plan-card.savings .dev-pill.active {
  background: #ffb703;
  border-color: #ffb703;
  color: #000000;
  box-shadow: 0 2px 8px rgba(255, 183, 3, 0.4);
}

/* Features List */
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #d1d1d1;
  margin-bottom: 9px;
  line-height: 1.4;
}

.f-check {
  color: #1ed760;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-buy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 500px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.plan-buy-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.primary-btn.gold-btn {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #000000;
}

/* Redeem Banner */
.premium-redeem-banner {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.redeem-banner-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.redeem-banner-text p {
  font-size: 13px;
  color: #a7a7a7;
  margin: 0;
}

.redeem-banner-form {
  display: flex;
  gap: 10px;
}

.redeem-banner-form input {
  flex: 1;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 500px;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.redeem-banner-form input:focus {
  border-color: #ff2a44;
}

.redeem-banner-form button {
  padding: 12px 24px;
  border-radius: 500px;
  white-space: nowrap;
}

/* Official Contact Card */
.premium-contact-footer {
  margin-top: 10px;
}

.creator-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #181818;
  border: 1px solid rgba(255, 42, 68, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.creator-contact-card:hover {
  background: #222222;
  border-color: #ff2a44;
  transform: translateY(-2px);
}

.creator-avatar-wrap img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff2a44;
}

.creator-contact-info {
  flex: 1;
}

.creator-contact-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-contact-desc {
  font-size: 12px;
  color: #a7a7a7;
  margin-top: 2px;
}

.creator-telegram-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2aabee;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 500px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .premium-hero-title {
    font-size: 22px;
  }
  .premium-plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .redeem-banner-form {
    flex-direction: column;
  }
  .creator-contact-card {
    flex-direction: column;
    text-align: center;
  }
  .creator-contact-name {
    justify-content: center;
  }
}




