/* ==========================================================================
   VINYL TIPPER — CLEAN MINIMALIST DESIGN SYSTEM (LIGHT & DARK THEMES)
   ========================================================================== */

:root {
  /* Default: Light Mode */
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F3F5;
  --bg-subtle: #E9ECEF;
  --text-primary: #111418;
  --text-secondary: #5F6775;
  --text-muted: #868E96;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --accent-primary: #1A1A1A;
  --accent-text: #FFFFFF;
  --accent-badge: #2B8A3E;
  --accent-used: #E8590C;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-vinyl: -10px 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 0.3s cubic-bezier(0.2, 0, 0, 1);
}

[data-theme="dark"] {
  --bg-primary: #0D0F12;
  --bg-surface: #161A1F;
  --bg-elevated: #20262E;
  --bg-subtle: #2B333E;
  --text-primary: #F8F9FA;
  --text-secondary: #A6B0BF;
  --text-muted: #6C7A89;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --accent-primary: #FFFFFF;
  --accent-text: #0D0F12;
  --accent-badge: #40C057;
  --accent-used: #FF922B;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-vinyl: -10px 10px 30px rgba(0, 0, 0, 0.7);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   AUTH GATE SCREEN
   ========================================================================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  z-index: 1000;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vinyl-logo-mark {
  margin-bottom: 24px;
}

.auth-logo-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border: 2.5px solid rgba(212, 175, 55, 0.7);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo-img:hover {
  transform: rotate(10deg) scale(1.06);
}

.mini-record {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #111 60%, #000 100%);
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slow-spin 20s linear infinite;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mini-record-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.mini-record-center {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #EA4335;
  border: 3px solid #000;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.badge-googler {
  background-color: #4285F4;
  color: #FFF;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.google-auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.google-auth-btn:hover {
  background-color: var(--bg-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-error-msg {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: rgba(234, 67, 53, 0.12);
  border: 1px solid rgba(234, 67, 53, 0.3);
  color: #EA4335;
  font-size: 13px;
  text-align: left;
  line-height: 1.4;
  width: 100%;
}

/* ==========================================================================
   APP SHELL & NAVIGATION
   ========================================================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 36px;
  height: 68px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
}

.top-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast);
}

.nav-brand:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.75);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.nav-brand:hover .brand-logo-img {
  transform: rotate(10deg) scale(1.06);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-primary) 65%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.memory-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-elevated);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid var(--border-light);
}

.counter-label {
  color: var(--text-muted);
}

.counter-value {
  font-weight: 700;
  color: var(--text-primary);
}

.counter-dots {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}

.counter-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border-medium);
  transition: background-color var(--transition-fast);
}

.counter-dots .dot.filled {
  background-color: #34A853;
}

/* -------------------------------------------------------------------------- */
/* Region & Shop Localization Selector                                       */
/* -------------------------------------------------------------------------- */
.region-selector-wrapper {
  position: relative;
}

.region-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.region-toggle-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
}

.region-flag {
  font-size: 15px;
  line-height: 1;
}

.region-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.region-caret {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.region-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  animation: fadeIn 0.15s ease-out;
}

.region-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
  width: 100%;
}

.region-menu-item:hover {
  background-color: var(--bg-elevated);
}

.region-menu-item.active {
  background-color: rgba(26, 115, 232, 0.1);
  color: #1A73E8;
  font-weight: 700;
}

[data-theme="dark"] .region-menu-item.active {
  background-color: rgba(66, 133, 244, 0.2);
  color: #8ab4f8;
}

.region-menu-item .item-flag {
  font-size: 16px;
}

.region-menu-item .item-name {
  flex: 1;
  font-weight: 500;
}

.region-menu-item .item-curr {
  font-size: 11px;
  color: var(--text-muted);
}

.theme-toggle-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-subtle);
  transform: scale(1.05);
}

[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: block; }

/* Theme-responsive Vinyl Hound logo toggle */
[data-theme="dark"] .logo-dark { display: block !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }

.nav-icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--border-light);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.signout-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.signout-btn:hover {
  color: #EA4335;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ==========================================================================
   HERO SEARCH SECTION (Prominent, Full-Width, Below Title)
   ========================================================================== */
.hero-search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  max-width: 860px;
  margin: 4px auto 8px;
  padding: 0 12px;
}

.hero-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 400;
}

.hero-search-form {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 7px 9px 7px 24px;
  height: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .search-bar-wrap {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #1a1a20;
}

.search-bar-wrap:focus-within {
  border-color: #d4af37;
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.search-icon {
  font-size: 20px;
  margin-right: 14px;
  opacity: 0.7;
}

.album-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 17px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.album-input::placeholder {
  color: var(--text-muted);
  font-size: 15px;
  transition: opacity var(--transition-fast);
}

.search-btn {
  padding: 13px 32px;
  border-radius: var(--radius-full);
  background-color: var(--accent-primary);
  color: var(--accent-text);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.search-btn:hover {
  opacity: 0.94;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Quick Autocomplete Dropdown (Top 3 Albums)                                 */
/* -------------------------------------------------------------------------- */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2500;
  animation: autocompleteSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .autocomplete-dropdown {
  background-color: rgba(28, 30, 34, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.autocomplete-dropdown.hidden {
  display: none !important;
}

@keyframes autocompleteSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2px;
}

.autocomplete-header .header-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.focused {
  background-color: var(--bg-elevated);
  border-color: var(--border-light);
  transform: translateX(2px);
}

[data-theme="dark"] .autocomplete-item:hover,
[data-theme="dark"] .autocomplete-item.focused {
  background-color: rgba(255, 255, 255, 0.08);
}

.autocomplete-thumb-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.autocomplete-thumb {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
}

.autocomplete-thumb-disc {
  position: absolute;
  top: 2px;
  right: -5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 0%, #111 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: -1;
  transition: transform var(--transition-fast);
}

.autocomplete-item:hover .autocomplete-thumb-disc,
.autocomplete-item.focused .autocomplete-thumb-disc {
  transform: translateX(6px) rotate(20deg);
}

.autocomplete-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.autocomplete-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.autocomplete-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-artist {
  font-weight: 600;
  color: var(--text-primary);
}

.autocomplete-year {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.autocomplete-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #1A73E8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(26, 115, 232, 0.1);
  border: 1px solid rgba(26, 115, 232, 0.2);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .autocomplete-badge {
  color: #8ab4f8;
  background-color: rgba(66, 133, 244, 0.18);
  border-color: rgba(66, 133, 244, 0.35);
}

.autocomplete-item:hover .autocomplete-badge,
.autocomplete-item.focused .autocomplete-badge {
  background-color: #1A73E8;
  color: #ffffff;
  border-color: #1A73E8;
}

[data-theme="dark"] .autocomplete-item:hover .autocomplete-badge,
[data-theme="dark"] .autocomplete-item.focused .autocomplete-badge {
  background-color: #8ab4f8;
  color: #111111;
  border-color: #8ab4f8;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* ==========================================================================
   AUDIOPHILE TURNTABLE & GRAND SPINNING VINYL LOADING SUITE
   ========================================================================== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 48px;
  gap: 28px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.audiophile-turntable-deck {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turntable-chassis {
  position: relative;
  width: 290px;
  height: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 24px;
  box-sizing: border-box;
  overflow: visible;
}

/* Platter Well & Aluminum Rim */
.turntable-platter-well {
  position: relative;
  width: 202px;
  height: 202px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 0%, #111111 75%, #2a2a2a 96%, #444444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 2px 6px rgba(0,0,0,0.8),
    0 4px 14px rgba(0,0,0,0.4);
}

/* 180g Heavyweight Vinyl Record (190px) */
.spinning-vinyl.grand-vinyl {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, #222222 0%, #141414 55%, #090909 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: vinyl-turn 1.8s linear infinite;
  transform-origin: center center;
  overflow: hidden;
}

@keyframes vinyl-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Anisotropic Light Sheen - Realistic specular reflection rotating on microgrooves */
.vinyl-light-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 45deg,
    rgba(255, 255, 255, 0.18) 0deg,
    rgba(255, 255, 255, 0.01) 35deg,
    rgba(255, 255, 255, 0.15) 90deg,
    rgba(255, 255, 255, 0.01) 125deg,
    rgba(255, 255, 255, 0.18) 180deg,
    rgba(255, 255, 255, 0.01) 215deg,
    rgba(255, 255, 255, 0.15) 270deg,
    rgba(255, 255, 255, 0.01) 305deg,
    rgba(255, 255, 255, 0.18) 360deg
  );
  mix-blend-mode: screen;
}

/* Concentric Sound Grooves */
.grooves-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.grooves-ring-1 {
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.4);
}
.grooves-ring-2 {
  inset: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.3);
}
.grooves-ring-3 {
  inset: 44px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
}
.grooves-runout {
  inset: 60px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle, transparent 65%, rgba(0,0,0,0.6) 100%);
}

/* Vintage 33 1/3 RPM Audiophile Center Label */
.label-circle.retro-audiophile-label {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #D9381E 0%, #B32812 75%, #8C1C09 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  user-select: none;
}

.label-rim-text {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FEE2E2;
  text-transform: uppercase;
  margin-top: 1px;
}

.label-speed-badge {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFF;
  margin: 1px 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.label-format-text {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FCD34D;
  text-transform: uppercase;
}

.spindle-center-hole {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111111;
  border: 1px solid #777777;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
}

/* Animated Turntable Tonearm */
.tonearm-assembly {
  position: absolute;
  right: 18px;
  top: 24px;
  width: 44px;
  height: 180px;
  pointer-events: none;
  z-index: 5;
  transform-origin: 22px 20px;
  animation: tonearm-needle-drop 4s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes tonearm-needle-drop {
  0% {
    transform: rotate(2deg);
  }
  20% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(26deg);
  }
  85% {
    transform: rotate(28deg);
  }
  100% {
    transform: rotate(29deg);
  }
}

.tonearm-base {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0e0e0 0%, #999999 70%, #555555 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.tonearm-pivot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #222;
  border: 1px solid #bbb;
}

.tonearm-weight {
  position: absolute;
  top: -6px;
  left: 3px;
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d4d4d4, #737373);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tonearm-rod {
  position: absolute;
  top: 28px;
  left: 19px;
  width: 4px;
  height: 120px;
  background: linear-gradient(90deg, #bbbbbb 0%, #f5f5f5 50%, #888888 100%);
  border-radius: 2px;
  box-shadow: -2px 3px 6px rgba(0,0,0,0.3);
}

.tonearm-cartridge {
  position: absolute;
  top: 142px;
  left: 14px;
  width: 14px;
  height: 24px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 2px 2px 5px 2px;
  transform: rotate(-16deg);
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.tonearm-needle {
  position: absolute;
  bottom: -4px;
  left: 5px;
  width: 3px;
  height: 5px;
  background: #EA4335;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(234, 67, 53, 0.8);
}

/* Speed Strobe */
.turntable-speed-strobe {
  position: absolute;
  bottom: 12px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.strobe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: strobe-pulse 0.9s infinite ease-in-out;
}

@keyframes strobe-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.strobe-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* Loading Status Text & Subline */
.loading-status-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 480px;
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.loading-status-subline {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.pulse-sparkle {
  display: inline-block;
  animation: sparkle-glow 1.5s ease-in-out infinite;
}

@keyframes sparkle-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 640px) {
  .turntable-chassis {
    width: 250px;
    height: 220px;
    padding-left: 14px;
  }
  .turntable-platter-well {
    width: 172px;
    height: 172px;
  }
  .spinning-vinyl.grand-vinyl {
    width: 160px;
    height: 160px;
  }
  .tonearm-assembly {
    right: 12px;
    height: 155px;
  }
  .tonearm-rod {
    height: 100px;
  }
  .tonearm-cartridge {
    top: 122px;
  }
}

/* ==========================================================================
   ALBUM HERO APPRAISAL CARD
   ========================================================================== */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  animation: fadeIn 0.4s ease-out;
}

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

.album-hero-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  align-items: center;
}

@media (max-width: 820px) {
  .album-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .album-hero-media {
    margin: 0 auto;
  }
  .pricing-container {
    justify-content: center;
  }
}

.album-hero-media {
  position: relative;
  width: 280px;
  height: 280px;
}

.vinyl-sleeve-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-vinyl);
}

.vinyl-sleeve-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
}

.vinyl-record-peek {
  position: absolute;
  top: 10px;
  right: -24px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 0%, #111 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 6px 20px rgba(0,0,0,0.3);
  z-index: 1;
  transition: transform var(--transition-normal);
}

.vinyl-sleeve-wrapper:hover .vinyl-record-peek {
  transform: translateX(18px) rotate(20deg);
}

.album-hero-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.album-hero-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.album-hero-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.album-hero-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 250px;
  flex-shrink: 0;
}

/* Embedded YouTube Track 1 Player in White Space Below Fav Heart */
.hero-yt-box {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s ease-out;
}

.hero-yt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.yt-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(234, 67, 53, 0.12);
  color: #EA4335;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.hero-yt-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-yt-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.hero-yt-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  align-self: flex-end;
  transition: color var(--transition-fast);
}

.hero-yt-link:hover {
  color: #EA4335;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .album-hero-header-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .album-hero-right-col {
    width: 100%;
    align-items: center;
  }
  .hero-yt-box {
    max-width: 340px;
  }
}

.album-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.genre-pill {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.year-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.album-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.album-artist {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------------------- */
/* Collector Score Pill & 30-Word Verdict Card (Unified 1-100 System)         */
/* -------------------------------------------------------------------------- */
.score-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: rgba(52, 168, 83, 0.12);
  color: #34A853;
  border: 1px solid rgba(52, 168, 83, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: default;
}

.score-pill-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-tier-high {
  background-color: rgba(52, 168, 83, 0.12);
  color: #34A853;
  border-color: rgba(52, 168, 83, 0.35);
}

.score-tier-mid {
  background-color: rgba(26, 115, 232, 0.12);
  color: #1A73E8;
  border-color: rgba(26, 115, 232, 0.35);
}

.score-tier-fair {
  background-color: rgba(251, 188, 4, 0.14);
  color: #E37400;
  border-color: rgba(251, 188, 4, 0.4);
}

[data-theme="dark"] .score-tier-high {
  background-color: rgba(52, 168, 83, 0.2);
  color: #4ade80;
  border-color: rgba(52, 168, 83, 0.4);
}

[data-theme="dark"] .score-tier-mid {
  background-color: rgba(26, 115, 232, 0.22);
  color: #60a5fa;
  border-color: rgba(26, 115, 232, 0.45);
}

[data-theme="dark"] .score-tier-fair {
  background-color: rgba(251, 188, 4, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 188, 4, 0.45);
}

.score-pill-icon {
  font-size: 13px;
  line-height: 1;
}

.score-pill-val {
  font-weight: 800;
}

.score-pill-max {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 600;
}

.hero-verdict-card {
  margin-top: 4px;
  padding: 12px 16px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-left: 3px solid #34A853;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

[data-theme="dark"] .hero-verdict-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: #4ade80;
}

.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.verdict-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.verdict-consensus {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.verdict-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
}

.album-meta-grid {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* German Vinyl Pricing */
.pricing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.price-box {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.new-price .price-badge {
  background-color: rgba(43, 138, 62, 0.15);
  color: var(--accent-badge);
}

.used-price .price-badge {
  background-color: rgba(232, 89, 12, 0.15);
  color: var(--accent-used);
}

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

.price-figure {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.price-subnote {
  font-size: 12px;
  color: var(--text-secondary);
}

.buy-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.buy-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.buy-link-pill:hover {
  background-color: var(--accent-primary);
  color: var(--accent-text);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.buy-link-pill .arrow-icon {
  font-size: 9px;
  opacity: 0.7;
}

.alt-buy-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  margin-top: 2px;
}

.alt-buy-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.alt-buy-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

/* ==========================================================================
   3 GENRE ALTERNATIVES SECTION
   ========================================================================== */
.alternatives-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subheading {
  font-size: 14px;
  color: var(--text-muted);
}

.shuffle-alts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.shuffle-alts-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .shuffle-alts-btn:hover {
  border-color: #8ab4f8;
  color: #8ab4f8;
}

.shuffle-icon {
  font-size: 13px;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shuffle-alts-btn.spinning .shuffle-icon {
  animation: spinShuffle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .alternatives-grid {
    grid-template-columns: 1fr;
  }
}

.alt-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.alt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.alt-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.alt-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.alt-card:hover .alt-cover-img {
  transform: scale(1.04);
}

.alt-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alt-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.alt-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.alt-price-col {
  display: flex;
  flex-direction: column;
}

.alt-price-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.alt-price-val {
  font-weight: 700;
  font-size: 14px;
}

.alt-price-val.new {
  color: var(--accent-badge);
}

.alt-price-val.used {
  color: var(--accent-used);
}

/* -------------------------------------------------------------------------- */
/* Price Area In-Context Loading Animation & Shimmer                          */
/* -------------------------------------------------------------------------- */
.price-skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.price-skeleton-bar {
  height: 28px;
  width: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-subtle) 0%, var(--bg-surface) 50%, var(--bg-subtle) 100%);
  background-size: 200% 100%;
  animation: shimmerSweep 1.5s infinite;
}

.price-scanning-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-scanning-radar {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1A73E8;
  box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
  animation: radarPulse 1.4s infinite;
}

.price-scanning-radar.green {
  background-color: #34A853;
  box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
  animation: radarPulseGreen 1.4s infinite;
}

@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(26, 115, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

@keyframes radarPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 168, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

@keyframes shimmerSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* -------------------------------------------------------------------------- */
/* 3 Alternatives Area Animated Skeleton Cards                               */
/* -------------------------------------------------------------------------- */
.alt-card-skeleton {
  background-color: var(--bg-elevated);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.alt-skeleton-media {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.alt-skeleton-sleeve {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-surface) 100%);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.alt-skeleton-vinyl {
  position: absolute;
  top: 5px;
  right: -6px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #151515 60%, #050505 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
  animation: vinylSlowSpin 3.5s linear infinite;
}

.alt-skeleton-vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.alt-skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.alt-skeleton-line {
  height: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--bg-subtle) 0%, var(--bg-surface) 50%, var(--bg-subtle) 100%);
  background-size: 200% 100%;
  animation: shimmerSweep 1.5s infinite;
}

.alt-skeleton-line.title {
  width: 85%;
  height: 16px;
}

.alt-skeleton-line.artist {
  width: 55%;
}

.alt-skeleton-line.meta {
  width: 40%;
  height: 10px;
}

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

/* ==========================================================================
   RECOMMENDATIONS CAROUSEL (BOTTOM OF SCREEN — COVERS ONLY)
   ========================================================================== */
.recommendations-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.recommendations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rec-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rec-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.carousel-nav-buttons {
  display: flex;
  gap: 8px;
}

.nav-arrow-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.nav-arrow-btn:hover {
  background: var(--bg-elevated);
  transform: scale(1.05);
}

/* Locked view (< 5 searches) */
.rec-locked-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
}

.locked-icon {
  font-size: 24px;
  opacity: 0.6;
}

.locked-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.locked-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Carousel Container: Covers Only (User requirement) */
.rec-carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  -webkit-overflow-scrolling: touch;
}

.rec-carousel-container::-webkit-scrollbar {
  height: 6px;
}

.rec-carousel-container::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

.rec-carousel-container::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

.rec-track {
  display: flex;
  gap: 22px;
  width: max-content;
}

/* Clean Vinyl Cover Sleeves Only */
.rec-cover-item {
  scroll-snap-align: start;
  width: 170px;
  height: 170px;
  position: relative;
  cursor: pointer;
  perspective: 800px;
  transition: transform var(--transition-normal);
}

.rec-cover-item:hover {
  transform: translateY(-8px) scale(1.04);
}

.rec-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-vinyl);
  border: 1px solid var(--border-light);
  display: block;
}

.rec-cover-disc-hint {
  position: absolute;
  top: 8px;
  right: -12px;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 0%, #111 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
  z-index: -1;
  transition: transform var(--transition-normal);
}

.rec-cover-item:hover .rec-cover-disc-hint {
  transform: translateX(18px) rotate(15deg);
}

/* Tooltip hint on hover for album name */
.rec-cover-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-primary);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.rec-cover-item:hover::after {
  opacity: 1;
}

/* ==========================================================================
   DIAGNOSTICS & GEMINI KEY MODAL (MANDATORY per gemini.md)
   ========================================================================== */
.diagnostics-dialog {
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  margin: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
}

.diagnostics-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-row h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

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

.diag-error-box {
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #EA4335;
  font-size: 13px;
}

.diag-error-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.key-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.key-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: monospace;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.key-input:focus {
  border-color: var(--text-primary);
}

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

.key-hint a {
  color: #4285F4;
  text-decoration: none;
}

.key-hint a:hover {
  text-decoration: underline;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--accent-primary);
  border: none;
  color: var(--accent-text);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ==========================================================================
   PROGRESSIVE ASYNC STREAMING & SKELETON LOADERS
   ========================================================================== */
.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

.links-loading-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.alt-card-skeleton {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-box {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-subtle) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.skeleton-title {
  width: 70%;
  height: 18px;
}

.skeleton-artist {
  width: 45%;
  height: 14px;
}

.skeleton-meta {
  width: 100%;
  height: 24px;
}

/* ==========================================================================
   MY FAV VINYL — PERSISTENT FAVORITES SYSTEM
   ========================================================================== */
.nav-favs-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-favs-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.favs-heart-icon {
  font-size: 14px;
}

.favs-count-badge {
  background-color: #EA4335;
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

/* Hero Heart Toggle Button */
.heart-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: all var(--transition-fast);
}

.heart-btn:hover {
  transform: scale(1.12);
  background-color: var(--bg-subtle);
}

.heart-icon-svg {
  fill: transparent;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: all var(--transition-fast);
}

.heart-btn.active .heart-icon-svg {
  fill: #EA4335;
  stroke: #EA4335;
  animation: heartBeat 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Alt Card Heart Button */
.alt-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.alt-fav-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.75);
}

.alt-fav-btn svg {
  fill: transparent;
  stroke: #FFF;
  stroke-width: 2;
  width: 16px;
  height: 16px;
}

.alt-fav-btn.active svg {
  fill: #EA4335;
  stroke: #EA4335;
}

/* Slide-Over Favorites Drawer */
.favs-drawer-container {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  justify-content: flex-end;
}

.favs-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease-out;
}

.favs-drawer-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.favs-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.favs-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.favs-header-heart {
  font-size: 20px;
}

.favs-drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.favs-drawer-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.favs-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.fav-card:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
  transform: translateX(-2px);
}

.fav-card-cover {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-surface);
}

.fav-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fav-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-card-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.fav-card-remove-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.fav-card-remove-btn:hover {
  color: #EA4335;
  transform: scale(1.15);
}

.favs-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.favs-empty-icon {
  font-size: 36px;
  opacity: 0.5;
}

.favs-empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 260px;
}

/* ============================================================================
   CURATED VINYL RECOMMENDATIONS (3+ FAVORITES UNLOCKED)
   ============================================================================ */
.nav-recs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.08) 0%, rgba(66, 133, 244, 0.12) 100%);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: pulseSubtle 3s infinite ease-in-out;
}

@keyframes pulseSubtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(234, 67, 53, 0.08); }
}

.nav-recs-btn:hover {
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.16) 0%, rgba(66, 133, 244, 0.2) 100%);
  transform: translateY(-1px);
  border-color: var(--accent);
}

.recs-sparkle-icon {
  font-size: 15px;
}

/* Curated Recommendations Pop-up Modal */
.fav-recs-modal-container {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.fav-recs-modal-container.hidden {
  display: none !important;
}

.fav-recs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fav-recs-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fav-recs-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-elevated);
  flex-shrink: 0;
}

.fav-recs-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recs-header-icon {
  font-size: 24px;
}

.fav-recs-modal-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.recs-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Dedicated Pop-up Modal Loading State */
.recs-modal-loading {
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.recs-modal-loading.hidden {
  display: none !important;
}

.recs-loading-message {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  max-width: 460px;
  line-height: 1.4;
  margin: 0;
}

.recs-loading-subtext {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.45;
}

/* Recommendations List inside Pop-up Modal */
.fav-recs-modal-list,
.fav-recs-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(88vh - 150px);
}

.fav-recs-modal-list.hidden {
  display: none !important;
}

/* Recommendation Card */
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition-fast);
  position: relative;
}

.rec-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.rec-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rec-card-cover {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-surface);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.rec-card-cover:hover {
  transform: scale(1.05);
}

.rec-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rec-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(52, 168, 83, 0.15);
  color: #2e8b57;
  border: 1px solid rgba(52, 168, 83, 0.3);
  flex-shrink: 0;
}

[data-theme="dark"] .rec-score-pill {
  background: rgba(52, 168, 83, 0.25);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.rec-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  cursor: pointer;
}

.rec-card-title:hover {
  color: var(--accent);
}

.rec-card-artist {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.rec-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

/* "Why it is a good match" Callout Box */
.rec-match-box {
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.rec-match-box strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Pricing and action buttons row */
.rec-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 2px;
  gap: 10px;
}

.rec-pricing-tags {
  display: flex;
  gap: 12px;
  font-size: 11px;
}

.rec-price-item {
  display: flex;
  flex-direction: column;
}

.rec-price-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 600;
}

.rec-price-val {
  font-weight: 700;
  color: var(--text-primary);
}

.rec-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-inspect-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rec-inspect-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.rec-fav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rec-fav-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2;
  transition: all var(--transition-fast);
}

.rec-fav-btn.active svg {
  fill: #EA4335;
  stroke: #EA4335;
}

.fav-recs-modal-footer,
.recs-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  background-color: var(--bg-surface);
  flex-shrink: 0;
}

.expand-recs-btn {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-medium);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.expand-recs-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   FLOATING GLOBAL AI THINKING BANNER
   ========================================================================== */
.ai-thinking-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3500;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  pointer-events: none;
  animation: bannerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
}

[data-theme="dark"] .ai-thinking-banner {
  background-color: rgba(28, 30, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 16px rgba(234, 67, 53, 0.2);
}

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

@keyframes bannerSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.ai-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
}

.ai-banner-sparkle {
  font-size: 16px;
  animation: sparklePulse 1.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes sparklePulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(234, 67, 53, 0.6));
  }
  50% {
    transform: scale(1.22) rotate(8deg);
    filter: drop-shadow(0 0 8px rgba(251, 188, 5, 0.8));
  }
}

.ai-banner-text {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ai-banner-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

.ai-banner-shimmer-track {
  width: 100%;
  height: 2.5px;
  background-color: var(--border-light);
  overflow: hidden;
  position: relative;
}

.ai-banner-shimmer-bar {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, #FBBC05 80%, transparent 100%);
  position: absolute;
  top: 0;
  left: -45%;
  animation: shimmerSweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmerSweep {
  0% { left: -45%; }
  100% { left: 100%; }
}

/* Tactile Active Loading Ripple on Clicked Items */
.card-loading-active {
  position: relative;
  outline: 2px solid var(--accent) !important;
  box-shadow: 0 0 20px rgba(234, 67, 53, 0.45) !important;
  animation: cardLoadingPulse 1.4s infinite ease-in-out !important;
}

@keyframes cardLoadingPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(234, 67, 53, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 24px rgba(234, 67, 53, 0.6);
  }
}

/* ==========================================================================
   VINYL DJ LOUNGE & TURNTABLE PLAYER (TRACK MIX & FULL LP MODES)
   ========================================================================== */

/* Hero listening box enhancements */
.hero-dj-mode-selector {
  display: flex;
  gap: 4px;
  background-color: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  margin-bottom: 2px;
}

.dj-mode-pill {
  flex: 1;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.dj-mode-pill:hover {
  color: var(--text-primary);
}

.dj-mode-pill.active {
  background-color: var(--accent-primary);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}

.hero-dj-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-dj-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #EA4335 0%, #D93025 100%);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.35);
}

.hero-dj-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.45);
}

.dj-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  display: inline-block;
  animation: djDotPulse 1.4s infinite ease-in-out;
}

@keyframes djDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Floating DJ Deck Bar (Docked at Bottom) */
.dj-deck-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 950;
  padding: 10px 16px;
  animation: slideUpBar 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.dj-deck-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Left: Turntable Icon & Track Meta */
.dj-deck-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.dj-turntable-mini {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.dj-turntable-platter {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dj-turntable-vinyl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #151515 65%, #050505 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.dj-turntable-mini.spinning .dj-turntable-vinyl {
  animation: vinylSpin 3s linear infinite;
}

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

.dj-vinyl-grooves {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.dj-vinyl-center {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EA4335;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}

.dj-tonearm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 2px;
  background: #888;
  transform-origin: right top;
  transform: rotate(-35deg);
  transition: transform 0.4s ease;
}

.dj-turntable-mini.spinning .dj-tonearm {
  transform: rotate(-10deg);
}

.dj-track-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.dj-track-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

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

.dj-mode-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(234, 67, 53, 0.12);
  color: #EA4335;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dj-track-artist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.dj-artist-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dj-queue-pos {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Center: Transport & Mode Toggle */
.dj-deck-controls-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dj-transport-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dj-ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.dj-ctrl-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
  transform: scale(1.08);
}

.dj-play-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--accent-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.dj-play-circle-btn:hover {
  transform: scale(1.06);
  opacity: 0.95;
}

.dj-deck-mode-toggle {
  display: flex;
  gap: 4px;
  background-color: var(--bg-elevated);
  padding: 2px 4px;
  border-radius: var(--radius-full);
}

.dj-deck-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dj-deck-pill.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Right: Autoplay status & Queue Drawer */
.dj-deck-right-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dj-status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #2B8A3E;
  background: rgba(43, 138, 62, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.dj-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2B8A3E;
  animation: djDotPulse 1.6s infinite ease-in-out;
}

.dj-queue-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.dj-queue-drawer-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
}

.dj-queue-count-badge {
  background-color: var(--accent-primary);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.dj-close-deck-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.dj-close-deck-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

/* DJ Queue Slide-Over Drawer */
.dj-queue-container {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
}

.dj-queue-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.dj-queue-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dj-queue-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dj-queue-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dj-queue-header-icon {
  font-size: 24px;
}

.dj-queue-title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.dj-queue-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.dj-queue-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dj-queue-action-pill {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dj-queue-action-pill:hover {
  background-color: var(--bg-subtle);
}

.dj-queue-mode-banner {
  padding: 10px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dj-banner-mode-info {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.dj-banner-mode-info strong {
  color: var(--text-primary);
  font-weight: 700;
}

.dj-banner-mode-info span {
  color: var(--text-muted);
  font-size: 10px;
}

.dj-banner-switch-btn {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.dj-banner-switch-btn:hover {
  transform: scale(1.03);
}

.dj-queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dj-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dj-queue-item:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-light);
}

.dj-queue-item.active {
  background-color: rgba(234, 67, 53, 0.08);
  border-color: rgba(234, 67, 53, 0.4);
}

.dj-queue-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-subtle);
}

.dj-queue-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dj-queue-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.dj-queue-item-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dj-queue-item-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Soundwave equalizer animation for active spinning track */
.dj-soundwave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.dj-soundwave-bar {
  width: 2px;
  background-color: #EA4335;
  border-radius: 1px;
  animation: soundwaveBounce 1s infinite ease-in-out;
}

.dj-soundwave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.dj-soundwave-bar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.dj-soundwave-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.dj-soundwave-bar:nth-child(4) { height: 14px; animation-delay: 0.4s; }

@keyframes soundwaveBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Mini Cue Button on Alternative & Recommendation Cards */
.alt-dj-cue-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alt-dj-cue-btn:hover {
  background-color: #EA4335;
  color: #fff;
  border-color: #EA4335;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .dj-deck-bar {
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 8px 12px;
  }
  .dj-deck-mode-toggle {
    display: none;
  }
  .dj-status-indicator {
    display: none;
  }
}

/* ========================================================================== */
/* PWA INSTALLATION UI & MODAL                                                */
/* ========================================================================== */
.nav-install-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(229, 62, 62, 0.18));
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-install-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(229, 62, 62, 0.28));
  border-color: rgba(212, 175, 55, 0.8);
  transform: translateY(-1px);
}

.install-icon {
  font-size: 14px;
}

.pwa-ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.pwa-ios-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: slideUp 0.25s ease-out;
}

.pwa-ios-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-ios-icon-wrap {
  margin-bottom: 12px;
}

.pwa-ios-icon {
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.pwa-ios-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pwa-ios-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pwa-ios-steps {
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-share-badge, .ios-add-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #007aff;
}

/* ==========================================================================
   RESPONSIVE TOP-NAV HERO LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
  .top-nav {
    grid-template-columns: auto 1fr auto;
    column-gap: 20px;
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 10px 16px;
    height: 60px;
  }

  .brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-controls {
    gap: 8px;
  }

  .favs-btn-text, .recs-btn-text, .install-btn-text {
    display: none;
  }

  .nav-favs-btn, .nav-recs-btn, .nav-install-btn {
    padding: 6px 10px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .search-bar-wrap {
    height: 54px;
    padding: 6px 8px 6px 16px;
  }

  .search-icon {
    font-size: 18px;
    margin-right: 10px;
  }

  .album-input {
    font-size: 15px;
  }

  .album-input::placeholder {
    font-size: 13px;
  }

  .search-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ==========================================================================
   PUBLIC GOOGLE AUTH & FAVORITES MODAL SYSTEM
   ========================================================================== */
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.nav-signin-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.google-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fav-signin-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.fav-signin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fav-signin-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
  z-index: 1;
  animation: slideUp 0.25s ease-out;
}

.fav-signin-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.fav-signin-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fav-signin-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.fav-signin-desc strong {
  color: var(--text-primary);
}

.modal-signin-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.fav-signin-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Toast Notifications */
.vinyl-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 10000;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.25s ease-out;
  pointer-events: none;
}

.vinyl-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VINYL SOMMELIER / CRATE DIGGER AI PANEL
   ========================================================================== */
.sommelier-bar {
  margin: 10px auto 0;
  width: 100%;
  max-width: 860px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .sommelier-bar {
  background: rgba(26, 26, 32, 0.7);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.sommelier-split-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 800px) {
  .sommelier-split-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.sommelier-left-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sommelier-right-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sommelier-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sommelier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.sommelier-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.vibe-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vibe-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.vibe-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.vibe-pill:active {
  transform: scale(0.97);
}

.sommelier-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sommelier-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.sommelier-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.sommelier-input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.sommelier-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #111;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.sommelier-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.sommelier-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Hero Sommelier Card */
.hero-sommelier-card {
  margin-top: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

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

.sommelier-card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d4af37;
}

.sommelier-track-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.sommelier-card-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
}

.sommelier-vibe-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-style: italic;
  color: #d4af37;
}

