@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Apple macOS Dark Slate Palette (Solid, High-Contrast, No Glass Blur) */
  --bg-app: #0e1013;
  --bg-sidebar: #15171c;
  --bg-card: #1c1e24;
  --bg-card-hover: #242730;
  --bg-input: #121317;
  --bg-sunken: #101115;

  --border-color: #2b2e38;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Apple System Accents (Cyan default) */
  --accent: #00d2de;
  --accent-hover: #00bed0;
  --accent-subtle: rgba(0, 210, 222, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #94a3b8;

  --success: #30d158;
  --danger: #ff453a;
  --warning: #ffd60a;

  --radius-squircle: 20px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

/* ── App Color Themes ── */
[data-app-color="purple"] {
  --accent: #af52de;
  --accent-hover: #9d40cc;
  --accent-subtle: rgba(175, 82, 222, 0.14);
}

[data-app-color="green"] {
  --accent: #30d158;
  --accent-hover: #28be4c;
  --accent-subtle: rgba(48, 209, 88, 0.14);
}

[data-app-color="pink"] {
  --accent: #ff375f;
  --accent-hover: #e62c52;
  --accent-subtle: rgba(255, 55, 95, 0.14);
}

[data-app-color="gold"] {
  --accent: #ff9f0a;
  --accent-hover: #e68d00;
  --accent-subtle: rgba(255, 159, 10, 0.14);
}

[data-app-color="red"] {
  --accent: #ff453a;
  --accent-hover: #e0382e;
  --accent-subtle: rgba(255, 69, 58, 0.14);
}

[data-app-color="blue"] {
  --accent: #0a84ff;
  --accent-hover: #0071e3;
  --accent-subtle: rgba(10, 132, 255, 0.14);
}

/* ── Light Mode Palette (Apple macOS / iOS Crisp Solid Clean) ── */
[data-theme-mode="light"] {
  --bg-app: #f4f5f8;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f1f3f7;
  --bg-sunken: #f1f3f7;

  --border-color: #e2e6ed;
  --border-subtle: rgba(0, 0, 0, 0.07);

  --text-main: #111827;
  --text-muted: #4b5563;
  --text-dim: #6b7280;

  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-subtle: rgba(2, 132, 199, 0.12);
}

[data-theme-mode="light"] .card,
[data-theme-mode="light"] .top-header,
[data-theme-mode="light"] .playlist-header-card,
[data-theme-mode="light"] .editor-section-card {
  background: #ffffff;
  border: 1px solid #e2e6ed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
}

[data-theme-mode="light"] .editor-section-title {
  color: #111827 !important;
  text-shadow: none !important;
}

[data-theme-mode="light"] .field-group-sm label,
[data-theme-mode="light"] .settings-group label,
[data-theme-mode="light"] .form-label {
  color: #374151 !important;
  font-weight: 600;
}

[data-theme-mode="light"] input,
[data-theme-mode="light"] select,
[data-theme-mode="light"] textarea,
[data-theme-mode="light"] .field-group-sm input,
[data-theme-mode="light"] .field-group-sm select,
[data-theme-mode="light"] .field-group-sm textarea {
  background: #f8fafc;
  color: #111827 !important;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] input:focus,
[data-theme-mode="light"] select:focus,
[data-theme-mode="light"] textarea:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

[data-theme-mode="light"] select option {
  background: #ffffff;
  color: #111827;
}

[data-theme-mode="light"] .nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

[data-theme-mode="light"] .nav-item.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

[data-theme-mode="light"] .nav-item.active i {
  color: #ffffff !important;
}

[data-theme-mode="light"] .tiktok-status-card {
  background: #f1f3f7;
  border-color: #e2e6ed;
  color: #111827 !important;
}

[data-theme-mode="light"] .tiktok-status-card .status-label,
[data-theme-mode="light"] .tiktok-status-card .status-indicator {
  color: #111827 !important;
}

[data-theme-mode="light"] .tiktok-status-card .tiktok-user {
  color: #4b5563 !important;
}

[data-theme-mode="light"] .btn-secondary {
  background: #f1f3f7;
  border-color: #e2e6ed;
  color: #111827;
}

[data-theme-mode="light"] .btn-secondary:hover {
  background: #e5e9f0;
  border-color: #cbd5e1;
  color: #111827;
}

[data-theme-mode="light"] .badge {
  background: #f1f3f7;
  color: #374151;
  border: 1px solid #e2e6ed;
}

[data-theme-mode="light"] .queue-table th {
  background: #f8fafc;
  color: #4b5563;
  border-bottom: 2px solid #e2e6ed;
}

[data-theme-mode="light"] .queue-table td {
  border-bottom: 1px solid #f1f3f7;
  color: #1f2937;
}

[data-theme-mode="light"] .queue-table tr:hover td {
  background: #f8fafc;
}

[data-theme-mode="light"] .modal-card {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e2e6ed;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

[data-theme-mode="light"] .modal-header h3,
[data-theme-mode="light"] .modal-header h3 span {
  color: #111827 !important;
}

[data-theme-mode="light"] .modal-card .search-box input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #111827;
}

[data-theme-mode="light"] .mini-title {
  color: #111827 !important;
}

[data-theme-mode="light"] .mini-artist {
  color: #6b7280 !important;
}

[data-theme-mode="light"] .player-empty-state {
  background: #f1f3f7;
  color: #6b7280;
}

[data-theme-mode="light"] .lyrics-offset-bar {
  background: #f1f3f7;
  border: 1px solid #e2e6ed;
  color: #4b5563;
}

[data-theme-mode="light"] .lyrics-offset-bar .btn-offset {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1f2937;
}

[data-theme-mode="light"] .lyrics-offset-bar .btn-offset:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

[data-theme-mode="light"] .mocha-pill-btn {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme-mode="light"] .mocha-pill-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

[data-theme-mode="light"] .mocha-pill-btn.is-off {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

[data-theme-mode="light"] .dashboard-lyrics-viewport {
  background: #f8fafc;
  border: 1px solid #e2e6ed;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

[data-theme-mode="light"] .lyric-line {
  color: #6b7280;
}

[data-theme-mode="light"] .lyric-line.active,
[data-theme-mode="light"] .lyric-line-wrapper.active .lyric-line {
  color: #111827;
}

[data-theme-mode="light"] .lyric-sub-line {
  color: #0284c7;
}

[data-theme-mode="light"] .lyric-line-wrapper.active .lyric-sub-line {
  color: #0284c7;
}

[data-theme-mode="light"] .lyric-word.passed {
  color: #111827;
}

[data-theme-mode="light"] .lyric-word.active {
  color: #0284c7 !important;
  text-shadow: none !important;
}

[data-theme-mode="light"] .lyric-line-wrapper:hover {
  background: rgba(0, 0, 0, 0.035);
}

[data-theme-mode="light"] .lyric-line-wrapper.active {
  background: rgba(0, 0, 0, 0.045);
}

[data-theme-mode="light"] .quick-nav-tab-btn {
  color: #4b5563;
}

[data-theme-mode="light"] .quick-nav-tab-btn:hover {
  background: #e2e6ed;
  color: #111827;
}

[data-theme-mode="light"] .quick-nav-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}

[data-theme-mode="light"] .skin-card-btn,
[data-theme-mode="light"] .q-theme-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #111827;
}

[data-theme-mode="light"] .skin-card-btn:hover,
[data-theme-mode="light"] .q-theme-btn:hover {
  background: #f1f3f7;
}

/* ── Global Modern Premium Scrollbar System (macOS / Apple HIG Style) ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

[data-theme-mode="light"] * {
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

/* WebKit (Chrome, Edge, Safari, Electron) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Hide all browser arrow buttons completely */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Transparent gutter track */
::-webkit-scrollbar-track {
  background: transparent !important;
}

/* Sleek pill thumb */
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Light Mode Scrollbars */
[data-theme-mode="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
}

[data-theme-mode="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.45);
}

[data-theme-mode="light"] ::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
}

/* ── App Layout ── */
.app-layout {
  display: flex;
  height: calc(100vh - 72px);
  width: 100vw;
  overflow: hidden;
}

/* ── Sidebar (Collapsible on narrow windows) ── */
.sidebar {
  width: 240px;
  height: 100%;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 100;
  overflow: hidden;
  will-change: width;
}

.sidebar.collapsed {
  width: 68px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-item span:not(.badge),
.sidebar.collapsed .nav-item .badge,
.sidebar.collapsed .btn-pin-tab,
.sidebar.collapsed .sidebar-footer .tiktok-meta,
.sidebar.collapsed .tiktok-status-card .status-label,
.sidebar.collapsed .tiktok-status-card .tiktok-user,
.sidebar.collapsed .btn-sidebar-collapse-bottom .collapse-label {
  opacity: 0;
  visibility: hidden;
  width: 0;
  overflow: hidden;
  display: none !important;
  pointer-events: none;
}

.sidebar.collapsed .nav-section-title {
  opacity: 0;
  visibility: hidden;
  height: 6px;
  margin: 3px 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed .tiktok-status-card {
  padding: 8px 4px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 38px !important;
}

.sidebar.collapsed .tiktok-status-card .status-indicator {
  margin: 0 !important;
  justify-content: center !important;
}

.sidebar.collapsed .brand {
  padding: 0 18px !important;
  justify-content: flex-start !important;
}

.sidebar.collapsed .brand-left {
  justify-content: center !important;
  margin: 0 !important;
}

.sidebar.collapsed .nav-item {
  justify-content: center !important;
  padding: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
}

.sidebar.collapsed .nav-item i {
  font-size: 15px;
  margin: 0;
  width: 20px;
  text-align: center;
}

.sidebar.collapsed .sidebar-footer {
  padding: 10px 8px;
  justify-content: center;
}

.brand {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  box-sizing: border-box;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #0071e3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-menu {
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nav-section-title {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 6px 8px 2px;
  margin-top: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0.7;
  height: 18px;
  transition: opacity 0.15s ease, height 0.2s ease;
}

.nav-section-title:first-child {
  margin-top: 0;
  padding-top: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-item i {
  font-size: 13.5px;
  width: 18px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.nav-item:hover .btn-pin-tab {
  opacity: 1;
  pointer-events: auto;
}

.nav-item.active {
  background: var(--accent);
  color: #000000;
  font-weight: 700;
}

.nav-item.active i {
  color: #000000 !important;
}

[data-theme-mode="dark"] .nav-item.active {
  color: #000000;
}

[data-theme-mode="dark"] .nav-item.active i {
  color: #000000 !important;
}

[data-theme-mode="light"] .nav-item.active i {
  color: #000000 !important;
}

.btn-pin-tab {
  margin-left: auto;
  opacity: 0;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-item:hover .btn-pin-tab {
  opacity: 0.85;
}

.btn-pin-tab:hover {
  opacity: 1 !important;
  transform: scale(1.15);
  color: var(--warning, #ffd60a);
  background: rgba(255, 214, 10, 0.2);
  border-color: rgba(255, 214, 10, 0.4);
}

.btn-pin-tab.pinned {
  opacity: 1 !important;
  color: var(--warning, #ffd60a);
  background: rgba(255, 214, 10, 0.15);
  border-color: rgba(255, 214, 10, 0.3);
}

.nav-item .badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  margin-left: 4px;
}

.btn-sidebar-collapse-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-collapse-bottom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--accent);
}

.sidebar.collapsed .btn-sidebar-collapse-bottom {
  padding: 8px 0;
  justify-content: center;
}

.sidebar.collapsed .btn-sidebar-collapse-bottom .collapse-label {
  display: none;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tiktok-status-card {
  background: var(--bg-sunken);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: #ffffff !important;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff !important;
}

.status-label {
  color: #ffffff !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
}

.tiktok-user {
  font-size: 11px;
  color: #d1d5db !important;
  font-family: var(--font-mono);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Main Content Area ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-app);
}

.tab-content-wrapper {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  display: block;
}

.tab-pane {
  display: none !important;
  padding: 24px;
}

.tab-pane.active {
  display: block !important;
  animation: fadeInTab 0.15s ease-out;
}

#tab-overlay-settings.tab-pane.active {
  display: flex !important;
  flex-direction: column;
  padding: 20px 24px;
  height: 100%;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Top Header Toolbar ── */
.top-header {
  min-height: 56px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  z-index: 10;
}

.tiktok-connect-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 440px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.input-with-icon input {
  padding-left: 32px !important;
}

input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
}

textarea {
  resize: vertical !important;
  max-width: 100% !important;
  min-height: 56px;
  line-height: 1.4;
}

select option {
  background: #18181b;
  color: #f4f4f5;
}

input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ── Buttons (Apple Style) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #27272b;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #323238;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: #e03b30;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}

/* ── Tab Views Wrapper ── */
.tab-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  min-width: 0;
  position: relative;
}

.tab-content-wrapper>.tab-pane {
  display: none !important;
}

.tab-content-wrapper>.tab-pane.active {
  display: block !important;
  animation: tabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tab-content-wrapper>#tab-overlay-settings {
  display: none !important;
}

.tab-content-wrapper>#tab-overlay-settings.active {
  display: flex !important;
  flex-direction: column;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.view-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.view-header .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

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

.card-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Search Bar Card ── */
.search-box {
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  min-width: 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
  flex-wrap: wrap;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.result-thumb {
  width: 44px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  min-width: 140px;
}

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

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

/* ── Table Queue (Apple Style) ── */
.queue-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 480px;
}

.queue-table th {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.queue-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-main);
}

.queue-table tr:hover td {
  background: var(--bg-card-hover);
}

.track-meta-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-thumb-mini {
  width: 38px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.track-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

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

.requester-badge-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

/* ── Now Playing Table Row & Animated Equalizer ── */
.queue-row-now-playing {
  background: rgba(0, 242, 254, 0.07) !important;
  border-left: 3px solid var(--accent, #00f2fe) !important;
  transition: background 0.15s ease;
}

.queue-row-now-playing:hover {
  background: rgba(0, 242, 254, 0.12) !important;
}

.now-playing-eq-icon {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 24px;
  height: 18px;
  padding: 1px 0;
  margin: 0 auto;
}

.now-playing-eq-icon span {
  width: 3px;
  background: var(--accent, #00f2fe);
  border-radius: 2px;
  height: 4px;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.now-playing-eq-icon .eq-b1 {
  animation-delay: 0.1s;
  height: 12px;
}

.now-playing-eq-icon .eq-b2 {
  animation-delay: 0.35s;
  height: 16px;
}

.now-playing-eq-icon .eq-b3 {
  animation-delay: 0.2s;
  height: 9px;
}

@keyframes eqBounce {
  0% {
    height: 3px;
  }

  50% {
    height: 16px;
  }

  100% {
    height: 7px;
  }
}

.badge-now-playing-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent, #00f2fe);
  border: 1px solid rgba(0, 242, 254, 0.35);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.badge-now-playing-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #00f2fe);
  box-shadow: 0 0 6px var(--accent, #00f2fe);
  animation: pulseLiveDot 1.4s infinite alternate;
}

@keyframes pulseLiveDot {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ── Player Section ── */
.player-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.player-grid>.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  margin-bottom: 0;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 250px;
  background: #090a0d;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
}

.player-ambient-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.4) saturate(1.4);
  opacity: 0.75;
  z-index: 0;
  transition: background-image 0.6s ease, opacity 0.4s ease;
  pointer-events: none;
}

.player-empty-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #12141a;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

.ambient-pulse-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.music-note-anim {
  font-size: 22px;
  color: var(--accent);
  animation: floatNote 2.5s ease-in-out infinite alternate;
}

@keyframes floatNote {
  from {
    transform: translateY(2px) rotate(-4deg);
  }

  to {
    transform: translateY(-4px) rotate(4deg);
  }
}

.player-empty-state .empty-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.player-empty-state .empty-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  max-width: 320px;
  line-height: 1.4;
}

.player-empty-state .empty-sub code {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-primary, #00f2fe);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ── Vinyl Audio Visualizer Overlay ── */
.player-visualizer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(20, 20, 30, 0.85), rgba(8, 8, 12, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.vinyl-record-disc {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #111;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.08);
  border: 3px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vinyl-record-disc.is-playing {
  animation: rotateVinyl 6s linear infinite;
}

@keyframes rotateVinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.vinyl-grooves {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, 0.85), inset 0 0 0 13px rgba(255, 255, 255, 0.05), inset 0 0 0 18px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.vinyl-center-art {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.vinyl-center-pin {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  z-index: 3;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

.player-spectrum-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
}

.player-spectrum-bars .v-bar {
  width: 3.5px;
  background: linear-gradient(to top, var(--accent, #00f2fe), #7928ca);
  border-radius: 3px;
  height: 5px;
  transition: height 0.1s ease;
}

.video-container.is-playing .player-spectrum-bars .v-bar {
  animation: spectrumBounce 0.8s ease-in-out infinite alternate;
}

.player-spectrum-bars .v-bar.b1 {
  animation-delay: 0.1s;
}

.player-spectrum-bars .v-bar.b2 {
  animation-delay: 0.35s;
}

.player-spectrum-bars .v-bar.b3 {
  animation-delay: 0.15s;
}

.player-spectrum-bars .v-bar.b4 {
  animation-delay: 0.5s;
}

.player-spectrum-bars .v-bar.b5 {
  animation-delay: 0.25s;
}

.player-spectrum-bars .v-bar.b6 {
  animation-delay: 0.6s;
}

.player-spectrum-bars .v-bar.b7 {
  animation-delay: 0.2s;
}

.player-spectrum-bars .v-bar.b8 {
  animation-delay: 0.45s;
}

.player-spectrum-bars .v-bar.b9 {
  animation-delay: 0.1s;
}

.player-spectrum-bars .v-bar.b10 {
  animation-delay: 0.3s;
}

@keyframes spectrumBounce {
  0% {
    height: 4px;
  }

  50% {
    height: 22px;
  }

  100% {
    height: 10px;
  }
}

.visualizer-track-meta {
  text-align: center;
  max-width: 90%;
}

.visualizer-track-meta .vis-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.visualizer-track-meta .vis-artist {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.visualizer-track-meta .vis-requester {
  font-size: 10px;
  color: var(--accent, #00f2fe);
  margin-top: 2px;
  display: inline-block;
  padding: 1px 8px;
  background: rgba(0, 242, 254, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

/* ── Overlay Floating Controls ── */
.video-overlay-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-container:hover .video-overlay-actions {
  opacity: 1;
}

.btn-video-action {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(14, 16, 19, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-video-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-video-action.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-video-action.active:hover {
  background: var(--accent-hover);
}

.player-controls-bottom {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

[data-theme-mode="light"] .player-controls-bottom {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.seek-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.seek-slider {
  flex: 1;
  height: 5px;
  accent-color: var(--accent);
  cursor: pointer;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  border: none !important;
  transition: height 0.15s ease;
}

.seek-slider:hover {
  height: 7px;
}

.playback-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.current-track-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 220px;
}

.mini-art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #202024;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.mini-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mini-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

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

.mini-requester-badge {
  font-size: 9.5px;
  color: var(--accent);
  background: rgba(0, 242, 254, 0.12);
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.tag-helper-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 242, 254, 0.15) !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  color: #e0f2fe !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: all;
}

.tag-helper-chip:hover {
  background: rgba(0, 242, 254, 0.3) !important;
  border-color: #00f2fe !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.25);
}

.playback-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.playback-buttons .btn-circle {
  width: 36px;
  height: 36px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.playback-buttons .btn-circle:hover {
  transform: scale(1.08);
}

.playback-buttons .btn-play-main {
  width: 44px;
  height: 44px;
  font-size: 16px;
  background: var(--accent);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

.playback-buttons .btn-play-main:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.4);
}

.volume-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-squircle);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.volume-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
}

[data-theme-mode="light"] .volume-control {
  background: rgba(0, 0, 0, 0.03);
  border-color: #e2e8f0;
}

[data-theme-mode="light"] .volume-control input[type="range"] {
  background: #cbd5e1;
}

.volume-control input[type="range"]:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #00f2fe);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent, #00f2fe);
  border: none !important;
  transition: transform 0.12s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* ── Player Extra Section (Up Next & Quick Streamer Tools) ── */
.player-extra-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  flex: 1;
  min-height: 140px;
}

[data-theme-mode="light"] .player-extra-section {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.player-extra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-extra-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.player-quick-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-up-next-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 180px;
  flex: 1;
  scrollbar-width: thin;
}

.player-up-next-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.player-up-next-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.player-up-next-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.player-up-next-thumb {
  width: 36px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.player-up-next-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.player-up-next-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-up-next-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.player-up-next-sub .badge {
  font-size: 9.5px;
  padding: 1px 5px;
}

.player-up-next-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.player-up-next-empty {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ── Lyrics Studio (Apple HIG Studio View) ── */
.lyrics-offset-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.lyrics-offset-bar .btn-offset {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 11px;
  transition: all 0.15s ease;
}

.lyrics-offset-bar .btn-offset:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text-main);
}

.dashboard-lyrics-viewport {
  flex: 1;
  min-height: 420px;
  height: 100%;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

.dashboard-lyrics-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 90px;
}

.lyric-line-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 2px 0;
  background: transparent;
}

.lyric-line-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lyric-line-wrapper.active {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.012);
  transform-origin: left center;
}

.lyric-line {
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease, font-size 0.2s ease;
}

.lyric-line.active,
.lyric-line-wrapper.active .lyric-line {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.lyric-sub-line {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.8;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.lyric-line-wrapper.active .lyric-sub-line {
  font-size: 14.5px;
  font-weight: 600;
  opacity: 1;
  color: var(--accent);
}

.lyric-word {
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.lyric-word.active {
  color: var(--accent) !important;
  font-weight: 800;
  text-shadow: none;
  transform: scale(1.03);
}

.lyric-word.passed {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: none;
}

[data-theme-mode="light"] .lyric-word.passed {
  color: #111827;
}

.dashboard-lyrics-container.words-off .lyric-word {
  color: inherit !important;
  text-shadow: none !important;
  transform: none !important;
  font-weight: inherit !important;
}

/* Mochaconsole-style Live Lyrics Action Pills */
.mocha-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.32);
  color: #30d158;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.mocha-pill-btn:hover {
  background: rgba(48, 209, 88, 0.2);
  border-color: #30d158;
  color: #30d158;
  transform: translateY(-1px);
}

.mocha-pill-btn .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: none;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mocha-pill-btn.is-off {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
}

.mocha-pill-btn.is-off:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.mocha-pill-btn.is-off .status-dot {
  background-color: var(--text-dim);
  box-shadow: none;
}

[data-theme-mode="light"] .mocha-pill-btn {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  color: #059669;
}

[data-theme-mode="light"] .mocha-pill-btn.is-off {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

/* Pop-out Player Button */
.btn-popout-player {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}

.video-container:hover .btn-popout-player {
  opacity: 1;
}

.btn-popout-player:hover {
  background: rgba(0, 242, 254, 0.35);
  color: #ffffff;
  transform: scale(1.1);
}

/* ── Modal (Apple Sheet Style) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

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

.modal-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
  color: #f4f4f5;
}

/* ── Custom Alert & Confirmation Modal (Apple HIG Style) ── */
.modal-confirm-card {
  max-width: 420px;
  text-align: center;
  padding: 28px 24px 22px;
  background: rgba(20, 20, 24, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: modalConfirmPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme-mode="light"] .modal-confirm-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

@keyframes modalConfirmPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-confirm-icon-box {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 69, 58, 0.14);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.25);
  box-shadow: 0 8px 20px rgba(255, 69, 58, 0.15);
}

.modal-confirm-icon-box.icon-warning {
  background: rgba(255, 214, 10, 0.14);
  color: #ffd60a;
  border-color: rgba(255, 214, 10, 0.25);
  box-shadow: 0 8px 20px rgba(255, 214, 10, 0.15);
}

.modal-confirm-icon-box.icon-info {
  background: rgba(0, 242, 254, 0.14);
  color: var(--accent, #00f2fe);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
}

.modal-confirm-icon-box.icon-success {
  background: rgba(48, 209, 88, 0.14);
  color: #30d158;
  border-color: rgba(48, 209, 88, 0.25);
  box-shadow: 0 8px 20px rgba(48, 209, 88, 0.15);
}

.modal-confirm-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

[data-theme-mode="light"] .modal-confirm-title {
  color: #0f172a;
}

.modal-confirm-msg {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 0 8px;
}

[data-theme-mode="light"] .modal-confirm-msg {
  color: #475569;
}

.modal-confirm-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main, #ffffff);
  margin-bottom: 20px;
  outline: none;
  transition: all 0.15s ease;
}

.modal-confirm-input:focus {
  border-color: var(--accent, #00f2fe);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

[data-theme-mode="light"] .modal-confirm-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.modal-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-confirm-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-confirm-actions .btn:active {
  transform: scale(0.97);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.modal-header h3 span {
  color: #ffffff !important;
}

.modal-card .search-box input {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 12px;
}

.modal-card .search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.modal-card .search-results-list {
  color: #f4f4f5;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* ── Badges & Tags ── */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #27272b;
  color: var(--text-muted);
}

.badge-accent {
  background: var(--accent-subtle);
  color: var(--accent);
}

/* ── Overlay Studio Customizer Form ── */
.customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.customizer-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customizer-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── RESPONSIVE MEDIA QUERIES (Multi-Breakpoint Suite for Windowed & Split Modes) ── */

/* 1. Large / Windowed Desktop (Width <= 1260px) */
@media (max-width: 1260px) {
  .header-btn-label {
    display: none !important;
  }

  .header-right {
    gap: 5px;
  }

  .header-right .btn {
    padding: 5px 8px !important;
  }

  #appThemeColorSelect {
    max-width: 110px;
  }

  .player-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-container {
    aspect-ratio: 16 / 9;
    max-height: 420px;
    height: auto;
  }

  .dashboard-lyrics-viewport {
    height: 320px;
  }
}

/* 2. Medium Window / Half-Screen (Width <= 1040px) */
@media (max-width: 1040px) {
  .sidebar {
    width: 68px;
  }

  .brand {
    justify-content: center;
    padding: 0 10px;
  }

  .brand-text,
  .nav-section-title,
  .nav-item span:not(.badge),
  .nav-item .badge,
  .btn-pin-tab,
  .sidebar-footer .tiktok-meta,
  .tiktok-status-card .status-label,
  .tiktok-status-card .tiktok-user,
  .btn-sidebar-collapse-bottom .collapse-label {
    display: none !important;
  }

  .tiktok-status-card {
    padding: 8px 4px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .nav-item {
    justify-content: center;
    padding: 10px 0;
  }

  .nav-item i {
    font-size: 16px;
    margin: 0;
  }

  .tab-content-wrapper {
    padding: 16px;
  }

  .field-grid-2,
  .field-grid-3,
  .field-grid-4 {
    grid-template-columns: 1fr;
  }

  .view-header {
    gap: 8px;
  }
}

/* 3. Compact / Narrow Snapped Window (Width <= 768px) */
@media (max-width: 768px) {
  .top-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .tiktok-connect-bar {
    width: 100%;
    max-width: 100%;
  }

  .tiktok-connect-bar .input-with-icon {
    flex: 1;
  }

  .tiktok-connect-bar .input-with-icon input {
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .tab-content-wrapper {
    padding: 10px 12px;
  }

  .view-header h2 {
    font-size: 16px;
  }

  .view-header .view-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }

  .view-header .view-actions button {
    flex: 1;
  }

  .playback-action-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .current-track-mini {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .volume-control {
    display: none;
  }
}

/* ── MOCHACONSOLE THEME EDITOR STUDIO ── */
.theme-editor-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}

.theme-editor-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-sidebar);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 10px;
  flex-wrap: wrap;
}

.editor-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-pills {
  display: flex;
  background: var(--bg-input);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.editor-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

/* ── Tab 6: Theme Editor Studio (Pro Layout) ── */
#tab-overlay-settings.active,
#tab-themes.active {
  height: calc(100vh - 75px);
  min-height: 600px;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  max-width: 100%;
}

.theme-editor-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.theme-editor-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.editor-pills {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.editor-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.editor-pill-btn:hover {
  color: var(--text-main);
}

.editor-pill-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.theme-editor-columns {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  flex: 1;
  min-height: 0;
  gap: 16px;
  padding: 14px 16px;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.editor-sidebar-controls {
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  flex-shrink: 0 !important;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
  box-sizing: border-box;
}

.editor-sidebar-controls::-webkit-scrollbar {
  width: 5px;
}

.editor-sidebar-controls::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.studio-subpanel {
  width: 100%;
  box-sizing: border-box;
}

.editor-section-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

.editor-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.color-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-swatch-dot:hover {
  transform: scale(1.15);
}

.color-swatch-dot.active {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.quick-theme-cards,
.skin-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.quick-theme-cards::-webkit-scrollbar,
.skin-grid-cards::-webkit-scrollbar {
  width: 5px;
}

.quick-theme-cards::-webkit-scrollbar-thumb,
.skin-grid-cards::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ── SLEEK CLEAN SKIN & PRESET CARDS (NO BROKEN THUMBNAILS) ── */
.skin-grid-cards,
.quick-theme-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.skin-card-btn,
.q-theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.skin-card-btn:hover,
.q-theme-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.skin-card-btn.active,
.q-theme-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

.s-header,
.qt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.s-icon,
.qt-icon {
  font-size: 14px;
  line-height: 1;
}

.s-tag-pill,
.qt-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skin-card-btn.active .s-tag-pill,
.q-theme-btn.active .qt-tag {
  background: rgba(0, 242, 254, 0.18);
  color: var(--accent);
  border-color: rgba(0, 242, 254, 0.35);
}

.s-title,
.qt-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-sub,
.qt-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ── Glow Off Global Utility ── */
.glow-off,
.glow-off *,
body.glow-off *,
.stage-interactive-viewport.glow-off *,
.k-line.glow-off,
.k-line.glow-off * {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.glow-off .mc-word-ghost,
body.glow-off .mc-word-ghost {
  display: none !important;
}

@keyframes pulseStar {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 4px #ffd700);
  }
}

.field-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.field-group-sm {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.field-group-sm label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-group-sm input,
.field-group-sm select {
  font-size: 11.5px;
  padding: 4px 8px;
  height: 28px;
  min-height: 28px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  resize: none;
}

.field-group-sm textarea {
  font-size: 11px;
  padding: 6px 8px;
  height: auto;
  min-height: 56px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  resize: vertical !important;
}

/* ── Universal Sleek Number Input Styling (No Ugly White Spinners) ── */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16' fill='%2394a3b8'%3E%3Cpath d='M6 2l4 4H2zM6 14l-4-4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 22px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="number"]:hover {
  background-color: rgba(255, 255, 255, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16' fill='%2300f2fe'%3E%3Cpath d='M6 2l4 4H2zM6 14l-4-4h8z'/%3E%3C/svg%3E");
  border-color: rgba(0, 242, 254, 0.4);
}

input[type="number"]:focus {
  background-color: rgba(0, 242, 254, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
  outline: none;
}

.stage-preview-container {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  min-height: 400px;
  gap: 8px;
  overflow: hidden;
}

.stage-canvas-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  min-height: 340px;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85);
  margin: 0 auto;
}

.stage-canvas-box.light-mode {
  background: #181c24;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.stage-interactive-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  pointer-events: auto;
  box-sizing: border-box;
  transform-origin: center center !important;
}

.stage-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.draggable-element {
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.2s;
  position: relative;
  transform-origin: center center;
}

.draggable-element:active {
  cursor: grabbing;
}

.draggable-element:hover {
  outline: 1px dashed var(--accent);
}

.draggable-element.is-selected {
  outline: 2px dashed var(--accent) !important;
  outline-offset: 4px !important;
}

/* ── Draggable Rotation Handle ── */
.draggable-rotate-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: crosshair;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #000;
  font-weight: 900;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: background 0.15s, transform 0.15s;
  line-height: 1;
}

.draggable-rotate-handle::before {
  content: '↻';
  font-size: 13px;
  font-weight: 900;
}

.draggable-element:hover .draggable-rotate-handle,
.draggable-element.rotate-active .draggable-rotate-handle,
.draggable-element.is-selected .draggable-rotate-handle {
  display: flex !important;
}

.draggable-rotate-handle:hover {
  background: #fff;
  transform: translateX(-50%) scale(1.2);
}

/* ── Rotation angle indicator pill ── */
.draggable-angle-pill {
  position: absolute;
  top: -28px;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: none;
  pointer-events: none;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.draggable-element:hover .draggable-angle-pill,
.draggable-element.rotate-active .draggable-angle-pill,
.draggable-element.is-selected .draggable-angle-pill {
  display: block !important;
}

/* ── DIAMOND & CIRCLE WORD BADGES (MOCHACONSOLE) ── */
.badge-shape-diamond .k-word.active,
.badge-shape-diamond .k-line.active .k-word,
.badge-shape-diamond .mc-word-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  min-width: 44px;
  border: 1.5px solid #d4af37;
  background: rgba(18, 16, 26, 0.75);
  border-radius: 6px;
  margin: 0 4px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.badge-shape-circle .k-word.active,
.badge-shape-circle .k-line.active .k-word,
.badge-shape-circle .mc-word-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  min-width: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 24, 42, 0.65);
  margin: 0 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.badge-shape-bubble .k-word.active,
.badge-shape-bubble .k-line.active .k-word,
.badge-shape-bubble .mc-word-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  min-width: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(45, 212, 191, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(8, 32, 38, 0.7));
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  margin: 0 4px;
}

@keyframes alertSlideSpring {
  0% {
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
  }

  60% {
    transform: translateY(4px) scale(1.03);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

/* ── ADVANCED WORD HIT IMPACT VISUAL FX ── */
.k-word {
  position: relative;
  display: inline-block;
}

/* 1. Ripple Effect */
.k-word.fx-hit-ripple::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 2px solid var(--word-highlight, #00f2fe);
  box-shadow: 0 0 14px var(--accent-glow, rgba(0, 242, 254, 0.6));
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 1;
  pointer-events: none;
  animation: wordHitRipple 0.55s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

/* 2. NoteHit Diamond Burst */
.k-word.fx-hit-diamond::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 2px solid var(--word-highlight, #ffd700);
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 16px var(--accent-glow, rgba(255, 215, 0, 0.8));
  transform: translate(-50%, -50%) rotate(45deg) scale(0.3);
  opacity: 1;
  pointer-events: none;
  animation: wordHitDiamond 0.6s cubic-bezier(0.15, 0.9, 0.3, 1) forwards;
}

/* 3. Chevron Push FX */
.k-word.fx-hit-chevron::before,
.k-word.fx-hit-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2.5px solid var(--word-highlight, #00f2fe);
  border-right: 2.5px solid var(--word-highlight, #00f2fe);
  pointer-events: none;
  opacity: 1;
}

.k-word.fx-hit-chevron::before {
  left: -8px;
  transform: translateY(-50%) rotate(-135deg);
  animation: wordHitChevronLeft 0.5s ease-out forwards;
}

.k-word.fx-hit-chevron::after {
  right: -8px;
  transform: translateY(-50%) rotate(45deg);
  animation: wordHitChevronRight 0.5s ease-out forwards;
}

/* 4. CrossFlash Star Rays */
.k-word.fx-hit-cross::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, var(--word-highlight, #fff) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 55% 45%, 100% 50%, 55% 55%, 50% 100%, 45% 55%, 0% 50%, 45% 45%);
  box-shadow: 0 0 24px var(--accent-glow, rgba(255, 255, 255, 0.9));
  transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  opacity: 1;
  pointer-events: none;
  animation: wordHitCross 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

/* 5. SlashCut Light Blade */
.k-word.fx-hit-slash::after {
  content: '';
  position: absolute;
  left: -20%;
  top: 50%;
  width: 140%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, var(--word-highlight, #00f2fe), transparent);
  box-shadow: 0 0 16px var(--word-highlight, #00f2fe);
  transform: translateY(-50%) rotate(-25deg) scaleX(0);
  pointer-events: none;
  animation: wordHitSlash 0.45s ease-out forwards;
}

/* 6. ShockSquare 14° Rotated Flash */
.k-word.fx-hit-square::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border: 2px solid var(--word-highlight, #ff007a);
  box-shadow: 0 0 18px var(--accent-glow, rgba(255, 0, 122, 0.8));
  transform: translate(-50%, -50%) rotate(14deg) scale(0.2);
  opacity: 1;
  pointer-events: none;
  animation: wordHitSquare 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* ── LINE ENTER & EXIT ANIMATIONS ── */
.anim-enter-fade {
  animation: mcLineFadeIn 0.5s ease-out forwards;
}

.anim-enter-slide {
  animation: mcLineSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-enter-pop {
  animation: mcLinePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.anim-enter-focus {
  animation: mcLineFocusIn 0.65s ease-out forwards;
}

.anim-enter-flip {
  animation: mcLineFlipIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.anim-enter-converge {
  animation: mcLineConvergeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-exit-fade {
  animation: mcLineFadeOut 0.4s ease-in forwards;
}

.anim-exit-lift {
  animation: mcLineLiftOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-exit-sink {
  animation: mcLineSinkOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-exit-disperse {
  animation: mcLineDisperseOut 0.5s ease-in forwards;
}

/* ── ADVANCED MULTI-TIER LYRICS LAYOUT & TYPOGRAPHY ENGINE ── */
.k-line {
  position: relative;
  width: 100%;
  display: block;
}

.k-line.layout-spatial {
  position: relative;
  width: 100%;
  min-height: 140px;
}

.mc-word-segment {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: pre;
  transform-origin: 50% 72%;
}

.k-line.layout-spatial .mc-word-segment {
  position: absolute;
  left: var(--mc-word-x, 50%);
  top: var(--mc-word-y, 50%);
  transform: translate(-50%, -50%);
}

.mc-word-layout {
  position: relative;
  display: inline-block;
  white-space: pre;
  transform-origin: 50% 72%;
}

.mc-word-motion {
  position: relative;
  display: inline-grid;
  white-space: pre;
  transform-origin: 50% 82%;
  isolation: isolate;
}

.mc-word-ghost,
.mc-word-base {
  grid-area: 1 / 1;
  position: relative;
  display: inline-block;
  white-space: pre;
}

.mc-word-ghost {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  color: var(--accent-primary, #00f2fe);
  text-shadow: 0 0 16px var(--accent-glow, rgba(0, 242, 254, 0.8));
  mix-blend-mode: screen;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mc-word-segment.active .mc-word-ghost {
  opacity: 1;
  transform: scale(1.08);
}

.mc-word-base {
  z-index: 2;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* KTV Gradient Sweep Fill */
.effect-sweep .mc-word-segment.active .mc-word-base {
  color: transparent;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff var(--mc-word-progress, 100%), var(--word-highlight, #00f2fe) var(--mc-word-progress, 100%), var(--word-highlight, #00f2fe) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 8px var(--accent-glow, rgba(0, 242, 254, 0.6)));
}

/* 3D Bounce Pop */
.effect-pop .mc-word-segment.active .mc-word-motion {
  animation: mcWordPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 3D Flip */
.effect-flip .mc-word-segment.active .mc-word-motion {
  animation: mcWordFlip 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* Cinematic Focus */
.effect-focus .mc-word-segment.active .mc-word-motion {
  animation: mcWordFocus 0.4s ease-out forwards;
}

/* Tilt Sway */
.effect-sway .mc-word-segment.active .mc-word-motion {
  animation: mcWordSway 0.5s ease-in-out forwards;
}

/* ── HOLLOW SHELL & SERIF STYLES (MOCHACONSOLE) ── */
.layout-hollow .mc-word-segment.is-hollow-eligible .mc-word-base,
.arrange-hollow .mc-word-segment.is-hollow-eligible .mc-word-base {
  opacity: 0 !important;
  background-image: none !important;
  -webkit-text-fill-color: transparent !important;
}

.layout-hollow .mc-word-segment.is-hollow-eligible .mc-word-hollow-main,
.arrange-hollow .mc-word-segment.is-hollow-eligible .mc-word-hollow-main {
  opacity: 1 !important;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.mc-shell-s .mc-word-hollow-main {
  filter: url(#mcLyricShellSPrimary);
}

.mc-shell-m .mc-word-hollow-main {
  filter: url(#mcLyricShellMPrimary);
}

.mc-shell-l .mc-word-hollow-main {
  filter: url(#mcLyricShellLPrimary);
}

/* ── KEYFRAMES FOR WORD HIT EFFECTS & MOTIONS ── */
@keyframes wordHitRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

@keyframes wordHitDiamond {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.3);
    opacity: 0.95;
  }

  100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(2.3);
    opacity: 0;
  }
}

@keyframes wordHitChevronLeft {
  0% {
    transform: translateY(-50%) rotate(-135deg) scaleX(0.6);
    opacity: 0.95;
  }

  100% {
    transform: translate(-14px, -50%) rotate(-135deg) scaleX(1.35);
    opacity: 0;
  }
}

@keyframes wordHitChevronRight {
  0% {
    transform: translateY(-50%) rotate(45deg) scaleX(0.6);
    opacity: 0.95;
  }

  100% {
    transform: translate(14px, -50%) rotate(45deg) scaleX(1.35);
    opacity: 0;
  }
}

@keyframes wordHitCross {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    opacity: 0.95;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.4) rotate(45deg);
    opacity: 0;
  }
}

@keyframes wordHitSlash {
  0% {
    transform: translateY(-50%) rotate(-25deg) scaleX(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-50%) rotate(-25deg) scaleX(1.3);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) rotate(-25deg) scaleX(1.8);
    opacity: 0;
  }
}

@keyframes wordHitSquare {
  0% {
    transform: translate(-50%, -50%) rotate(14deg) scale(0.3);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) rotate(14deg) scale(2.4);
    opacity: 0;
  }
}

@keyframes mcLineFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mcLineSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mcLinePopIn {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }

  70% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mcLineFocusIn {
  from {
    opacity: 0.15;
    filter: blur(12px);
  }

  to {
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes mcLineFlipIn {
  from {
    opacity: 0;
    transform: perspective(700px) rotateX(-72deg) translateY(0.28em);
  }

  to {
    opacity: 1;
    transform: perspective(700px) rotateX(0deg) translateY(0);
  }
}

@keyframes mcLineConvergeIn {
  from {
    opacity: 0;
    letter-spacing: 12px;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    letter-spacing: inherit;
    filter: blur(0);
  }
}

@keyframes mcLineFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mcLineLiftOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-24px);
  }
}

@keyframes mcLineSinkOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes mcLineDisperseOut {
  from {
    opacity: 1;
    letter-spacing: inherit;
    filter: blur(0);
  }

  to {
    opacity: 0;
    letter-spacing: 16px;
    filter: blur(8px);
  }
}

@keyframes mcWordPop {
  0% {
    transform: scale(0.85);
  }

  60% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1.05);
  }
}

@keyframes mcWordFlip {
  0% {
    transform: perspective(600px) rotateX(-70deg) translateY(0.2em);
  }

  100% {
    transform: perspective(600px) rotateX(0deg) translateY(0);
  }
}

@keyframes mcWordFocus {
  0% {
    filter: blur(8px);
    opacity: 0.3;
  }

  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes mcWordSway {
  0% {
    transform: rotate(0deg);
  }

  40% {
    transform: rotate(-6deg) scale(1.08);
  }

  80% {
    transform: rotate(4deg) scale(1.04);
  }

  100% {
    transform: rotate(0deg) scale(1.02);
  }
}

/* ── PENGATURAN (SETTINGS) PAGE STYLES ── */
.settings-luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.settings-list-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row.has-pills {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.settings-row.has-subtext {
  align-items: flex-start;
}

.settings-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.settings-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
  max-width: 620px;
  line-height: 1.4;
}

/* External Integrations Luxury Cards */
.integration-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.integration-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.integration-card-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}

.integration-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.integration-subpanel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.integration-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

@media (max-width: 768px) {
  .integration-input-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.cmd-highlight {
  color: #38ef7d;
  font-family: var(--font-mono);
  font-weight: 700;
}

.cmd-highlight-skip {
  color: #00f2fe;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Toggle Switch (Modern Sleek Pill) */
.toggle-switch,
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
}

.toggle-switch input,
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch .slider,
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.toggle-switch .slider:before,
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.toggle-switch input:checked+.slider,
.switch input:checked+.slider {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

.toggle-switch input:checked+.slider:before,
.switch input:checked+.slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* Role Pills */
.role-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.role-pill-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.role-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.role-pill-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.role-pill-btn .check-icon {
  font-size: 10.5px;
  display: none;
}

.role-pill-btn.active .check-icon {
  display: inline-block;
}

.settings-num-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  width: 140px;
  text-align: left;
}

.settings-num-input:focus {
  border-color: var(--accent);
  outline: none;
}

/* YouTube Login Warning Box */
.youtube-login-warning-box {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.youtube-login-warning-box .warning-text {
  color: #ff9f0a;
  font-size: 13px;
  font-weight: 600;
}

/* ── DASHBOARD STAGE PREVIEW GLOW OVERRIDES ── */
.stage-canvas-box.glow-off,
.glow-off #stageLyricsLine,
.glow-off .k-line,
.glow-off .k-word,
.glow-off .k-word.active,
.glow-off .now-playing-card-focused,
.glow-off .queue-overlay-container,
.glow-off .timeline-card,
.glow-off .alert-toast-container,
.glow-off .compact-ticker-container {
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.stage-canvas-box.glow-off [class*="fx-hit-"]::before,
.stage-canvas-box.glow-off [class*="fx-hit-"]::after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* ── WORD HIT FX (MOCHACONSOLE PRECISION HIT EFFECTS) ── */
.k-word {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.25, 1), color 0.15s ease;
  transform-origin: center center;
}

/* 1. Pop / Bounce Word Animation */
.k-word.pop-active {
  animation: mcWordPopJump 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes mcWordPopJump {
  0% {
    transform: scale(1) translateY(0);
  }

  35% {
    transform: scale(1.22) translateY(-8px);
  }

  70% {
    transform: scale(0.96) translateY(2px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

/* Hit FX Container */
.mc-word-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
  color: var(--accent, #00f2fe);
}

/* Ripple Ring */
.mc-hit-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  margin: -0.9em 0 0 -0.9em;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
  animation: mcHitRippleAnim 0.75s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes mcHitRippleAnim {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Diamond Sparkle & Shards */
.mc-hit-diamond {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6em;
  height: 1.6em;
  margin: -0.8em 0 0 -0.8em;
  border: 2px solid currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 14px currentColor;
  animation: mcHitDiamondAnim 0.7s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

@keyframes mcHitDiamondAnim {
  0% {
    transform: scale(0.2) rotate(45deg);
    opacity: 1;
  }

  100% {
    transform: scale(2.4) rotate(90deg);
    opacity: 0;
  }
}

/* Star Flare / Cross Flash */
.mc-hit-cross {
  position: absolute;
  left: 0;
  top: 0;
  animation: mcHitCrossAnim 0.65s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

.mc-hit-cross::before {
  content: "";
  position: absolute;
  left: -2em;
  top: -1.5px;
  width: 4em;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor 50%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px currentColor;
}

.mc-hit-cross::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -2em;
  width: 3px;
  height: 4em;
  background: linear-gradient(180deg, transparent, currentColor 50%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px currentColor;
}

@keyframes mcHitCrossAnim {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Slash Blade Cut */
.mc-hit-slash {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3.2em;
  margin: -1.6em 0 0 -1.5px;
  background: linear-gradient(180deg, transparent, #ffffff 40%, currentColor 70%, transparent);
  box-shadow: 0 0 18px currentColor;
  transform: rotate(-35deg);
  animation: mcHitSlashAnim 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes mcHitSlashAnim {
  0% {
    transform: scaleY(0) rotate(-35deg);
    opacity: 1;
  }

  40% {
    transform: scaleY(1.4) rotate(-35deg);
    opacity: 1;
  }

  100% {
    transform: scaleY(1.8) rotate(-35deg);
    opacity: 0;
  }
}

/* Pop Shock Impact */
.mc-hit-pop {
  position: absolute;
  left: 0;
  top: 0;
  width: 2em;
  height: 2em;
  margin: -1em 0 0 -1em;
  border: 2px dashed currentColor;
  border-radius: 50%;
  animation: mcHitPopAnim 0.6s ease-out forwards;
}

@keyframes mcHitPopAnim {
  0% {
    transform: scale(0.3) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: scale(2.5) rotate(45deg);
    opacity: 0;
  }
}

/* ── WORD LAYOUTS & RANDOMIZER ── */
#stageLyricsLine.layout-scatter .k-word,
.lyrics-viewport.layout-scatter .k-word {
  display: inline-block;
  transform: translateY(calc(var(--w-y, 0) * 1px)) rotate(calc(var(--w-rot, 0) * 1deg)) scale(var(--w-scale, 1));
  margin: 0 calc(var(--w-gap, 3) * 1px);
}

#stageLyricsLine.layout-wave .k-word,
.lyrics-viewport.layout-wave .k-word {
  display: inline-block;
  transform: translateY(calc(sin(var(--w-idx, 0) * 0.9) * 10px)) rotate(calc(cos(var(--w-idx, 0) * 0.9) * 4deg));
}

#stageLyricsLine.layout-bounce .k-word,
.lyrics-viewport.layout-bounce .k-word {
  display: inline-block;
  animation: mcFloatBob 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--w-idx, 0) * 0.12s);
}

@keyframes mcFloatBob {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(calc(var(--w-rot, 2) * 1deg));
  }

  100% {
    transform: translateY(3px) rotate(calc(var(--w-rot, -2) * -1deg));
  }
}

/* ── PURE TRANSPARENT OVERRIDES FOR ALL OVERLAYS ── */
.bg-transparent,
.draggable-element.bg-transparent,
.stage-canvas-box.bg-transparent,
.queue-overlay-container.bg-transparent,
.now-playing-card-focused.bg-transparent,
.timeline-overlay-container.bg-transparent,
.alert-toast-container.bg-transparent,
.compact-ticker-container.bg-transparent,
.draggable-element.bg-transparent .queue-overlay-header,
.draggable-element.bg-transparent .queue-item-row,
.draggable-element.bg-transparent .timeline-card,
.draggable-element.bg-transparent .alert-card-inner,
.draggable-element.bg-transparent .ticker-bar-inner,
.draggable-element.bg-transparent .now-playing-card-focused,
.draggable-element.bg-transparent .now-playing-card {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.draggable-element.bg-transparent .queue-item-row {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ── CRISTAL CRISP HIGH-CONTRAST TEXT FOR ALL OVERLAYS & CONTROLS ── */
.compact-ticker-container,
.ticker-marquee-wrapper,
.ticker-text,
.ticker-text *,
.stage-canvas-box .q-title,
.stage-canvas-box .queue-overlay-header,
.stage-canvas-box .queue-title,
.stage-canvas-box .title-scroll,
.stage-canvas-box .t-title,
.stage-canvas-box .alert-headline,
.stage-canvas-box .alert-song,
.stage-canvas-box .k-line {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.k-word {
  color: var(--text-color, #ffffff);
  transition: color 0.15s ease, text-shadow 0.15s ease, transform 0.15s ease;
}

.k-word.active {
  color: var(--word-highlight, var(--accent-primary, #00f2fe)) !important;
}

.stage-canvas-box .t-artist,
.stage-canvas-box .q-artist,
.stage-canvas-box .artist-text,
.stage-canvas-box .alert-user {
  color: #e2e8f0 !important;
}

.stage-canvas-box .req-user-badge,
.stage-canvas-box .ticker-text .req-user-badge,
.stage-canvas-box .q-user {
  color: var(--accent-primary, #00f2fe) !important;
  font-weight: 700 !important;
}

/* ── Now Playing Cover Art Shapes ── */
.vinyl-art-wrapper.shape-square,
.vinyl-art-wrapper.shape-square .vinyl-art {
  border-radius: 4px !important;
}

.vinyl-art-wrapper.shape-square .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-squircle,
.vinyl-art-wrapper.shape-squircle .vinyl-art {
  border-radius: 16px !important;
}

.vinyl-art-wrapper.shape-squircle .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-circle {
  border-radius: 50% !important;
}

.vinyl-art-wrapper.shape-circle .vinyl-art {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.vinyl-art-wrapper.shape-circle .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-square {
  border-radius: 8px !important;
}

.vinyl-art-wrapper.shape-square .vinyl-art {
  border-radius: 8px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.vinyl-art-wrapper.shape-square .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-rounded {
  border-radius: 16px !important;
}

.vinyl-art-wrapper.shape-rounded .vinyl-art {
  border-radius: 16px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.vinyl-art-wrapper.shape-rounded .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-diamond {
  border-radius: 12px !important;
}

.vinyl-art-wrapper.shape-diamond .vinyl-art {
  border-radius: 12px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  transform: rotate(45deg) scale(0.85);
}

.vinyl-art-wrapper.shape-diamond .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-cassette {
  border-radius: 6px !important;
}

.vinyl-art-wrapper.shape-cassette .vinyl-art {
  border-radius: 6px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border: 2px solid var(--accent-primary, #00f2fe) !important;
  box-shadow: 0 0 12px var(--accent-glow, rgba(0, 242, 254, 0.4)) !important;
}

.vinyl-art-wrapper.shape-cassette .vinyl-disc {
  display: none !important;
}

.vinyl-art-wrapper.shape-none {
  display: none !important;
}

/* ── Word Highlight Dynamic FX Keyframes ── */
@keyframes wordScalePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }

  100% {
    transform: scale(1.08);
  }
}

@keyframes wordNeonStrobe {

  0%,
  100% {
    opacity: 1;
    filter: brightness(1.35) drop-shadow(0 0 14px var(--accent-primary, #00f2fe));
  }

  50% {
    opacity: 0.55;
    filter: brightness(0.75) drop-shadow(0 0 2px var(--accent-primary, #00f2fe));
  }
}

@keyframes wordLiquidShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.k-word.effect-scale {
  display: inline-block !important;
  transform: scale(1.18) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.k-word.effect-flip {
  display: inline-block !important;
  animation: mcWordFlip 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) forwards !important;
}

.k-word.effect-focus {
  display: inline-block !important;
  animation: mcWordFocus 0.4s ease-out forwards !important;
}

.k-word.effect-sway {
  display: inline-block !important;
  animation: mcWordSway 0.5s ease-in-out forwards !important;
}

.k-word.effect-neon-flash {
  display: inline-block !important;
  filter: brightness(1.35) drop-shadow(0 0 16px var(--word-highlight, #00f2fe)) !important;
  transition: filter 0.15s ease !important;
}

.k-word.effect-liquid {
  display: inline-block !important;
  filter: brightness(1.2) saturate(1.3) !important;
  transition: filter 0.15s ease !important;
}

@keyframes mcWordFlip {
  0% {
    transform: perspective(600px) rotateX(-70deg) translateY(0.2em);
    opacity: 0.5;
  }

  100% {
    transform: perspective(600px) rotateX(0deg) translateY(0);
    opacity: 1;
  }
}

@keyframes mcWordFocus {
  0% {
    filter: blur(8px);
    opacity: 0.3;
  }

  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes mcWordSway {
  0% {
    transform: rotate(0deg);
  }

  40% {
    transform: rotate(-6deg) scale(1.1);
  }

  80% {
    transform: rotate(4deg) scale(1.05);
  }

  100% {
    transform: rotate(0deg) scale(1.02);
  }
}

@keyframes hitRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

@keyframes hitDiamond {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.3);
    opacity: 1;
  }

  60% {
    opacity: 0.85;
  }

  100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(2.2);
    opacity: 0;
  }
}

@keyframes hitChevronLeft {
  0% {
    transform: translateY(-50%) rotate(-135deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) rotate(-135deg) translateX(24px) scale(0.5);
    opacity: 0;
  }
}

@keyframes hitChevronRight {
  0% {
    transform: translateY(-50%) rotate(45deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) rotate(45deg) translateX(24px) scale(0.5);
    opacity: 0;
  }
}

@keyframes hitCross {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(2.4) rotate(45deg);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(3.2) rotate(90deg);
    opacity: 0;
  }
}

@keyframes hitSquare {
  0% {
    transform: translate(-50%, -50%) rotate(14deg) scale(0.2);
    opacity: 1;
  }

  60% {
    opacity: 0.85;
  }

  100% {
    transform: translate(-50%, -50%) rotate(14deg) scale(2.4);
    opacity: 0;
  }
}

@keyframes hitSpark {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -65%) scale(1.3) rotate(45deg);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -90%) scale(0.8) rotate(90deg);
    opacity: 0;
  }
}

@keyframes hitSlash {
  0% {
    transform: translate(-50%, -50%) rotate(-28deg) scaleX(0.1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) rotate(-28deg) scaleX(1.4);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) rotate(-28deg) scaleX(2.0);
    opacity: 0;
  }
}

@keyframes hitPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

@keyframes hitGlitch {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: hue-rotate(0deg);
    opacity: 1;
  }

  25% {
    transform: translate(-54%, -48%) scale(1.15);
    filter: hue-rotate(90deg);
    opacity: 0.9;
  }

  50% {
    transform: translate(-46%, -52%) scale(0.95);
    filter: hue-rotate(180deg);
    opacity: 0.8;
  }

  75% {
    transform: translate(-52%, -49%) scale(1.1);
    filter: hue-rotate(270deg);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.3);
    filter: hue-rotate(360deg);
    opacity: 0;
  }
}

/* ── Border Accent / Outline Line Toggle ── */
.border-off,
.border-off * {
  border-color: transparent !important;
}

.border-off.now-playing-card-focused,
.border-off.queue-overlay-container,
.border-off.timeline-overlay-container,
.border-off.alert-toast-container,
.border-off.compact-ticker-container,
.border-off .timeline-card,
.border-off .queue-item-row {
  border-color: transparent !important;
  border-width: 0px !important;
  box-shadow: none !important;
}

/* ── Now Playing Card Focused (Stage Preview Base) ── */
.now-playing-card-focused {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 18, 28, 0.88);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 500px;
  min-width: 280px;
  position: relative;
  overflow: visible;
}

.now-playing-card-focused .vinyl-art-wrapper {
  width: 80px;
  height: 80px;
  min-width: 80px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-playing-card-focused .vinyl-disc {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #333, #111);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: vinylSpin 8s linear infinite;
  z-index: 0;
}

.now-playing-card-focused.spin-none .vinyl-disc,
.now-playing-card-focused.spin-none .vinyl-art,
.now-playing-card-focused.spin-none .vinyl-art-wrapper,
.vinyl-art-wrapper.spin-none .vinyl-art,
.vinyl-art-wrapper.spin-none {
  animation: none !important;
}

.now-playing-card-focused.spin-fast .vinyl-disc,
.now-playing-card-focused.spin-fast .vinyl-art,
.vinyl-art-wrapper.spin-fast .vinyl-art {
  animation: vinylSpin 4s linear infinite !important;
}

.now-playing-card-focused.spin-normal .vinyl-disc,
.now-playing-card-focused.spin-normal .vinyl-art,
.vinyl-art-wrapper.spin-normal .vinyl-art {
  animation: vinylSpin 8s linear infinite !important;
}

.now-playing-card-focused.spin-slow .vinyl-disc,
.now-playing-card-focused.spin-slow .vinyl-art,
.vinyl-art-wrapper.spin-slow .vinyl-art {
  animation: vinylSpin 14s linear infinite !important;
}

.now-playing-card-focused .vinyl-art {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  display: block;
}

@keyframes vinylSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.now-playing-card-focused .playing-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.now-playing-card-focused .title-scroll {
  font-size: 16px;
  font-weight: 800;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.now-playing-card-focused .artist-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skin-ticket override — keep dark for now-playing so it doesn't go white */
.now-playing-card-focused.skin-ticket {
  background: rgba(20, 14, 8, 0.92) !important;
  color: #f5ecd7 !important;
  border: 2px dashed #c8a258 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.now-playing-card-focused.skin-ticket .title-scroll {
  color: #f5ecd7 !important;
  text-shadow: none !important;
}

.now-playing-card-focused.skin-ticket .artist-text {
  color: #c8a258 !important;
}

/* Skin-line: transparent background for now-playing */
.now-playing-card-focused.skin-line {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ── Word Highlight Dynamic FX (Vibrant & High-Impact) ── */
@keyframes wordScalePulseAnim {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.26) translateY(-4px);
  }

  100% {
    transform: scale(1.15) translateY(-2px);
  }
}

@keyframes wordNeonStrobeAnim {
  0% {
    filter: brightness(1) drop-shadow(0 0 6px var(--accent, #00f2fe));
    transform: scale(1.02);
  }

  50% {
    filter: brightness(1.8) drop-shadow(0 0 20px var(--accent, #00f2fe)) drop-shadow(0 0 35px var(--accent, #00f2fe));
    transform: scale(1.14) translateY(-3px);
  }

  100% {
    filter: brightness(1.3) drop-shadow(0 0 12px var(--accent, #00f2fe));
    transform: scale(1.08) translateY(-1px);
  }
}

@keyframes wordLiquidShimmerAnim {
  0% {
    filter: hue-rotate(-25deg) brightness(1.1);
    transform: translateY(0) scale(1.02);
  }

  50% {
    filter: hue-rotate(45deg) brightness(1.5) saturate(1.4);
    transform: translateY(-5px) scale(1.18);
  }

  100% {
    filter: hue-rotate(0deg) brightness(1.25);
    transform: translateY(-2px) scale(1.1);
  }
}

.k-word.effect-scale,
.lyric-word.effect-scale {
  display: inline-block !important;
  animation: wordScalePulseAnim 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.k-word.effect-neon-flash,
.lyric-word.effect-neon-flash {
  display: inline-block !important;
  animation: wordNeonStrobeAnim 0.5s ease-in-out infinite alternate !important;
}

.k-word.effect-liquid,
.lyric-word.effect-liquid {
  display: inline-block !important;
  animation: wordLiquidShimmerAnim 0.75s ease-in-out infinite alternate !important;
}

/* Guide Modal Interactive Tabs */
.guide-modal-card {
  max-width: 780px;
  width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.guide-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 0 12px 0;
  margin-bottom: 16px;
  overflow-x: auto;
}

.guide-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #94a3b8);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.guide-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main, #ffffff);
}

.guide-tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent, #00f2fe);
  color: var(--accent, #00f2fe);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.guide-content-pane {
  display: none;
  font-size: 13px;
  line-height: 1.6;
  overflow-y: auto;
  padding-right: 4px;
}

.guide-content-pane.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-card-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
}

.guide-card-box h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--text-main, #ffffff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-code-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent, #00f2fe);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
}

/* ── Lyric Motion Styles ── */
@keyframes stageLyricFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

@keyframes stageLyricDrift {

  0%,
  100% {
    transform: translateX(0px) translateY(0px);
  }

  50% {
    transform: translateX(10px) translateY(-5px);
  }
}

@keyframes stageLyricScatter {
  0% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.03) rotate(-1deg) translateY(-4px);
  }

  75% {
    transform: scale(0.98) rotate(1deg) translateY(4px);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

#dragCardLyrics.motion-float {
  animation: stageLyricFloat 3s ease-in-out infinite;
}

#dragCardLyrics.motion-drift {
  animation: stageLyricDrift 5s ease-in-out infinite;
}

#dragCardLyrics.motion-scatter {
  animation: stageLyricScatter 2.5s ease-in-out infinite;
}

/* ── Border Off Utility ── */
.border-off,
.border-off .now-playing-card-focused,
.border-off.queue-overlay-container,
.border-off.timeline-overlay-container,
.border-off.alert-toast-container,
.border-off.compact-ticker-container,
.border-off .timeline-card {
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Overlay & Card Alignment in Stage Canvas ── */
#dragCardLyrics.align-left,
.stage-interactive-viewport>.draggable-element.align-left,
.draggable-element.align-left {
  align-self: flex-start !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left !important;
}

#dragCardLyrics.align-center,
.stage-interactive-viewport>.draggable-element.align-center,
.draggable-element.align-center {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#dragCardLyrics.align-right,
.stage-interactive-viewport>.draggable-element.align-right,
.draggable-element.align-right {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

.stage-interactive-viewport>.draggable-element.align-top-left,
.draggable-element.align-top-left {
  align-self: flex-start !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  margin-bottom: auto !important;
  margin-top: 0 !important;
}

.stage-interactive-viewport>.draggable-element.align-top-right,
.draggable-element.align-top-right {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-bottom: auto !important;
  margin-top: 0 !important;
}

.stage-interactive-viewport>.draggable-element.align-bottom-left,
.draggable-element.align-bottom-left {
  align-self: flex-start !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

.stage-interactive-viewport>.draggable-element.align-bottom-right,
.draggable-element.align-bottom-right {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

.stage-interactive-viewport>.draggable-element.align-top,
.draggable-element.align-top {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: auto !important;
  margin-top: 0 !important;
}

.stage-interactive-viewport>.draggable-element.align-bottom,
.draggable-element.align-bottom {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

.stage-interactive-viewport>.draggable-element.pos-top,
.draggable-element.pos-top {
  align-self: stretch !important;
  width: 100% !important;
  margin-bottom: auto !important;
  margin-top: 0 !important;
}

.stage-interactive-viewport>.draggable-element.pos-bottom,
.draggable-element.pos-bottom {
  align-self: stretch !important;
  width: 100% !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Now Playing Card Internal Layout Alignment */
.now-playing-card-focused.align-left {
  flex-direction: row !important;
  text-align: left !important;
  align-items: center !important;
}

.now-playing-card-focused.align-left .playing-meta {
  align-items: flex-start !important;
  text-align: left !important;
}

.now-playing-card-focused.align-left .title-scroll,
.now-playing-card-focused.align-left .artist-text {
  text-align: left !important;
}

.now-playing-card-focused.align-left #stageNowHeaderWrap {
  justify-content: flex-start !important;
  flex-direction: row !important;
  width: 100% !important;
}

.now-playing-card-focused.align-left .req-user-badge {
  justify-content: flex-start !important;
}

.now-playing-card-focused.align-center {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 12px !important;
}

.now-playing-card-focused.align-center .playing-meta {
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.now-playing-card-focused.align-center .title-scroll,
.now-playing-card-focused.align-center .artist-text {
  text-align: center !important;
  width: 100% !important;
}

.now-playing-card-focused.align-center #stageNowHeaderWrap {
  justify-content: center !important;
  flex-direction: row !important;
  width: 100% !important;
}

.now-playing-card-focused.align-center .req-user-badge {
  justify-content: center !important;
  width: 100% !important;
}

.now-playing-card-focused.align-right {
  flex-direction: row-reverse !important;
  text-align: right !important;
  align-items: center !important;
}

.now-playing-card-focused.align-right .playing-meta {
  align-items: flex-end !important;
  text-align: right !important;
}

.now-playing-card-focused.align-right .title-scroll,
.now-playing-card-focused.align-right .artist-text {
  text-align: right !important;
}

.now-playing-card-focused.align-right #stageNowHeaderWrap {
  justify-content: flex-end !important;
  flex-direction: row-reverse !important;
  width: 100% !important;
}

.now-playing-card-focused.align-right .req-user-badge {
  justify-content: flex-end !important;
}

/* ── Queue Item Row Layout (Image Left vs Reverse Right) ── */
.queue-overlay-container.layout-right .queue-item-row,
.queue-item-row.layout-right,
.draggable-element.layout-right .queue-item-row {
  flex-direction: row-reverse !important;
  text-align: right !important;
}

.queue-overlay-container.layout-right .q-meta,
.queue-item-row.layout-right .q-meta,
.draggable-element.layout-right .q-meta {
  align-items: flex-end !important;
  text-align: right !important;
}

.queue-overlay-container.layout-right .q-user,
.queue-item-row.layout-right .q-user,
.draggable-element.layout-right .q-user {
  justify-content: flex-end !important;
}

.queue-overlay-container.layout-right .req-user-badge,
.queue-item-row.layout-right .req-user-badge,
.draggable-element.layout-right .req-user-badge {
  justify-content: flex-end !important;
}

.queue-overlay-container.layout-right .queue-overlay-header,
.draggable-element.layout-right .queue-overlay-header {
  flex-direction: row-reverse !important;
}

.queue-overlay-container.layout-right .queue-title,
.draggable-element.layout-right .queue-title {
  flex-direction: row-reverse !important;
}

/* ── Alert Toast Layout (Icon Left vs Reverse Right) ── */
.alert-toast-container.layout-right,
.draggable-element.layout-right.alert-toast-container {
  flex-direction: row-reverse !important;
  text-align: right !important;
}

.alert-toast-container.layout-right .alert-meta,
.draggable-element.layout-right.alert-toast-container .alert-meta {
  align-items: flex-end !important;
  text-align: right !important;
}

.alert-toast-container.layout-right .alert-user,
.draggable-element.layout-right.alert-toast-container .alert-user {
  text-align: right !important;
  justify-content: flex-end !important;
}

/* ── Alert Toast Icon Hide Toggle ── */
.alert-toast-container.hide-icon .alert-icon-box,
.draggable-element.hide-icon .alert-icon-box {
  display: none !important;
}

/* ── Ticker Segment Reorder Component ── */
.ticker-reorder-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  margin-top: 4px;
}

.ticker-reorder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.15s ease;
}

.ticker-reorder-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
}

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

.ticker-reorder-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.ticker-reorder-btns {
  display: flex;
  gap: 4px;
}

.ticker-btn-move {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-main);
  cursor: pointer;
  font-size: 10px;
  transition: all 0.15s ease;
}

.ticker-btn-move:hover:not(:disabled) {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.ticker-btn-move:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Backup Playlist View Styling ── */
.playlist-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.playlist-tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.playlist-tab-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playlist-tab-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.playlist-tab-chip.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border-color: var(--accent);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.playlist-tab-chip .badge-count {
  background: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--accent);
}

.playlist-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.playlist-song-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.playlist-song-row .song-idx {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.playlist-song-row .song-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.playlist-song-row .song-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.playlist-song-row .song-actions {
  display: flex;
  gap: 6px;
}

/* ── PERSISTENT GLOBAL BOTTOM PLAYBACK BAR (MELODYSTREAM SIGNATURE) ── */
.bottom-playback-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1200;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  user-select: none;
}

[data-theme-mode="light"] .bottom-playback-bar {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.tab-content-wrapper {
  padding-bottom: 24px;
}

/* Bottom Bar Left: Artwork & Metadata */
.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 320px;
  flex-shrink: 0;
}

.bottom-bar-art-box {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  background: #1e2430;
}

.bottom-bar-art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bottom-bar-art-disc {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.bottom-bar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.bottom-bar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.bottom-bar-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-bar-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-bar-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 10px;
}

/* Bottom Bar Center: Controls & Seekbar */
.bottom-bar-center {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
}

.bottom-bar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-control-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
}

.bottom-control-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.bottom-control-btn:active {
  transform: scale(0.95);
}

.bottom-badge-auto {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 8px;
  font-weight: 900;
  background: #333;
  color: #aaa;
  padding: 1px 3px;
  border-radius: 4px;
  line-height: 1;
}

.bottom-control-btn.auto-active {
  color: var(--accent);
}

.bottom-control-btn.auto-active .bottom-badge-auto {
  background: var(--accent);
  color: #000;
}

.bottom-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent, #00f2fe), #3a8bfd);
  color: #000;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.65);
}

.bottom-play-btn:active {
  transform: scale(0.94);
}

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

.bottom-time {
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.bottom-seekbar-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.bottom-seekbar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

[data-theme-mode="light"] .bottom-seekbar {
  background: rgba(0, 0, 0, 0.12);
}

.bottom-seekbar:hover {
  height: 6px;
}

.bottom-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #00f2fe);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  transition: transform 0.15s ease;
}

.bottom-seekbar:hover::-webkit-slider-thumb {
  transform: scale(1.25);
}

/* Bottom Bar Right: Volume & Shortcuts */
.bottom-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  justify-content: flex-end;
  flex-shrink: 0;
}

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

.bottom-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

[data-theme-mode="light"] .bottom-volume-slider {
  background: rgba(0, 0, 0, 0.12);
}

.bottom-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent, #00f2fe);
  cursor: pointer;
}

.bottom-vol-val {
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted);
  width: 30px;
}

.bottom-quick-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

[data-theme-mode="light"] .bottom-quick-shortcuts {
  border-left-color: rgba(0, 0, 0, 0.1);
}

.bottom-quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bottom-quick-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Sidebar & Top Guide Button Highlights */
.nav-item-guide {
  transition: all 0.2s ease;
}

.nav-item-guide:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  transform: translateX(2px);
}


/* ══════════════════════════════════════════════════════════════════
   REQUESTS TAB: TOP SEARCH & BALANCED 2-COLUMN EQUAL-HEIGHT GRID
══════════════════════════════════════════════════════════════════ */
.request-search-bar-card {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.requests-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - 295px);
  min-height: 480px;
}

@media (max-width: 1200px) {
  .requests-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.requests-main-col,
.requests-side-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.requests-main-col .queue-card,
.requests-side-col .history-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 460px;
  max-height: none;
  margin: 0 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.requests-main-col .queue-card {
  padding: 14px 14px 0 14px;
}

.queue-table-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.queue-table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.queue-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.queue-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.requests-side-col .history-content {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.requests-side-col .history-content::-webkit-scrollbar {
  width: 6px;
}

.requests-side-col .history-content::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════
   PAGINATION BAR (APPLE HIG STYLE)
══════════════════════════════════════════════════════════════════ */
.table-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  user-select: none;
}

.pagination-info {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 28px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════════
   PLAY HISTORY SECTION
══════════════════════════════════════════════════════════════════ */
.history-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.history-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.history-section-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme-mode="light"] .history-section-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.history-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.2), rgba(79, 70, 229, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  font-size: 14px;
  flex-shrink: 0;
}

[data-theme-mode="light"] .history-icon-badge {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(91, 33, 182, 0.08));
  border-color: rgba(109, 40, 217, 0.25);
  color: #7c3aed;
}

.history-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.history-section-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.history-sort-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-sort-select:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.4);
}

.history-sort-select:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

[data-theme-mode="light"] .history-sort-select {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme-mode="light"] .history-sort-select:hover {
  background: #f8fafc;
  border-color: #7c3aed;
}

.history-content {
  padding: 12px 14px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  gap: 6px;
}

/* History grid — horizontal scroll cards */
.history-tracks-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.history-track-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  border-radius: 3px 0 0 3px;
}

.history-track-row:hover {
  background: rgba(139, 92, 246, 0.07);
  border-color: rgba(139, 92, 246, 0.2);
}

[data-theme-mode="light"] .history-track-row {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme-mode="light"] .history-track-row:hover {
  background: rgba(109, 40, 217, 0.05);
  border-color: rgba(109, 40, 217, 0.15);
}

.history-rank {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 18px;
  text-align: center;
  margin-left: 4px;
}

.history-thumb {
  width: 40px;
  height: 30px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

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

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

.history-track-artist {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.history-requester {
  font-size: 10px;
  color: #a78bfa;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

[data-theme-mode="light"] .history-requester {
  color: #7c3aed;
}

.history-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}