/* ==========================================================================
   PlayX Auto Added Songs - Admin Song Importer Styles (Ultra-Modern v2.5)
   Signature PlayX Dark Glassmorphic Theme with Gold & Neon Accents
   ========================================================================== */

:root {
  --importer-bg: #0b0714;
  --importer-card-bg: rgba(22, 15, 34, 0.88);
  --importer-surface: rgba(30, 21, 48, 0.75);
  --importer-surface-hover: rgba(45, 32, 70, 0.95);
  --importer-surface-active: rgba(58, 42, 90, 0.98);
  --importer-border: rgba(255, 184, 0, 0.28);
  --importer-border-subtle: rgba(255, 255, 255, 0.09);
  --importer-accent: #ffb800;
  --importer-accent-gradient: linear-gradient(135deg, #ffb800 0%, #f59e0b 50%, #d97706 100%);
  --importer-accent-glow: rgba(255, 184, 0, 0.38);
  --importer-accent-glow-strong: rgba(255, 184, 0, 0.55);
  --importer-text: #f8fafc;
  --importer-text-main: #f8fafc;
  --importer-text-muted: #94a3b8;
  --importer-text-dim: #64748b;
  --importer-danger: #ef4444;
  --importer-danger-bg: rgba(239, 68, 68, 0.16);
  --importer-success: #10b981;
  --importer-success-bg: rgba(16, 185, 129, 0.16);
  --importer-warning: #f59e0b;
  --importer-warning-bg: rgba(245, 158, 11, 0.16);
  --importer-cyan: #38bdf8;
  --importer-cyan-bg: rgba(56, 189, 248, 0.15);
  --importer-radius-xl: 26px;
  --importer-radius-lg: 18px;
  --importer-radius-md: 14px;
  --importer-radius-sm: 10px;
}

[data-theme="light"] {
  --importer-bg: #f8fafc;
  --importer-card-bg: rgba(255, 255, 255, 0.96);
  --importer-surface: rgba(241, 245, 249, 0.92);
  --importer-surface-hover: rgba(226, 232, 240, 0.98);
  --importer-surface-active: #cbd5e1;
  --importer-border: rgba(217, 119, 6, 0.32);
  --importer-border-subtle: rgba(0, 0, 0, 0.08);
  --importer-accent: #d97706;
  --importer-accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --importer-accent-glow: rgba(217, 119, 6, 0.25);
  --importer-accent-glow-strong: rgba(217, 119, 6, 0.45);
  --importer-text: #0f172a;
  --importer-text-main: #0f172a;
  --importer-text-muted: #64748b;
  --importer-text-dim: #94a3b8;
  --importer-danger-bg: rgba(239, 68, 68, 0.1);
  --importer-success-bg: rgba(16, 185, 129, 0.1);
  --importer-warning-bg: rgba(245, 158, 11, 0.1);
  --importer-cyan-bg: rgba(2, 132, 199, 0.1);
}

/* ==========================================================================
   Modal Overlay & Backdrop Blur
   ========================================================================== */
.song-importer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 1, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  overflow-y: auto;
}

.song-importer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Modal Window Box
   ========================================================================== */
.song-importer-modal {
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--importer-card-bg);
  border: 1.5px solid var(--importer-border);
  border-radius: var(--importer-radius-xl);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.75), 
    0 0 50px var(--importer-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--importer-text);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.song-importer-overlay.active .song-importer-modal {
  transform: translateY(0) scale(1);
}

/* Ambient Ambient Top Lighting */
.song-importer-modal::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 15%;
  right: 15%;
  height: 160px;
  background: radial-gradient(ellipse at center, var(--importer-accent-glow-strong) 0%, transparent 72%);
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.importer-header {
  padding: 1.35rem 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--importer-border-subtle);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 2;
  gap: 1rem;
}

.importer-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.importer-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--importer-radius-md);
  background: linear-gradient(135deg, rgba(255, 0, 102, 0.25), rgba(255, 184, 0, 0.25));
  border: 1.5px solid var(--importer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 18px var(--importer-accent-glow);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.importer-icon-badge:hover {
  transform: rotate(-6deg) scale(1.06);
}

.importer-header-text h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--importer-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}



.importer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.importer-close-btn {
  background: var(--importer-surface);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.importer-close-btn:hover {
  background: var(--importer-danger-bg);
  border-color: var(--importer-danger);
  color: var(--importer-danger);
  transform: rotate(90deg) scale(1.08);
}

/* ==========================================================================
   Sync Status Bar (Clean Glass Pill Design)
   ========================================================================== */
.importer-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.15rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-md);
  font-size: 0.85rem;
  gap: 0.85rem;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .importer-sync-bar {
  background: rgba(255, 255, 255, 0.8);
}

.importer-sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--importer-text-main);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.pulse-dot.green { background: #10b981; color: #10b981; }
.pulse-dot.cyan { background: #38bdf8; color: #38bdf8; }
.pulse-dot.amber { background: #f59e0b; color: #f59e0b; }
.pulse-dot.red { background: #ef4444; color: #ef4444; }

.importer-sync-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.importer-mini-btn {
  background: var(--importer-surface);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text-main);
  border-radius: var(--importer-radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.importer-mini-btn:hover {
  background: var(--importer-surface-hover);
  border-color: var(--importer-border);
  color: var(--importer-accent);
  transform: translateY(-1px);
}

.importer-mini-btn.primary {
  background: var(--importer-success);
  color: #fff;
  border-color: var(--importer-success);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.importer-mini-btn.primary:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.importer-mini-btn.danger {
  background: var(--importer-danger-bg);
  color: var(--importer-danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.importer-mini-btn.danger:hover {
  background: var(--importer-danger);
  color: #fff;
}

/* ==========================================================================
   Collapsible Token Drawer
   ========================================================================== */
.importer-token-drawer {
  background: var(--importer-surface);
  border: 1px solid var(--importer-border);
  border-radius: var(--importer-radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--importer-text);
}

.token-drawer-desc {
  font-size: 0.82rem;
  color: var(--importer-text-muted);
  line-height: 1.5;
  margin: 0;
}

.token-input-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.token-input-wrap {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.token-input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 0.95rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-sm);
  color: var(--importer-text);
  font-family: monospace;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .token-input {
  background: #ffffff;
}

.token-input:focus {
  border-color: var(--importer-cyan);
  box-shadow: 0 0 14px var(--importer-cyan-bg);
}

.token-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.token-input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 0.95rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-sm);
  color: var(--importer-text);
  font-family: monospace;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.token-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--importer-text-muted, #94a3b8);
  cursor: pointer;
  border-radius: 6px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.token-eye-btn:hover,
.token-eye-btn:focus,
.token-eye-btn:focus-visible,
.token-eye-btn:active {
  color: var(--importer-cyan, #38bdf8);
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.token-eye-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.token-eye-btn .eye-icon-svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
  transition: stroke 0.2s ease;
}

/* ==========================================================================
   Modal Body Viewport
   ========================================================================== */
.importer-body {
  padding: 1.5rem 1.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-height: calc(92vh - 120px);
}

/* ==========================================================================
   Alert / Toast Banner
   ========================================================================== */
.importer-banner {
  padding: 0.85rem 1.25rem;
  border-radius: var(--importer-radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.45;
  animation: slideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.importer-banner.info {
  background: var(--importer-cyan-bg);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--importer-cyan);
}

.importer-banner.warning {
  background: var(--importer-warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--importer-warning);
}

.importer-banner.danger {
  background: var(--importer-danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ff6b6b;
}

/* ==========================================================================
   Unified All-in-One Search Bar Box (Redesigned)
   ========================================================================== */
.importer-input-card {
  background: var(--importer-surface);
  border: 1.5px solid var(--importer-border);
  border-radius: var(--importer-radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.importer-input-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.importer-input-label {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--importer-text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}


/* Master Integrated Search Bar */
.importer-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-md);
  padding: 0.45rem 0.55rem 0.45rem 1.15rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

[data-theme="light"] .importer-search-bar {
  background: #ffffff;
}

.importer-search-bar:focus-within {
  border-color: var(--importer-accent);
  box-shadow: 0 0 22px var(--importer-accent-glow);
  background: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .importer-search-bar:focus-within {
  background: #ffffff;
}

.search-bar-icon-lead {
  font-size: 1.35rem;
  color: #ff0000;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.importer-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--importer-text);
  font-size: 0.98rem;
  font-family: inherit;
  padding: 0.5rem 0;
  min-width: 0;
}

.importer-url-input::placeholder {
  color: var(--importer-text-dim);
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--importer-text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-clear-search:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--importer-text);
}

.btn-paste-chip {
  padding: 0.65rem 1.1rem;
  border-radius: var(--importer-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text);
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-paste-chip:hover {
  background: var(--importer-surface-hover);
  border-color: var(--importer-border);
  color: var(--importer-accent);
  transform: translateY(-1px);
}

.btn-analyze-primary {
  padding: 0.72rem 1.65rem;
  border-radius: var(--importer-radius-sm);
  background: var(--importer-accent-gradient);
  border: none;
  color: #0b0714;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 18px var(--importer-accent-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-analyze-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px var(--importer-accent-glow-strong);
  filter: brightness(1.08);
}

.btn-analyze-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================================================
   Preview Card (Dual-Column Architecture)
   ========================================================================== */
.importer-preview-card {
  background: var(--importer-surface);
  border: 1.5px solid var(--importer-border);
  border-radius: var(--importer-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  animation: cardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardPop {
  from { opacity: 0; transform: scale(0.97) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.preview-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--importer-border-subtle);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.38);
  color: #ff4d4d;
  font-size: 0.82rem;
  font-weight: 750;
}

.category-suggested-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.16);
  border: 1.5px solid var(--importer-border);
  color: var(--importer-accent);
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 0 14px var(--importer-accent-glow);
}

/* Dual Column Content */
.preview-dual-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .preview-dual-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Media Stage */
.preview-media-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.media-thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--importer-radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--importer-border-subtle);
  cursor: pointer;
}

.media-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-thumbnail-box:hover .media-thumbnail-img {
  transform: scale(1.05);
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease;
}

.media-thumbnail-box:hover .media-play-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.play-circle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-thumbnail-box:hover .play-circle-icon {
  transform: scale(1.14);
}

.media-duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Embedded Player Frame */
.preview-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--importer-radius-md);
  overflow: hidden;
  background: #000;
  display: none;
}

.preview-embed-frame.active {
  display: block;
}

.preview-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn-toggle-player {
  background: var(--importer-surface);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text);
  border-radius: var(--importer-radius-sm);
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-toggle-player:hover {
  border-color: var(--importer-border);
  color: var(--importer-accent);
}

/* Right Column: Visual Category Picker & Form */
.preview-details-stage {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.category-picker-label {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--importer-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

@media (max-width: 600px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-sm);
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.category-card-chip:hover {
  background: var(--importer-surface-hover);
  border-color: var(--importer-accent);
  transform: translateY(-2px);
}

.category-card-chip.selected {
  background: rgba(255, 184, 0, 0.16);
  border-color: var(--importer-accent);
  box-shadow: 0 0 18px var(--importer-accent-glow);
  transform: translateY(-2px);
}

.category-card-chip .cat-icon {
  font-size: 1.4rem;
}

.category-card-chip .cat-name {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--importer-text);
  line-height: 1.2;
}

.category-card-chip .cat-hindi {
  font-size: 0.68rem;
  color: var(--importer-text-muted);
}

.category-card-chip.suggested::after {
  content: "✨ BEST";
  position: absolute;
  top: -7px;
  right: -5px;
  background: var(--importer-accent-gradient);
  color: #0b0714;
  font-size: 0.6rem;
  font-weight: 850;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Form Fields */
.preview-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .preview-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

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

.form-field label {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--importer-text-muted);
}

.btn-clean-title {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--importer-cyan);
  font-size: 0.74rem;
  font-weight: 750;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-clean-title:hover {
  background: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.form-field input {
  padding: 0.75rem 0.95rem;
  border-radius: var(--importer-radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .form-field input {
  background: #ffffff;
}

.form-field input:focus {
  border-color: var(--importer-accent);
  box-shadow: 0 0 12px var(--importer-accent-glow);
}

/* Warnings */
.importer-warning-box {
  padding: 0.85rem 1.15rem;
  border-radius: var(--importer-radius-sm);
  background: var(--importer-warning-bg);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: var(--importer-warning);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  line-height: 1.45;
}

.importer-warning-box.danger-dup {
  background: var(--importer-danger-bg);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff6b6b;
}

/* Actions Footer */
.importer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--importer-border-subtle);
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: var(--importer-radius-sm);
  background: var(--importer-surface);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text);
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--importer-surface-hover);
  color: var(--importer-text);
}

.btn-approve {
  padding: 0.8rem 1.95rem;
  border-radius: var(--importer-radius-sm);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-approve:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(16, 185, 129, 0.65);
  filter: brightness(1.08);
}

.btn-approve:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Success Card Screen
   ========================================================================== */
.importer-success-card {
  text-align: center;
  padding: 2.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  animation: scalePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scalePop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35));
  border: 2px solid var(--importer-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
}

.success-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  background: var(--importer-accent-gradient);
  border-radius: 999px;
  color: #0b0714;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--importer-accent-glow);
  transition: all 0.25s ease;
}

.success-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--importer-accent-glow-strong);
}

/* ==========================================================================
   Mobile Sheet Responsiveness (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .song-importer-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .song-importer-modal {
    width: 100%;
    max-height: 94vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .importer-header {
    padding: 1rem 1.15rem;
  }

  .importer-body {
    padding: 1rem 1.15rem 1.5rem;
  }

  .importer-search-bar {
    flex-wrap: wrap;
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .importer-search-bar .importer-search-input {
    width: 100%;
    min-width: 100%;
  }

  .importer-search-bar .btn-paste-chip,
  .importer-search-bar .btn-analyze-primary {
    flex: 1;
    justify-content: center;
  }

  .token-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .token-input-wrap {
    width: 100%;
  }

  .importer-actions {
    position: sticky;
    bottom: -1rem;
    background: var(--importer-card-bg);
    padding: 0.85rem 0;
    z-index: 10;
  }

  .importer-actions .btn-secondary,
  .importer-actions .btn-approve {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .importer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .importer-actions .btn-approve {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  .importer-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
  }

  .importer-tabs-bar {
    padding: 0.25rem;
    gap: 0.35rem;
  }

  .importer-tab-btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .delete-song-row {
    padding: 0.5rem 0.65rem;
    gap: 0.6rem;
  }

  .delete-song-thumb {
    width: 44px;
    height: 32px;
  }

  .delete-song-title {
    font-size: 0.82rem;
  }

  .delete-song-artist {
    font-size: 0.7rem;
  }

  .btn-delete-song-action {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }

  .btn-delete-song-action span:last-child {
    display: none; /* Show trash icon only on compact screens */
  }
}


/* ==========================================================================
   Admin Song Manager & Delete Feature Styles
   ========================================================================== */
.importer-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: var(--importer-radius-md);
  border: 1px solid var(--importer-border-subtle);
  backdrop-filter: blur(8px);
}

.importer-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: var(--importer-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--importer-radius-sm);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.importer-tab-btn:hover {
  color: var(--importer-text);
  background: rgba(255, 255, 255, 0.05);
}

.importer-tab-btn.active {
  background: var(--importer-surface-hover);
  color: var(--importer-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--importer-border);
}

.importer-tab-btn.danger-tab.active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

.importer-tab-btn.edit-tab.active {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.25);
}

.manage-song-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-edit-song-action {
  padding: 0.45rem 0.85rem;
  border-radius: var(--importer-radius-sm);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-edit-song-action:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* Inline Edit Panel */
.inline-edit-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--importer-radius-sm);
  padding: 0.85rem;
  margin-top: -0.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeIn 0.25s ease;
}

[data-theme="light"] .inline-edit-panel {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.inline-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .inline-edit-fields {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.inline-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.inline-edit-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--importer-text-muted);
}

.inline-edit-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-sm);
  color: var(--importer-text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

[data-theme="light"] .inline-edit-input {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

.inline-edit-input:focus {
  border-color: var(--importer-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.inline-edit-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.btn-save-inline-edit {
  padding: 0.45rem 1rem;
  border-radius: var(--importer-radius-sm);
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #34d399;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-save-inline-edit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-cancel-inline-edit {
  padding: 0.45rem 0.85rem;
  border-radius: var(--importer-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-inline-edit:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--importer-text);
}

.target-edit-glow {
  color: #38bdf8 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.importer-delete-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

.delete-category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 0.5rem;
  scrollbar-width: thin;
}

.delete-cat-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--importer-border-subtle);
  color: var(--importer-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.delete-cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--importer-text);
  transform: translateY(-1px);
}

.delete-cat-pill.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.delete-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-md);
  padding: 0.55rem 1rem;
  transition: all 0.2s ease;
}

.delete-search-bar:focus-within {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.delete-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--importer-text);
  font-size: 0.92rem;
  font-family: inherit;
  min-width: 0;
}

.delete-search-input::placeholder {
  color: var(--importer-text-dim);
}

.delete-count-badge {
  font-size: 0.75rem;
  color: var(--importer-text-dim);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
}

.delete-songs-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

.delete-song-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--importer-border-subtle);
  border-radius: var(--importer-radius-sm);
  gap: 0.85rem;
  transition: all 0.25s ease;
}

.delete-song-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.delete-song-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.delete-song-thumb {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.delete-song-info {
  min-width: 0;
  flex: 1;
}

.delete-song-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--importer-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delete-song-artist {
  font-size: 0.76rem;
  color: var(--importer-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.btn-delete-song-action {
  padding: 0.45rem 0.95rem;
  border-radius: var(--importer-radius-sm);
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-delete-song-action:hover:not(:disabled) {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-delete-song-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.delete-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--importer-text-muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
