/*
 * STYLE GIAO DIEN NOVATA NVT_0.1 (LANDING & DESKTOP WEB PREVIEW)
 * - Thuan Den Trang Toi Gian (Monochrome Minimalist)
 * - Scrollbar toi mau dong bo 100% voi ung dung, loai bo triet de mau trang
 * - Khong co nav bar o dinh preview
 * - Giao dien Landing Page sang trong va Desktop Simulator Windows 11
 */

:root {
  color-scheme: dark;

  /* Bang mau chinh phong cach Matte Black */
  --bg-main: #09090b;
  --bg-sidebar: #0e0e11;
  --surface-card: #141416;
  --surface-hover: #1c1c1f;
  --surface-selected: #ffffff;
  --border-subtle: #222226;
  --border-strong: #2e2e33;
  --border-active: #ffffff;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-inverse: #09090b;

  /* Glass UI Player Card */
  --glass-bg: rgba(18, 18, 24, 0.90);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);

  /* Taskbar Windows 11 */
  --taskbar-bg: rgba(15, 17, 23, 0.85);
  --taskbar-border: rgba(255, 255, 255, 0.08);
  --taskbar-item-hover: rgba(255, 255, 255, 0.08);
  --taskbar-active-indicator: #00adef;

  /* Nut pill play */
  --pill-play-bg: #f4f4f5;
  --pill-play-fg: #09090b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: #27272a transparent;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-main);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SCROLLBAR TOI MAU DONG BO 100% VOI APP (TRIET TIEU HOAN TOAN SCROLLBAR TRANG)
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.mono-tab-content::-webkit-scrollbar {
  width: 6px;
}

.mono-tab-content::-webkit-scrollbar-track {
  background: transparent;
}

.mono-tab-content::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

.mono-tab-content::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.music-results-list::-webkit-scrollbar {
  width: 5px;
}

.music-results-list::-webkit-scrollbar-track {
  background: transparent;
}

.music-results-list::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

.music-results-list::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* ==========================================================================
   1. GIAO DIEN LANDING PAGE
   ========================================================================== */
.landing-page {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 20%, #15151c 0%, #09090b 70%);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.landing-header {
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.btn-header-git {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-header-git:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* Landing Hero */
.landing-hero {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Hai nut hanh dong Hero: Download & Web Preview */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-download {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.btn-primary-download:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.4);
}

.btn-secondary-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary-preview:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Feature Highlights Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  text-align: left;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  font-size: 22px;
  color: #ffffff;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Landing Footer */
.landing-footer {
  height: 60px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-dim);
}

.landing-footer a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-footer a:hover {
  color: #fff;
}

/* ==========================================================================
   2. MOI TRUONG DESKTOP WINDOWS GIA LAP (SIMULATOR)
   ========================================================================== */
.desktop-simulator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 100;
  background: #000000;
}

/* Nut Exit Preview o goc man hinh */
.preview-exit-btn {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}

.preview-exit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Hinh nen Desktop gia lap Windows 11 */
.desktop-wallpaper-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease;
  z-index: 0;
  background-image: url('assets/wallpapers/wallpaper.png');
}

/* Desktop Shortcuts Grid */
.desktop-shortcuts-grid {
  position: absolute;
  top: 24px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.desktop-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 76px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.desktop-icon-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.desktop-icon-item:active {
  background: rgba(255, 255, 255, 0.18);
}

.icon-img-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.icon-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.git-icon-box {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #fff;
  font-size: 24px;
}

.pc-icon-box {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-size: 22px;
}

.bin-icon-box {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  font-size: 22px;
}

.icon-label {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}

/* ==========================================================================
   3. CANVAS SONG AM VISUALIZER
   ========================================================================== */
#visualizer-canvas {
  position: absolute;
  bottom: 48px; /* Nam ngay sat tren Taskbar */
  left: 0;
  width: 100%;
  height: calc(100% - 48px);
  z-index: 1;
  pointer-events: none;
  background: transparent !important;
  transition: bottom 0.2s ease, top 0.2s ease;
}

#visualizer-canvas.dir-top {
  bottom: auto;
  top: 0;
  height: calc(100% - 48px);
}

/* ==========================================================================
   4. THE DIEU KHIEN GLASS UI (DRAGGABLE DESKTOP CONTROLLER)
   ========================================================================== */
.glass-player-card {
  position: absolute;
  bottom: 68px;
  left: 28px;
  z-index: 10;
  width: 360px;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}

.glass-player-card:hover {
  border-color: var(--glass-border-hover) !important;
}

.glass-player-card.in-edit-mode {
  border: 1.5px dashed rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 255, 255, 0.2) !important;
  cursor: move !important;
}

.glass-player-card.dragging {
  opacity: 0.90;
  transform: scale(1.02);
  transition: none;
}

.drag-hint {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #09090b;
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.player-inner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-album-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.album-disc-scallop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.disc-spinning {
  font-size: 38px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.1s linear;
}

.disc-spinning.active {
  animation: spinRecord 4s linear infinite;
}

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

.album-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: spinRecord 8s linear infinite;
}

.album-thumb-img.paused {
  animation-play-state: paused;
}

.source-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

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

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

.track-artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.track-time-badge {
  font-size: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.track-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

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

.progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 9999px;
  transition: width 0.15s linear;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.mono-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mono-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.mono-btn:active {
  transform: translateY(0);
}

.mono-btn.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

.btn-small {
  width: 28px;
  height: 28px;
  font-size: 13px;
  flex-shrink: 0;
}

.btn-pill-play {
  height: 28px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--pill-play-bg);
  color: var(--pill-play-fg);
  border: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.btn-pill-play:hover {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-utility {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-utility:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-confirm-pos {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #059669 !important;
  padding: 0 8px;
  width: auto;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
}

/* ==========================================================================
   5. CUA SO CAI DAT (SETTINGS & MUSIC CENTER)
   ========================================================================== */
.settings-mono-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 520px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color-scheme: dark;
}

.settings-mono-window.window-minimized {
  transform: translate(-50%, 150%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

.settings-mono-window.window-maximized {
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100vw !important;
  height: calc(100vh - 48px) !important;
  border-radius: 0;
}

.mono-titlebar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
  cursor: grab;
}

.mono-titlebar:active {
  cursor: grabbing;
}

.title-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.brand-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-main);
}

.brand-badge {
  font-size: 9px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: #18181b;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.win-btn {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.15s ease, color 0.15s ease;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.win-close:hover {
  background: #e11d48;
  color: #fff;
}

.settings-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.mono-sidebar {
  width: 190px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background: var(--surface-card);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--surface-hover);
  color: #ffffff;
  border-color: var(--border-strong);
  font-weight: 600;
}

.tab-icon {
  font-size: 15px;
}

/* Vung noi dung Tab co scrollbar toi mau */
.mono-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  background: var(--bg-main);
  scrollbar-width: thin;
  scrollbar-color: #27272a transparent;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.tab-pane.active {
  display: flex;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.section-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* Tab 1: Music Player */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}

.search-input-box input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 36px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input-box input:focus {
  border-color: #38bdf8;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.mono-btn-search {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #09090b;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mono-btn-search:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.search-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 11px;
  color: var(--text-dim);
}

.tag-chip {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-chip:hover {
  background: var(--surface-hover);
  color: #ffffff;
  border-color: var(--border-strong);
}

.search-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 2px;
}

.status-badge {
  background: #18181b;
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 10px;
}

.music-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #27272a transparent;
}

.music-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.music-track-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.music-track-item.playing {
  border-color: #ffffff;
  background: #1a1a20;
}

.track-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.track-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.track-info .track-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

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

.track-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-duration-text {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.btn-play-track {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.btn-play-track:hover {
  background: #ffffff;
  color: #09090b;
  transform: scale(1.08);
}

.music-track-item.playing .btn-play-track {
  background: #ffffff;
  color: #09090b;
}

.inapp-mini-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-top: auto;
}

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

.mini-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

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

.mini-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.15s ease;
}

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

.mini-btn-play {
  background: #ffffff !important;
  color: #09090b !important;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

.mini-time-info {
  font-size: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Tab 2: Appearance */
.custom-color-control-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.color-swatch-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

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

.color-meta-hex {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.mono-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mono-apply-btn:hover {
  background: #ffffff;
  color: #09090b;
}

.quick-swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatches-label {
  font-size: 11px;
  color: var(--text-dim);
}

.swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch-btn:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.setting-label-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-title {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

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

.setting-control-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-control-col input[type="range"] {
  width: 140px;
  accent-color: #ffffff;
  cursor: pointer;
}

.range-val {
  font-size: 11px;
  color: var(--text-muted);
  width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mono-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.mono-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mono-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #27272a;
  border: 1px solid #3f3f46;
  transition: 0.2s;
  border-radius: 20px;
}

.mono-switch .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #a1a1aa;
  transition: 0.2s;
  border-radius: 50%;
}

.mono-switch input:checked + .slider {
  background-color: #ffffff;
  border-color: #ffffff;
}

.mono-switch input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #09090b;
}

.mono-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mono-reset-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.card-grid {
  display: grid;
  gap: 12px;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mono-choice-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mono-choice-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.mono-choice-card.selected {
  border-color: #ffffff;
  background: #18181f;
}

.choice-icon {
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 2px;
}

.choice-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

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

/* Tab 3: General */
.about-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.about-app-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.about-app-ver {
  font-size: 11px;
  color: var(--text-muted);
}

.about-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-actions-row {
  display: flex;
  gap: 10px;
}

.btn-about-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #09090b;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-about-download:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. MODAL CHINH MAU (COLOR MODAL)
   ========================================================================== */
.color-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.color-modal-card {
  width: 380px;
  background: #111114;
  border: 1px solid #2e2e33;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #222226;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-swatch-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hidden-native-picker {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-hex-field {
  flex: 1;
  display: flex;
  align-items: center;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 0 10px;
  height: 44px;
}

.modal-hex-prefix {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
}

.modal-hex-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
  text-transform: uppercase;
}

.modal-pick-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.modal-palette-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-palette-label {
  font-size: 11px;
  color: var(--text-dim);
}

.modal-palette-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.palette-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.palette-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.modal-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.modal-slider-row input[type="range"] {
  accent-color: #ffffff;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #222226;
  background: #0d0d10;
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid #2e2e33;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.btn-modal-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #09090b;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   7. THANH TASKBAR WINDOWS 11
   ========================================================================== */
.fake-windows-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: var(--taskbar-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--taskbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 900;
}

.taskbar-center-cluster {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskbar-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, transform 0.1s ease;
  font-size: 16px;
}

.taskbar-icon-btn:hover {
  background: var(--taskbar-item-hover);
}

.taskbar-icon-btn:active {
  transform: scale(0.92);
}

.taskbar-app-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.running-indicator-dot {
  position: absolute;
  bottom: 2px;
  width: 16px;
  height: 3px;
  background: var(--taskbar-active-indicator);
  border-radius: 9999px;
  box-shadow: 0 0 6px rgba(0, 173, 239, 0.8);
}

.taskbar-tray-cluster {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tray-icon-btn {
  width: 28px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.tray-icon-btn:hover {
  background: var(--taskbar-item-hover);
}

.tray-app-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.tray-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-main);
}

.tray-pill-group:hover {
  background: var(--taskbar-item-hover);
}

.tray-clock-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.15;
}

.tray-clock-col:hover {
  background: var(--taskbar-item-hover);
}

.tray-time {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tray-date {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.tray-show-desktop {
  width: 6px;
  height: 40px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.tray-show-desktop:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   8. START MENU POPUP
   ========================================================================== */
.windows-start-menu {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  background: rgba(24, 25, 33, 0.94);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 950;
  animation: startSlideUp 0.18s ease-out;
}

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

.start-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 8px 14px;
  color: var(--text-muted);
}

.start-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  width: 100%;
}

.start-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.start-pinned-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.start-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.start-app-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.start-app-item img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.start-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.bg-gear { background: #3f3f46; color: #fff; }
.bg-github { background: #18181b; color: #fff; border: 1px solid #3f3f46; }
.bg-spotify { background: #1db954; color: #fff; }
.bg-folder { background: #f59e0b; color: #fff; }
.bg-terminal { background: #000; color: #22c55e; border: 1px solid #22c55e; }

.start-app-item span {
  font-size: 11px;
  text-align: center;
}

.start-rec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.start-rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.start-rec-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rec-icon {
  font-size: 22px;
  color: #38bdf8;
}

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

.rec-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

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

.start-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 4px;
}

.start-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.start-power-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.start-power-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   9. CONTEXT MENUS
   ========================================================================== */
.tray-context-menu, .desktop-context-menu {
  position: absolute;
  background: #18181f;
  border: 1px solid #2e2e36;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  z-index: 1001;
}

.tray-menu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.tray-menu-header img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.tray-menu-divider, .ctx-divider {
  height: 1px;
  background: #27272e;
  margin: 4px 0;
}

.tray-menu-item, .ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.tray-menu-item:hover, .ctx-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.link-item {
  color: #38bdf8;
  font-weight: 500;
}


/* ==========================================================================
   10. BO SUNG GIAO DIEN NVT_0.5 BETA (LYRICS WIDGET, CO GIAN 8 HUONG & CHAT LIEU)
   ========================================================================== */

/* He thong chat lieu Kinh mo thuan tuy (Mat-Glass) va Son dac (Mat-Solid) */
.glass-player-card.mat-glass {
  background: rgba(18, 18, 22, var(--widget-glass-opacity, 0.18)) !important;
  backdrop-filter: blur(var(--widget-glass-blur, 20px)) !important;
  -webkit-backdrop-filter: blur(var(--widget-glass-blur, 20px)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.glass-player-card.mat-solid {
  background: #111116 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 8 Diem neo co gian kich thuoc giong cua so Windows (Resize Handles) */
.resize-handle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  transition: opacity 0.15s ease;
}

.in-edit-mode .resize-handle {
  pointer-events: auto;
  opacity: 1;
}

.handle-n { top: -4px; left: 16px; right: 16px; height: 10px; cursor: n-resize; }
.handle-s { bottom: -4px; left: 16px; right: 16px; height: 10px; cursor: s-resize; }
.handle-w { left: -4px; top: 16px; bottom: 16px; width: 10px; cursor: w-resize; }
.handle-e { right: -4px; top: 16px; bottom: 16px; width: 10px; cursor: e-resize; }
.handle-nw { top: -4px; left: -4px; width: 16px; height: 16px; cursor: nw-resize; }
.handle-ne { top: -4px; right: -4px; width: 16px; height: 16px; cursor: ne-resize; }
.handle-sw { bottom: -4px; left: -4px; width: 16px; height: 16px; cursor: sw-resize; }
.handle-se { bottom: -4px; right: -4px; width: 16px; height: 16px; cursor: se-resize; }

.in-edit-mode .handle-nw::after,
.in-edit-mode .handle-ne::after,
.in-edit-mode .handle-sw::after,
.in-edit-mode .handle-se::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}
.in-edit-mode .handle-nw::after { top: 4px; left: 4px; }
.in-edit-mode .handle-ne::after { top: 4px; right: 4px; }
.in-edit-mode .handle-sw::after { bottom: 4px; left: 4px; }
.in-edit-mode .handle-se::after { bottom: 4px; right: 4px; }

/* Cum nut dieu khien nhac & cong cu tinh gon */
.control-group-playback {
  display: flex;
  align-items: center;
  gap: 4px;
}

.control-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.control-group-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   11. THE HIEN THI LOI BAI HAT (LYRICS WIDGET)
   ========================================================================== */
.glass-lyrics-card {
  position: absolute;
  left: 28px;
  top: 90px;
  width: 380px;
  height: 260px;
  min-width: 260px;
  min-height: 120px;
  max-width: 90vw;
  max-height: 80vh;
  z-index: 12;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 20px;
  pointer-events: auto;
}

.lyrics-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lyrics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  user-select: none;
}

.lyrics-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: 0.3px;
}

.lyrics-header-title {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.lyrics-badge {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 500;
  text-transform: uppercase;
}

.lyrics-badge.synced {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.lyrics-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lyrics-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 4px 20px 4px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.lyrics-scroll-container::-webkit-scrollbar {
  display: none;
}

.lyrics-lines-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 0;
  width: 100%;
}

.lyric-line {
  font-size: var(--lyrics-font-size, 18px);
  font-family: var(--lyrics-font-family, inherit);
  text-align: var(--lyrics-text-align, center);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  opacity: 0.35;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  user-select: none;
  word-break: break-word;
  cursor: pointer;
}

.lyric-line:hover {
  opacity: 0.70;
}

.lyric-line.active {
  opacity: 1.0 !important;
  transform: scale(1.04);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.lyric-line.plain {
  opacity: 0.90;
  font-size: calc(var(--lyrics-font-size, 18px) * 0.9);
  padding: 4px 0;
  cursor: default;
}

.lyrics-idle-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 120px;
  color: #71717a;
  font-size: 13px;
  text-align: center;
  user-select: none;
}

.lyrics-idle-prompt i {
  font-size: 24px;
  opacity: 0.6;
}

/* ==========================================================================
   12. CAC PHAN TU GIAO DIEN CAI DAT BO SUNG
   ========================================================================== */

/* Nut Dan Link tu Clipboard */
.btn-paste-link {
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 14px;
  height: 40px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.btn-paste-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Nhom tab lua chon Solid / Glass */
.choice-tab-group {
  display: inline-flex;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 2px;
}

.choice-tab-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.choice-tab-btn.active {
  background: #27272a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dropdown lua chon phong cach font */
.mono-select {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  width: 100%;
  max-width: 260px;
}

/* Khung quan ly font chu tuy chinh */
.custom-font-box {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.font-current-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4f4f5;
  font-size: 13px;
}

.font-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Grid 3 cot cho lua chon Framerate FPS */
.cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Responsive grid cho 4 the tinh nang tren landing page */
.landing-features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

/* ==========================================================================
   7. PHIEN BAN NVT_0.6 BETA: SNAP GUIDES & RESPONSIVE SCALING
   ========================================================================== */
.edit-guides-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.guide-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crosshair-h {
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 3px rgba(255, 255, 255, 0.6);
}

.crosshair-v {
  position: absolute;
  height: 26px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 3px rgba(255, 255, 255, 0.6);
}

.crosshair-center-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 1);
}

.guide-line {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.guide-line-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.5);
}

.guide-line-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.5);
}

.guide-line.active {
  opacity: 1 !important;
}

/* Responsive button scaling theo --player-scale */
#player-card {
  --player-scale: 1;
}

#player-card .control-row {
  gap: calc(6px * var(--player-scale, 1));
}

#player-card .mono-btn.btn-ctrl {
  width: calc(26px * var(--player-scale, 1));
  height: calc(26px * var(--player-scale, 1));
  font-size: calc(12px * var(--player-scale, 1));
  border-radius: calc(7px * var(--player-scale, 1));
}

#player-card .btn-play-pause-pill {
  width: calc(52px * var(--player-scale, 1));
  height: calc(26px * var(--player-scale, 1));
  font-size: calc(13px * var(--player-scale, 1));
  border-radius: calc(13px * var(--player-scale, 1));
}

#player-card .disc-visual {
  width: calc(48px * var(--player-scale, 1));
  height: calc(48px * var(--player-scale, 1));
}

#player-card .vinyl-arm-icon {
  font-size: calc(16px * var(--player-scale, 1));
}

#player-card .track-title {
  font-size: calc(13px * var(--player-scale, 1));
}

#player-card .track-artist {
  font-size: calc(11px * var(--player-scale, 1));
}

/* Minimalist About Card */
.minimalist-about-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
