/* ==========================================================================
   SITUNEE - REFINED & ELEGANT RESPONSIVE STYLESHEET (MATCHING 1.PNG)
   - Strict 1200px Container Width (--container-max-width: 1200px)
   - Calibrated, Gentle Typography (Inter: Refined 300/400/500/600/700)
   - Balanced, Airy Spacing (Padding & Margins with Zero Cramp)
   - Polished PC & Mobile Layouts (No Oversized Elements, Crisp Alignment)
   ========================================================================== */

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

:root,
[data-theme="light"] {
  /* =========================================================================
     THEME SÁNG (DEMO CHUẨN: SOFT ZINC & EMERALD - DỊU MẮT, TƯƠNG PHẢN CAO)
     ========================================================================= */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Brand Emerald */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: rgba(5, 150, 105, 0.12);
  --primary-border: rgba(5, 150, 105, 0.35);
  --primary-glow: rgba(5, 150, 105, 0.22);
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.2);

  /* Backgrounds & Surfaces (Light Demo - Clear Elevation & Depth) */
  --bg-body: #edf1f5;
  --bg-page: #edf1f5;
  --bg-sidebar: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.96);
  --header-bg: rgba(255, 255, 255, 0.96);
  --card-bg: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-input: #ffffff;

  /* Dropdown variables */
  --dropdown-bg: #ffffff;
  --dropdown-border: #cbd5e1;
  --dropdown-item-hover: #f0fdf4;

  /* Borders */
  --border-subtle: #e2e8f0;
  --card-border: #cbd5e1;
  --card-border-hover: rgba(5, 150, 105, 0.55);
  --border-hover: rgba(5, 150, 105, 0.55);
  --border-active: #059669;

  /* Typography (Slate Palette - Crisp & High Contrast) */
  --text-primary: #0f172a;
  /* Slate 900 - Tiêu đề đậm nét */
  --text-main: #0f172a;
  --text-secondary: #334155;
  /* Slate 700 - Nghệ sĩ, phụ đề */
  --text-body: #334155;
  --text-tertiary: #64748b;
  /* Slate 500 - Metadata, lượt nghe */
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --text-white: #ffffff;

  /* Shadows & Dock */
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 8px 24px rgba(5, 150, 105, 0.15);
  --dock-bg: rgba(255, 255, 255, 0.98);
  --player-stage-bg: radial-gradient(circle at 50% 30%, #f1f5f9 0%, #e2e8f0 75%, #cbd5e1 100%);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 65%);
  --modal-overlay: rgba(15, 23, 42, 0.6);

  /* Nav border gradient */
  --nav-border-gradient: linear-gradient(90deg,
      #f8fafc 0%,
      rgba(5, 150, 105, 0.15) 30%,
      #059669 50%,
      rgba(5, 150, 105, 0.15) 70%,
      #f8fafc 100%);
  --nav-border-glow: none;

  /* Buttons & Toggle */
  --btn-upload-bg: #059669;
  --btn-upload-color: #ffffff;
  --btn-upload-hover: #047857;
  --theme-toggle-bg: #f1f5f9;
  --theme-toggle-color: #334155;
  --theme-toggle-border: rgba(15, 23, 42, 0.10);
  --theme-toggle-hover-bg: #e2e8f0;

  /* Ranks */
  --badge-rank-1: linear-gradient(135deg, #f59e0b, #d97706);
  --badge-rank-2: linear-gradient(135deg, #64748b, #475569);
  --badge-rank-3: linear-gradient(135deg, #b45309, #78350f);
  --rank-gold: #f59e0b;
  --rank-blue: #3b82f6;
  --rank-orange: #f97316;
  --rank-gray: #9ca3af;

  /* Profile Hero Banner & Surfaces (Theme Sáng) */
  --profile-cover-img: url('../img/profile_hero_bg.webp');
  --profile-cover-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.25) 50%, var(--card-bg) 100%);
  --profile-cover-vignette: radial-gradient(circle at 50% 25%, transparent 45%, rgba(0, 0, 0, 0.22) 100%);
  --profile-avatar-border: #ffffff;
  --profile-avatar-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --profile-stats-bg: #f8fafc;
  --profile-stats-border: #e2e8f0;

  /* Layout Tokens */
  --container-max-width: 1200px;
  --sidebar-width: 250px;
  --dock-height: 84px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Footer Tokens (Theme Sáng) */
  --footer-bg: #f8fafc;
  --footer-border: rgba(15, 23, 42, 0.08);
  --footer-social-bg: rgba(15, 23, 42, 0.05);
  --footer-social-color: #334155;
  --footer-badge-bg: rgba(5, 150, 105, 0.08);
  --footer-badge-border: rgba(5, 150, 105, 0.2);
  --footer-badge-color: #059669;
}

[data-theme="dark"] {
  /* =========================================================================
     THEME TỐI (LUXURY DARK EMERALD STUDIO - ĐỒNG BỘ 100% VỚI LOGO & PLAYER DOCK)
     ========================================================================= */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Brand Emerald */
  --primary: #00e599;
  --primary-hover: #00c26f;
  --primary-light: rgba(0, 229, 153, 0.14);
  --primary-border: rgba(0, 229, 153, 0.35);
  --primary-glow: rgba(0, 229, 153, 0.28);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.22);

  /* Backgrounds & Surfaces (Luxury Dark Emerald - Sâu thẳm, tách khối rõ rệt có chiều sâu) */
  --bg-body: #050a07;
  --bg-page: #050a07;
  --bg-sidebar: #08110c;
  --bg-header: rgba(8, 17, 12, 0.94);
  --header-bg: rgba(8, 17, 12, 0.94);
  --card-bg: #0e1e17;
  --bg-surface: #0e1e17;
  --bg-surface-hover: #14281f;
  --bg-surface-elevated: #12241b;
  --bg-input: #060d09;

  /* Dropdown variables */
  --dropdown-bg: #0e1e17;
  --dropdown-border: rgba(0, 229, 153, 0.25);
  --dropdown-item-hover: rgba(0, 229, 153, 0.14);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.11);
  --card-border-hover: rgba(0, 229, 153, 0.45);
  --border-hover: rgba(0, 229, 153, 0.45);
  --border-active: #00e599;

  /* Typography */
  --text-primary: #f8fafc;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-body: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #64748b;
  --text-sub: #64748b;
  --text-white: #ffffff;

  /* Shadows & Dock */
  --card-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  --card-shadow-hover: 0 14px 40px rgba(0, 229, 153, 0.18), 0 0 1px 1px rgba(0, 229, 153, 0.4);
  --dock-bg: rgba(7, 34, 25, 0.95);
  --player-stage-bg: radial-gradient(circle at 50% 30%, #10241c 0%, #0a1712 75%, #050a07 100%);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(0, 229, 153, 0.12) 0%, transparent 65%);
  --modal-overlay: rgba(4, 9, 6, 0.85);

  /* Nav border gradient */
  --nav-border-gradient: linear-gradient(90deg,
      #070d0a 0%,
      rgba(0, 229, 153, 0.18) 30%,
      #00e599 50%,
      rgba(0, 229, 153, 0.18) 70%,
      #070d0a 100%);
  --nav-border-glow: 0 1px 8px rgba(0, 229, 153, 0.15);

  /* Buttons & Toggle */
  --btn-upload-bg: linear-gradient(135deg, #00e599, #059669);
  --btn-upload-color: #041a0f;
  --btn-upload-hover: linear-gradient(135deg, #10f4a8, #047857);
  --theme-toggle-bg: rgba(14, 26, 20, 0.8);
  --theme-toggle-color: #fbbf24;
  --theme-toggle-border: rgba(255, 255, 255, 0.08);
  --theme-toggle-hover-bg: rgba(22, 42, 32, 0.9);

  /* Ranks */
  --badge-rank-1: linear-gradient(135deg, #ffd700, #ffaa00);
  --badge-rank-2: linear-gradient(135deg, #cbd5e1, #94a3b8);
  --badge-rank-3: linear-gradient(135deg, #f59e0b, #b45309);
  --rank-gold: #ffd700;
  --rank-blue: #38bdf8;
  --rank-orange: #fb923c;
  --rank-gray: #64748b;

  /* Profile Hero Banner & Surfaces (Theme Tối) */
  --profile-cover-img: url('../img/profile_hero_bg.webp');
  --profile-cover-overlay: linear-gradient(180deg, rgba(7, 13, 10, 0.2) 0%, rgba(7, 13, 10, 0.55) 55%, var(--card-bg) 100%);
  --profile-cover-vignette: radial-gradient(circle at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  --profile-avatar-border: #13241b;
  --profile-avatar-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 1px 1px rgba(0, 229, 153, 0.2);
  --profile-stats-bg: rgba(255, 255, 255, 0.04);
  --profile-stats-border: rgba(255, 255, 255, 0.08);

  /* Footer Tokens (Theme Tối - Luxury Emerald) */
  --footer-bg: rgba(9, 17, 13, 0.96);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-social-bg: rgba(255, 255, 255, 0.06);
  --footer-social-color: #cbd5e1;
  --footer-badge-bg: rgba(0, 229, 153, 0.08);
  --footer-badge-border: rgba(0, 229, 153, 0.22);
  --footer-badge-color: #00e599;
}


/* ==========================================================================
   BOOTSTRAP & GLOBAL DARK THEME CONTRAST NORMALIZATION
   ========================================================================== */
[data-theme="dark"] .text-body {
  color: var(--text-body) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .text-dark {
  color: var(--text-main) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-light {
  background-color: var(--song-cover-box-bg) !important;
  color: var(--text-body) !important;
}

[data-theme="dark"] .card {
  background-color: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text-body);
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top {
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .modal-content {
  background-color: var(--modal-bg, #111a16) !important;
  border: 1px solid var(--modal-border, #1a2822) !important;
  color: var(--text-main) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--search-bg, #141f1a) !important;
  border-color: var(--card-border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.25) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="light"] .modal-content {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
  color: #0f172a !important;
}

/* ==========================================================================
   GLOBAL RESET & FOUNDATION
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Global Typography: Thiết lập font 'Inter' duy nhất trên toàn website */
html,
body,
input,
button,
select,
textarea,
optgroup {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -0.015em;
  color: var(--text-main);
  font-weight: 700;
}

p,
a,
label,
li,
td,
th {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* BẢO TOÀN TUYỆT ĐỐI TOÀN BỘ ICON FONT AWESOME TRÊN TOÀN HỆ THỐNG */
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
i[class*="fa-"],
i[class^="fa-"],
[class*="fa-"],
[class^="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-brands,
.fab,
i.fa-brands,
i.fab,
[class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
}

.fa::before,
.fas::before,
.far::before,
.fal::before,
.fad::before,
.fab::before,
.fa-solid::before,
.fa-regular::before,
.fa-brands::before,
[class*="fa-"]::before,
[class^="fa-"]::before {
  font-family: inherit !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: var(--bg-body, var(--bg-page, #070d0a));
  color: var(--text-primary, var(--text-body, #f8fafc));
  line-height: 1.55;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  /* 14px base */
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -0.015em;
  color: var(--text-main);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   CONTAINER (STRICT 1200PX REQUESTED BY USER)
   ========================================================================== */
.container-1200 {
  max-width: var(--container-max-width, 1200px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #edf3f0;
}

::-webkit-scrollbar-thumb {
  background: #bcd9cb;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   GLOBAL THEME SMOOTH TRANSITIONS
   ========================================================================== */
body,
.site-header,
.sub-nav-bar,
.hero-slider-card,
.top-favorites-card,
.creator-card-box,
.step-card-box,
.site-footer,
.header-search-input,
.btn-login-ghost,
.btn-dialog-cancel,
.custom-dialog-box,
.auth-modal-box {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* ==========================================================================
   1. UNIFIED MODERN STUDIO NAVBAR (SINGLE ROW 1200PX HEADER)
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color var(--transition-smooth);
}

/* Viền chân Menu Top: Đồng bộ chuẩn Demo không dùng gradient pseudo-element */
.site-header::after,
.main-top-navbar::after {
  display: none !important;
}

.header-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* KHỐI BÊN TRÁI: Brand Logo & Desktop Nav Menu */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Inline Desktop Navigation Links (Liền mạch bên cạnh Logo) */
.header-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-link-color);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  position: relative;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-item-link:hover:not(.active) {
  color: var(--text-main);
  background-color: rgba(125, 125, 125, 0.08);
}

.nav-item-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  box-shadow: 0 2px 8px var(--primary-glow);
  font-weight: 600;
}

.nav-item-link.active:hover {
  color: var(--primary-hover);
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Slogan Mobile cấu hình từ Admin (Ẩn trên Desktop, hiện trên Mobile ở khoảng trống giữa logo và nút search) */
.header-mobile-slogan {
  display: none;
}

/* KHỐI BÊN PHẢI: Search, Theme Toggle, Upload, User Avatar */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Desktop Search Bar (Pill Shape) */
.header-search-wrap {
  width: 100%;
  position: relative;
}

.header-search-input {
  width: 100%;
  background-color: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 36px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--search-text);
  transition: all var(--transition-fast);
}

.header-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.header-search-input::placeholder {
  color: var(--search-placeholder, #8b9792);
}

.header-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--search-placeholder, #8b9792);
  font-size: 0.82rem;
  pointer-events: none;
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-hover);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1050;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--primary-light);
}

.search-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-info h5 {
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Nút Icon Chung (Kính lúp Mobile & Chuyển đổi Theme) */
.btn-header-icon,
.btn-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--theme-toggle-border);
  background-color: var(--theme-toggle-bg);
  color: var(--theme-toggle-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 0.95rem;
  padding: 0;
  flex-shrink: 0;
  outline: none;
}

/* Nút tìm kiếm icon chỉ hiện trên mobile/tablet */
.btn-header-icon.mobile-search-toggle {
  display: none;
}

.btn-header-icon:hover,
.btn-theme-toggle:hover {
  background-color: var(--theme-toggle-hover-bg);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-theme-toggle:hover {
  transform: rotate(15deg) scale(1.05);
}

.btn-header-icon:active,
.btn-theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Nút Hamburger Menu (Mobile / Tablet) */
.btn-hamburger-menu {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--theme-toggle-border);
  background-color: var(--theme-toggle-bg);
  color: var(--text-main);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 1.05rem;
  padding: 0;
  flex-shrink: 0;
  outline: none;
}

.btn-hamburger-menu:hover {
  background-color: var(--theme-toggle-hover-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* Nút + Đăng tải */
.btn-nav-upload {
  background-color: var(--btn-upload-bg);
  color: var(--btn-upload-color) !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.btn-nav-upload:hover {
  background-color: var(--btn-upload-hover);
  transform: translateY(-1px);
}

/* User Avatar Toggle (CHỈ HIỆN AVATAR TRÊN HEADER KHI ĐÃ ĐĂNG NHẬP) */
.btn-user-avatar-toggle {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  outline: none;
}

.btn-user-avatar-toggle::after {
  display: none !important;
}

.header-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: block;
}

@media (hover: hover) {
  .btn-user-avatar-toggle:hover .header-user-avatar {
    transform: scale(1.06);
    box-shadow: 0 0 10px var(--primary-glow);
  }
}

/* Dropdown Menu Header: Tên, Tích xanh và Username trong Dropdown */
.header-dropdown-menu {
  background-color: #0f1c16 !important;
  background: #0f1c16 !important;
  border: 1px solid rgba(0, 229, 153, 0.22) !important;
  border-radius: var(--radius-lg, 14px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 229, 153, 0.3) !important;
  min-width: 230px !important;
  padding: 8px !important;
  margin-top: 8px !important;
  z-index: 1060 !important;
  position: absolute !important;
}

html[data-theme="light"] .header-dropdown-menu,
[data-theme="light"] .header-dropdown-menu {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15) !important;
}

.user-dropdown-header {
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 6px;
}

html[data-theme="light"] .user-dropdown-header,
[data-theme="light"] .user-dropdown-header {
  background-color: #f1f5f9 !important;
}

.dropdown-user-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.user-dropdown-meta {
  flex: 1;
  min-width: 0;
}

.user-dropdown-name {
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="light"] .user-dropdown-name,
[data-theme="light"] .user-dropdown-name {
  color: #0f172a !important;
}

.user-dropdown-username {
  font-size: 0.75rem;
  color: var(--text-secondary, #94a3b8) !important;
}

.header-dropdown-menu .dropdown-item {
  border-radius: var(--radius-sm, 8px);
  font-size: 0.82rem;
  padding: 8px 12px;
  color: var(--text-primary, #e2e8f0) !important;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

html[data-theme="light"] .header-dropdown-menu .dropdown-item,
[data-theme="light"] .header-dropdown-menu .dropdown-item {
  color: #1e293b !important;
}

.header-dropdown-menu .dropdown-item:hover {
  background-color: rgba(0, 229, 153, 0.12) !important;
  color: #00e599 !important;
}

html[data-theme="light"] .header-dropdown-menu .dropdown-item:hover,
[data-theme="light"] .header-dropdown-menu .dropdown-item:hover {
  background-color: #f0fdf4 !important;
  color: #059669 !important;
}

/* Header Notification Dropdown Menu */
.header-notification-menu {
  width: 350px !important;
  max-width: 90vw !important;
  background-color: #0f1c16 !important;
  background: #0f1c16 !important;
  border: 1px solid rgba(0, 229, 153, 0.22) !important;
  border-radius: var(--radius-lg, 14px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 229, 153, 0.3) !important;
  margin-top: 8px !important;
  z-index: 1060 !important;
  overflow: hidden !important;
}

html[data-theme="light"] .header-notification-menu,
[data-theme="light"] .header-notification-menu {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15) !important;
}

.notification-header-row {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] .notification-header-row,
[data-theme="light"] .notification-header-row {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

.notification-header-title {
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="light"] .notification-header-title,
[data-theme="light"] .notification-header-title {
  color: #0f172a !important;
}

.mark-all-read-btn {
  font-size: 0.76rem !important;
  color: var(--primary, #10b981) !important;
  transition: opacity 0.15s ease;
}

.mark-all-read-btn:hover {
  opacity: 0.8;
  color: #00e599 !important;
}

.notification-list-scroll {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.notification-item {
  transition: background-color 0.15s ease;
}

.notification-item:hover {
  background-color: rgba(0, 229, 153, 0.08) !important;
}

html[data-theme="light"] .notification-item:hover,
[data-theme="light"] .notification-item:hover {
  background-color: rgba(5, 150, 105, 0.08) !important;
}

html[data-theme="light"] .notification-item h6 {
  color: #0f172a !important;
}

.user-dropdown-header {
  padding: 8px 10px;
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}

.dropdown-user-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.user-dropdown-meta {
  flex: 1;
  min-width: 0;
}

.user-dropdown-name {
  font-size: 0.88rem;
  color: var(--text-main) !important;
}

.user-dropdown-username {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-dropdown-menu .dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  padding: 7px 12px;
  color: var(--text-main);
}

.header-dropdown-menu .dropdown-item:hover {
  background-color: var(--dropdown-item-hover);
}

/* Nút Đăng nhập khi chưa đăng nhập */
.btn-login-ghost {
  background-color: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-login-ghost:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Thanh tìm kiếm trượt xuống trên Mobile */
.mobile-search-bar-wrap {
  background-color: var(--header-bg);
  border-top: 1px solid var(--header-border);
  padding: 6px 0;
  position: relative;
  z-index: 1019;
}

.mobile-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-search-input {
  width: 100%;
  background-color: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: var(--radius-pill);
  padding: 8px 36px 8px 36px;
  font-size: 0.85rem;
  color: var(--search-text);
  transition: all var(--transition-fast);
}

.mobile-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.mobile-search-icon {
  position: absolute;
  left: 14px;
  color: var(--search-placeholder, #8b9792);
  font-size: 0.85rem;
  pointer-events: none;
}

.btn-close-mobile-search {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Offcanvas Mobile Drawer Navigation */
.mobile-nav-drawer {
  background-color: var(--card-bg) !important;
  color: var(--text-main);
  width: 300px !important;
}

.mobile-nav-drawer:not(.show):not(.showing) {
  display: none !important;
}

.mobile-nav-drawer .offcanvas-header {
  border-bottom: 1px solid var(--card-border) !important;
  padding: 14px 18px;
}

.mobile-user-card,
.mobile-auth-prompt {
  background-color: var(--bg-page);
  border: 1px solid var(--card-border);
}

.mobile-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.user-drawer-name {
  color: var(--text-main);
}

.mobile-nav-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-nav-link i {
  width: 24px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover:not(.active) {
  background-color: rgba(125, 125, 125, 0.08);
  color: var(--text-main);
}

.mobile-nav-link:hover:not(.active) i {
  color: var(--text-main);
}

.mobile-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
  box-shadow: 0 2px 10px var(--primary-glow);
  font-weight: 600;
}

.mobile-nav-link.active i {
  color: var(--primary);
  transform: scale(1.1);
}

.mobile-nav-link.active:hover {
  color: var(--primary-hover);
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-emerald-gradient {
  background: linear-gradient(135deg, #00c26f 0%, #009957 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 194, 111, 0.28);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

[data-theme="dark"] .btn-emerald-gradient {
  background: linear-gradient(135deg, #00e599 0%, #00b377 100%);
  color: #08130e !important;
  box-shadow: 0 4px 12px rgba(0, 229, 153, 0.28);
}

.btn-emerald-gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline-emerald {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  background: transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-outline-emerald:hover {
  background-color: var(--primary-light);
}

/* ==========================================================================
   2. MATURE STUDIO HOME LAYOUT & SPACING (1200PX CONTAINER)
   ========================================================================== */
.main-content-flow {
  padding-top: 28px;
  padding-bottom: 56px;
}

.page-section {
  margin-bottom: 48px;
}

.studio-section-header {
  margin-bottom: 20px;
}

.studio-section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ==========================================================================
   3. HERO STUDIO BANNER & TOP FAVORITES (ROW 1)
   ========================================================================== */
.hero-studio-section {
  margin-bottom: 44px;
}

/* Hero Slider Carousel Component (Col-lg-8) */
.hero-slider-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.hero-slider-carousel .hero-carousel-inner,
.hero-slider-carousel .carousel-item {
  height: 100%;
}

.hero-slider-slide-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b110e;
}

.hero-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-slide-wrap:hover .hero-slider-img {
  transform: scale(1.025);
}

.hero-carousel-indicators {
  bottom: 12px;
  margin-bottom: 0;
  gap: 6px;
  z-index: 5;
}

.hero-carousel-indicators button {
  width: 18px;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  transition: all 0.25s ease;
  opacity: 0.7;
}

.hero-carousel-indicators button.active {
  width: 32px;
  background-color: #ffffff;
  opacity: 1;
}

.hero-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.2s ease;
  margin: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.85rem;
}

.hero-slider-carousel:hover .hero-carousel-btn {
  opacity: 0.9;
}

.hero-carousel-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.08);
  color: #ffffff;
}

/* Fallback Static Hero Studio Card */
.hero-studio-card {
  position: relative;
  background-color: #0b110e;
  background-image: var(--hero-bg-img);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-radius: 16px;
  min-height: 295px;
  height: 100%;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: background-image 0.25s ease, border-color var(--transition-smooth);
}

.hero-studio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(11, 17, 14, 0.95) 0%, rgba(11, 17, 14, 0.72) 42%, rgba(11, 17, 14, 0) 100%);
  pointer-events: none;
}

.hero-studio-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.hero-studio-title {
  font-size: 1.95rem;
  line-height: 1.22;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.hero-studio-subtitle {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  max-width: 380px;
}

.btn-hero-cta {
  background-color: var(--hero-cta-bg);
  color: var(--hero-cta-color) !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
}

.btn-hero-cta:hover {
  background-color: var(--hero-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Top Favorites Studio Card */
.top-favorites-studio-card {
  background-color: var(--top-fav-bg);
  border: 1px solid var(--top-fav-border);
  box-shadow: var(--top-fav-glow);
  border-radius: 16px;
  padding: 20px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

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

.top-fav-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(125, 125, 125, 0.08);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}

.top-fav-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.top-fav-tab-btn:hover {
  color: var(--text-main);
}

.top-fav-tab-btn.active {
  background: var(--primary, #00e599);
  color: #0b110e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 229, 153, 0.25);
}

[data-theme="light"] .top-fav-tab-btn.active {
  background: var(--primary, #00b377);
  color: #ffffff;
}

.top-fav-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.top-fav-clear-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Scrollable Container for 100 items */
.top-fav-tab-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.top-fav-scroll-pane {
  height: 310px;
  max-height: 310px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 991px) {
  .top-fav-scroll-pane {
    height: 330px;
    max-height: 330px;
  }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #00e599);
}

/* Rank Highlights for Top 3 */
.top-fav-studio-item.rank-gold .top-fav-num {
  color: #f59e0b;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.top-fav-studio-item.rank-silver .top-fav-num {
  color: #94a3b8;
  font-weight: 800;
}

.top-fav-studio-item.rank-bronze .top-fav-num {
  color: #f97316;
  font-weight: 800;
}

/* Empty History State */
.top-fav-empty-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 16px;
  color: var(--text-muted);
}

.top-fav-empty-history .empty-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(125, 125, 125, 0.08);
  border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary, #00e599);
}

.top-fav-empty-history .empty-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.top-fav-empty-history .empty-sub {
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
  max-width: 220px;
}

.top-fav-studio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.top-fav-studio-item:hover {
  background-color: var(--primary-light);
}

.top-fav-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--top-fav-rank-color);
  width: 22px;
  font-family: 'Inter', monospace;
  flex-shrink: 0;
}

.top-fav-thumb-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background-color: var(--song-cover-box-bg);
  border: 1px solid var(--song-cover-box-border);
}

.top-fav-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-fav-meta {
  flex: 1;
  min-width: 0;
}

.top-fav-song-title {
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.top-fav-song-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-circle-play-outline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--top-fav-play-border);
  background: transparent;
  color: var(--top-fav-play-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.btn-circle-play-outline i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.btn-circle-play-outline:hover {
  transform: scale(1.1);
  background-color: var(--primary-light);
}

/* ==========================================================================
/* ==========================================================================
   4. MỚI PHÁT HÀNH - HORIZONTAL ROW CARDS (CỘT TRÁI AVATAR, CỘT PHẢI THÔNG TIN)
   ========================================================================== */
.releases-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

@media (max-width: 1050px) {
  .releases-horizontal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .releases-horizontal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Lưới 2 cột hiển thị bài hát Đề Xuất Cho Bạn (Dạng Card Phát Hành) */
.recommended-release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

@media (max-width: 900px) {
  .recommended-release-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================================================================
   MỤC ĐỀ XUẤT CHO BẠN (LƯỚI 3 CỘT x CARD ITEM KIỂU BẢNG XẾP HẠNG)
   Cấu trúc: Cột trái Avatar | Cột giữa: Dòng 1 Title, Dòng 2 Tác giả + Thể loại, Dòng 3 Lượt nghe + Thời gian | Cột phải: Nút 3 chấm
   ========================================================================= */
.recommended-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

@media (max-width: 1100px) {
  .recommended-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .recommended-chart-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.recommend-chart-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--card-bg, #0e1e17);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.11));
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast, 0.22s ease), border-color var(--transition-fast, 0.22s ease), box-shadow var(--transition-fast, 0.22s ease), background-color var(--transition-fast, 0.22s ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.recommend-chart-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #00e599);
  box-shadow: 0 8px 24px rgba(0, 229, 153, 0.16);
  background-color: #14281f;
}

[data-theme="light"] .recommend-chart-card {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .recommend-chart-card:hover {
  border-color: #059669;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.14);
  background-color: #f0fdf4;
}

/* 1. Cột trái: Avatar vuông 54px */
.recommend-thumb-box {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-color: var(--song-cover-box-bg, #1a231f);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
}

.recommend-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.recommend-chart-card:hover .recommend-thumb-img {
  transform: scale(1.08);
}

.recommend-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
  z-index: 2;
}

.recommend-chart-card:hover .recommend-thumb-overlay,
.recommend-chart-card.is-playing .recommend-thumb-overlay {
  opacity: 1;
}

.recommend-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, #00e599);
  color: #0b110e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transform: scale(0.85);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .recommend-play-btn {
  background: #00b377;
  color: #ffffff;
}

.recommend-chart-card:hover .recommend-play-btn,
.recommend-chart-card.is-playing .recommend-play-btn {
  transform: scale(1);
}

.recommend-thumb-box .global-avatar-wave-bars {
  z-index: 4;
}

/* 2. Cột giữa: Thông tin 3 hàng */
.recommend-info-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Hàng 1: Title (Không dùng thẻ link a; click thẻ để phát/dừng, xem chi tiết qua nút 3 chấm) */
.recommend-song-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main, #ffffff);
  transition: color var(--transition-fast, 0.15s ease);
}

.recommend-chart-card:hover .recommend-song-title {
  color: var(--primary, #00e599);
}

[data-theme="light"] .recommend-song-title {
  color: #0f172a;
}

[data-theme="light"] .recommend-chart-card:hover .recommend-song-title {
  color: var(--primary, #00b377);
}

.recommend-song-link {
  color: inherit;
  text-decoration: none;
}

/* Hàng 2: Tác giả, Thể loại */
.recommend-meta-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-artist-link {
  color: #38ef7d;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.15s ease;
}

.recommend-artist-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

[data-theme="light"] .recommend-artist-link {
  color: #059669;
}

.recommend-genre-tag {
  background: rgba(125, 125, 125, 0.1);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--primary, #00e599);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 500;
}

[data-theme="light"] .recommend-genre-tag {
  color: #00875a;
  background: #e6f7f0;
  border-color: #b3ebd4;
}

/* Hàng 3: Lượt nghe và Thời gian phát hành */
.recommend-meta-row3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .recommend-meta-row3 {
  color: #64748b;
}

/* 3. Cột phải: Nút 3 chấm */
.recommend-more-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast, 0.15s ease);
  flex-shrink: 0;
}

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

[data-theme="light"] .recommend-more-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.release-row-card {
  background-color: var(--card-bg, #101915);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--card-shadow, 0 2px 8px rgba(0, 0, 0, 0.04));
  min-width: 0;
}

.release-row-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #00e599);
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.12);
  background-color: var(--bg-card-hover, rgba(255, 255, 255, 0.03));
}

[data-theme="light"] .release-row-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .release-row-card:hover {
  border-color: var(--primary, #00b377);
  box-shadow: 0 4px 16px rgba(0, 179, 119, 0.15);
  background-color: #f8fafc;
}

/* Cột Trái: Avatar */
.release-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  background-color: var(--song-cover-box-bg, #1a231f);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.release-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.release-avatar-box:hover .release-avatar-img {
  transform: scale(1.08);
}

/* Hover Play Overlay inside Avatar */
.release-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}

.release-row-card:hover .release-avatar-overlay,
.release-avatar-box:hover .release-avatar-overlay,
.release-row-card.is-playing .release-avatar-overlay {
  opacity: 1;
}

.release-avatar-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary, #00e599);
  color: #0b110e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transform: scale(0.85);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .release-avatar-play-btn {
  background: #00b377;
  color: #ffffff;
}

.release-row-card:hover .release-avatar-play-btn,
.release-avatar-box:hover .release-avatar-play-btn,
.release-row-card.is-playing .release-avatar-play-btn {
  transform: scale(1);
}

.release-avatar-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.release-avatar-box:hover .release-avatar-badge {
  opacity: 0;
}

/* Cột Phải: Thông tin bài hát */
.release-details-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.release-song-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-song-link {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.release-song-link:hover {
  color: var(--primary, #00e599) !important;
  text-decoration: underline;
}

[data-theme="light"] .release-song-link:hover {
  color: var(--primary, #00b377) !important;
}

.release-artist-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.release-extra-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.release-tag-genre {
  background: rgba(125, 125, 125, 0.1);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--primary, #00e599);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 500;
}

[data-theme="light"] .release-tag-genre {
  color: #00875a;
  background: #e6f7f0;
  border-color: #b3ebd4;
}

.release-tag-time {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}

/* Quick Play Button on Card Right Edge */
.release-row-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  opacity: 0;
  transform: scale(0.9);
}

.release-row-card:hover .release-row-play-btn {
  opacity: 1;
  transform: scale(1);
}

.release-row-play-btn:hover {
  background: var(--primary, #00e599);
  border-color: var(--primary, #00e599);
  color: #0b110e;
  transform: scale(1.1);
  box-shadow: 0 2px 10px rgba(0, 229, 153, 0.35);
}

[data-theme="light"] .release-row-play-btn:hover {
  background: #00b377;
  border-color: #00b377;
  color: #ffffff;
}

/* Fallback grid if needed */
.releases-studio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

/* Row 1: Square Cover Card - Studio Framed Box */
.song-square-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 12px 14px 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.song-square-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--card-shadow-hover);
}

.song-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background-color: var(--song-cover-box-bg);
  border: 1px solid var(--song-cover-box-border);
}

.song-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.35s ease;
}

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

.song-duration-chip {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

.btn-floating-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: all var(--transition-fast);
  opacity: 0.92;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

.btn-floating-play i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.song-square-card:hover .btn-floating-play,
.vinyl-square-card:hover .btn-floating-play {
  opacity: 1;
  transform: scale(1.1);
  background: #ffffff;
  color: var(--primary);
}

.song-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.song-card-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Row 2: Vinyl Mockup Card - Studio Framed Box */
.vinyl-square-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 12px 14px 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.vinyl-square-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--card-shadow-hover);
}

.vinyl-sleeve-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background-color: #15221b;
}

.vinyl-sleeve-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.35s ease;
}

.vinyl-square-card:hover .vinyl-sleeve-art {
  transform: scale(1.04);
}

.vinyl-disc-peeker {
  display: none;
  /* When using complete artwork from mockup */
}

/* ==========================================================================
   5. KHÁM PHÁ THỂ LOẠI (6 COLUMNS)
   ========================================================================== */
.genre-studio-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.genre-studio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  text-decoration: none;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.genre-studio-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.genre-studio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.genre-studio-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.genre-studio-card:hover .genre-studio-img {
  transform: scale(1.06);
}

.genre-studio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.genre-studio-name {
  position: relative;
  z-index: 2;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   6. NGHỆ SĨ TIÊU BIỂU (5 COLUMNS)
   ========================================================================== */
.artist-studio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.artist-studio-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.artist-studio-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.artist-avatar-wrap {
  margin-bottom: 12px;
}

.artist-avatar-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--artist-ring-border);
  box-shadow: var(--artist-ring-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.artist-name-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.artist-listeners-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}

.btn-artist-follow {
  background-color: var(--artist-follow-bg);
  border: 1px solid var(--artist-follow-border);
  color: var(--artist-follow-color) !important;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-artist-follow:hover {
  background-color: var(--artist-follow-hover-bg);
  color: var(--artist-follow-hover-color) !important;
  border-color: var(--artist-follow-hover-bg);
}

/* ==========================================================================
   RESPONSIVE LAYOUT CALIBRATION (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 991.98px) {

  /* Slider Responsive 800x400 Proportion on Mobile & Tablet */
  .hero-slider-carousel {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 800 / 400 !important;
  }

  .hero-slider-carousel .hero-carousel-inner,
  .hero-slider-carousel .carousel-item {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 800 / 400 !important;
  }

  .hero-slider-slide-wrap {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 800 / 400 !important;
  }

  .hero-slider-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 800 / 400 !important;
    object-fit: cover !important;
  }

  .hero-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    margin: 0 8px;
    opacity: 0.85;
  }

  .hero-carousel-indicators {
    bottom: 8px;
    gap: 4px;
  }

  .hero-carousel-indicators button {
    width: 14px;
    height: 3px;
  }

  .hero-carousel-indicators button.active {
    width: 24px;
  }

  .header-nav-container {
    height: 64px;
  }

  .brand-logo-img {
    height: 44px !important;
    width: auto !important;
    max-width: 160px !important;
  }

  .header-mobile-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px;
    overflow: hidden;
    text-align: center;
    pointer-events: none;
  }

  .mobile-slogan-text {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--primary);
    background: linear-gradient(135deg, #059669 0%, #00c26f 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    font-style: italic;
  }

  [data-theme="dark"] .mobile-slogan-text {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .header-nav-menu {
    display: none !important;
  }

  .header-search-wrap {
    display: none !important;
  }

  .btn-hamburger-menu {
    display: inline-flex !important;
  }

  .btn-header-icon.mobile-search-toggle {
    display: inline-flex !important;
  }

  .releases-studio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .genre-studio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .artist-studio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 767.98px) {
  .header-nav-menu {
    display: none !important;
  }

  .header-search-wrap {
    display: none !important;
  }

  .releases-studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .genre-studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .artist-studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-studio-card {
    padding: 24px 20px;
    min-height: 220px;
  }

  .hero-studio-title {
    font-size: 1.45rem;
  }
}

@media (max-width: 575.98px) {
  .container-1200 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .brand-logo-img {
    height: 44px !important;
    width: auto !important;
    max-width: 155px !important;
  }

  .header-nav-container {
    gap: 6px;
    height: 62px;
  }

  .header-mobile-slogan {
    padding: 0 4px;
  }

  .mobile-slogan-text {
    font-size: 0.74rem;
  }

  .header-right-actions {
    gap: 5px;
  }

  .btn-header-icon,
  .btn-theme-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }

  .btn-hamburger-menu {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  .header-user-avatar {
    width: 32px !important;
    height: 32px !important;
  }

  .btn-login-ghost {
    padding: 5px 8px !important;
    font-size: 0.74rem !important;
    white-space: nowrap;
  }

  .btn-nav-upload {
    display: none !important;
  }

  .hero-slider-carousel {
    border-radius: 12px;
    aspect-ratio: 800 / 400 !important;
  }

  .hero-slider-slide-wrap {
    aspect-ratio: 800 / 400 !important;
  }

  .hero-slider-img {
    aspect-ratio: 800 / 400 !important;
  }

  .hero-carousel-btn {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
    margin: 0 4px;
  }

  .hero-carousel-indicators {
    bottom: 6px;
  }
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 48px 0 calc(var(--dock-height, 84px) + 36px) 0;
  margin-top: 48px;
  width: 100%;
  max-width: 100%;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.site-footer .footer-fluid-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .site-footer .footer-fluid-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Footer Brand Logo Sizing: PC tăng từ 46px lên 66px, Mobile tăng từ 42px lên 72px */
.footer-logo-img,
.site-footer .footer-logo-img,
.site-footer .brand-logo-img.footer-logo-img {
  height: 66px !important;
  max-width: 280px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

@media (max-width: 767.98px) {

  .footer-logo-img,
  .site-footer .footer-logo-img,
  .site-footer .brand-logo-img.footer-logo-img {
    height: 72px !important;
    max-width: 320px !important;
    width: auto !important;
  }
}

@media (max-width: 480px) {

  .footer-logo-img,
  .site-footer .footer-logo-img,
  .site-footer .brand-logo-img.footer-logo-img {
    height: 72px !important;
    max-width: 320px !important;
    width: auto !important;
  }
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-item a {
  font-size: 0.80rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer-link-item a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-about-text {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 10px 0 12px 0;
}

.footer-copyright {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--footer-social-bg);
  color: var(--footer-social-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--footer-border);
}

.footer-social-icon:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 153, 0.35);
}

.footer-contact-info {
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--primary);
  text-decoration: underline !important;
}

.footer-quote {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-style: italic;
  margin-top: 8px;
}

/* AI Model Badges */
.footer-ai-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-ai-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--footer-badge-bg);
  border: 1px solid var(--footer-badge-border);
  color: var(--footer-badge-color);
  user-select: none;
  transition: all var(--transition-fast);
}

.footer-ai-badge:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Ticket Button */
.footer-ticket-btn {
  background: var(--footer-social-bg);
  color: var(--text-main);
  border: 1px solid var(--footer-border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.footer-ticket-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Footer Bottom Divider & Legal */
.footer-bottom-divider {
  border-top: 1px solid var(--footer-border);
  margin: 28px 0 16px 0;
}

.footer-bottom-row {
  font-size: 0.75rem;
}

.footer-disclaimer-text {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.5;
}

.footer-tag-cert {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--footer-social-bg);
  border: 1px solid var(--footer-border);
}

/* ==========================================================================
   PJAX PROGRESS BAR & PAGE TRANSITION
   ========================================================================== */
.pjax-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, #00c26f, #00e599, #5effb1);
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.7), 0 0 5px rgba(0, 229, 153, 0.5);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.25s ease;
  opacity: 0;
}

.pjax-main-container {
  min-height: calc(100vh - 280px);
  transition: opacity 0.15s ease-in-out;
}

/* ==========================================================================
   11. FIXED BOTTOM MUSIC PLAYER DOCK (PREMIUM GLASS-EMERALD BAR)
   ========================================================================== */
.bottom-music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: #091a13;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: flex;
  align-items: center;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), border-top-color var(--transition-fast);
}

.bottom-music-player:hover {
  background: rgba(9, 40, 29, 0.98);
  border-top-color: rgba(0, 229, 153, 0.32);
}

.dock-mobile-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 10;
}

.dock-mobile-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c26f, #00e599);
  transition: width 0.1s linear;
}

.player-inner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

/* 1. LEFT: Track Info (280px width, matching Right for true center) */
.player-left-track {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 280px;
  max-width: 280px;
  min-width: 0;
}

.player-track-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
}

.player-track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Playing Equalizer Overlay on Art Thumbnail */
.dock-art-playing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.player-track-art.playing .dock-art-playing-overlay {
  display: flex;
}

.dock-eq-bar {
  width: 3px;
  height: 14px;
  background: #00e599;
  border-radius: 2px;
  animation: dockEqBounce 1s ease-in-out infinite;
}

.dock-eq-bar.bar-1 {
  animation-delay: 0.1s;
  height: 10px;
}

.dock-eq-bar.bar-2 {
  animation-delay: 0.3s;
  height: 16px;
}

.dock-eq-bar.bar-3 {
  animation-delay: 0.2s;
  height: 12px;
}

@keyframes dockEqBounce {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.player-track-details {
  min-width: 0;
  flex: 1;
}

.player-track-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.bottom-music-player:hover .player-track-title {
  color: #00e599;
}

.player-track-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.player-track-artist {
  font-size: 0.74rem;
  font-weight: 400;
  color: #92b7a6;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-dock-ai {
  font-size: 0.625rem;
  font-weight: 600;
  background: rgba(0, 229, 153, 0.14);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 4px;
  padding: 0 5px;
  flex-shrink: 0;
  line-height: 1.4;
}

.btn-player-heart {
  background: transparent;
  border: none;
  color: #7d9e90;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-player-heart:hover {
  color: #ef4444;
  transform: scale(1.15);
}

/* 2. CENTER: Controls & Scrubbable Seek Bar */
.player-center-wrap {
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

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

.player-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #9dbfb0;
  font-size: 0.9rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

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

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

.player-btn.active {
  color: #00e599 !important;
  background: rgba(0, 229, 153, 0.2) !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.25);
}

.player-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 6px #00e599;
}

.player-btn-main {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #072a1e;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 229, 153, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.player-btn-main:hover {
  background: #00e599;
  color: #072a1e;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.5);
}

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

.time-badge {
  font-size: 0.72rem;
  color: #8cb2a1;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
  user-select: none;
}

.progress-slider-container {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: height var(--transition-fast);
}

.progress-slider-container:hover {
  height: 6px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #00c26f, #00e599);
  border-radius: 6px;
  width: 0%;
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.progress-slider-container:hover .progress-thumb {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

/* 3. RIGHT: Volume, Queue & Expand (280px width, matching left) */
.player-right-utils {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 280px;
  max-width: 280px;
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 110px;
  padding: 0 4px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3.5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.btn-queue-dock {
  position: relative;
}

.dock-queue-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.6rem;
  background: #00e599;
  color: #072a1e;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 4px;
  line-height: 1;
  min-width: 14px;
  text-align: center;
}

.btn-expand-dock:hover {
  color: #00e599;
  transform: scale(1.1);
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (PC, TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */

/* Laptops & Small Desktops (992px to 1199px) */
@media (max-width: 1199px) {
  .header-search-wrap {
    max-width: 300px;
  }

  .new-releases-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .genre-listen-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .creator-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .suggest-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-sunny-card {
    padding: 22px 26px;
  }

  .hero-sunny-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .hero-sunny-art-wrap {
    width: 44%;
  }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
  .header-search-wrap {
    max-width: 220px;
  }

  .sub-nav-links {
    gap: 20px;
  }

  .hero-sunny-art-wrap {
    width: 38%;
    opacity: 0.45;
  }

  .hero-sunny-card {
    min-height: 240px;
  }

  .contest-events-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .new-releases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .genre-listen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .creator-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .suggest-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .step-arrow-divider {
    display: none;
  }

  .player-right-utils {
    width: 140px;
  }

  .volume-slider-wrap {
    width: 70px;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  body {
    padding-bottom: 70px;
  }

  .container-1200 {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-section {
    margin-bottom: 22px;
  }

  .header-top-row {
    padding: 8px 0;
    gap: 8px;
  }

  .brand-logo-img {
    height: 44px !important;
    width: auto !important;
    max-width: 155px !important;
    object-fit: contain;
  }

  .header-search-wrap {
    display: none;
  }

  .btn-upload-music {
    display: none;
  }

  .header-top-actions {
    gap: 6px;
  }

  .btn-login-ghost {
    padding: 5px 11px;
    font-size: 0.75rem;
  }

  .btn-register-green {
    padding: 5px 13px;
    font-size: 0.75rem;
  }

  .sub-nav-bar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .sub-nav-links {
    gap: 14px;
    padding: 0 4px;
    width: 100%;
    max-width: 100%;
  }

  .sub-nav-link {
    font-size: 0.8125rem;
    padding: 8px 2px 6px 2px;
  }

  .hero-slider-card {
    aspect-ratio: 2 / 1;
    min-height: 220px;
    height: auto;
  }

  .hero-sunny-card {
    padding: 18px 16px;
    min-height: auto;
  }

  .hero-sunny-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
  }

  .hero-sunny-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-sunny-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 7px;
  }

  .btn-hero-solid,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    font-size: 0.8125rem;
    padding: 8px 16px;
  }

  .hero-sunny-art-wrap {
    width: 40%;
    opacity: 0.28;
    pointer-events: none;
  }

  .top-favorites-card {
    padding: 14px 12px;
  }

  .top-fav-header {
    margin-bottom: 8px;
  }

  .top-fav-header h3 {
    font-size: 0.88rem;
  }

  .top-fav-item {
    padding: 5px 4px;
    gap: 8px;
  }

  .top-fav-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .top-fav-title {
    font-size: 0.8rem;
  }

  .top-fav-artist {
    font-size: 0.68rem;
  }

  .new-releases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .release-title {
    font-size: 0.8rem;
  }

  .release-artist {
    font-size: 0.68rem;
  }

  .genre-listen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .creator-cards-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  .creator-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .creator-card-box {
    flex: 0 0 130px;
    scroll-snap-align: start;
    padding: 12px 8px;
  }

  .creator-circle-avatar {
    width: 48px;
    height: 48px;
  }

  .suggest-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .suggest-title {
    font-size: 0.8rem;
  }

  .suggest-artist {
    font-size: 0.68rem;
  }

  .contest-events-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .steps-flex-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .step-card-box {
    width: 100%;
    padding: 12px 14px;
  }

  .step-arrow-divider {
    display: none;
  }

  /* Bottom Player Compact on Mobile */
  .bottom-music-player {
    height: 64px;
    border-top: none !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .player-inner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .player-left-track {
    flex: 1 1 auto;
    max-width: calc(100% - 132px);
    gap: 10px;
    min-width: 0;
  }

  .player-track-art {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .player-track-details {
    min-width: 0;
    flex: 1;
  }

  .player-track-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-track-artist {
    font-size: 0.7rem;
    color: #92b7a6;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-player-heart {
    display: none;
  }

  /* Dedicated far-right controls cluster on mobile (Play, Next, Expand) */
  .player-mobile-controls-cluster {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .btn-mobile-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #00e599;
    color: #072a1e;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 229, 153, 0.45);
    cursor: pointer;
    flex-shrink: 0;
  }

  .btn-mobile-play:active {
    transform: scale(0.95);
  }

  .btn-mobile-next,
  .btn-mobile-repeat,
  .btn-mobile-expand {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-mobile-next:active,
  .btn-mobile-repeat:active,
  .btn-mobile-expand:active {
    transform: scale(0.92);
  }

  .btn-mobile-repeat.active {
    color: #00e599 !important;
    background: rgba(0, 229, 153, 0.22) !important;
  }

  .btn-mobile-repeat.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00e599;
    box-shadow: 0 0 6px #00e599;
  }

  .btn-mobile-next:hover,
  .btn-mobile-expand:hover {
    color: #ffffff;
  }

  .btn-mobile-expand {
    color: #00e599;
  }

  .btn-mobile-expand:hover {
    color: #00ffaa;
  }
}

/* Extra Small Phones (< 480px, iPhone SE & Standard Mobile Viewports) */
@media (max-width: 480px) {
  .hero-slider-card {
    aspect-ratio: 2 / 1;
    min-height: 180px;
    height: auto;
  }

  .hero-slider-actions {
    padding: 14px 16px;
    gap: 8px;
  }

  .hero-slider-actions .btn-hero-solid,
  .hero-slider-actions .btn-hero-outline {
    font-size: 0.76rem;
    padding: 6px 14px;
  }

  .brand-logo-img {
    height: 42px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-slogan {
    display: none;
    /* Hide slogan on tiny phone screens to prevent crowding */
  }

  .btn-login-ghost {
    padding: 4px 9px;
    font-size: 0.72rem;
  }

  .btn-register-green {
    padding: 4px 11px;
    font-size: 0.72rem;
  }

  .section-title-wrap h2,
  .section-title-wrap h3 {
    font-size: 1rem;
  }

  .creator-card-box {
    flex: 0 0 115px;
    padding: 10px 6px;
  }

  .creator-circle-avatar {
    width: 44px;
    height: 44px;
  }

  .creator-card-name {
    font-size: 0.78rem;
  }

  .creator-card-listeners {
    font-size: 0.65rem;
  }

  .btn-follow-creator {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* ==========================================================================
   10. CUSTOM DIALOG BOX (REPLACES BROWSER ALERT & CONFIRM)
   ========================================================================== */
.modal-sm-custom {
  max-width: min(92vw, 450px);
}

.custom-dialog-box {
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background-color: #ffffff;
}

.custom-dialog-header {
  padding: 24px 24px 12px;
  text-align: center;
}

.custom-dialog-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
}

.custom-dialog-icon-wrap.icon-danger {
  background-color: #fee2e2;
  color: #dc2626;
}

.custom-dialog-icon-wrap.icon-warning {
  background-color: #fef3c7;
  color: #d97706;
}

.custom-dialog-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.custom-dialog-body {
  padding: 0 24px 20px;
  text-align: center;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.custom-dialog-footer {
  padding: 16px 24px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--card-border);
}

.btn-dialog-cancel {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-dialog-cancel:hover {
  background-color: #f3f4f6;
}

.btn-dialog-confirm {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-dialog-confirm:hover {
  background-color: var(--primary-hover);
}

.btn-dialog-confirm.btn-danger-confirm {
  background-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-dialog-confirm.btn-danger-confirm:hover {
  background-color: #b91c1c;
}

/* ==========================================================================
   11. CUSTOM TOAST NOTIFICATIONS (TOAST ĐỒNG BỘ TOÀN HỆ THỐNG)
   - Background màu đặc theo trạng thái (Xanh lá, Đỏ, Vàng, Xanh dương)
   - Tuyệt đối KHÔNG dùng nền trắng & KHÔNG viền cạnh trái (no border-left)
   - Canh chỉnh xuất hiện DƯỚI thanh menutop (top: 76px PC / 68px Mobile)
   - pointer-events: none cho container & pointer-events: auto cho toast
   ========================================================================== */
#globalToastContainer,
.global-toast-container {
  position: fixed !important;
  top: 76px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10500 !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 0 !important;
  max-width: calc(100vw - 40px) !important;
}

@media (max-width: 768px) {

  #globalToastContainer,
  .global-toast-container {
    top: 68px !important;
    right: 14px !important;
    left: 14px !important;
    max-width: calc(100vw - 28px) !important;
    align-items: center !important;
  }
}

.simusic-toast {
  min-width: 290px;
  max-width: 440px;
  border-radius: 12px;
  padding: 13px 18px;
  margin-bottom: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  pointer-events: auto !important;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 768px) {
  .simusic-toast {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 0.84rem;
    padding: 11px 15px;
  }
}

@keyframes toastSlideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

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

/* 1. Thành công: Background Xanh lá / Ngọc lục bảo */
.simusic-toast.toast-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: rgba(0, 255, 136, 0.4) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* 2. Thất bại / Lỗi: Background Đỏ Ruby */
.simusic-toast.toast-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: rgba(254, 202, 202, 0.35) !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* 3. Cảnh báo: Background Vàng Hổ Phách */
.simusic-toast.toast-warning {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border-color: rgba(253, 230, 138, 0.4) !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* 4. Thông tin: Background Xanh dương Biển */
.simusic-toast.toast-info {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: rgba(191, 219, 254, 0.4) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.simusic-toast .toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  color: #ffffff !important;
}

.simusic-toast .toast-msg {
  flex-grow: 1;
  line-height: 1.45;
  color: #ffffff !important;
  word-break: break-word;
}

.simusic-toast .toast-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.simusic-toast .toast-close-btn:hover {
  color: #ffffff;
  transform: scale(1.18);
}

/* ==========================================================================
   12. AUTH MODAL & FORM VALIDATIONS
   ========================================================================== */
.auth-modal-box {
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background-color: var(--dropdown-bg, #0d1a14);
}

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

.auth-tabs-nav {
  display: flex;
  gap: 8px;
}

.auth-tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.auth-tab-btn.active {
  color: var(--primary);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px 3px 0 0;
}

.btn-close-auth {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-close-auth:hover {
  background: #e5e7eb;
  color: var(--text-main);
}

.auth-modal-body {
  padding: 24px 28px;
}

.auth-intro-text h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-intro-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.auth-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

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

.auth-field-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 0.9rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: all 0.2s;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.auth-input.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.auth-input.is-valid {
  border-color: #10b981;
}

.auth-field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 3px;
  line-height: 1.3;
}

.auth-field-error:empty {
  display: none;
}

.auth-field-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
}

.auth-forgot-link {
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.825rem;
  color: var(--text-body);
}

.btn-auth-submit {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-auth-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Google Auth Button & Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6b7280;
  font-size: 0.8rem;
  margin: 16px 0 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-divider span {
  padding: 0 12px;
  text-transform: lowercase;
}

.btn-google-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
  cursor: pointer;
  box-sizing: border-box;
}

.btn-google-auth:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  border-bottom-color: #e5e7eb;
}

[data-theme="light"] .btn-google-auth {
  background-color: #ffffff;
  border-color: #d1d5db;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-google-auth:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* User Profile Toggle in Header */
.btn-user-profile-toggle {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-user-profile-toggle:hover {
  border-color: var(--primary);
  background-color: #f8faf9;
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.header-user-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-dropdown-menu {
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 220px;
}

/* Instant Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

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

.search-result-item:hover {
  background-color: var(--primary-light);
  color: var(--text-main);
}

.search-item-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.search-item-info h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.search-item-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Upload Dropzone */
.upload-dropzone-box {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background-color: #f8fafc;
  transition: all 0.2s;
}

.upload-dropzone-box:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-drop-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.upload-drop-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.upload-drop-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.upload-cover-preview {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.upload-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s;
}

.upload-cover-preview:hover .cover-preview-overlay {
  opacity: 1;
}

/* ==========================================================================
   13. FULLSCREEN STUDIO EXPANDED PLAYER & LRC KARAOKE ENGINE
   ========================================================================== */
.fullscreen-studio-player {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: #061a13;
  background: radial-gradient(circle at 50% 25%, #093828 0%, #061e16 55%, #03110c 100%);
  color: #ffffff;
  display: none;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.fullscreen-studio-player.active {
  display: flex;
}

.studio-ambient-bg {
  position: absolute;
  inset: -40px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(80px) saturate(1.4) brightness(0.25);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.5s ease;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.studio-ambient-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Studio Top Bar: Logo Branding Trái, Nút Thu Nhỏ Phải */
.studio-topbar {
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 20, 14, 0.5);
  backdrop-filter: blur(12px);
}

.studio-top-brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: #ffffff;
  min-width: 160px;
}

.studio-top-brand .text-emerald {
  color: #00e599 !important;
}

.studio-top-brand .brand-sub {
  color: #00e599;
  font-weight: 600;
  font-size: 0.8rem;
  margin-left: 3px;
}

.studio-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 160px;
}

.btn-studio-minimize {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-studio-minimize:hover {
  background: rgba(0, 229, 153, 0.18);
  border-color: rgba(0, 229, 153, 0.45);
  color: #00e599;
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.3);
}

.studio-top-meta {
  text-align: center;
  flex: 1;
  max-width: 480px;
}

.studio-now-playing-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #00e599;
  font-weight: 700;
  display: block;
}

.studio-header-song-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1px 0 0;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-mobile-tabs-bar {
  display: none;
}

/* Studio Body Content */
.studio-body-content {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 10px 0;
}

.studio-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: center;
  height: 100%;
}

/* Left Column: Vinyl, Meta, Badges */
.studio-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   LUXURY VINYL TURNTABLE & AUDIO-TECHNICA HI-END TONEARM
   ========================================================================== */
.studio-turntable-stage {
  position: relative;
  width: 330px;
  height: 330px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.8));
}

/* 1. Hi-End Metallic Tonearm (Cần kim đĩa than mạ bạc sang trọng) */
.studio-tonearm {
  position: absolute;
  top: -8px;
  right: 18px;
  width: 50px;
  height: 185px;
  z-index: 15;
  pointer-events: none;
  transform-origin: 25px 25px;
  /* Pivot center */
  transform: rotate(0deg);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

/* When playing, the tonearm drops gently onto the record grooves */
.fullscreen-studio-player.playing .studio-tonearm {
  transform: rotate(26deg);
}

/* Tonearm Base / Gimbal Pivot */
.tonearm-pivot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #94a3b8 0%, #475569 50%, #1e293b 85%, #0f172a 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tonearm-pivot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f8fafc, #64748b 70%, #334155 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Tonearm Wand (Cần kim mạ chrome) */
.tonearm-rod {
  position: absolute;
  top: 35px;
  left: 23px;
  width: 5px;
  height: 120px;
  background: linear-gradient(90deg, #cbd5e1 0%, #ffffff 40%, #94a3b8 70%, #475569 100%);
  border-radius: 3px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.6);
  transform-origin: top center;
  transform: rotate(-4deg);
}

/* Tonearm Headshell / Cartridge (Đầu gắn kim hát) */
.tonearm-head {
  position: absolute;
  bottom: 0px;
  left: 8px;
  width: 22px;
  height: 38px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  transform: rotate(18deg);
  display: flex;
  justify-content: center;
}

/* Diamond Stylus Needle with subtle glowing green audio indicator */
.tonearm-needle {
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 8px;
  background: linear-gradient(180deg, #f59e0b, #00e599);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(0, 229, 153, 0.85);
}

/* 2. Luxury Vinyl Disc Container & Grooves */
.studio-vinyl-wrap {
  width: 285px;
  height: 285px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  /* Offset to center relative to turntable platter */
}

.studio-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Authentic deep black vinyl with edge rim */
  background: radial-gradient(circle, #0a0e12 28%, #030406 100%);
  border: 4px solid #141a21;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.85),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 35px rgba(0, 0, 0, 0.95);
  animation: studioVinylSpin 20s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.fullscreen-studio-player.playing .studio-vinyl-disc {
  animation-play-state: running;
}

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

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

/* Micro-Grooves (Rãnh đĩa than chân thực) */
.vinyl-groove-lines {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.4) 5px,
      transparent 6px);
  opacity: 0.9;
}

/* Realistic Conic Dual-Bevel Specular Sheen (Ánh sáng phản quang 2 vệt đối xứng) */
.vinyl-light-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 35deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.12) 28deg,
      transparent 55deg,
      transparent 180deg,
      rgba(255, 255, 255, 0.12) 208deg,
      transparent 235deg);
  mix-blend-mode: screen;
}

/* Center Album Label with Gold/Metallic Luxury Rim */
.vinyl-center-label {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  box-shadow:
    0 0 0 3px #1e293b,
    0 0 0 5px rgba(255, 215, 0, 0.4),
    0 0 16px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.studio-cover-center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Center Spindle Hole (Lỗ trục mạ chrome) */
.vinyl-spindle-hole {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #05070a 45%, #cbd5e1 55%, #475569 85%, #0f172a 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 5;
  pointer-events: none;
}

.studio-song-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #ffffff;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-artist-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-artist-name {
  font-size: 0.95rem;
  color: #92b7a6;
  font-weight: 500;
}

.badge-studio-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.badge-studio-tag.tag-ai {
  background: rgba(0, 229, 153, 0.16);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.3);
}

.badge-studio-tag.tag-genre {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Cụm 5 Nút Hành Động YouTube Style (Like, Tải về, Playlist, Chia sẻ, Báo cáo) */
.studio-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-studio-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-studio-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 229, 153, 0.4);
  color: #00e599;
  transform: translateY(-1px);
}

.btn-studio-action.liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
}

.btn-studio-action.liked i {
  color: #ef4444;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

  50% {
    transform: scale(1.35);
  }

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

.btn-studio-action.btn-studio-report:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
}

.studio-waveform-box {
  width: 100%;
  max-width: 320px;
  opacity: 0.75;
}

/* Cột Phải PC & Sub-Tabs Header */
.studio-right-col {
  height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(3, 14, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  padding: 16px 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.studio-right-tabs-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.studio-right-tab-item {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.studio-right-tab-item.active {
  background: #00e599;
  color: #072a1e;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 229, 153, 0.35);
}

.studio-right-tab-item.active .badge-tab-count {
  background: rgba(7, 42, 30, 0.3);
  color: #072a1e;
}

.studio-pane-content {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.studio-pane-content.active {
  display: flex;
}

.studio-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
}

.studio-pane-title {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 12px rgba(0, 229, 153, 0.4);
}

.studio-pane-title i {
  color: #00e599 !important;
}

.studio-pane-hint {
  font-size: 0.76rem;
  color: #8cb2a1 !important;
}

/* LRC Lyrics Container & Stream (Luxury Apple Music / Spotify Style) */
.studio-lyrics-container {
  flex: 1;
  overflow-y: auto;
  /* PADDING TRÊN & DƯỚI ĐỂ CÂU HÁT ĐẦU VÀ CUỐI ĐỀU CUỘN VÀO TÂM DỌC */
  padding: 200px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  /* Hiệu ứng mờ dần đỉnh và đáy sang trọng chuẩn Apple Music */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

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

.studio-lyrics-empty {
  text-align: center;
  padding: 50px 10px;
  color: #8cb2a1;
}

.studio-lyrics-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.lyrics-line {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, text-shadow 0.4s ease, filter 0.4s ease;
  padding: 8px 16px;
  user-select: none;
  line-height: 1.65;
  font-weight: 600;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0.45;
  filter: blur(0.4px);
  transform: scale(0.97);
}

.lyrics-line:hover {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.85;
  filter: blur(0);
  transform: scale(1);
}

/* CÂU HÁT ACTIVE SANG TRỌNG ĐỈNH CAO: KHÔNG BORDER, KHÔNG NỀN HỘP, TYPOGRAPHY KIM CƯƠNG PHÁT QUANG */
.lyrics-line.active {
  color: #ffffff !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  opacity: 1 !important;
  filter: blur(0) !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.85), 0 0 30px rgba(0, 229, 153, 0.65), 0 0 60px rgba(0, 229, 153, 0.3) !important;
  transform: scale(1.05) translateZ(0) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.lyrics-line.plain-line {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  cursor: default;
  filter: blur(0) !important;
}

/* Studio Modals (Playlist, Share, Report) */
.studio-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 2100;
  background: rgba(3, 14, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: studioFadeIn 0.2s ease;
}

.studio-modal-overlay.active {
  display: flex;
}

.text-emerald {
  color: #00e599 !important;
}

[data-theme="light"] .text-emerald {
  color: #047857 !important;
}

.btn-emerald {
  background: #00e599 !important;
  color: #072a1e !important;
  font-weight: 700 !important;
  border: none !important;
  transition: all var(--transition-fast) !important;
}

.btn-emerald:hover {
  background: #00ffaa !important;
  color: #041a12 !important;
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.45) !important;
}

@keyframes studioFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.studio-modal-card {
  width: 100%;
  max-width: 440px;
  background: #092319;
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 229, 153, 0.15);
  overflow: hidden;
  animation: studioSlideUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes studioSlideUp {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }

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

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

.studio-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-studio-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

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

.studio-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.studio-modal-input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

.studio-modal-input:focus {
  border-color: #00e599 !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.2) !important;
}

.studio-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

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

.studio-playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 153, 0.3);
}

.studio-playlist-item input[type="checkbox"] {
  accent-color: #00e599;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.studio-share-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-share-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 10px;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-share-social:hover {
  transform: translateY(-2px);
}

.share-fb {
  background: #1877f2;
}

.share-zalo {
  background: #0068ff;
}

.share-tele {
  background: #229ed9;
}

.share-x {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.studio-report-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-report-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s;
}

.studio-report-radio:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 68, 68, 0.3);
}

.studio-report-radio input[type="radio"] {
  accent-color: #ef4444;
  margin-top: 3px;
}

/* Playlist Queue Stream */
.studio-queue-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.studio-queue-container::-webkit-scrollbar {
  width: 5px;
}

.studio-queue-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.studio-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.studio-queue-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.studio-queue-item.active {
  background: rgba(0, 229, 153, 0.12);
  border-color: rgba(0, 229, 153, 0.35);
}

.queue-item-rank {
  width: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #8cb2a1;
  font-variant-numeric: tabular-nums;
  position: relative;
  flex-shrink: 0;
}

.queue-playing-waves {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.queue-playing-waves span {
  width: 2.5px;
  height: 100%;
  background: #00e599;
  border-radius: 2px;
  animation: queueWaveBounce 0.9s ease-in-out infinite;
}

.queue-playing-waves span:nth-child(1) {
  animation-delay: 0.1s;
}

.queue-playing-waves span:nth-child(2) {
  animation-delay: 0.3s;
}

.queue-playing-waves span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes queueWaveBounce {

  0%,
  100% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1);
  }
}

.studio-queue-item.is-playing .queue-num {
  display: none;
}

.studio-queue-item.is-playing .queue-playing-waves {
  display: flex;
}

.queue-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.queue-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.queue-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-queue-item.active .queue-item-title {
  color: #00e599;
}

.queue-item-artist {
  font-size: 0.72rem;
  color: #92b7a6;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-time {
  font-size: 0.72rem;
  color: #8cb2a1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.queue-item-play-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-fast);
}

.studio-queue-item:hover .queue-item-play-btn,
.studio-queue-item.active .queue-item-play-btn {
  opacity: 1;
}

.studio-queue-item.active .queue-item-play-btn {
  color: #00e599;
}

/* Studio Bottom Controls */
.studio-bottom-controls {
  padding: 16px 28px 24px;
  position: relative;
  z-index: 10;
  background: rgba(4, 20, 14, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.studio-dock-inner {
  max-width: 820px;
  margin: 0 auto;
}

.studio-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.studio-time-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  min-width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.studio-seek-slider {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.studio-seek-track {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 50px;
  position: relative;
  transition: height var(--transition-fast);
}

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

.studio-seek-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00c26f, #00e599);
  border-radius: 50px;
  position: relative;
}

.studio-seek-thumb {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.studio-seek-slider:hover .studio-seek-thumb {
  opacity: 1;
}

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

.studio-ctrls-side {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 180px;
}

.btn-studio-ghost {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color var(--transition-fast);
}

.btn-studio-ghost:hover {
  color: #00e599;
}

.studio-volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.studio-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.studio-ctrls-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
}

.btn-studio-ctrl {
  position: relative;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .btn-studio-ctrl:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
  }
}

.btn-studio-ctrl:active {
  transform: scale(0.92);
}

.btn-studio-ctrl.active {
  color: #00e599 !important;
  background: rgba(0, 229, 153, 0.22) !important;
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.4) !important;
}

.btn-studio-ctrl.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 6px #00e599;
}

.btn-studio-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #00e599;
  color: #072a1e;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.45);
}

.btn-studio-play-circle:hover {
  background: #00ffaa;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 229, 153, 0.6);
}

/* Responsive Fullscreen Player on Tablets & Mobile (< 992px) */
@media (max-width: 991px) {
  .studio-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .studio-left-col {
    padding: 10px 0;
  }

  /* Turntable & Tonearm scaling on mobile */
  .studio-turntable-stage {
    width: 250px;
    height: 250px;
  }

  .studio-vinyl-wrap {
    width: 215px;
    height: 215px;
    margin-right: 12px;
  }

  .studio-tonearm {
    top: -6px;
    right: 10px;
    height: 135px;
    transform-origin: 20px 20px;
  }

  .fullscreen-studio-player.playing .studio-tonearm {
    transform: rotate(23deg);
  }

  .tonearm-pivot {
    width: 32px;
    height: 32px;
    top: 4px;
    left: 4px;
  }

  .tonearm-pivot-dot {
    width: 10px;
    height: 10px;
  }

  .tonearm-rod {
    top: 26px;
    left: 17px;
    height: 86px;
    width: 4px;
  }

  .tonearm-head {
    width: 18px;
    height: 30px;
    left: 7px;
  }

  .vinyl-center-label {
    width: 96px;
    height: 96px;
  }

  .studio-cover-center {
    width: 100%;
    height: 100%;
  }

  .studio-song-name {
    font-size: 1.15rem;
    font-weight: 700;
  }

  /* Right Column: Tab Panes on Mobile - Mặc định ẩn, chỉ hiện Đĩa than */
  .studio-right-col {
    display: none;
    height: 100%;
    min-height: 280px;
    padding: 4px 6px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .studio-right-tabs-header {
    display: none;
    /* Mobile đã dùng thanh studio-mobile-tabs-bar */
  }

  .studio-pane-header {
    padding: 0 10px 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .studio-lyrics-container {
    padding: 160px 12px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
  }

  .lyrics-line {
    font-size: 1.08rem;
    padding: 7px 12px;
  }

  .lyrics-line.active {
    font-size: 1.3rem !important;
  }

  /* 5 Action Buttons on Mobile: Đầy đủ chữ cho Báo cáo, vừa vặn không tràn viền */
  .studio-action-row {
    gap: 6px;
    margin-top: 10px;
    padding: 0 4px;
    justify-content: center;
  }

  .btn-studio-action {
    padding: 6px 10px;
    font-size: 0.74rem;
    gap: 5px;
    border-radius: 50px;
    white-space: nowrap;
  }

  /* Mobile Topbar: Nút thu nhỏ bên phải, logo bên trái */
  .studio-topbar {
    padding: 8px 14px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(4, 20, 14, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .studio-top-brand {
    font-size: 0.82rem;
    min-width: auto;
    letter-spacing: 0.02em;
  }

  .studio-top-brand .brand-sub {
    font-size: 0.72rem;
  }

  .studio-topbar-actions {
    min-width: auto;
  }

  .btn-studio-minimize {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .studio-top-meta {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }

  .studio-now-playing-tag {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    color: #00e599;
    display: block;
    margin-bottom: 1px;
    font-weight: 700;
  }

  .studio-header-song-title {
    max-width: 100%;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Dedicated Full-Width Segmented Tab Bar on Mobile */
  .studio-mobile-tabs-bar {
    display: flex !important;
    align-items: center;
    background: rgba(6, 28, 20, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    gap: 8px;
    z-index: 10;
  }

  .studio-mobile-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .studio-mobile-tab-btn i {
    font-size: 0.82rem;
  }

  .studio-mobile-tab-btn.active {
    background: #00e599;
    color: #072a1e;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 229, 153, 0.35);
  }

  .studio-mobile-tab-btn.active .badge-tab-count {
    background: rgba(7, 42, 30, 0.3);
    color: #072a1e;
  }

  /* Bottom Controls on Mobile */
  .studio-bottom-controls {
    padding: 12px 16px 20px;
  }

  .studio-ctrls-main {
    gap: 14px;
  }

  .btn-studio-play-circle {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   HEADER SEARCH DROPDOWN & USER PROFILE MENU
   ========================================================================== */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d4e5dc;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
}

.search-results-list {
  padding: 6px 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background-color: #f3f8f5;
}

.search-result-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

/* Header User Profile Dropdown */
.btn-user-profile-toggle {
  background: #ffffff;
  border: 1px solid #d4e5dc;
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.btn-user-profile-toggle:hover {
  background: #f4faf6;
  border-color: var(--primary);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.header-user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-dropdown-menu {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  padding: 8px 0;
  min-width: 220px;
}

.header-dropdown-menu .dropdown-item {
  font-size: 0.84rem;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.header-dropdown-menu .dropdown-item:hover {
  background-color: #f3f8f5;
  color: var(--primary);
}

/* ==========================================================================
   AUTHENTIC CRYSTAL FROSTED GLASS BACKDROP & GLASSMORPHISM MODAL
   Lớp phủ trong suốt mờ nhẹ, giữ nguyên trọn vẹn bối cảnh và vẻ đẹp của website
   ========================================================================== */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  transition: opacity 0.25s ease-out !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

:root .modal-backdrop,
[data-theme="light"] .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

[data-theme="dark"] .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

/* ==========================================================================
   AUTH MODALS (IN-PLACE MODAL LOGIN / REGISTER / FORGOT)
   ========================================================================== */
.auth-modal-box {
  border-radius: 22px !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ==========================================================================
   QUY CHUẨN MÀU NỀN CÁC TRANG & MODAL XÁC THỰC (THEME SÁNG / THEME TỐI)
   - Theme Tối: Nền Dark Emerald Studio (#0d1a14), viền ngọc sáng, chữ trắng & xám bạc
   - Theme Sáng: Nền Trắng tinh tế (#ffffff), viền thanh lịch, chữ đậm rõ nét
   ========================================================================== */

/* 1. KHỐI CARD MODAL / TRANG XÁC THỰC: THEME TỐI (DARK THEME) */
:root .auth-modal-box,
:root .auth-standalone-card,
[data-theme="dark"] .auth-modal-box,
[data-theme="dark"] .auth-standalone-card {
  background: #0d1a14 !important;
  background-color: #0d1a14 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 153, 0.28) !important;
  box-shadow:
    0 25px 70px -10px rgba(0, 0, 0, 0.9),
    0 10px 30px -5px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(0, 229, 153, 0.15) !important;
}

[data-theme="dark"] .auth-modal-header,
[data-theme="dark"] .auth-standalone-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
}

[data-theme="dark"] .auth-tab-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .auth-tab-btn:hover {
  color: #ffffff !important;
}

[data-theme="dark"] .auth-tab-btn.active {
  color: #00e599 !important;
  border-bottom: 3px solid #00e599 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .btn-close-auth {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .btn-close-auth:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .auth-intro-text h4,
[data-theme="dark"] .auth-standalone-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .auth-intro-text p,
[data-theme="dark"] .auth-standalone-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .auth-label,
[data-theme="dark"] .auth-standalone-label {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .auth-input,
[data-theme="dark"] .auth-standalone-input {
  background: #060c09 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .auth-input::placeholder,
[data-theme="dark"] .auth-standalone-input::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] .auth-input:focus,
[data-theme="dark"] .auth-standalone-input:focus {
  background: #08120e !important;
  border-color: #00e599 !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.25) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .auth-field-icon {
  color: #00e599 !important;
}

[data-theme="dark"] .btn-toggle-pwd {
  color: #64748b !important;
}

[data-theme="dark"] .btn-toggle-pwd:hover {
  color: #00e599 !important;
}

[data-theme="dark"] .auth-checkbox-label {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .auth-checkbox-label input[type="checkbox"] {
  accent-color: #00e599 !important;
}

[data-theme="dark"] .btn-auth-submit,
[data-theme="dark"] .btn-auth-standalone-submit {
  background: linear-gradient(135deg, #00e599 0%, #00b377 100%) !important;
  color: #041a0f !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 229, 153, 0.35) !important;
}

[data-theme="dark"] .btn-auth-submit:hover,
[data-theme="dark"] .btn-auth-standalone-submit:hover {
  background: linear-gradient(135deg, #10f4a8 0%, #00c26f 100%) !important;
  color: #041a0f !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 229, 153, 0.5) !important;
}

[data-theme="dark"] .auth-forgot-link,
[data-theme="dark"] .auth-back-link,
[data-theme="dark"] .auth-standalone-link {
  color: #00e599 !important;
}

[data-theme="dark"] .auth-forgot-link:hover,
[data-theme="dark"] .auth-back-link:hover,
[data-theme="dark"] .auth-standalone-link:hover {
  color: #34d399 !important;
  text-decoration: underline !important;
}

[data-theme="dark"] .auth-field-error {
  color: #f87171 !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .auth-divider {
  color: #64748b !important;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .btn-google-auth {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-google-auth:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(0, 229, 153, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* 2. KHỐI CARD MODAL / TRANG XÁC THỰC: THEME SÁNG (LIGHT THEME) */
[data-theme="light"] .auth-modal-box,
[data-theme="light"] .auth-standalone-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .auth-modal-header,
[data-theme="light"] .auth-standalone-header {
  border-bottom: 1px solid #f1f5f9 !important;
  background: transparent !important;
}

[data-theme="light"] .auth-tab-btn {
  color: #64748b !important;
}

[data-theme="light"] .auth-tab-btn:hover {
  color: #0f172a !important;
}

[data-theme="light"] .auth-tab-btn.active {
  color: #059669 !important;
  border-bottom: 3px solid #059669 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-close-auth {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

[data-theme="light"] .btn-close-auth:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .auth-intro-text h4,
[data-theme="light"] .auth-standalone-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .auth-intro-text p,
[data-theme="light"] .auth-standalone-desc {
  color: #64748b !important;
}

[data-theme="light"] .auth-label,
[data-theme="light"] .auth-standalone-label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .auth-input,
[data-theme="light"] .auth-standalone-input {
  background: #f8fafc !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
}

[data-theme="light"] .auth-input::placeholder,
[data-theme="light"] .auth-standalone-input::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .auth-input:focus,
[data-theme="light"] .auth-standalone-input:focus {
  background: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2) !important;
  color: #0f172a !important;
}

[data-theme="light"] .auth-field-icon {
  color: #059669 !important;
}

[data-theme="light"] .btn-toggle-pwd {
  color: #64748b !important;
}

[data-theme="light"] .btn-toggle-pwd:hover {
  color: #0f172a !important;
}

[data-theme="light"] .auth-checkbox-label {
  color: #334155 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .auth-checkbox-label input[type="checkbox"] {
  accent-color: #059669 !important;
}

[data-theme="light"] .btn-auth-submit,
[data-theme="light"] .btn-auth-standalone-submit {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.25) !important;
}

[data-theme="light"] .btn-auth-submit:hover,
[data-theme="light"] .btn-auth-standalone-submit:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.35) !important;
}

[data-theme="light"] .auth-forgot-link,
[data-theme="light"] .auth-back-link,
[data-theme="light"] .auth-standalone-link {
  color: #059669 !important;
}

[data-theme="light"] .auth-forgot-link:hover,
[data-theme="light"] .auth-back-link:hover,
[data-theme="light"] .auth-standalone-link:hover {
  color: #047857 !important;
  text-decoration: underline !important;
}

[data-theme="light"] .auth-field-error {
  color: #dc2626 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .auth-divider {
  color: #94a3b8 !important;
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .btn-google-auth {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .btn-google-auth:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

/* 3. CÁC ĐỊNH DẠNG CHUNG */
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 0 24px;
}

.auth-tabs-nav {
  display: flex;
  gap: 8px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn::after {
  display: none !important;
}

.btn-close-auth {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-auth:hover {
  transform: rotate(90deg);
}

.auth-modal-body {
  padding: 24px 28px !important;
}

.auth-intro-text {
  margin-bottom: 18px;
}

.auth-intro-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-intro-text p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.auth-form-group {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 5px;
}

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

.auth-field-icon {
  position: absolute;
  left: 14px;
  font-size: 0.85rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 40px;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.auth-input.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.auth-input.is-valid {
  border-color: #10b981 !important;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
}

.auth-field-error {
  font-size: 0.72rem;
  margin-top: 3px;
  padding-left: 6px;
  line-height: 1.3;
}

.auth-field-error:empty {
  display: none;
}

.auth-field-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 2px;
  padding-left: 6px;
}

.auth-forgot-link,
.auth-back-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-forgot-link:hover,
.auth-back-link:hover {
  text-decoration: underline;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-auth-submit {
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* ==========================================================================
   CUSTOM DIALOG MODAL (REPLACES BROWSER ALERT / CONFIRM)
   ========================================================================== */
.modal-sm-custom {
  max-width: 400px;
}

.custom-dialog-box {
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18) !important;
  padding: 24px;
  text-align: center;
  background: #ffffff;
}

.custom-dialog-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f0fdf4;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.custom-dialog-icon-wrap.danger {
  background: #fef2f2;
  color: #ef4444;
}

.custom-dialog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.custom-dialog-body {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.custom-dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-dialog-cancel {
  background: #f3f4f6;
  color: #4b5563;
  border: none;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-dialog-cancel:hover {
  background: #e5e7eb;
}

.btn-dialog-confirm {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 194, 111, 0.25);
}

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

.btn-dialog-confirm.danger {
  background: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-dialog-confirm.danger:hover {
  background: #dc2626;
}

/* (Custom toast notifications are unified in Section 11) */


/* ==========================================================================
   UPLOAD MODAL & DROPZONE
   ========================================================================== */
.modal-title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-dropzone-box {
  border: 2px dashed #bbf0d4;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  background-color: #f9fdfb;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-dropzone-box:hover {
  border-color: var(--primary);
  background-color: #f0faf4;
}

.upload-drop-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.upload-drop-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.upload-drop-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.upload-cover-preview-box {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  border: 1px dashed #d4e5dc;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fbfdfc;
}

.upload-cover-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-textarea {
  border-radius: var(--radius-md) !important;
  padding: 8px 12px !important;
}

.auth-select {
  padding-right: 30px !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 10px;
  appearance: none;
}

/* ==========================================================================
   ARTICLE & NEWS CARDS
   ========================================================================== */
.article-card-box {
  background: #ffffff;
  border: 1px solid var(--card-border, #edf2ef);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 2px 8px rgba(15, 23, 42, 0.03));
  transition: transform var(--transition-smooth, 0.24s), box-shadow var(--transition-smooth, 0.24s);
}

.article-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 194, 111, 0.12);
}

.article-thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf3f0;
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth, 0.24s);
}

.article-card-box:hover .article-thumb-img {
  transform: scale(1.04);
}

.article-body-wrap {
  padding: 18px 20px;
}

.article-cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary, #00c26f);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.article-title-heading {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-title-heading a {
  color: var(--text-main, #111827);
  text-decoration: none;
}

.article-title-heading a:hover {
  color: var(--primary, #00c26f);
}

.article-excerpt-text {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-sub, #9ca3af);
}

/* ==========================================================================
   DEDICATED UPLOAD STUDIO PAGE (/upload)
   Harmonized Light & Dark Studio Design System
   ========================================================================== */
.upload-studio-page {
  min-height: calc(100vh - 220px);
  overflow-x: clip;
}

/* Header Card */
.upload-page-header-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-light) 100%);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .upload-page-header-card {
  background: linear-gradient(135deg, #0d2219 0%, #071711 100%);
  border-color: rgba(0, 229, 153, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.upload-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.upload-page-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 680px;
}

.badge-studio-feature {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .badge-studio-feature {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* Studio Cards */
.upload-studio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .upload-studio-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.upload-studio-card:hover {
  border-color: var(--primary-border);
}

[data-theme="dark"] .upload-studio-card:hover {
  border-color: rgba(0, 229, 153, 0.35);
}

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

[data-theme="dark"] .card-header-clean {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.card-title-studio {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
}

.badge-optional-studio {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2px 8px;
  border-radius: 50px;
}

[data-theme="dark"] .badge-optional-studio {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* Audio Dropzone Large */
.audio-dropzone-large {
  border: 2px dashed var(--primary);
  border-radius: 16px;
  padding: 32px 20px;
  background-color: var(--primary-light);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="dark"] .audio-dropzone-large {
  background-color: rgba(0, 194, 111, 0.05);
  border-color: rgba(0, 229, 153, 0.45);
}

.audio-dropzone-large:hover,
.audio-dropzone-large.is-dragover {
  border-color: var(--primary-hover);
  background-color: var(--primary-light);
  transform: scale(1.008);
  box-shadow: 0 8px 25px rgba(0, 229, 153, 0.18);
}

[data-theme="dark"] .audio-dropzone-large:hover,
[data-theme="dark"] .audio-dropzone-large.is-dragover {
  background-color: rgba(0, 194, 111, 0.12);
  box-shadow: 0 8px 25px rgba(0, 229, 153, 0.25);
}

.dropzone-animated-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 229, 153, 0.16);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.audio-dropzone-large:hover .dropzone-animated-icon {
  transform: translateY(-4px);
}

.dropzone-selected-state {
  background: var(--card-bg);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(0, 229, 153, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="dark"] .dropzone-selected-state {
  background: #0d2219;
  border-color: rgba(0, 229, 153, 0.35);
}

.file-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .file-icon-box {
  background: rgba(0, 229, 153, 0.15);
}

.file-selected-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.audio-preview-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}

[data-theme="dark"] .audio-preview-box {
  background: #071711;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Cover Dropzone Square */
.cover-dropzone-square {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--card-border);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: var(--card-bg);
  transition: all 0.2s ease;
}

[data-theme="dark"] .cover-dropzone-square {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.cover-preview-img-square {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.cover-dropzone-square:hover,
.cover-dropzone-square.is-dragover {
  border-color: var(--primary-hover);
  box-shadow: 0 4px 18px rgba(0, 229, 153, 0.28);
}

.cover-dropzone-square:hover .cover-hover-overlay,
.cover-dropzone-square.is-dragover .cover-hover-overlay {
  opacity: 1;
}

/* Prevent child elements from intercepting drag events */
.dropzone-center-content,
.dropzone-center-content *,
.dropzone-selected-state,
.dropzone-selected-state *,
.cover-preview-img-square,
.cover-hover-overlay,
.cover-hover-overlay * {
  pointer-events: none;
}

/* Creator Guidelines Box */
.creator-guidelines-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

[data-theme="dark"] .creator-guidelines-box {
  background: rgba(0, 194, 111, 0.04);
  border-color: rgba(0, 229, 153, 0.16);
}

.guidelines-list li {
  color: var(--text-muted);
}

/* Form inputs on Studio Page */
.form-label-studio {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.input-wrap-studio {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all 0.2s;
  min-width: 0;
  width: 100%;
}

[data-theme="dark"] .input-wrap-studio {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.input-wrap-studio:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

[data-theme="dark"] .input-wrap-studio:focus-within {
  border-color: #00c26f;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.22);
}

.input-wrap-studio.is-readonly {
  background: rgba(148, 163, 184, 0.08) !important;
}

[data-theme="dark"] .input-wrap-studio.is-readonly {
  background: rgba(255, 255, 255, 0.02) !important;
}

.input-icon-studio {
  padding-left: 14px;
  color: var(--text-sub);
  font-size: 0.95rem;
  flex-shrink: 0;
  pointer-events: none;
}

.input-control-studio {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
}

.input-control-studio::placeholder {
  color: var(--text-sub);
}

/* Enhanced Select Control with Custom Chevron */
.select-control-studio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px !important;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  background: transparent;
}

.select-arrow-studio {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
  z-index: 2;
}

.input-wrap-studio:focus-within .select-arrow-studio {
  color: var(--primary);
  transform: translateY(-50%) rotate(180deg);
}

/* Multi-select Mood Chips */
.mood-selection-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-pill-chip {
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.mood-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-chip-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .mood-chip-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.mood-pill-chip:hover .mood-chip-content {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.mood-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mood-chip-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mood-chip-check {
  font-size: 0.72rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  margin-left: 2px;
  color: #00c26f;
}

.mood-chip-input:checked+.mood-chip-content {
  border-color: #00c26f;
  background: rgba(0, 194, 111, 0.12);
  color: #00c26f;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 194, 111, 0.2);
}

[data-theme="dark"] .mood-chip-input:checked+.mood-chip-content {
  background: rgba(0, 229, 153, 0.15);
  border-color: #00e599;
  color: #00e599;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.25);
}

.mood-chip-input:checked+.mood-chip-content .mood-chip-check {
  opacity: 1;
  transform: scale(1);
}

.select-control-studio option {
  background-color: var(--card-bg, #ffffff);
  color: var(--text-main, #111827);
  padding: 10px 14px;
}

[data-theme="dark"] .select-control-studio option {
  background-color: #0b1c15;
  color: #f1f5f9;
}

/* =============================================================================
   CUSTOM SELECT DROPDOWN WITH AVATARS (GENRES & MOODS)
   ============================================================================= */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  padding: 6px 14px;
  outline: none;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all 0.2s ease;
}

[data-theme="dark"] .custom-select-trigger {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.custom-select-trigger:hover {
  border-color: var(--primary-border, rgba(0, 194, 111, 0.4));
}

[data-theme="dark"] .custom-select-trigger:hover {
  border-color: rgba(0, 229, 153, 0.35);
}

.custom-select-trigger:focus,
.custom-select-wrapper.is-open .custom-select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

[data-theme="dark"] .custom-select-trigger:focus,
[data-theme="dark"] .custom-select-wrapper.is-open .custom-select-trigger {
  border-color: #00c26f;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.22);
}

.custom-select-selected-display {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
  padding-right: 28px;
}

.custom-select-thumb-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light, #eaf8f1);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .custom-select-thumb-box {
  background: rgba(0, 229, 153, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

.custom-select-thumb-box img,
.custom-select-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-select-selected-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-wrapper.is-open .select-arrow-studio {
  color: var(--primary);
  transform: translateY(-50%) rotate(180deg);
}

/* Custom Dropdown Menu Floating Box */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1060;
  display: none;
  padding: 6px;
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .custom-select-dropdown {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar for Dropdown Menu */
.custom-select-dropdown::-webkit-scrollbar {
  width: 5px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
}

[data-theme="dark"] .custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

.custom-select-wrapper.is-open .custom-select-dropdown {
  display: block;
  animation: siCustomDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.custom-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-select-item:hover {
  background: var(--primary-light, #eaf8f1);
  transform: translateX(2px);
}

[data-theme="dark"] .custom-select-item:hover {
  background: rgba(0, 229, 153, 0.1);
}

.custom-select-item.is-selected {
  background: var(--primary-light, #eaf8f1);
  font-weight: 600;
}

[data-theme="dark"] .custom-select-item.is-selected {
  background: rgba(0, 229, 153, 0.16);
  color: #00e599;
}

.custom-select-item-thumb-box {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.12);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .custom-select-item-thumb-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.custom-select-item-name {
  font-size: 0.88rem;
  color: var(--text-main);
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-check {
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* =============================================================================
   CROPPER CANVAS CONTAINER STYLES (100% STABLE 1:1 SQUARE)
   ============================================================================= */
.cropper-canvas-wrapper {
  width: 100%;
  height: 420px;
  max-height: 60vh;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
}

.cropper-canvas-wrapper .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

.cropper-canvas-wrapper img#imageToCrop {
  display: block;
  max-width: 100%;
  max-height: 100%;
}


/* Textarea */
.textarea-control-studio {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  outline: none;
  background: var(--card-bg);
  color: var(--text-main);
  transition: all 0.2s;
  line-height: 1.5;
}

[data-theme="dark"] .textarea-control-studio {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.textarea-control-studio:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

[data-theme="dark"] .textarea-control-studio:focus {
  border-color: #00c26f;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.22);
}

.textarea-control-studio::placeholder {
  color: var(--text-sub);
}

/* Contest Box */
.contest-submission-box {
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.08) 0%, rgba(0, 229, 153, 0.03) 100%);
  border: 1px solid rgba(0, 194, 111, 0.25);
  border-radius: 14px;
}

[data-theme="dark"] .contest-submission-box {
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.12) 0%, rgba(7, 34, 25, 0.4) 100%);
  border-color: rgba(0, 229, 153, 0.35);
}

/* Terms Checkbox Box */
.upload-terms-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .upload-terms-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.custom-terms-checkbox {
  width: 19px;
  height: 19px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

[data-theme="dark"] .custom-terms-checkbox {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.05);
}

.custom-terms-checkbox:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.terms-check-label {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  cursor: pointer;
  word-break: break-word;
}

[data-theme="dark"] .terms-check-label {
  color: #cbd5e1;
}

.terms-link-highlight {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
  display: inline;
}

.terms-link-highlight:hover {
  color: var(--primary-hover);
}

/* Distributor / ISRC Options on Studio Upload */
.distributor-option-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg-surface-hover);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-theme="dark"] .distributor-option-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.distributor-option-item:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .distributor-option-item:hover {
  background: rgba(0, 229, 153, 0.06);
  border-color: rgba(0, 229, 153, 0.35);
}

.distributor-option-item:has(input:checked),
.distributor-option-item.is-active {
  border-color: var(--primary);
  background: rgba(0, 194, 111, 0.08);
}

[data-theme="dark"] .distributor-option-item:has(input:checked),
[data-theme="dark"] .distributor-option-item.is-active {
  background: rgba(0, 229, 153, 0.1);
  border-color: rgba(0, 229, 153, 0.5);
}

.distributor-option-item:has(input:checked) .distributor-option-label,
.distributor-option-item.is-active .distributor-option-label {
  color: #047857;
}

[data-theme="dark"] .distributor-option-item:has(input:checked) .distributor-option-label,
[data-theme="dark"] .distributor-option-item.is-active .distributor-option-label {
  color: #00e599;
}

.distributor-radio-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  margin-right: 10px;
  flex-shrink: 0;
}

[data-theme="dark"] .distributor-radio-input {
  color-scheme: dark;
}

.distributor-option-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0;
  cursor: pointer;
  line-height: 1.4;
}

[data-theme="dark"] .distributor-option-label {
  color: #f1f5f9;
}

.distributor-isrc-box {
  background: var(--card-bg);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

[data-theme="dark"] .distributor-isrc-box {
  background: rgba(0, 229, 153, 0.04);
  border-color: rgba(0, 229, 153, 0.35);
}

.distributor-isrc-box .form-label-studio {
  color: var(--text-main);
  font-weight: 600;
}

[data-theme="dark"] .distributor-isrc-box .form-label-studio {
  color: #f1f5f9;
}

.distributor-isrc-notice {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-sub);
}

[data-theme="dark"] .distributor-isrc-notice {
  color: #94a3b8;
}

/* Form Action Buttons Container */
.upload-studio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.btn-back-studio {
  transition: all var(--transition-fast);
}

/* Submit Button Large */
.btn-submit-upload-large {
  background: linear-gradient(135deg, #00c26f 0%, #00e599 100%);
  color: #072a1e;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 34px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 229, 153, 0.45);
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-submit-upload-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 153, 0.6);
  color: #072a1e;
}

.btn-submit-upload-large:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Unauthenticated Gatekeeper Card */
.upload-auth-gatekeeper-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .upload-auth-gatekeeper-card {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.gatekeeper-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .gatekeeper-icon-wrap {
  background: rgba(0, 194, 111, 0.15);
}

/* Responsive Upload Studio */
@media (max-width: 991px) {
  .upload-page-title {
    font-size: 1.18rem;
  }

  .upload-studio-card {
    padding: 18px 16px;
  }

  .audio-dropzone-large {
    padding: 24px 16px;
  }
}

@media (max-width: 767.98px) {
  .upload-studio-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .btn-submit-upload-large {
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
  }

  .btn-back-studio {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
}

@media (max-width: 575.98px) {
  .cover-dropzone-square {
    width: 86px;
    height: 86px;
  }

  .upload-page-header-card {
    padding: 18px 16px;
  }

  .upload-studio-card {
    padding: 16px 14px;
  }

  .audio-dropzone-large {
    padding: 20px 12px;
  }
}

/* ==========================================================================
   SONG GRID & GENRE LISTING ENHANCEMENTS (/genre/:slug, /creators/:user, /genres)
   ========================================================================== */

/* 6-Column Song Grid for Genre & Creator Detail Pages */
.songs-grid-six {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.song-card-box {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
  min-width: 0;
}

.song-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--card-border-hover, #c8ebd9);
}

[data-theme="dark"] .song-card-box {
  background-color: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .song-card-box:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 229, 153, 0.18) !important;
}

.song-genre-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--song-cover-box-bg, #f1f5f3);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  margin-bottom: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.song-card-box:hover .song-genre-tag {
  color: var(--primary);
  border-color: var(--primary-border);
}

[data-theme="dark"] .song-genre-tag {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.09);
}

.song-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 8px;
}

.song-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.song-card-box:hover .song-cover-img {
  transform: scale(1.05);
}

.song-hover-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary, #00c26f);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 194, 111, 0.4);
  z-index: 2;
}

.song-hover-play-btn i {
  margin-left: 2px;
  font-size: 0.95rem;
}

.song-card-box:hover .song-hover-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.song-duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  line-height: 1.2;
  z-index: 1;
}

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

.song-name-heading {
  font-size: 0.825rem;
  font-weight: 600;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.song-name-heading a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.song-name-heading a:hover {
  color: var(--primary);
}

.song-artist-name,
.song-artist-row {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.song-stats-line {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-stats-line i {
  color: var(--text-sub);
}

/* Genre Index Cards (/genres) */
.genre-index-card {
  position: relative;
  min-height: 160px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.genre-index-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.genre-index-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.genre-index-card:hover .genre-index-card-bg {
  transform: scale(1.05);
}

.genre-index-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Responsive Breakpoints for songs-grid-six */
@media (max-width: 1199px) {
  .songs-grid-six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .songs-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 575px) {
  .songs-grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* =========================================================================
   PAGES MODULE: LEGAL, HELP CENTER, GUIDE, CONTACT
   ========================================================================= */

/* 1. Legal & Static Pages (/terms, /privacy, /about, /page/:slug) */
.legal-nav-pills .legal-nav-link {
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all var(--transition-fast, 0.2s ease);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.legal-nav-pills .legal-nav-link:hover {
  background-color: #f0fdf4;
  color: var(--primary, #00c26f);
}

.legal-nav-pills .legal-nav-link.active {
  background-color: #f0fdf4;
  color: #00874c;
  font-weight: 600;
}

.legal-content-body {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f1f5f9;
}

.legal-content-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content-body p {
  margin-bottom: 1rem;
}

.legal-content-body ul,
.legal-content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-content-body li {
  margin-bottom: 0.35rem;
}

/* 2. Help Center & FAQ (/help) */
.help-hero-banner {
  background: linear-gradient(135deg, #00c26f 0%, #00874c 100%);
  color: #fff;
}

.help-hero-bg-shapes .help-shape-1 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.help-hero-bg-shapes .help-shape-2 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -60px;
  left: -40px;
  pointer-events: none;
}

.help-search-box-wrap {
  position: relative;
}

.help-search-input {
  height: 52px;
  padding-left: 50px !important;
  padding-right: 45px !important;
  font-size: 0.95rem;
  border: none;
}

.help-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35) !important;
}

.help-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary, #00c26f);
  font-size: 1.1rem;
  z-index: 5;
}

.help-topic-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid #edf2ef;
}

.help-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
  border-color: #d1fae5;
}

.help-topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.accordion-custom .accordion-item {
  border: 1px solid #edf2ef;
  border-radius: 12px !important;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.accordion-custom .accordion-button {
  font-weight: 600;
  font-size: 0.925rem;
  color: #1e293b;
  background-color: #fff;
  padding: 16px 20px;
  box-shadow: none !important;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: #f0fdf4;
  color: #00874c;
}

.accordion-custom .accordion-body {
  line-height: 1.75;
  color: #475569;
  font-size: 0.9rem;
  background-color: #fff;
  padding: 18px 20px;
}

.help-cta-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #f0fdf4;
  color: var(--primary, #00c26f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* 3. Guide Page (/guide) */
.guide-hero-banner {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.guide-step-card {
  border: 1px solid #edf2ef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

.guide-step-number {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 2.25rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  user-select: none;
}

.guide-step-icon,
.guide-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* 4. Contact Page (/contact) */
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* 5. User Profile Page (/creator/:username & /profile) */
.user-profile-hero {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-xl, 1.25rem) !important;
  box-shadow: var(--card-shadow) !important;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-smooth, 0.24s), border-color var(--transition-smooth, 0.24s), box-shadow var(--transition-smooth, 0.24s);
}

[data-theme="dark"] .user-profile-hero {
  background-color: var(--card-bg) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 229, 153, 0.25) !important;
}

/* Cover Banner: Dùng chung background sóng nhạc studio cho cả Light & Dark */
.user-profile-cover-banner {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-top-left-radius: calc(var(--radius-xl, 1.25rem) - 1px);
  border-top-right-radius: calc(var(--radius-xl, 1.25rem) - 1px);
  background-color: #0b130f;
  background-image: var(--profile-cover-img);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  transition: background-image var(--transition-smooth, 0.24s);
}

.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: var(--profile-cover-overlay);
  pointer-events: none;
  transition: background var(--transition-smooth, 0.24s);
}

.profile-banner-vignette {
  position: absolute;
  inset: 0;
  background: var(--profile-cover-vignette);
  pointer-events: none;
}

/* Badge studio nổi trên banner */
.profile-banner-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(10, 18, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 153, 0.28);
  color: #00e599;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  z-index: 3;
  transition: all var(--transition-fast, 0.2s);
}

[data-theme="light"] .profile-banner-badge {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #047857;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.profile-banner-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary, #00c26f);
  box-shadow: 0 0 8px var(--primary, #00c26f);
  display: inline-block;
  animation: pulseEmerald 2s infinite ease-in-out;
}

@keyframes pulseEmerald {

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

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.profile-banner-glow,
.profile-banner-pattern {
  display: none !important;
}

/* Profile Body & Main Flex Layout */
.user-profile-body {
  position: relative;
  z-index: 2;
  background-color: var(--card-bg);
  transition: background-color var(--transition-smooth, 0.24s);
}

.profile-main-layout {
  width: 100%;
}

.profile-left-col {
  min-width: 0;
}

.profile-identity-info {
  min-width: 0;
}

.profile-avatar-wrapper {
  margin-top: -64px;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  z-index: 5;
}

.profile-hero-avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background-color: var(--card-bg);
  border: 4px solid var(--profile-avatar-border, #ffffff) !important;
  box-shadow: var(--profile-avatar-shadow, 0 8px 24px rgba(0, 0, 0, 0.12));
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-hero-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 229, 153, 0.35);
}

.profile-avatar-edit-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-upload-bg, #059669) !important;
  color: #ffffff !important;
  border: 2.5px solid var(--profile-avatar-border, #ffffff) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  z-index: 6;
}

[data-theme="dark"] .profile-avatar-edit-btn,
html[data-theme="dark"] .profile-avatar-edit-btn {
  background: linear-gradient(135deg, #00ff88 0%, #00c26f 100%) !important;
  color: #052214 !important;
  border: 2.5px solid #09120e !important;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.45), 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .profile-avatar-edit-btn,
html[data-theme="light"] .profile-avatar-edit-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

.profile-avatar-edit-btn:hover {
  transform: scale(1.12);
  filter: brightness(1.12);
}

/* Danh tính nghệ sĩ & Bio */
.profile-user-name {
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-size: 1.55rem;
  line-height: 1.25;
  word-break: break-word;
}

.profile-user-handle {
  color: var(--primary, #00c26f);
}

.profile-meta-subline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-meta-dot {
  color: var(--text-muted);
  opacity: 0.5;
}

.profile-badge-item {
  font-size: 0.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.profile-bio-text {
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
  word-break: break-word;
}

/* Khối phải: Dãy nút hành động & Thẻ Thống kê */
.profile-right-col {
  min-width: 290px;
}

.profile-actions-bar {
  width: 100%;
}

.btn-profile-secondary {
  background-color: var(--card-bg);
  color: var(--text-body);
  border: 1px solid var(--card-border);
  transition: all var(--transition-fast);
}

.btn-profile-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-profile-share {
  background-color: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  transition: all var(--transition-fast);
}

.btn-profile-share:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-profile-secondary,
[data-theme="dark"] .btn-profile-share {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-main) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .btn-profile-secondary:hover,
[data-theme="dark"] .btn-profile-share:hover {
  background-color: var(--primary) !important;
  color: #08130e !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0, 229, 153, 0.35);
}

/* Thẻ thống kê 3 chỉ số Studio */
.profile-stats-card {
  min-width: 290px;
  background-color: var(--profile-stats-bg, #f8fafc);
  border: 1px solid var(--profile-stats-border, #e2e8f0) !important;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg, 14px);
  transition: all var(--transition-smooth, 0.24s);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .profile-stats-card {
  background-color: var(--profile-stats-bg, rgba(255, 255, 255, 0.04));
  border-color: var(--profile-stats-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.profile-stats-num {
  color: var(--text-main);
  font-size: 1.25rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.profile-stats-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 2px;
}

.profile-stats-divider {
  width: 1px;
  height: 32px;
  background-color: var(--card-border);
  flex-shrink: 0;
  opacity: 0.6;
}

/* Tab Navigation Pills */
.profile-nav-wrapper {
  max-width: 100%;
  overflow: hidden;
}

.profile-nav-pills {
  background-color: var(--profile-nav-bg, #ffffff);
  border: 1px solid var(--card-border) !important;
  padding: 5px;
  box-shadow: var(--card-shadow);
  display: inline-flex;
  gap: 6px;
  border-radius: var(--radius-pill);
}

.profile-nav-pills .nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  border: 1px solid transparent;
  transition: all var(--transition-fast, 0.2s ease);
}

.profile-nav-pills .nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.profile-nav-pills .nav-link.active {
  background-color: var(--primary) !important;
  color: var(--btn-upload-color, #ffffff) !important;
  box-shadow: 0 4px 14px var(--primary-glow);
  border-color: transparent;
}

/* Sub-Cards & About Tab Details */
.profile-content-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-xl, 1rem);
  box-shadow: var(--card-shadow);
}

.profile-content-title {
  color: var(--text-main);
}

.profile-about-item-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.profile-about-item-val {
  color: var(--text-main);
  font-weight: 600;
}

.profile-modal-avatar-box {
  background-color: var(--song-cover-box-bg);
  border: 1px solid var(--card-border);
}

.profile-form-label {
  color: var(--text-main);
}

.bg-purple {
  background-color: #7c3aed !important;
}

/* ==========================================================================
   RESPONSIVE PROFILE: PC, TABLET & MOBILE NORMALIZATION
   ========================================================================== */
@media (max-width: 991.98px) {
  .user-profile-cover-banner {
    height: 180px;
    background-position: center 35%;
  }

  .profile-avatar-wrapper {
    margin-top: -56px;
    width: 112px;
    height: 112px;
  }

  .profile-hero-avatar {
    width: 112px;
    height: 112px;
  }

  .profile-right-col {
    width: 100%;
    align-items: center !important;
  }

  .profile-actions-bar {
    justify-content: center !important;
  }

  .profile-stats-card {
    width: 100%;
    max-width: 440px;
  }
}

@media (max-width: 767.98px) {
  .user-profile-hero {
    margin-bottom: 1.25rem !important;
  }

  .user-profile-cover-banner {
    height: 140px;
    background-position: center 30%;
  }

  .profile-banner-badge {
    top: 10px;
    right: 12px;
    font-size: 0.68rem;
    padding: 3px 10px !important;
  }

  .user-profile-body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 1.25rem !important;
  }

  /* Căn giữa toàn bộ avatar & thông tin danh tính trên mobile */
  .profile-left-col {
    width: 100%;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }

  .profile-avatar-wrapper {
    margin-top: -48px;
    width: 96px;
    height: 96px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-hero-avatar {
    width: 96px;
    height: 96px;
    border-width: 3.5px !important;
  }

  .profile-avatar-edit-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .profile-identity-info {
    width: 100%;
    text-align: center !important;
    padding-top: 0 !important;
  }

  .profile-identity-info>div {
    justify-content: center !important;
  }

  .profile-user-name {
    font-size: 1.3rem !important;
  }

  .profile-bio-text {
    font-size: 0.85rem !important;
    line-height: 1.5;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Khối nút hành động & Thống kê trên mobile */
  .profile-right-col {
    width: 100%;
    align-items: center !important;
    padding-top: 0.25rem !important;
    gap: 0.85rem !important;
  }

  .profile-actions-bar {
    width: 100%;
    justify-content: center !important;
    gap: 6px !important;
  }

  .profile-actions-bar .btn {
    font-size: 0.8125rem !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-pill) !important;
  }

  /* Thẻ stats 3 chỉ số trên mobile: 100% width, 3 cột đều nhau */
  .profile-stats-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    padding: 10px 8px !important;
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
  }

  .profile-stats-card>div:not(.profile-stats-divider) {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px !important;
  }

  .profile-stats-num {
    font-size: 1.1rem !important;
  }

  .profile-stats-label {
    font-size: 0.7rem !important;
  }

  .profile-stats-divider {
    height: 24px;
  }

  /* Tab nav pills trên mobile: cuộn ngang mượt mà kiểu native app, không rớt dòng */
  .profile-nav-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.25rem !important;
  }

  .profile-nav-wrapper::-webkit-scrollbar {
    display: none;
  }

  .profile-nav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px !important;
    border-radius: var(--radius-pill) !important;
  }

  .profile-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .profile-nav-pills .nav-item {
    flex-shrink: 0;
  }

  .profile-nav-pills .nav-link {
    padding: 7px 14px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }

  /* Thẻ rỗng / empty state card trên mobile */
  .profile-empty-card {
    padding: 2rem 1.25rem !important;
  }
}

/* ==========================================================================
   COMPREHENSIVE DARK MODE OVERRIDES (STUDIO THEME)
   ========================================================================== */
[data-theme="dark"] body {
  background-color: var(--bg-page);
  color: var(--text-body);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .card {
  background-color: var(--card-bg) !important;
  color: var(--text-main);
  border-color: var(--card-border) !important;
}

/* Modal Content Solid Background in Dark Theme (Chống trong suốt) */
[data-theme="dark"] .modal-content:not(.auth-modal-box):not(.support-ticket-modal-content),
.dark-theme .modal-content:not(.auth-modal-box):not(.support-ticket-modal-content) {
  background-color: #0b1510 !important;
  background: #0b1510 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(0, 229, 153, 0.2) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
}

/* Custom Dialog Modal Box Solid Background in Dark Mode (Chống trong suốt triệt để) */
[data-theme="dark"] .custom-dialog-box,
.dark-theme .custom-dialog-box,
[data-bs-theme="dark"] .custom-dialog-box {
  background: #0d1a14 !important;
  background-color: #0d1a14 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(0, 229, 153, 0.25) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 229, 153, 0.15) !important;
}

[data-theme="dark"] .custom-dialog-title,
.dark-theme .custom-dialog-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .custom-dialog-body,
.dark-theme .custom-dialog-body {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .custom-dialog-footer,
.dark-theme .custom-dialog-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .btn-dialog-cancel,
.dark-theme .btn-dialog-cancel {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .btn-dialog-cancel:hover,
.dark-theme .btn-dialog-cancel:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dropdown-menu {
  background-color: var(--dropdown-bg, #0d1a14) !important;
  background: var(--dropdown-bg, #0d1a14) !important;
  color: var(--text-main, #f8fafc) !important;
  border: 1px solid var(--dropdown-border, rgba(0, 229, 153, 0.22)) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 229, 153, 0.3) !important;
}

[data-theme="dark"] .dropdown-header {
  color: var(--text-main);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-main);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background-color: var(--dropdown-item-hover);
  color: var(--primary);
}

[data-theme="dark"] .dropdown-divider {
  border-top-color: var(--card-border);
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .auth-input {
  background-color: var(--search-bg);
  border-color: var(--search-border);
  color: var(--text-main);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .auth-input:focus {
  background-color: var(--search-bg);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .auth-input::placeholder {
  color: var(--text-sub);
}

[data-theme="dark"] .table {
  color: var(--text-main);
  border-color: var(--card-border);
}

[data-theme="dark"] .table> :not(caption)>*>* {
  background-color: transparent;
  color: var(--text-main);
  border-bottom-color: var(--card-border);
}

[data-theme="dark"] .list-group-item {
  background-color: var(--card-bg);
  color: var(--text-main);
  border-color: var(--card-border);
}

[data-theme="dark"] .btn-outline-secondary {
  color: var(--text-body);
  border-color: var(--card-border);
  background-color: transparent;
}

[data-theme="dark"] .btn-outline-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .btn-close-auth {
  background: var(--search-bg);
  color: var(--text-muted);
}

[data-theme="dark"] .btn-close-auth:hover {
  background: var(--card-border);
  color: var(--text-main);
}

[data-theme="dark"] .btn-dialog-cancel {
  background-color: var(--card-bg);
  color: var(--text-body);
  border: 1px solid var(--card-border);
}

[data-theme="dark"] .btn-dialog-cancel:hover {
  background-color: var(--card-border);
}

[data-theme="dark"] .accordion-custom .accordion-item {
  border-color: var(--card-border);
  background-color: var(--card-bg);
}

[data-theme="dark"] .accordion-custom .accordion-button {
  background-color: var(--card-bg);
  color: var(--text-main);
}

[data-theme="dark"] .accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary);
}

[data-theme="dark"] .accordion-custom .accordion-body {
  background-color: var(--card-bg);
  color: var(--text-body);
}

[data-theme="dark"] .guide-hero-banner {
  background: linear-gradient(180deg, #12211b 0%, #0d1613 100%);
}

[data-theme="dark"] .guide-step-card {
  background-color: var(--card-bg);
  border-color: var(--card-border);
}

[data-theme="dark"] .profile-stats-card {
  background-color: var(--profile-stats-bg) !important;
  border-color: var(--profile-stats-border) !important;
}

[data-theme="dark"] .profile-hero-avatar {
  border-color: var(--profile-avatar-border) !important;
  box-shadow: var(--profile-avatar-shadow) !important;
}

[data-theme="dark"] .creator-circle-avatar {
  border-color: var(--card-bg);
}

[data-theme="dark"] .contest-banner-card {
  background-color: var(--card-bg);
}

[data-theme="dark"] .genre-si-card {
  background-color: var(--card-bg);
}

/* ==========================================================================
   DISCOVER PAGE (TRANG KHÁM PHÁ) - PREMIUM STUDIO STYLES
   - Modern Glassmorphism & Neon Emerald Accents
   - Harmonious Light / Dark Mode Synchronization
   - Strict 1200px Layout & Zero-Overflow Touch Optimization
   ========================================================================== */

/* Page Flow Container */
.discover-page-flow {
  overflow-x: clip;
}

/* --- Section Headers (Trang Khám Phá - Studio Clean Architecture) --- */
.discover-section-header {
  margin-bottom: 1.25rem;
  position: relative;
}

/* 1. Hàng Tiêu Đề Chính (Top Row): Title + Icon bên trái, Link Xem Tất Cả bên phải */
.discover-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

/* 2. Cụm Title + Icon: Căn giữa theo trục ngang hoàn hảo */
.discover-header-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* 3. Icon Title Badge (Avatar biểu tượng cho tiêu đề) */
.section-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  background: var(--primary-light, rgba(0, 194, 111, 0.1));
  color: var(--primary);
  border: 1px solid var(--primary-border, rgba(0, 194, 111, 0.22));
}

[data-theme="dark"] .section-icon-badge {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.16) 0%, rgba(0, 194, 111, 0.06) 100%);
  border: 1px solid rgba(0, 229, 153, 0.32);
  color: #00e599;
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .section-icon-badge {
  background: linear-gradient(135deg, #e8f9f0 0%, #d5f5e3 100%);
  border: 1px solid #9de4bd;
  color: #009652;
  box-shadow: 0 2px 8px rgba(0, 194, 111, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.discover-section-header:hover .section-icon-badge {
  transform: translateY(-1px) scale(1.05);
}

[data-theme="dark"] .discover-section-header:hover .section-icon-badge {
  box-shadow: 0 0 22px rgba(0, 229, 153, 0.35);
  border-color: rgba(0, 229, 153, 0.55);
}

[data-theme="light"] .discover-section-header:hover .section-icon-badge {
  box-shadow: 0 4px 12px rgba(0, 194, 111, 0.22);
  border-color: #00c26f;
}

/* 4. Tiêu Đề Section (Title) */
.discover-section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Giới Thiệu (Subheading / Subtitle) */
.discover-section-subheading {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-bottom: 0;
  max-width: 900px;
  transition: color 0.2s ease;
}

[data-theme="dark"] .discover-section-subheading {
  color: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .discover-section-subheading {
  color: #64748b;
}

/* 6. Link Xem Tất Cả (View All Link) */
.discover-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .discover-view-all-link {
  background: rgba(255, 255, 255, 0.05);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.25);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .discover-view-all-link:hover {
  background: #00e599;
  color: #05140d;
  border-color: #00e599;
  box-shadow: 0 0 18px rgba(0, 229, 153, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
}

[data-theme="light"] .discover-view-all-link {
  background: #f0fdf4;
  color: #00874e;
  border: 1px solid #bbf2d2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .discover-view-all-link:hover {
  background: #00c26f;
  color: #ffffff;
  border-color: #00c26f;
  box-shadow: 0 4px 12px rgba(0, 194, 111, 0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

.discover-view-all-link i {
  font-size: 0.725rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discover-view-all-link:hover i {
  transform: translateX(3px);
}

/* --- 1. Discover Banner Slider (Choice B: 380px, Tỷ lệ 2:1 Responsive, Dark & Light Themes) --- */
.discover-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  background: var(--bg-surface, #0f172a);
  height: 380px;
  user-select: none;
}

[data-theme="light"] .discover-slider-wrap {
  border-color: rgba(0, 194, 111, 0.18);
  box-shadow: 0 10px 30px rgba(0, 194, 111, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  background: #f8fafc;
}

[data-theme="dark"] .discover-slider-wrap {
  border-color: rgba(0, 255, 136, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 136, 0.08);
  background: #09120e;
}

.discover-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.discover-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.discover-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 0.6s ease;
}

.discover-slider-wrap:hover .discover-slide-bg {
  transform: scale(1.02);
}

.discover-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

:root .discover-slide-overlay,
[data-theme="dark"] .discover-slide-overlay {
  background: linear-gradient(90deg,
      rgba(8, 20, 15, 0.95) 0%,
      rgba(8, 20, 15, 0.82) 42%,
      rgba(8, 20, 15, 0.35) 75%,
      rgba(8, 20, 15, 0.65) 100%);
}

[data-theme="light"] .discover-slide-overlay {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.85) 42%,
      rgba(255, 255, 255, 0.38) 75%,
      rgba(255, 255, 255, 0.72) 100%);
}

.discover-slide-content {
  position: relative;
  z-index: 3;
  padding: 36px 48px;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discover-slide-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(0, 255, 136, 0.12);
  color: var(--ai-emerald, #00ff88);
  border: 1px solid rgba(0, 255, 136, 0.3);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .discover-slide-badge {
  background: rgba(0, 194, 111, 0.12);
  color: #00874c;
  border-color: rgba(0, 194, 111, 0.3);
}

.discover-slide-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

:root .discover-slide-title,
[data-theme="dark"] .discover-slide-title {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .discover-slide-title {
  color: #0f172a;
}

.discover-slide-subtitle {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:root .discover-slide-subtitle,
[data-theme="dark"] .discover-slide-subtitle {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .discover-slide-subtitle {
  color: #334155;
}

.discover-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-discover-slider-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill, 9999px);
  background: linear-gradient(135deg, #00ff88 0%, #00c26f 100%);
  color: #052214 !important;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-discover-slider-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.5);
  filter: brightness(1.08);
}

.btn-discover-slider-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

:root .btn-discover-slider-secondary,
[data-theme="dark"] .btn-discover-slider-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

:root .btn-discover-slider-secondary:hover,
[data-theme="dark"] .btn-discover-slider-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--ai-emerald, #00ff88) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-discover-slider-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1e293b !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-discover-slider-secondary:hover {
  background: rgba(0, 194, 111, 0.1);
  color: #00874c !important;
  border-color: rgba(0, 194, 111, 0.35);
  transform: translateY(-2px);
}

/* Mũi tên chuyển slide */
.discover-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.discover-slider-wrap:hover .discover-slider-arrow {
  opacity: 1;
  visibility: visible;
}

.discover-slider-arrow.prev {
  left: 20px;
}

.discover-slider-arrow.next {
  right: 20px;
}

:root .discover-slider-arrow,
[data-theme="dark"] .discover-slider-arrow {
  background: rgba(8, 20, 15, 0.85);
  color: #ffffff;
  border: 1px solid rgba(0, 255, 136, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

:root .discover-slider-arrow:hover,
[data-theme="dark"] .discover-slider-arrow:hover {
  background: var(--ai-emerald, #00ff88);
  color: #052214;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  transform: translateY(-50%) scale(1.08);
}

[data-theme="light"] .discover-slider-arrow {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(0, 194, 111, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .discover-slider-arrow:hover {
  background: #00c26f;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 194, 111, 0.4);
  transform: translateY(-50%) scale(1.08);
}

/* Dấu chấm Pagination Dots */
.discover-slider-dots {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.discover-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

:root .discover-dot,
[data-theme="dark"] .discover-dot {
  background: rgba(255, 255, 255, 0.3);
}

:root .discover-dot.active,
[data-theme="dark"] .discover-dot.active {
  width: 28px;
  background: var(--ai-emerald, #00ff88);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

[data-theme="light"] .discover-dot {
  background: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .discover-dot.active {
  width: 28px;
  background: #00c26f;
  box-shadow: 0 2px 10px rgba(0, 194, 111, 0.4);
}

/* Thanh Action Bar tiện ích bên dưới Banner Slider */
.discover-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Responsive Breakpoints cho Mobile & Tablet */
@media (max-width: 992px) {
  .discover-slider-wrap {
    height: 310px;
  }

  .discover-slide-content {
    padding: 28px 32px;
    max-width: 540px;
  }

  .discover-slider-arrow {
    opacity: 0.9;
    visibility: visible;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .discover-slider-arrow.prev {
    left: 12px;
  }

  .discover-slider-arrow.next {
    right: 12px;
  }
}

@media (max-width: 768px) {
  .discover-slider-wrap {
    height: 250px;
    border-radius: 16px;
  }

  :root .discover-slide-overlay,
  [data-theme="dark"] .discover-slide-overlay {
    background: linear-gradient(90deg,
        rgba(8, 20, 15, 0.94) 0%,
        rgba(8, 20, 15, 0.88) 55%,
        rgba(8, 20, 15, 0.65) 100%);
  }

  [data-theme="light"] .discover-slide-overlay {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.90) 55%,
        rgba(255, 255, 255, 0.70) 100%);
  }

  .discover-slide-content {
    padding: 20px 20px 30px 20px;
    max-width: 100%;
    gap: 8px;
  }

  .discover-slide-title {
    font-size: 20px;
  }

  .discover-slide-subtitle {
    font-size: 12.5px;
    -webkit-line-clamp: 1;
  }

  .discover-slide-actions {
    gap: 8px;
  }

  .btn-discover-slider-primary,
  .btn-discover-slider-secondary {
    padding: 7px 15px;
    font-size: 12px;
  }

  .discover-slider-dots {
    bottom: 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .discover-slider-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .discover-slider-wrap {
    height: 220px;
  }

  .discover-slide-content {
    padding: 16px 16px 26px 16px;
    gap: 6px;
  }

  .discover-slide-badge {
    font-size: 10.5px;
    padding: 3px 9px;
    gap: 4px;
  }

  .discover-slide-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .discover-slide-subtitle {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .btn-discover-slider-primary,
  .btn-discover-slider-secondary {
    padding: 6px 13px;
    font-size: 11.5px;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .discover-slider-wrap {
    height: 210px;
  }

  .discover-slide-title {
    font-size: 16px;
  }

  .discover-slide-subtitle {
    display: none;
  }
}

/* Stats Row */
.discover-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

:root .discover-stats-row,
[data-theme="light"] .discover-stats-row {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(209, 229, 219, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .discover-stats-row {
  background: rgba(14, 22, 18, 0.72);
  border-color: rgba(0, 229, 153, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.discover-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

.discover-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--card-border);
}

/* Hero CTA Actions */
.discover-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-surprise-me {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, #00c26f 100%);
  color: #08130e;
  font-weight: 700;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .btn-surprise-me {
  background: linear-gradient(135deg, #00c26f 0%, #059669 100%);
  color: #ffffff;
}

.btn-surprise-me:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
  color: inherit;
}

.dice-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rolling-dice {
  animation: rollDice 0.6s ease-in-out;
}

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

  50% {
    transform: rotate(360deg) scale(1.3);
  }

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

.badge-auto-play {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  font-weight: 600;
}

[data-theme="light"] .badge-auto-play {
  background: rgba(255, 255, 255, 0.25);
}

.btn-discover-scroll {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-discover-scroll:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Floating 3D Holographic AI Vinyl Graphic */
.discover-hero-visual-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.glowing-halo {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.38) 0%, rgba(0, 200, 130, 0.15) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: haloPulse 4s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }

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

/* Vòng quỹ đạo Hologram công nghệ */
.hologram-orbit-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 229, 153, 0.4);
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.15), inset 0 0 15px rgba(0, 229, 153, 0.1);
  pointer-events: none;
  animation: spinOrbitRing 26s linear infinite reverse;
}

.hologram-orbit-ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 10px #00ffaa, 0 0 18px #00e599;
  transform: translateX(-50%);
}

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

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

/* Đĩa Than 3D Hologram AI Siêu Thực */
.floating-ai-vinyl-container {
  position: relative;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.6) 0%, rgba(10, 25, 20, 0.8) 50%, rgba(0, 229, 153, 0.5) 100%);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(0, 229, 153, 0.3),
    inset 0 0 12px rgba(0, 255, 170, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: spinVinylSlow 18s linear infinite;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.discover-hero-visual-wrap:hover .floating-ai-vinyl-container {
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(0, 229, 153, 0.45),
    inset 0 0 16px rgba(0, 255, 170, 0.4);
}

.ai-hologram-disc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

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

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

.floating-tag {
  position: absolute;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 3;
  animation: floatBobbing 3.5s ease-in-out infinite alternate;
}

@keyframes floatBobbing {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

.tag-suno {
  top: 15px;
  left: -15px;
  background: var(--card-bg);
  color: var(--text-main);
}

.tag-udio {
  bottom: 25px;
  right: -15px;
  background: var(--card-bg);
  color: var(--text-main);
  animation-delay: 1.2s;
}

.tag-karaoke {
  bottom: 10px;
  left: 5px;
  background: var(--card-bg);
  color: var(--text-main);
  animation-delay: 2.2s;
}

/* --- 2. Mood & Vibe Hub Cards (Large Cover Avatar Redesign) --- */
.discover-mood-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
  text-decoration: none;
}

.discover-mood-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

/* Avatar to chiếm trọn phần trên của Card (Tỉ lệ 1:1 chuẩn vuông góc) */
.mood-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--song-cover-box-bg);
}

.mood-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-mood-card:hover .mood-cover-img {
  transform: scale(1.08);
}

.mood-cover-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discover-mood-card:hover .mood-cover-gradient-overlay {
  opacity: 0.15 !important;
}

.mood-badge-top {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mood-play-btn-circle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.discover-mood-card:hover .mood-play-btn-circle {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mood-card-body {
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: var(--card-bg);
}

.mood-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.mood-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.mood-hover-action {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.discover-mood-card:hover .mood-hover-action {
  transform: translateX(3px);
}

/* --- 3. Community Playlist Cards --- */
.discover-playlist-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.discover-playlist-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.playlist-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--song-cover-box-bg);
}

.playlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.discover-playlist-card:hover .playlist-thumb-img {
  transform: scale(1.05);
}

.playlist-track-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
}

.playlist-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.discover-playlist-card:hover .playlist-hover-overlay {
  opacity: 1;
}

.btn-play-album {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #08130e;
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 4px 16px var(--primary-glow);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .btn-play-album {
  color: #ffffff;
}

.btn-play-album:hover {
  transform: scale(1.12);
}

.playlist-info-box {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.playlist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.playlist-creator-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.playlist-creator-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.playlist-creator-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.playlist-desc {
  font-size: 0.775rem;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 0;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Tạo Album Của Bạn */
.discover-create-album-card {
  height: 100%;
  border: 2px dashed var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--card-bg);
}

.discover-create-album-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-4px);
}

.create-album-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.create-album-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  transition: transform 0.25s ease;
}

.discover-create-album-card:hover .create-album-icon {
  transform: scale(1.12);
}

.create-album-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.create-album-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  max-width: 200px;
}

.btn-create-action {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

/* --- 4. AI Model Showcase Cards --- */
.ai-model-showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.showcase-suno {
  border-left: 4px solid #f59e0b;
}

.showcase-udio {
  border-left: 4px solid #06b6d4;
}

.model-showcase-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0.85rem;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-suno {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-udio {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.model-highlight-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-outline-model {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-model:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.model-songs-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-song-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.model-song-row:hover {
  background: var(--primary-light);
}

.model-song-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--song-cover-box-bg);
}

.model-song-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-mini-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.model-song-row:hover .btn-mini-play {
  opacity: 1;
}

.model-song-meta {
  flex-grow: 1;
  overflow: hidden;
}

.model-song-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.model-song-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.genre-pill-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

[data-theme="dark"] .genre-pill-tag {
  background: rgba(255, 255, 255, 0.05);
}

/* --- 5. Smart Multi-tier Filter Bar --- */
.discover-smart-filter-bar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--card-shadow);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-bar-inner::-webkit-scrollbar {
  display: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.filter-group-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--card-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #08130e;
  border-color: var(--primary);
  font-weight: 700;
}

[data-theme="light"] .filter-pill.active {
  background: #00c26f;
  color: #ffffff;
}

.filter-bar-divider {
  width: 1px;
  height: 24px;
  background: var(--card-border);
  flex-shrink: 0;
}

.filter-select-control {
  padding: 0.35rem 2rem 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 500;
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 10px;
  transition: border-color 0.2s ease;
}

.filter-select-control:focus {
  outline: none;
  border-color: var(--primary);
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--primary-border);
}

.btn-clear-filter {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

/* --- 6. Discover Song Cards Grid --- */
.discover-song-item {
  transition: transform 0.2s ease;
}

.discover-song-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.discover-song-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.song-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--song-cover-box-bg);
}

.song-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.discover-song-card:hover .song-card-thumb-img {
  transform: scale(1.06);
}

.song-model-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 2;
}

.song-karaoke-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 194, 111, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  z-index: 2;
}

.btn-play-hover {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #08130e;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px var(--primary-glow);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

[data-theme="light"] .btn-play-hover {
  color: #ffffff;
}

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

.song-card-details {
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.song-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.song-card-artist {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.song-card-meta-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.meta-tag {
  color: var(--primary);
  font-weight: 600;
}

.meta-duration {
  color: var(--text-sub);
}

/* Empty State & Loading Wrap */
.discover-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.empty-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 1.25rem;
}

.discover-loading-wrap {
  text-align: center;
  padding: 2.5rem 1rem;
}

.loading-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-outline-loadmore {
  padding: 0.65rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-loadmore:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* --- Mobile Responsiveness Adjustments (< 768px & < 576px) --- */
@media (max-width: 767.98px) {
  .discover-hero-card {
    padding: 1.5rem 1.15rem;
  }

  .discover-hero-badge {
    font-size: 0.725rem;
    padding: 0.25rem 0.65rem;
  }

  .discover-hero-title {
    font-size: 1.5rem;
  }

  .discover-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .discover-stat-divider {
    display: none;
  }

  .btn-surprise-me {
    width: 100%;
    justify-content: center;
  }

  .btn-discover-scroll {
    width: 100%;
    justify-content: center;
  }

  /* Section Header Trên Mobile */
  .discover-section-header {
    margin-bottom: 0.9rem;
  }

  .discover-header-top-row {
    gap: 0.5rem;
  }

  .discover-header-title-wrap {
    gap: 0.55rem;
  }

  .discover-section-heading {
    font-size: 1.15rem;
  }

  .section-icon-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 9px;
    font-size: 0.9rem;
  }

  .discover-section-subheading {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-top: 0.25rem;
    padding-left: 0;
    /* Dàn trải toàn chiều rộng màn hình mobi để text thoáng đãng, không bị bóp nghẽn */
  }

  .discover-view-all-link {
    font-size: 0.75rem;
    padding: 0.24rem 0.68rem;
    gap: 0.25rem;
  }

  .discover-view-all-link i {
    font-size: 0.675rem;
  }

  /* Trên mobi, nút play hover luôn hiện với opacity vừa phải để dễ thao tác 1 chạm */
  .btn-play-hover {
    opacity: 0.92;
    transform: translateY(0);
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .playlist-hover-overlay {
    opacity: 0.88;
    background: transparent;
    pointer-events: none;
  }

  .btn-play-album {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .mood-card-body {
    padding: 0.65rem 0.75rem;
  }

  .mood-play-btn-circle {
    opacity: 0.92;
    transform: translateY(0) scale(0.9);
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .mood-title {
    font-size: 0.85rem;
  }

  @media (max-width: 380px) {
    .discover-section-heading {
      font-size: 1.05rem;
    }

    .section-icon-badge {
      width: 28px;
      height: 28px;
      min-width: 28px;
      font-size: 0.8rem;
    }

    .discover-view-all-link {
      font-size: 0.7rem;
      padding: 0.2rem 0.55rem;
    }
  }
}

/* ==========================================================================
   DISCOVER PAGE ENHANCEMENTS: GENRE CARDS
   ========================================================================== */

/* Thẻ thể loại Khám Phá (Discover Genre Card) */
.discover-genre-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  height: 100%;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
}

.discover-genre-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

.genre-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--song-cover-box-bg);
}

.genre-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.discover-genre-card:hover .genre-card-cover-img {
  transform: scale(1.08);
}

.genre-card-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discover-genre-card:hover .genre-card-gradient-overlay {
  opacity: 0.45 !important;
}

.genre-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.genre-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.genre-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.genre-card-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ==========================================================================
   DISCOVER PAGE: 5-CARD DESKTOP GRID & MOBILE HORIZONTAL SNAP SCROLL
   - PC (>= 992px): 5 card mỗi hàng cân đối, thoáng đãng, tỉ lệ chuẩn 1200px
   - Mobile (< 992px): Vuốt ngang native mượt mà (Horizontal Snap Scroll)
   - Peek Effect: Lộ 1 phần card kế tiếp để kích thích tương tác vuốt
   ========================================================================== */

/* 1. Trên Desktop (>= 992px): Hiển thị chuẩn 5 cột đồng đều */
@media (min-width: 992px) {
  .discover-cards-scroll-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .discover-cards-scroll-grid.row-cols-lg-5>.col,
  .discover-cards-scroll-grid.row-cols-lg-5>* {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
  }
}

/* 2. Trên Mobile & Tablet (< 992px): Vuốt ngang mượt mà (Snap Scroll) */
@media (max-width: 991.98px) {
  .discover-cards-scroll-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem !important;
    margin-inline: -15px !important;
    padding-inline: 15px !important;
    padding-top: 4px !important;
    padding-bottom: 0.85rem !important;
    margin-bottom: 0 !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  /* Ẩn thanh cuộn mặc định để giao diện thẩm mỹ và hiện đại */
  .discover-cards-scroll-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Kích thước thẻ trên điện thoại (< 576px): Peek effect ~10% card kế tiếp */
  .discover-cards-scroll-grid>.col,
  .discover-cards-scroll-grid>* {
    flex: 0 0 calc(45.5% - 4px) !important;
    max-width: calc(45.5% - 4px) !important;
    min-width: 156px !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  /* Đảm bảo thẻ con căng trọn chiều cao khi cuộn ngang */
  .discover-cards-scroll-grid>.col>* {
    height: 100%;
  }

  /* Thêm chỉ báo vuốt nhẹ nhàng ở mép section trên mobile */
  .discover-page-flow .page-section {
    position: relative;
  }
}

/* 3. Riêng trên Tablet (576px - 991.98px): Hiển thị ~3.2 card để vuốt */
@media (min-width: 576px) and (max-width: 991.98px) {

  .discover-cards-scroll-grid>.col,
  .discover-cards-scroll-grid>* {
    flex: 0 0 calc(28.5% - 6px) !important;
    max-width: calc(28.5% - 6px) !important;
    min-width: 180px !important;
  }
}

/* ==========================================================================
   SONG DETAIL STUDIO STYLESHEET (MATCHING 13.JPG REDESIGN)
   - Studio Vinyl & Holographic Disc Art Presentation
   - Glassmorphism Cards with Emerald Glow
   - Dual Theme Support (Light Studio & Dark Studio)
   - Responsive Touch Layout for Mobile & High-Res PC
   ========================================================================== */

/* 1. Trang Chi Tiết & Breadcrumb */
.song-detail-page {
  min-height: 80vh;
}

.song-breadcrumb-nav .breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.84rem;
}

.song-breadcrumb-nav .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.song-breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--primary);
}

.song-breadcrumb-nav .breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.song-breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-sub);
  content: "›";
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: middle;
}

/* 2. Thẻ Studio Cơ Bản (Song Detail Card) */
.song-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

[data-theme="dark"] .song-detail-card {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .song-detail-card {
  background: #ffffff;
  border-color: #e6ede8;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.card-header-studio {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .card-header-studio {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .card-header-studio {
  border-bottom-color: #f1f5f3;
}

.card-body-studio {
  padding: 1.5rem;
}

.card-title-studio {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.card-title-studio .title-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-light, rgba(0, 194, 111, 0.1));
  color: var(--primary);
  font-size: 0.9rem;
}

[data-theme="dark"] .card-title-studio .title-icon-badge {
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid rgba(0, 229, 153, 0.25);
  color: #00e599;
}

[data-theme="light"] .card-title-studio .title-icon-badge {
  background: #eaf8f1;
  border: 1px solid #c8edd9;
  color: #00a860;
}

/* 3. Hero Card: Vinyl Disc & Album Art Presentation */
.song-hero-card {
  padding: 1.75rem;
}

.song-hero-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

/* Bìa Album Độc Lập Chuẩn Studio (Không còn đĩa than lấp ló đè chồng gây hiểu nhầm lỗi layout) */
.song-cover-standalone-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-cover-art-box {
  width: 195px;
  height: 195px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .song-cover-art-box {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 229, 153, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .song-cover-art-box {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 0 20px rgba(0, 194, 111, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

.song-cover-art-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 229, 153, 0.35);
}

.song-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.song-cover-art-box:hover .song-cover-image {
  transform: scale(1.04);
}

/* Nút Play Tròn Phát Sáng Trên Bìa */
.btn-cover-play-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 229, 153, 0.92);
  color: #061b11;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.25s ease;
}

.btn-cover-play-pulse:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: #00ffaa;
  box-shadow: 0 0 28px rgba(0, 229, 153, 0.75);
}

/* 4. Nội Dung Chi Tiết Bài Hát (Song Meta Content) */
.song-hero-meta-content {
  flex-grow: 1;
  min-width: 0;
}

/* Badges Tags */
.song-badges-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-studio-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.badge-genre-chip {
  background: rgba(0, 194, 111, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 194, 111, 0.25);
}

[data-theme="dark"] .badge-genre-chip {
  background: rgba(0, 229, 153, 0.12);
  color: #00e599;
  border-color: rgba(0, 229, 153, 0.28);
}

.badge-genre-chip:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

[data-theme="dark"] .badge-genre-chip:hover {
  color: #05140d;
}

.badge-ai-chip {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.22);
}

[data-theme="dark"] .badge-ai-chip {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.3);
}

.badge-mood-chip {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

[data-theme="dark"] .badge-mood-chip {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.28);
}

/* Title Typography */
.song-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.025em;
  word-break: break-word;
}

@media (min-width: 992px) {
  .song-hero-title {
    font-size: 2.1rem;
  }
}

/* Creator Profile Row */
.song-creator-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.creator-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 10px rgba(0, 194, 111, 0.2);
}

.creator-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.creator-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.creator-name:hover {
  color: var(--primary);
  text-decoration: none;
}

.creator-role-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Stats Bar */
.song-stats-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.stat-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-pill-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-sub);
  opacity: 0.6;
}

/* Action Buttons Cluster */
.song-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-studio-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

/* Nút Nghe Ngay (Hero CTA) */
.btn-studio-play {
  background: linear-gradient(135deg, #00c26f 0%, #009652 100%);
  color: #ffffff;
  padding: 0.58rem 1.45rem;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 194, 111, 0.35);
}

[data-theme="dark"] .btn-studio-play {
  background: linear-gradient(135deg, #00e599 0%, #00b377 100%);
  color: #06180f;
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.42);
}

.btn-studio-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 194, 111, 0.5);
  color: #ffffff;
}

[data-theme="dark"] .btn-studio-play:hover {
  background: #00ffaa;
  color: #05140d;
  box-shadow: 0 6px 28px rgba(0, 229, 153, 0.65);
}

.btn-studio-play .btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Nút Yêu Thích */
.btn-studio-like {
  background: transparent;
  color: var(--text-main);
  border-color: var(--card-border);
}

[data-theme="dark"] .btn-studio-like {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

[data-theme="light"] .btn-studio-like {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

.btn-studio-like:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  transform: translateY(-1px);
}

.btn-studio-like.is-liked {
  border-color: rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}

/* Nút Karaoke LRC */
.btn-studio-karaoke {
  background: transparent;
  color: var(--text-main);
  border-color: var(--card-border);
}

[data-theme="dark"] .btn-studio-karaoke {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

[data-theme="light"] .btn-studio-karaoke {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

.btn-studio-karaoke:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Nút Chia Sẻ */
.btn-studio-share {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--card-border);
  padding: 0.52rem 0.8rem;
}

[data-theme="dark"] .btn-studio-share {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .btn-studio-share {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.btn-studio-share:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* 5. AI Prompt Studio Box */
.song-ai-prompt-studio {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

[data-theme="dark"] .song-ai-prompt-studio {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .song-ai-prompt-studio {
  background: #f8fbf9;
  border-color: #e2ede6;
}

.prompt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.prompt-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-copy-prompt-pill {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-prompt-pill:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.prompt-content-text {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: all;
}

/* 6. Lyrics & Karaoke Viewer */
.btn-header-karaoke-link {
  background: transparent;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-header-karaoke-link:hover {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .btn-header-karaoke-link:hover {
  color: #05140d;
}

.lyrics-studio-viewer {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  max-height: 320px;
  overflow-y: auto;
}

[data-theme="dark"] .lyrics-studio-viewer {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .lyrics-studio-viewer {
  background: #fbfdfc;
  border-color: #e8f0ec;
}

.lyrics-text-flow {
  font-size: 0.935rem;
  line-height: 2;
  color: var(--text-body);
  white-space: pre-line;
  letter-spacing: 0.01em;
}

/* Lyrics Empty State */
.lyrics-empty-state .empty-icon-halo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 194, 111, 0.1);
  color: var(--primary);
  font-size: 1.5rem;
}

[data-theme="dark"] .lyrics-empty-state .empty-icon-halo {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.25);
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.15);
}

.lyrics-empty-state .empty-title {
  font-weight: 700;
  color: var(--text-main);
}

.lyrics-empty-state .empty-desc {
  font-size: 0.84rem;
  line-height: 1.55;
}

.btn-outline-emerald {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-outline-emerald:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.3);
}

[data-theme="dark"] .btn-outline-emerald:hover {
  color: #05140d;
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.4);
}

/* 7. Comments Section */
.comment-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--primary-border);
}

.textarea-glow-wrap {
  position: relative;
}

.comment-textarea-studio {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-textarea-studio:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 194, 111, 0.18);
}

[data-theme="dark"] .comment-textarea-studio:focus {
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.22);
}

.btn-submit-comment {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.42rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-submit-comment {
  color: #05140d;
}

.btn-submit-comment:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 194, 111, 0.3);
}

.comment-auth-prompt {
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed var(--card-border);
}

[data-theme="dark"] .comment-auth-prompt {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 7. Comments Section (Thiết Kế Mới: Tác Giả Dưới Avatar, Bong Bóng Nội Dung Rộng Rãi) */
.comment-current-user-col,
.comment-author-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 76px;
  flex-shrink: 0;
}

.comment-author-avatar-wrap {
  margin-bottom: 0.35rem;
}

.comment-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--primary-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="dark"] .comment-author-avatar {
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.15);
}

[data-theme="light"] .comment-author-avatar {
  border-color: #a3e0be;
  box-shadow: 0 2px 8px rgba(0, 194, 111, 0.12);
}

.comment-item-card:hover .comment-author-avatar {
  transform: scale(1.06);
}

.comment-author-name,
.comment-current-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  max-width: 100%;
  display: block;
  text-align: center;
}

.badge-creator-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.3rem;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

[data-theme="dark"] .badge-creator-tag {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.12);
}

[data-theme="light"] .badge-creator-tag {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Comment Stream & Cards */
.comments-stream-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--card-border);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .comment-item-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .comment-item-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(0, 229, 153, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .comment-item-card {
  background: #ffffff;
  border-color: #e9f0ec;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .comment-item-card:hover {
  border-color: #c9e8d7;
  box-shadow: 0 4px 16px rgba(0, 194, 111, 0.08);
}

/* Bong bóng nội dung bình luận (Cột Phải) */
.comment-bubble-col {
  flex-grow: 1;
  min-width: 0;
  border-radius: 4px 16px 16px 16px;
  padding: 0.85rem 1.15rem 0.65rem 1.15rem;
  position: relative;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .comment-bubble-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .comment-bubble-col {
  background: #f8faf9;
  border: 1px solid #e7efe9;
}

.comment-bubble-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main);
  word-break: break-word;
}

.comment-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.comment-time-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.85;
}

.comment-time-tag i {
  font-size: 0.68rem;
}

.comments-empty-notice {
  background: rgba(0, 0, 0, 0.015);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
}

[data-theme="dark"] .comments-empty-notice {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 8. Cột Phải: Related Songs & Banner */
.song-sidebar-sticky-flow {
  position: sticky;
  top: 90px;
}

.related-songs-list {
  display: flex;
  flex-direction: column;
}

.related-song-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--card-border);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .related-song-item {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .related-song-item {
  border-bottom-color: #f3f7f5;
}

.related-song-item:last-child {
  border-bottom: none;
}

.related-song-item:hover {
  background: rgba(0, 194, 111, 0.06);
}

[data-theme="dark"] .related-song-item:hover {
  background: rgba(0, 229, 153, 0.08);
}

.related-cover-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.related-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-related-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #00e599;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.related-song-item:hover .btn-related-play-hover {
  opacity: 1;
}

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

.related-song-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.related-song-title:hover {
  color: var(--primary);
  text-decoration: none;
}

.related-song-artist {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 0.15rem;
}

.related-song-meta {
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-top: 0.2rem;
}

/* Banner Sáng Tạo Nhạc */
.song-create-banner-box {
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.12) 0%, rgba(7, 42, 30, 0.25) 100%);
  border: 1px solid rgba(0, 194, 111, 0.3);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .song-create-banner-box {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.15) 0%, rgba(5, 20, 14, 0.8) 100%);
  border-color: rgba(0, 229, 153, 0.28);
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.12);
}

[data-theme="light"] .song-create-banner-box {
  background: linear-gradient(135deg, #e8f9f0 0%, #d8f5e6 100%);
  border-color: #b0e8c7;
}

.banner-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 0 16px rgba(0, 194, 111, 0.4);
}

[data-theme="dark"] .banner-badge-icon {
  color: #06180f;
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.5);
}

.banner-title {
  color: var(--text-main);
  font-size: 1.05rem;
}

.banner-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-banner-upload-cta {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 12px rgba(0, 194, 111, 0.3);
}

[data-theme="dark"] .btn-banner-upload-cta {
  color: #05140d;
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.35);
}

.btn-banner-upload-cta:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

[data-theme="dark"] .btn-banner-upload-cta:hover {
  color: #05140d;
}

/* 9. Tối Ưu Hóa Riêng Biệt Cho Thiết Bị Di Động & Tablet */
@media (max-width: 767.98px) {
  .song-hero-card {
    padding: 1.25rem 1.15rem;
  }

  .song-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .song-cover-standalone-wrap {
    margin: 0 auto;
  }

  .song-cover-art-box {
    width: 155px;
    height: 155px;
    border-radius: 16px;
  }

  /* Comments Responsive */
  .comment-item-card {
    padding: 0.85rem 0.95rem;
    gap: 0.85rem;
  }

  .comment-current-user-col,
  .comment-author-col {
    width: 58px;
  }

  .comment-author-avatar {
    width: 42px;
    height: 42px;
  }

  .comment-author-name,
  .comment-current-user-name {
    font-size: 0.72rem;
  }

  .badge-creator-tag {
    font-size: 0.62rem;
    padding: 0.1rem 0.38rem;
  }

  .comment-bubble-col {
    padding: 0.65rem 0.9rem 0.5rem 0.9rem;
    border-radius: 4px 14px 14px 14px;
  }

  .comment-bubble-text {
    font-size: 0.85rem;
  }

  .comment-bubble-footer {
    margin-top: 0.25rem;
  }

  .comment-time-tag {
    font-size: 0.68rem;
  }

  .btn-cover-play-pulse {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .song-hero-title {
    font-size: 1.45rem;
  }

  .song-badges-wrap {
    justify-content: center;
  }

  .song-creator-profile {
    justify-content: center;
  }

  .song-stats-bar {
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .song-actions-cluster {
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-studio-action {
    font-size: 0.8125rem;
    padding: 0.48rem 0.95rem;
  }

  .btn-studio-play {
    flex: 1 1 100%;
    order: -1;
  }

  .card-body-studio {
    padding: 1.15rem;
  }

  .lyrics-studio-viewer {
    padding: 1rem;
    max-height: 250px;
  }

  .lyrics-text-flow {
    font-size: 0.875rem;
    line-height: 1.85;
  }

  .song-sidebar-sticky-flow {
    position: static;
  }
}

/* =========================================================================
   18. MODULE TIN TỨC & HƯỚNG DẪN AI MUSIC (NEWS & MAGAZINE PORTAL) - SITUNEE
   Thiết kế chuẩn Tạp chí Công nghệ Studio & Emerald Glow
   Tối ưu 100% PC & Mobile - Toàn diện Giao diện Sáng / Tối
   ========================================================================= */

.news-portal-page,
.news-detail-page {
  min-height: 80vh;
}

/* 1. Tiêu Đề Section Chuẩn Studio (Icon và Title cùng 1 hàng, font 20px - 22px, font-weight: 600) */
.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.section-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary, #00c26f);
  background: rgba(0, 194, 111, 0.12);
  flex-shrink: 0;
  transition: all var(--transition-fast, 0.2s);
}

[data-theme="dark"] .title-icon {
  color: #00e599;
  background: rgba(0, 229, 153, 0.15);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.2);
}

[data-theme="light"] .title-icon {
  color: #00874e;
  background: #e6f8ef;
  border: 1px solid #c2ebd3;
}

.section-title-wrap h1,
.section-title-wrap h2,
.section-title-wrap h3 {
  font-size: 21px;
  /* 20px - 22px chuẩn Quy tắc 17.5 */
  font-weight: 600;
  /* SemiBold - Tuyệt đối không dùng 800/900 */
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 767.98px) {

  .section-title-wrap h1,
  .section-title-wrap h2,
  .section-title-wrap h3 {
    font-size: 18px;
  }

  .title-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
}

/* 2. Filter Pills Bar */
.news-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-news-filter {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-news-filter:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-news-filter.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.3);
}

[data-theme="dark"] .btn-news-filter.active {
  color: #05140d;
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.35);
}

/* 3. Featured Hero Article Card (Bài Viết Nổi Bật) */
.news-featured-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .news-featured-card {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .news-featured-card:hover {
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 153, 0.15);
}

[data-theme="light"] .news-featured-card {
  background: #ffffff;
  border-color: #e5ece7;
}

[data-theme="light"] .news-featured-card:hover {
  border-color: #bde4cd;
  box-shadow: 0 10px 30px rgba(0, 194, 111, 0.1);
}

.news-featured-thumb-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
  display: block;
}

.news-featured-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-featured-card:hover .news-featured-thumb-img {
  transform: scale(1.04);
}

.news-featured-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.news-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

[data-theme="dark"] .news-cat-chip {
  background: rgba(0, 229, 153, 0.14);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.25);
}

[data-theme="light"] .news-cat-chip {
  background: #e4f7ed;
  color: #00874e;
  border: 1px solid #c0ebd2;
}

.news-featured-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
}

.news-featured-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-featured-title a:hover {
  color: var(--primary);
}

.news-featured-excerpt {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.btn-read-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.25);
  width: fit-content;
  margin-top: 1rem;
}

[data-theme="dark"] .btn-read-featured {
  color: #05140d;
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.35);
}

.btn-read-featured:hover {
  background: var(--primary-hover);
  transform: translateX(4px);
  color: #ffffff;
}

[data-theme="dark"] .btn-read-featured:hover {
  color: #05140d;
}

/* 4. Grid Articles Cards (Danh Sách Bài Viết Thường) */
.news-article-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .news-article-card {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .news-article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 153, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 153, 0.12);
}

[data-theme="light"] .news-article-card {
  background: #ffffff;
  border-color: #e8ede9;
}

[data-theme="light"] .news-article-card:hover {
  transform: translateY(-5px);
  border-color: #b7e3ca;
  box-shadow: 0 10px 24px rgba(0, 194, 111, 0.08);
}

.news-article-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
}

.news-article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.news-article-card:hover .news-article-thumb-img {
  transform: scale(1.05);
}

/* 4.1. Placeholder Icon khi bài viết chưa upload ảnh đại diện */
.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  transition: all var(--transition-smooth, 0.25s);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .news-thumb-placeholder {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.05) 0%, rgba(8, 26, 18, 0.95) 100%);
  border-color: rgba(0, 229, 153, 0.22);
}

[data-theme="light"] .news-thumb-placeholder {
  background: linear-gradient(135deg, #f2faf5 0%, #e3f6ec 100%);
  border-color: #c2ebd3;
}

.news-thumb-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background: rgba(0, 194, 111, 0.12);
  transition: transform var(--transition-smooth, 0.25s), box-shadow var(--transition-smooth, 0.25s);
}

[data-theme="dark"] .news-thumb-placeholder-icon {
  color: #00e599;
  background: rgba(0, 229, 153, 0.15);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.2);
}

.news-article-card:hover .news-thumb-placeholder-icon {
  transform: scale(1.12);
  box-shadow: 0 0 22px rgba(0, 229, 153, 0.45);
}

.news-thumb-placeholder-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0.75;
}

.news-thumb-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.news-article-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.news-article-title {
  font-size: 15px;
  /* Chuẩn 14px - 15px theo Quy tắc 17.5 */
  font-weight: 600;
  /* Chuẩn 600 SemiBold - Không dùng 700/800 */
  line-height: 1.45;
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-article-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-article-title a:hover {
  color: var(--primary);
}

.news-article-excerpt {
  font-size: 13px;
  /* Chuẩn 12px - 13px theo Quy tắc 17.5 */
  font-weight: 400;
  /* Regular mềm mại */
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.news-article-meta {
  padding-top: 0.65rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  /* Chuẩn 11px - 12px theo Quy tắc 17.5 */
  font-weight: 400;
  color: var(--text-sub);
}

[data-theme="dark"] .news-article-meta {
  border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .news-article-meta {
  border-top-color: #f1f5f3;
}

/* 5. Trang Chi Tiết Bài Viết (News Detail Page) */
.news-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 2.5rem 3rem;
}

[data-theme="dark"] .news-detail-card {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .news-detail-card {
  background: #ffffff;
  border-color: #e6ede8;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.news-detail-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.news-detail-title {
  font-size: 26px;
  /* 26px - 28px vừa vặn, chuẩn Quy tắc 17.5 */
  font-weight: 700;
  /* Bold cho H1 chi tiết, tuyệt đối không dùng 800 */
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.news-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
  gap: 1rem;
}

[data-theme="dark"] .news-author-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .news-author-row {
  border-bottom-color: #f0f4f2;
}

.news-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(0, 194, 111, 0.2);
}

.news-author-name {
  font-size: 14px;
  font-weight: 600;
  /* Chuẩn 600 SemiBold */
  color: var(--text-main);
  display: block;
}

.news-author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Cụm Nút Chia Sẻ Mạng Xã Hội */
.news-share-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-share-icon:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-share-icon:hover {
  color: #05140d;
}

/* Khối Đoạn Dẫn (Lead Excerpt Box) */
.news-lead-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  font-size: 15px;
  /* Vừa phải, không phóng to quá mức */
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-body);
  position: relative;
  border-left: 3.5px solid var(--primary);
}

[data-theme="dark"] .news-lead-box {
  background: rgba(0, 229, 153, 0.06);
  border-left-color: #00e599;
}

[data-theme="light"] .news-lead-box {
  background: #f2f9f5;
  border-left-color: #00a860;
}

.news-lead-box i.fa-quote-left {
  font-size: 1.1rem;
  opacity: 0.4;
  margin-right: 0.5rem;
}

/* Thân Bài Viết (Article Content Body) */
.news-content-body {
  font-size: 15px;
  /* 15px chuẩn đọc báo chí */
  line-height: 1.75;
  color: var(--text-body);
}

.news-content-body p {
  margin-bottom: 1.25rem;
}

.news-content-body h2 {
  font-size: 20px;
  font-weight: 600;
  /* Chuẩn 600 SemiBold - Tuyệt đối không dùng 800 */
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary);
  line-height: 1.35;
}

.news-content-body h3 {
  font-size: 17px;
  font-weight: 600;
  /* Chuẩn 600 SemiBold - Không dùng 700/800 */
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.news-content-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
}

[data-theme="dark"] .news-content-body blockquote {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .news-content-body blockquote {
  background: #f8faf8;
}

.news-content-body ul,
.news-content-body ol {
  margin-bottom: 1.35rem;
  padding-left: 1.5rem;
}

.news-content-body li {
  margin-bottom: 0.5rem;
}

.news-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin: 1.75rem 0;
  display: block;
}

.news-content-body iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.news-content-body .ratio-16x9 {
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 6. Sidebar Chi Tiết Tin Tức (Related Articles & Widgets) */
.news-sidebar-sticky {
  position: sticky;
  top: 0;
}

.news-sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .news-sidebar-card {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .news-sidebar-card {
  background: #ffffff;
  border-color: #e6ede8;
}

.news-related-list {
  display: flex;
  flex-direction: column;
}

.news-related-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  transition: background var(--transition-fast);
}

[data-theme="dark"] .news-related-item {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .news-related-item {
  border-bottom-color: #f3f7f5;
}

.news-related-item:last-child {
  border-bottom: none;
}

.news-related-item:hover {
  background: rgba(0, 194, 111, 0.06);
}

[data-theme="dark"] .news-related-item:hover {
  background: rgba(0, 229, 153, 0.08);
}

.news-related-thumb-box {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-related-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-related-item:hover .news-related-thumb-img {
  transform: scale(1.08);
}

.news-related-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--primary);
  background: rgba(0, 194, 111, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .news-related-thumb-placeholder {
  color: #00e599;
  background: rgba(0, 229, 153, 0.12);
}

.news-related-item:hover .news-related-thumb-placeholder {
  transform: scale(1.08);
}

.news-related-info {
  flex-grow: 1;
  min-width: 0;
}

.news-related-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-related-item:hover .news-related-title {
  color: var(--primary);
}

.news-related-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* 7. Responsive Cho Thiết Bị Di Động & Tablet */
@media (max-width: 767.98px) {
  .news-header-banner {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .news-portal-title {
    font-size: 1.55rem;
  }

  .news-portal-desc {
    font-size: 0.85rem;
  }

  .news-featured-card {
    border-radius: var(--radius-lg);
  }

  .news-featured-thumb-wrap {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .news-featured-content {
    padding: 1.25rem 1.15rem;
  }

  .news-featured-title {
    font-size: 1.25rem;
  }

  .news-featured-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .news-article-card {
    border-radius: var(--radius-md);
  }

  .news-article-body {
    padding: 1rem 1.05rem;
  }

  .news-article-title {
    font-size: 0.95rem;
  }

  .news-detail-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .news-detail-title {
    font-size: 1.45rem;
  }

  .news-content-body {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .news-content-body h2 {
    font-size: 1.2rem;
  }

  .news-content-body h3 {
    font-size: 1.05rem;
  }

  .news-lead-box {
    padding: 1rem 1.15rem;
    font-size: 0.92rem;
  }

  .news-sidebar-sticky {
    position: static;
  }
}

/* 8. Breadcrumb, Tag Cloud & Creator Studio Banner for News Module */
.news-breadcrumb-nav .breadcrumb {
  font-size: 0.82rem;
  background: transparent;
  padding: 0;
  margin: 0;
}

.news-breadcrumb-nav .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--primary);
}

.news-breadcrumb-nav .breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.news-breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-sub);
}

.news-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem;
}

.news-tag-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.news-tag-pill:hover {
  background: rgba(0, 194, 111, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .news-tag-pill:hover {
  background: rgba(0, 229, 153, 0.15);
  color: #00e599;
  border-color: rgba(0, 229, 153, 0.4);
}

.news-cta-banner {
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
}

[data-theme="dark"] .news-cta-banner {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.08) 0%, rgba(13, 33, 23, 0.95) 100%);
  border-color: rgba(0, 229, 153, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .news-cta-banner {
  background: linear-gradient(135deg, #f0fdf6 0%, #e2f8ec 100%);
  border-color: #bce9cb;
  box-shadow: 0 6px 24px rgba(0, 194, 111, 0.1);
}

.news-cta-content {
  max-width: 650px;
}

.news-cta-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.news-cta-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.btn-news-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 194, 111, 0.35);
  flex-shrink: 0;
}

[data-theme="dark"] .btn-news-cta {
  color: #05140d;
}

.btn-news-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="dark"] .btn-news-cta:hover {
  color: #05140d;
}

@media (max-width: 767.98px) {
  .news-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
    margin-top: 2.25rem;
  }

  .news-cta-title {
    font-size: 1.15rem;
  }

  .btn-news-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================================== */
/* 19. CONTEST MODULE & COMPREHENSIVE LIVE COUNTDOWN SYSTEM                   */
/* ========================================================================== */

/* Filter Pills Group */
.contest-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contest-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.contest-filter-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: rgba(0, 194, 111, 0.08);
}

.contest-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 194, 111, 0.28);
}

[data-theme="dark"] .contest-filter-btn.active {
  color: #05140d;
}

/* Contest Card Box - 16:9 Standard */
.contest-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.contest-card-box:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 111, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .contest-card-box:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

/* Card 16:9 Banner Container */
.contest-card-banner-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.contest-card-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.contest-card-box:hover .contest-card-banner-wrap img {
  transform: scale(1.04);
}

/* Fallback / Placeholder Banner Icon */
.contest-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: radial-gradient(circle at center, rgba(0, 194, 111, 0.15) 0%, #090e17 100%);
  color: var(--text-muted);
  position: relative;
}

.contest-placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.contest-placeholder-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

/* Status Badges */
.contest-status-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contest-badge-upcoming {
  background: rgba(126, 34, 206, 0.85);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

.contest-badge-submitting {
  background: rgba(5, 150, 105, 0.9);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.contest-badge-voting {
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.contest-badge-ended {
  background: rgba(71, 85, 105, 0.88);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Live Pulse Dot */
.contest-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: contestPulseAnim 1.8s infinite;
}

@keyframes contestPulseAnim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Mini Timer Pill on Card */
.contest-timer-pill {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 15, 25, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contest-timer-pill.upcoming {
  border-color: rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
}

.contest-timer-pill.submitting {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.contest-timer-pill.voting {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.contest-timer-pill.ended {
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

/* Card Content Area */
.contest-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.contest-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.45rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contest-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contest-card-title a:hover {
  color: var(--primary);
}

.contest-card-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Prize & Stats Footer */
.contest-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.contest-prizes-preview {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.contest-meta-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-contest-action {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .btn-contest-action {
  color: #05140d;
}

.btn-contest-action:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-contest-action:hover {
  color: #05140d;
}

/* ========================================================================== */
/* DETAIL PAGE HERO & COMPREHENSIVE LIVE COUNTDOWN                             */
/* ========================================================================== */

.contest-detail-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.contest-detail-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.contest-detail-hero-content {
  flex: 1 1 58%;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contest-detail-hero-media {
  flex: 1 1 44%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.08) 0%, rgba(9, 19, 14, 0.95) 100%);
  border-top-right-radius: var(--radius-xl, 20px);
  border-bottom-right-radius: var(--radius-xl, 20px);
}

.contest-detail-banner-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 136, 0.2);
  background: #09130e;
}

/* Ambient Blurred Background Image */
.contest-banner-bg-blur {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(28px) brightness(0.5);
  transform: scale(1.12);
  pointer-events: none;
  z-index: 1;
}

/* 100% Full Uncropped Foreground Image */
.contest-banner-fg-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contest-banner-fg-img:hover {
  transform: scale(1.02);
}

/* Detail Heading & Typography */
.contest-detail-h1 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.contest-detail-lead {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Grand Prize Box */
.contest-grand-prize-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contest-grand-prize-icon {
  font-size: 1.35rem;
  color: #fbbf24;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contest-grand-prize-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.contest-grand-prize-text strong {
  color: #fbbf24;
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

/* ========================================================================== */
/* LIVE COUNTDOWN TICKER BOX                                                  */
/* ========================================================================== */

.contest-countdown-wrap {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

html[data-theme="light"] .contest-detail-hero-card,
[data-theme="light"] .contest-detail-hero-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .contest-detail-h1,
[data-theme="light"] .contest-detail-h1 {
  color: #0f172a !important;
}

html[data-theme="light"] .contest-detail-lead,
[data-theme="light"] .contest-detail-lead {
  color: #475569 !important;
}

html[data-theme="light"] .contest-grand-prize-box,
[data-theme="light"] .contest-grand-prize-box {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="light"] .contest-grand-prize-text,
[data-theme="light"] .contest-grand-prize-text {
  color: #1e293b !important;
}

html[data-theme="light"] .contest-grand-prize-text strong,
[data-theme="light"] .contest-grand-prize-text strong {
  color: #d97706 !important;
}

html[data-theme="light"] .contest-countdown-wrap,
[data-theme="light"] .contest-countdown-wrap {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .countdown-subtitle-text,
[data-theme="light"] .countdown-subtitle-text {
  color: #64748b !important;
}

html[data-theme="light"] .countdown-digit-cell,
[data-theme="light"] .countdown-digit-cell {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .countdown-digit-num,
[data-theme="light"] .countdown-digit-num {
  color: #0f172a !important;
}

html[data-theme="light"] .countdown-digit-unit,
[data-theme="light"] .countdown-digit-unit {
  color: #64748b !important;
}

html[data-theme="light"] .contest-sub-card,
[data-theme="light"] .contest-sub-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .contest-sub-card:hover,
[data-theme="light"] .contest-sub-card:hover {
  border-color: #059669 !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.12) !important;
}

html[data-theme="light"] .contest-sub-title,
[data-theme="light"] .contest-sub-title {
  color: #0f172a !important;
}

html[data-theme="light"] .contest-sub-creator-name,
[data-theme="light"] .contest-sub-creator-name {
  color: #334155 !important;
}

html[data-theme="light"] .contest-quota-banner,
[data-theme="light"] .contest-quota-banner {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .quota-text-wrap,
[data-theme="light"] .quota-text-wrap {
  color: #0f172a !important;
}

html[data-theme="light"] .quota-desc,
[data-theme="light"] .quota-desc {
  color: #64748b !important;
}

html[data-theme="light"] .podium-card,
[data-theme="light"] .podium-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .podium-song-title,
[data-theme="light"] .podium-song-title {
  color: #0f172a !important;
}

html[data-theme="light"] .podium-song-creator,
[data-theme="light"] .podium-song-creator {
  color: #64748b !important;
}

.countdown-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.countdown-title-text {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.countdown-title-text.upcoming {
  color: #c084fc;
}

.countdown-title-text.submitting {
  color: var(--primary);
}

.countdown-title-text.voting {
  color: #fbbf24;
}

.countdown-title-text.ended {
  color: #94a3b8;
}

.countdown-subtitle-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* The 4-digit Countdown Grid */
.countdown-digits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.countdown-digit-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-fast);
}

.countdown-digit-cell:hover {
  border-color: var(--primary);
}

.countdown-digit-num {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  display: block;
}

.countdown-digits-grid.submitting .countdown-digit-num {
  color: var(--primary);
}

.countdown-digits-grid.upcoming .countdown-digit-num {
  color: #c084fc;
}

.countdown-digits-grid.voting .countdown-digit-num {
  color: #fbbf24;
}

.countdown-digit-unit {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

/* Concluded State Box */
.countdown-concluded-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.concluded-trophy-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.concluded-info-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-main);
}

.concluded-info-text strong {
  display: block;
  font-size: 0.92rem;
  color: #fbbf24;
  margin-bottom: 0.2rem;
}

/* Phase Progress Milestones */
/* Phase Progress Milestones connected Timeline Bar */
.contest-timeline-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  position: relative;
}

html[data-theme="light"] .contest-timeline-bar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.timeline-step-item {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.timeline-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface, #0f1c16);
  border: 2px solid var(--border-subtle, rgba(255, 255, 255, 0.2));
  color: var(--text-tertiary, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.timeline-step-item.is-done .timeline-step-dot {
  background: #00e599 !important;
  border-color: #00e599 !important;
  color: #021a10 !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.35);
}

.timeline-step-item.is-active .timeline-step-dot {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #021a10 !important;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25), 0 0 12px rgba(251, 191, 36, 0.4);
}

.timeline-step-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  line-height: 1.3;
}

html[data-theme="light"] .timeline-step-name {
  color: #0f172a !important;
}

.timeline-step-date {
  font-size: 0.74rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.3;
  padding-left: 34px;
}

html[data-theme="light"] .timeline-step-date {
  color: #64748b !important;
}

/* Action Bar in Hero */
.contest-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ========================================================================== */
/* PODIUM TOP 3 AWARDS (CONCLUDED CONTESTS)                                    */
/* ========================================================================== */

.contest-podium-section {
  margin-bottom: 2.5rem;
}

.contest-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.podium-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast);
  border: 1px solid var(--border-color);
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-card.rank-1 {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 8px 30px rgba(234, 179, 8, 0.18);
  order: 2;
  padding-top: 1.65rem;
  padding-bottom: 1.65rem;
}

.podium-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.45);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.06) 0%, var(--bg-card) 60%);
  order: 1;
}

.podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.45);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06) 0%, var(--bg-card) 60%);
  order: 3;
}

.podium-badge-trophy {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.podium-award-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.podium-card.rank-1 .podium-award-title {
  color: #eab308;
}

.podium-card.rank-2 .podium-award-title {
  color: #cbd5e1;
}

.podium-card.rank-3 .podium-award-title {
  color: #d97706;
}

.podium-song-cover {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  margin: 0.5rem auto 0.75rem auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.podium-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-song-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-song-creator {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.podium-score-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ========================================================================== */
/* SUBMISSIONS GRID & VOTING INTERACTION                                       */
/* ========================================================================== */

.contest-submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.contest-sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contest-sub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 194, 111, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contest-sub-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
  background: #0f172a;
}

.contest-sub-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.contest-sub-card:hover .contest-sub-cover-wrap img {
  transform: scale(1.05);
}

.sub-rank-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 15, 25, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.sub-play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 194, 111, 0.45);
  opacity: 0;
  transition: all 0.25s ease;
  cursor: pointer;
}

[data-theme="dark"] .sub-play-overlay-btn {
  color: #05140d;
}

.contest-sub-card:hover .sub-play-overlay-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.contest-sub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contest-sub-creator-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.contest-sub-creator-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.contest-sub-creator-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contest-sub-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

.contest-sub-action-row {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sub-votes-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-vote-trigger {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 194, 111, 0.12);
  border: 1px solid rgba(0, 194, 111, 0.35);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-vote-trigger:hover {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .btn-vote-trigger:hover {
  color: #05140d;
}

.btn-vote-trigger.voted {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-vote-trigger.btn-vote-own {
  background: rgba(148, 163, 184, 0.12);
  border-color: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-vote-trigger.btn-vote-exhausted {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.sub-views-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(148, 163, 184, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.contest-quota-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contest-quota-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quota-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 194, 111, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.quota-text-wrap {
  font-size: 0.88rem;
  color: var(--text-main);
}

.quota-title {
  font-weight: 600;
  line-height: 1.4;
}

.quota-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.user-quota-status-pill {
  background: rgba(0, 194, 111, 0.08);
  border: 1px solid rgba(0, 194, 111, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.user-quota-count {
  font-weight: 600;
}

.user-quota-remaining {
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
  .contest-detail-hero-row {
    flex-direction: column-reverse !important;
  }

  .contest-detail-hero-media {
    flex: 1 1 100% !important;
    padding: 16px 16px 0 !important;
    background: transparent !important;
    border-radius: var(--radius-xl, 20px) var(--radius-xl, 20px) 0 0 !important;
  }

  .contest-detail-banner-wrap {
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 14px !important;
  }

  .contest-detail-hero-content {
    flex: 1 1 100% !important;
    padding: 1.25rem 1rem !important;
    border-radius: 0 0 var(--radius-xl, 20px) var(--radius-xl, 20px) !important;
  }

  .contest-podium-grid {
    grid-template-columns: 1fr;
  }

  .podium-card.rank-1 {
    order: 1;
  }

  .podium-card.rank-2 {
    order: 2;
  }

  .podium-card.rank-3 {
    order: 3;
  }
}

@media (max-width: 767.98px) {
  .countdown-digits-grid {
    gap: 0.45rem;
  }

  .countdown-digit-num {
    font-size: 1.25rem;
  }

  .contest-timeline-bar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .contest-card-banner-wrap {
    aspect-ratio: 16 / 9;
  }

  .contest-submissions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GLOBAL BOOTSTRAP MODALS OVERRIDE
   Ensure Modals and Backdrops render above Fullscreen Studio Player (z-index: 2000)
   ========================================================================== */
.modal-backdrop {
  z-index: 10500 !important;
}

.modal {
  z-index: 10550 !important;
}

/* ==========================================================================
   CROPPER.JS MODERN STUDIO THEME & ACCENTUATION
   High-contrast crop handles, vibrant border, dashed lines across all images
   ========================================================================== */
.cropper-modal {
  background-color: rgba(0, 0, 0, 0.65) !important;
  opacity: 1 !important;
}

.cropper-view-box {
  outline: 2px solid #10b981 !important;
  outline-color: #10b981 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) !important;
}

.cropper-dashed {
  border-color: rgba(255, 255, 255, 0.85) !important;
  opacity: 0.85 !important;
}

.cropper-point {
  background-color: #10b981 !important;
  width: 9px !important;
  height: 9px !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.cropper-point.point-se {
  width: 14px !important;
  height: 14px !important;
  right: -5px !important;
  bottom: -5px !important;
}

.cropper-line {
  background-color: #10b981 !important;
  opacity: 0.75 !important;
}

/* ==========================================================================
   AI MODERATION AUDIT MODAL STYLING (WCAG High Contrast for Light & Dark Themes)
   Fixes white font issue on light backgrounds in Dark Mode and elevates UX
   ========================================================================== */
.ai-audit-modal-content {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* 1. Reason Alert Banner */
.ai-audit-reason-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: #fef2f2;
  border: 1px solid #fecdd3;
  color: #b91c1c;
}

[data-theme="dark"] .ai-audit-reason-alert {
  background-color: rgba(239, 68, 68, 0.14) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
}

/* 2. Policy Info Card */
.ai-audit-policy-card {
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="dark"] .ai-audit-policy-card {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* 3. Policy Title */
.ai-audit-policy-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .ai-audit-policy-title {
  color: #f87171 !important;
}

/* 4. Policy Bullet List */
.ai-audit-policy-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
  color: #475569;
  font-size: 0.84rem;
}

.ai-audit-policy-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.ai-audit-policy-list li:last-child {
  margin-bottom: 0;
}

.ai-audit-policy-list strong {
  color: #0f172a;
  font-weight: 600;
}

[data-theme="dark"] .ai-audit-policy-list {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .ai-audit-policy-list strong {
  color: #f8fafc !important;
}

/* 5. Identification Signature Badge */
.ai-audit-signature-badge {
  padding: 10px 14px;
  border-radius: 8px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-audit-signature-label {
  font-weight: 600;
  color: #64748b;
}

.ai-audit-signature-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: #e0f2fe;
  color: #0369a1;
  word-break: break-all;
}

[data-theme="dark"] .ai-audit-signature-badge {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .ai-audit-signature-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .ai-audit-signature-code {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

/* ==========================================================================
   GLOBAL BOOTSTRAP SUBTLE ALERTS DARK MODE CONTRAST OVERRIDE
   Prevents text-dark from clashing with light subtle backgrounds in dark mode
   ========================================================================== */
[data-theme="dark"] .bg-danger-subtle {
  background-color: rgba(239, 68, 68, 0.16) !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .border-danger-subtle {
  border-color: rgba(239, 68, 68, 0.35) !important;
}

[data-theme="dark"] .bg-danger-subtle .text-dark,
[data-theme="dark"] .bg-danger-subtle p,
[data-theme="dark"] .bg-danger-subtle li {
  color: #fca5a5 !important;
}

[data-theme="dark"] .bg-warning-subtle {
  background-color: rgba(245, 158, 11, 0.16) !important;
  color: #fcd34d !important;
}

[data-theme="dark"] .border-warning-subtle {
  border-color: rgba(245, 158, 11, 0.35) !important;
}

[data-theme="dark"] .bg-warning-subtle .text-dark,
[data-theme="dark"] .bg-warning-subtle p,
[data-theme="dark"] .bg-warning-subtle li {
  color: #fcd34d !important;
}

[data-theme="dark"] .bg-info-subtle {
  background-color: rgba(14, 165, 233, 0.16) !important;
  color: #7dd3fc !important;
}

[data-theme="dark"] .border-info-subtle {
  border-color: rgba(14, 165, 233, 0.35) !important;
}

[data-theme="dark"] .bg-info-subtle .text-dark,
[data-theme="dark"] .bg-info-subtle p,
[data-theme="dark"] .bg-info-subtle li {
  color: #7dd3fc !important;
}

[data-theme="dark"] .bg-success-subtle {
  background-color: rgba(16, 185, 129, 0.16) !important;
  color: #6ee7b7 !important;
}

[data-theme="dark"] .border-success-subtle {
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .bg-success-subtle .text-dark,
[data-theme="dark"] .bg-success-subtle p,
[data-theme="dark"] .bg-success-subtle li {
  color: #6ee7b7 !important;
}

[data-theme="dark"] .bg-light-subtle {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .bg-light-subtle .text-dark,
[data-theme="dark"] .bg-light-subtle p,
[data-theme="dark"] .bg-light-subtle label,
[data-theme="dark"] .bg-light-subtle span {
  color: var(--text-main) !important;
}

/* ==========================================================================
   GLOBAL SONG ACTION CONTEXT MENU & UNIFORM CARD STYLES
   ========================================================================== */
.song-action-dropdown-menu {
  position: fixed;
  z-index: 10000;
  width: 230px;
  background: rgba(18, 25, 22, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 229, 153, 0.08);
  color: #f1f5f9;
  font-family: inherit;
  animation: menuScaleFade 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  user-select: none;
}

@keyframes menuScaleFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

[data-theme="light"] .song-action-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.song-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

[data-theme="light"] .song-menu-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.song-menu-cover-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.song-menu-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-menu-meta {
  flex: 1;
  min-width: 0;
}

.song-menu-title {
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main, #ffffff);
}

.song-menu-artist {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  margin: 2px 0 0 0;
}

.song-menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-menu-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main, #f1f5f9);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.song-menu-action-btn i {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.song-menu-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary, #00e599);
  transform: translateX(2px);
}

[data-theme="light"] .song-menu-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #00b377;
}

.song-menu-action-btn.song-menu-danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.song-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

[data-theme="light"] .song-menu-divider {
  background: rgba(0, 0, 0, 0.08);
}

/* 3-DOTS BUTTON ACROSS ALL SONG CARDS */
.btn-song-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.85;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.top-fav-studio-item:hover .btn-song-more,
.release-row-card:hover .btn-song-more,
.discover-song-card:hover .btn-song-more,
.song-card-box:hover .btn-song-more,
.related-song-item:hover .btn-song-more {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) or (max-width: 768px) {
  .btn-song-more {
    opacity: 0.85 !important;
    pointer-events: auto !important;
  }
}

.btn-song-more:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary, #00e599);
  border-color: rgba(0, 229, 153, 0.25);
  transform: scale(1.1);
}

[data-theme="light"] .btn-song-more:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #00b377;
  border-color: rgba(0, 179, 119, 0.25);
}

/* SUBLINE: ARTIST LINK • LIKES • VIEWS */
.song-card-subline {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.song-artist-link {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast, 0.15s ease);
}

.song-artist-link,
.song-artist-link:hover,
.song-artist-link:focus {
  text-decoration: none !important;
}

.song-artist-link:hover {
  color: var(--primary, #00e599) !important;
}

[data-theme="light"] .song-artist-link:hover {
  color: #00b377 !important;
}

.meta-dot {
  margin: 0 4px;
  opacity: 0.45;
  flex-shrink: 0;
}

.meta-stat {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  flex-shrink: 0;
}

/* Inline Like Button on cards */
.btn-like-inline {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition-fast, 0.15s ease), transform var(--transition-fast, 0.15s ease);
}

.btn-like-inline:hover {
  color: #ef4444 !important;
  transform: scale(1.08);
}

.btn-like-inline i {
  transition: color var(--transition-fast, 0.15s ease), transform var(--transition-fast, 0.15s ease);
}

.btn-like-inline:hover i {
  color: #ef4444 !important;
}

.btn-like-inline.is-liked {
  color: #ef4444 !important;
}

.btn-like-inline.is-liked i {
  color: #ef4444 !important;
}

.song-title-link {
  color: var(--text-main, #ffffff);
  text-decoration: none;
  transition: color var(--transition-fast, 0.15s ease);
}

.song-title-link:hover {
  color: var(--primary, #00e599) !important;
  text-decoration: underline;
}

[data-theme="light"] .song-title-link {
  color: #0f172a;
}

[data-theme="light"] .song-title-link:hover {
  color: #00b377 !important;
}

/* AVATAR PLAY / STOP OVERLAY */
.top-fav-thumb-box,
.release-avatar-box,
.song-cover-wrap,
.related-cover-wrap {
  position: relative;
}

.top-fav-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.top-fav-studio-item:hover .top-fav-thumb-overlay,
.top-fav-thumb-box:hover .top-fav-thumb-overlay,
.top-fav-studio-item.is-playing .top-fav-thumb-overlay {
  opacity: 1;
}

.song-avatar-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary, #00e599);
  color: #0b110e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.song-avatar-play-btn:hover {
  transform: scale(1.12);
}

[data-theme="light"] .song-avatar-play-btn {
  background: #00b377;
  color: #ffffff;
}

/* Equalizer and active playing highlight on items */
.top-fav-studio-item.is-playing,
.release-row-card.is-playing,
.discover-song-card.is-playing,
.song-card-box.is-playing,
.related-song-item.is-playing {
  border-color: rgba(0, 229, 153, 0.45) !important;
  background-color: rgba(0, 229, 153, 0.06) !important;
}

.top-fav-studio-item.is-playing .song-avatar-play-btn,
.release-row-card.is-playing .release-avatar-play-btn,
.release-row-card.is-playing .song-avatar-play-btn,
.related-song-item.is-playing .btn-related-play-hover {
  background: #00e599;
  color: #0b110e;
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.6);
  opacity: 1 !important;
}

/* ==========================================================================
   TRANG MỚI PHÁT HÀNH (MONTHLY RELEASES DEDICATED PAGE)
   ========================================================================== */
.releases-page-flow {
  min-height: 70vh;
}

.releases-page-header {
  background: var(--card-bg, #101915);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.06));
}

[data-theme="light"] .releases-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.releases-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 153, 0.1);
  color: var(--primary, #00e599);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 229, 153, 0.2);
}

[data-theme="light"] .releases-header-badge {
  background: #e6f7f0;
  color: #00875a;
  border-color: #b3ebd4;
}

.releases-header-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

[data-theme="light"] .releases-header-title {
  color: #0f172a;
}

.releases-header-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0;
}

.releases-month-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.releases-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.releases-select-box {
  background-color: var(--input-bg, #0b110e);
  color: var(--text-main, #ffffff);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 230px;
}

.releases-select-box:focus,
.releases-select-box:hover {
  border-color: var(--primary, #00e599);
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.15);
}

[data-theme="light"] .releases-select-box {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .releases-select-box:focus,
[data-theme="light"] .releases-select-box:hover {
  border-color: #00b377;
  box-shadow: 0 0 0 3px rgba(0, 179, 119, 0.15);
}

.releases-loadmore-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 40px;
}

.btn-releases-loadmore {
  background: transparent;
  color: var(--primary, #00e599);
  border: 1px solid var(--primary, #00e599);
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 229, 153, 0.1);
}

.btn-releases-loadmore:hover {
  background: var(--primary, #00e599);
  color: #0b110e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 153, 0.25);
}

[data-theme="light"] .btn-releases-loadmore {
  color: #00875a;
  border-color: #00b377;
}

[data-theme="light"] .btn-releases-loadmore:hover {
  background: #00b377;
  color: #ffffff;
}

.releases-empty-box {
  background: var(--card-bg, #101915);
  border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  margin: 32px 0 48px;
}

[data-theme="light"] .releases-empty-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

/* =============================================================================
   YOUTUBE-STYLE HOMEPAGE & SHELL REDESIGN (MATCHING 1.PNG EXACTLY)
   - Full Width Header like YouTube (100% viewport width)
   - Font: Plus Jakarta Sans / Inter
   - Colors: Emerald #00a86b, Off-White #f3f4f6, Pure White #ffffff, Dark Cinema #0b120f
   - Layout: Fixed Left Sidebar + Main Viewport (70% Cinema Feed + 30% Right Widgets)
   ============================================================================= */

/* =============================================================================
   DEMO-ACCURATE TOP NAVBAR & LEFT SIDEBAR (PORTAL THEME: SLATE & ELECTRIC EMERALD)
   ============================================================================= */

/* 1. TOP NAVBAR (CHUẨN DEMO: TÌM KIẾM, TẠO NHẠC, TOGGLE THEME & AVATAR) */
.main-top-navbar {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-header, rgba(7, 13, 10, 0.85));
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  position: sticky !important;
  top: 0 !important;
  z-index: 1045 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.main-topbar-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px !important;
  /* Chuẩn 36px đồng bộ với #pjaxContainer theo GEMINI.md Rule 5 */
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .main-topbar-row {
    padding: 0 18px !important;
    /* Chuẩn 18px đồng bộ với #pjaxContainer Tablet */
  }
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none !important;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

/* Topbar Search Wrap (Desktop) */
.topbar-search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-input-field {
  width: 100%;
  height: 42px;
  padding: 0 18px 0 44px;
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-pill, 9999px);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-field:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon-pos {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: none;
}

/* =============================================================================
   NÚT VIÊN THUỐC ĐĂNG NHẬP (TOPBAR PILL SIGN-IN BUTTON) - CHUẨN CẢ PC VÀ MOBILE
   ============================================================================= */
.btn-topbar-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 229, 153, 0.08);
  border: 1.5px solid rgba(0, 229, 153, 0.45);
  color: #00e599;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-topbar-signin i {
  font-size: 16px;
  line-height: 1;
}

.btn-topbar-signin:hover {
  background: #00e599;
  border-color: #00e599;
  color: #070d0a;
  box-shadow: 0 0 18px rgba(0, 229, 153, 0.45);
  transform: translateY(-1px);
}

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

/* Theme Sáng: Nút viên thuốc Đăng Nhập */
html[data-theme="light"] .btn-topbar-signin,
[data-theme="light"] .btn-topbar-signin {
  background: rgba(5, 150, 105, 0.08);
  border: 1.5px solid #059669;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}

html[data-theme="light"] .btn-topbar-signin:hover,
[data-theme="light"] .btn-topbar-signin:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
}

/* =============================================================================
   MOBILE SEARCH: ICON KÍNH LÚP & THANH TÌM KIẾM TRƯỢT XUỐNG FULL WIDTH
   ============================================================================= */
.btn-mobile-search-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.btn-mobile-search-toggle:hover,
.btn-mobile-search-toggle.active {
  background: var(--bg-surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.mobile-search-bar-drawer {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 10px 14px 12px 14px;
  background: var(--bg-header, rgba(7, 13, 10, 0.98));
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  z-index: 1050 !important;
  box-sizing: border-box;
}

html[data-theme="light"] .mobile-search-bar-drawer,
[data-theme="light"] .mobile-search-bar-drawer {
  background: #ffffff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15) !important;
}

.mobile-search-bar-drawer:not(.d-none) {
  animation: slideDownMobileSearch 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownMobileSearch {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

.mobile-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mobile-search-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  background: var(--bg-input, rgba(255, 255, 255, 0.06));
  border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-pill, 9999px);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-search-input:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

html[data-theme="light"] .mobile-search-input,
[data-theme="light"] .mobile-search-input {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .mobile-search-input:focus,
[data-theme="light"] .mobile-search-input:focus {
  background: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2) !important;
}

.mobile-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: auto;
}

.btn-close-mobile-search {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-close-mobile-search:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

html[data-theme="light"] .btn-close-mobile-search:hover,
[data-theme="light"] .btn-close-mobile-search:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Mobile Search Dropdown Results */
.mobile-search-dropdown {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  margin-top: 6px;
  max-height: 65vh;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 1055 !important;
}

/* Topbar Right Cluster */
.topbar-right-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-create-music {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), #059669);
  border: none;
  border-radius: var(--radius-pill, 9999px);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition-smooth);
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-create-music:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
  color: #fff !important;
}

/* Sleek Theme Toggle Icon Button */
.theme-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.theme-icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(18deg) scale(1.05);
}

/* Topbar User Avatar */
.topbar-avatar-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.topbar-avatar-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transition: var(--transition-smooth);
}

.topbar-avatar-wrap:hover img {
  transform: scale(1.06);
}

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-surface-elevated, #0e1a14);
}

/* 2. APP SHELL LAYOUT: SIDEBAR + MAIN VIEWPORT */
.app-layout,
.yt-app-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  transition: var(--transition-smooth);
  width: 100%;
  position: relative;
  padding-top: 0 !important;
}

/* Sidebar Navigation */
.app-sidebar,
.yt-sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px 120px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
  min-height: 100%;
  height: auto;
  box-sizing: border-box;
  z-index: 99;
}

.sidebar-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 700;
  padding: 0 12px;
  margin-bottom: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md, 14px);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary) !important;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none !important;
}

.sidebar-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav-item:hover {
  color: var(--text-primary) !important;
  background: var(--bg-surface-hover) !important;
}

.sidebar-nav-item.active {
  background: var(--primary-glow) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.sidebar-nav-item.active i,
.sidebar-nav-item.active span {
  color: var(--primary) !important;
}

/* Sidebar Divider & Sign-in Promo (Chuẩn YouTube Ảnh 6.jpg) */
.sidebar-divider {
  height: 1px;
  width: 100%;
  background: var(--border-subtle);
  margin: 6px 0;
  flex-shrink: 0;
}

.sidebar-signin-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.signin-promo-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
  font-weight: 400;
}

.btn-sidebar-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: #00ff88;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-sidebar-signin i {
  font-size: 18px;
}

.btn-sidebar-signin:hover {
  background: rgba(0, 255, 136, 0.16);
  border-color: #00ff88;
  color: #ffffff;
  box-shadow: 0 2px 14px rgba(0, 255, 136, 0.25);
  transform: translateY(-1px);
}

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

.guest-library-item {
  position: relative;
}

/* Main Content Area */
.app-main-content,
.yt-main-viewport {
  flex: 1;
  padding: 24px 36px 120px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--hero-glow);
  margin-left: 0 !important;
}

/* Light Theme Adjustments */
html[data-theme="light"] .main-top-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .search-input-field {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .search-input-field::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .theme-icon-btn {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .yt-sidebar {
  background: #f1f5f9 !important;
  border-right-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .menu-heading {
  color: #64748b !important;
}

html[data-theme="light"] .sidebar-nav-item {
  color: #334155 !important;
}

html[data-theme="light"] .sidebar-nav-item:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

html[data-theme="light"] .sidebar-nav-item.active {
  color: #059669 !important;
  background: rgba(5, 150, 105, 0.12) !important;
}

html[data-theme="light"] .sidebar-nav-item.active i,
html[data-theme="light"] .sidebar-nav-item.active span {
  color: #059669 !important;
}

html[data-theme="light"] .sidebar-divider {
  background: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .signin-promo-desc {
  color: #0f172a !important;
}

html[data-theme="light"] .btn-sidebar-signin {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #065fd4 !important;
}

html[data-theme="light"] .btn-sidebar-signin i {
  color: #065fd4 !important;
}

html[data-theme="light"] .btn-sidebar-signin:hover {
  background: #f1f5f9 !important;
  border-color: #065fd4 !important;
  color: #0b57d0 !important;
  box-shadow: 0 2px 8px rgba(6, 95, 212, 0.15) !important;
}


/* Topbar Left Cluster (Hamburger + Logo) */
.topbar-left-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Responsive adjustments */
.btn-topbar-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  background: var(--bg-surface-hover, rgba(255, 255, 255, 0.05));
  color: var(--text-primary, #ffffff);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-topbar-sidebar-toggle:hover,
.btn-topbar-sidebar-toggle:active {
  background: var(--primary-light, rgba(16, 185, 129, 0.15));
  color: var(--primary, #10b981);
  border-color: var(--primary-border, rgba(16, 185, 129, 0.35));
}

[data-theme="light"] .btn-topbar-sidebar-toggle {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

@media (max-width: 900px) {

  .app-sidebar:not(.show),
  .yt-sidebar:not(.show) {
    display: none !important;
  }

  .app-sidebar.show,
  .yt-sidebar.show {
    display: flex !important;
  }

  .app-main-content,
  .yt-main-viewport {
    padding: 14px 14px 100px !important;
  }
}

@media (max-width: 768px) {
  .main-top-navbar {
    height: auto !important;
    min-height: 56px !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .main-topbar-row {
    height: 56px !important;
    padding: 0 14px !important;
    /* Chuẩn 14px đồng bộ với #pjaxContainer Mobile theo GEMINI.md */
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-group {
    font-size: 14px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .brand-logo-img {
    height: 38px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
  }

  .topbar-search-wrap {
    display: none !important;
  }

  .btn-mobile-search-toggle {
    display: flex !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  .topbar-right-cluster {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .btn-create-music {
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 13px !important;
  }

  .btn-create-music .btn-text-desktop {
    display: none !important;
  }

  .theme-icon-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  .topbar-avatar-wrap img {
    width: 34px !important;
    height: 34px !important;
  }

  .btn-topbar-signin {
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    gap: 5px !important;
  }

  .btn-topbar-signin i {
    font-size: 13px !important;
  }
}

/* 4. CINEMA VISUALIZER 16:9 CARD */
.yt-cinema-card {
  background: #000000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  position: relative;
}

.yt-cinema-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b120f;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.yt-cinema-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yt-cinema-card:hover .yt-cinema-bg-img {
  transform: scale(1.02);
}

.yt-cinema-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.75) 80%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
}

.yt-cinema-top-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.yt-badge-now-playing {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseRed 1.8s infinite;
}

/* Floating Inset Album Cover + Info (Matching 1.png exactly) */
.yt-cinema-content-overlay {
  position: absolute;
  left: 24px;
  bottom: 75px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  max-width: 85%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.yt-cinema-inset-cover {
  width: 125px;
  height: 125px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.yt-cinema-inset-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-cinema-info-box {
  flex: 1;
  min-width: 0;
}

.yt-cinema-tag-now {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #00e599;
  background: rgba(0, 194, 111, 0.28);
  border: 1px solid rgba(0, 229, 153, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.yt-cinema-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.yt-cinema-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.yt-cinema-artist {
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.yt-cinema-genre-pill {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
}

.yt-cinema-duration {
  color: #cbd5e1;
  font-size: 0.8rem;
}

/* Cinema Overlay Controls */
.yt-cinema-controls-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 100%);
  padding: 10px 20px 14px;
}

.yt-cinema-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin-bottom: 12px;
  transition: height 0.15s ease;
}

.yt-cinema-progress-wrap:hover {
  height: 8px;
}

.yt-cinema-progress-bg {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
}

.yt-cinema-progress-bar {
  height: 100%;
  background: #00e599;
  border-radius: inherit;
  position: relative;
}

.yt-cinema-progress-knob {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.yt-cinema-progress-wrap:hover .yt-cinema-progress-knob {
  opacity: 1;
}

.yt-cinema-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yt-cinema-ctrl-left,
.yt-cinema-ctrl-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cinema-icon {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cinema-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #00e599;
}

.btn-cinema-play-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00a86b;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 3px 12px rgba(0, 168, 107, 0.45);
}

.btn-cinema-play-round:hover {
  background: #00c26f;
  transform: scale(1.06);
}

.yt-cinema-vol-slider {
  width: 80px;
  height: 4px;
  accent-color: #00e599;
  cursor: pointer;
}

.yt-cinema-time {
  font-size: 0.78rem;
  color: #d1d5db;
  font-variant-numeric: tabular-nums;
}

.yt-badge-hd {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* =============================================================================
   CINEMA LRC KARAOKE LYRICS OVERLAY & REALTIME HIGHLIGHT
   ============================================================================= */
.yt-cinema-lyrics-overlay {
  position: absolute;
  inset: 0;
  bottom: 60px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 10px;
  background: rgba(5, 12, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px 18px 0 0;
  animation: fadeIn 0.25s ease;
  user-select: none;
}

.yt-cinema-stage.lyrics-active .yt-cinema-bg-img {
  filter: blur(10px) brightness(0.5);
  transform: scale(1.08);
}

.yt-cinema-stage.lyrics-active .yt-cinema-content-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.yt-cinema-lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.yt-cinema-lyrics-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.btn-cinema-close-lyrics {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cinema-close-lyrics:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
  transform: scale(1.08);
}

.yt-cinema-lyrics-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  text-align: center;
  padding: 30px 12px 60px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.yt-cinema-lyrics-stream::-webkit-scrollbar {
  width: 4px;
}

.yt-cinema-lyrics-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.yt-cinema-lrc-line {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px 16px;
  border-radius: 12px;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.45;
  user-select: none;
}

.yt-cinema-lrc-line:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}

.yt-cinema-lrc-line.active {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 229, 153, 0.75), 0 2px 10px rgba(0, 0, 0, 0.9);
  transform: scale(1.06);
  background: rgba(0, 229, 153, 0.14);
  border: 1px solid rgba(0, 229, 153, 0.32);
}

.btn-cinema-lyrics-toggle.active {
  color: #00e599 !important;
  background: rgba(0, 229, 153, 0.2) !important;
}

/* =============================================================================
   HERO MUSIC STUDIO & DYNAMIC WAVEFORM SCRUBBER (CHUYÊN NGHIỆP CHO WEBSITE ÂM NHẠC)
   ============================================================================= */
.yt-main-feed,
.yt-right-sidebar {
  min-width: 0 !important;
  max-width: 100% !important;
}

.music-studio-hero-card {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 20px;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  background: var(--studio-card-bg, #0b110e);
  border: 1px solid var(--studio-card-border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 14px 40px var(--studio-card-shadow, rgba(0, 0, 0, 0.45));
  transition: all 0.3s ease;
}

[data-theme="light"] .music-studio-hero-card {
  --studio-card-bg: #ffffff;
  --studio-card-border: rgba(0, 0, 0, 0.08);
  --studio-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.music-studio-stage {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  border-radius: inherit;
  padding: 22px 24px 18px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Vầng sáng hào quang huyền ảo theo màu sắc bài hát (Ambient Glow) */
.music-studio-ambient-glow {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center;
  filter: blur(45px);
  opacity: 0.3;
  transform: scale(1.08);
  pointer-events: none;
  z-index: 1;
  transition: background-image 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

[data-theme="light"] .music-studio-ambient-glow {
  opacity: 0.12;
}

/* Lớp hình nền động của bài hát / thể loại / tâm trạng trong player trung tâm (16:9 WebP) */
.music-studio-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.48;
  z-index: 1;
  pointer-events: none;
  transition: background-image 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  filter: saturate(1.15) contrast(1.05);
}

.music-studio-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 29, 0.70) 0%, rgba(10, 15, 29, 0.28) 50%, rgba(10, 15, 29, 0.15) 100%);
  pointer-events: none;
}

[data-theme="light"] .music-studio-bg-layer {
  opacity: 0.36;
  filter: saturate(1.08) contrast(1.02);
}

[data-theme="light"] .music-studio-bg-layer::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.18) 100%);
}

/* TẦNG 1: SÂN KHẤU CHÍNH (BỐ CỤC CHUYỂN ĐỔI LINH HOẠT PC & MOBI) */
.music-studio-stage-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 16px;
  flex: 1;
  overflow: visible;
  transition: gap 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-studio-stage.lyrics-active .music-studio-stage-main {
  gap: 16px;
}

/* CỘT TRÁI (CHỨA AVATAR, TITLE, NGHỆ SĨ VÀ SÓNG NHẠC) */
.music-studio-left-pane {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: flex, max-width;
}

/* Khi bật Lời bài hát trên PC: Cột trái co lại mượt mà, Cột phải trượt xuất hiện */
.music-studio-stage.lyrics-active .music-studio-left-pane {
  flex: 0 0 calc(55% - 8px);
  max-width: calc(55% - 8px);
}

.music-studio-stage.lyrics-active .music-studio-pc-hint {
  display: none !important;
}

.music-studio-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bìa đĩa 1:1 */
.music-studio-artwork-col {
  flex-shrink: 0;
}

.music-studio-artwork-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 153, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  will-change: width, height;
}

[data-theme="light"] .music-studio-artwork-wrapper {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 0 16px rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

.music-studio-stage.lyrics-active .music-studio-artwork-wrapper {
  width: 125px;
  height: 125px;
}

.music-studio-hero-card:hover .music-studio-artwork-wrapper {
  transform: translateY(-2px);
}

.music-studio-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-studio-badge-now {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

/* Cột thông tin bài hát */
.music-studio-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.music-studio-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

[data-theme="light"] .music-studio-title {
  color: #0f172a !important;
}

.music-studio-artist-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 3px;
}

[data-theme="light"] .music-studio-artist-wrap {
  color: #1e293b !important;
}

.music-studio-artist {
  color: inherit;
}

[data-theme="light"] .music-studio-artist {
  color: #1e293b !important;
}

.music-studio-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.studio-badge-hi-res {
  background: rgba(0, 229, 153, 0.14);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.35);
}

[data-theme="light"] .studio-badge-hi-res {
  background: rgba(4, 120, 87, 0.1);
  color: #047857 !important;
  border-color: rgba(4, 120, 87, 0.3);
}

.studio-badge-ai {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .studio-badge-ai {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca !important;
  border-color: rgba(79, 70, 229, 0.25);
}

.studio-badge-genre {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .studio-badge-genre {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.music-studio-pc-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 8px;
}

[data-theme="light"] .music-studio-pc-hint {
  color: #334155 !important;
}

.wave-lyrics-hint {
  cursor: pointer;
  transition: color 0.18s ease;
}

.wave-lyrics-hint:hover {
  color: #00e599;
}

[data-theme="light"] .wave-lyrics-hint:hover {
  color: #047857 !important;
}

/* KHUNG SÓNG NHẠC */
.music-dancing-wave-box {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

[data-theme="light"] .music-dancing-wave-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.music-waveform-bars {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
}

@keyframes dancingAudioBars {
  0% {
    transform: scaleY(0.2);
  }

  50% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0.35);
  }
}

.waveform-bar {
  flex: 1;
  min-width: 2px;
  max-width: 5px;
  border-radius: 3px;
  background: rgba(0, 229, 153, 0.35);
  transform-origin: bottom;
  transform: scaleY(0.25);
  transition: transform 0.25s ease, background 0.2s ease;
}

[data-theme="light"] .waveform-bar {
  background: rgba(4, 120, 87, 0.35);
}

.waveform-bar.playing {
  background: #00e599;
  box-shadow: 0 0 6px rgba(0, 229, 153, 0.5);
  animation-name: dancingAudioBars;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

[data-theme="light"] .waveform-bar.playing {
  background: #047857;
  box-shadow: 0 0 6px rgba(4, 120, 87, 0.4);
}

/* CỘT PHẢI LỜI BÀI HÁT TRÊN PC (KHI BẤM MICRO) */
.music-studio-lyrics-col {
  flex: 0 0 0%;
  max-width: 0;
  width: 0;
  height: 215px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px) scale(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: flex, max-width, opacity, transform;
}

.music-studio-stage.lyrics-active .music-studio-lyrics-col {
  flex: 0 0 calc(45% - 8px);
  max-width: calc(45% - 8px);
  width: calc(45% - 8px);
  opacity: 1;
  padding: 10px 14px;
  border: 1px solid rgba(0, 229, 153, 0.28);
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

[data-theme="light"] .music-studio-lyrics-col {
  background: rgba(248, 250, 252, 0.98);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .music-studio-stage.lyrics-active .music-studio-lyrics-col {
  border: 1px solid rgba(4, 120, 87, 0.28);
}

.music-studio-lyrics-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
  flex-shrink: 0;
}

[data-theme="light"] .music-studio-lyrics-view-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.lyrics-view-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #00e599;
}

[data-theme="light"] .lyrics-view-title {
  color: #047857 !important;
}

.btn-close-lyrics-view {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-close-lyrics-view:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

[data-theme="light"] .btn-close-lyrics-view {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .btn-close-lyrics-view:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #dc2626;
}

/* STREAM LỜI BÀI HÁT (.cinema-lyrics-stream) */
.cinema-lyrics-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
  padding: 4px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cinema-lyrics-stream:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 153, 0.4) transparent;
}

[data-theme="light"] .cinema-lyrics-stream:hover {
  scrollbar-color: rgba(4, 120, 87, 0.4) transparent;
}

/* Lời bài hát mobile chỉ được hiện trên màn hình mobile khi bật micro */
.mobile-lyrics-stream {
  display: none !important;
}

.cinema-lyrics-stream::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.cinema-lyrics-stream:hover::-webkit-scrollbar {
  width: 4px;
}

.cinema-lyrics-stream::-webkit-scrollbar-track {
  background: transparent;
}

.cinema-lyrics-stream::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.cinema-lyrics-stream:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 153, 0.4);
}

[data-theme="light"] .cinema-lyrics-stream:hover::-webkit-scrollbar-thumb {
  background: rgba(4, 120, 87, 0.4);
}

/* TỪNG CÂU HÁT - THIẾT KẾ THUẦN CHỮ ĐẸP MẮT (KHÔNG HỘP BAO XẤU XÍ) */
.cinema-lyrics-stream .yt-cinema-lrc-line {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0;
  padding: 4px 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

[data-theme="light"] .cinema-lyrics-stream .yt-cinema-lrc-line {
  color: #1e293b !important;
  font-weight: 600;
}

.cinema-lyrics-stream .yt-cinema-lrc-line:hover {
  color: #ffffff;
  opacity: 1;
}

[data-theme="light"] .cinema-lyrics-stream .yt-cinema-lrc-line:hover {
  color: #047857 !important;
}

/* CÂU HÁT ĐANG CHẠY PHÁT SÁNG RỰC RỠ */
.cinema-lyrics-stream .yt-cinema-lrc-line.active {
  color: #00e599 !important;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 0 14px rgba(0, 229, 153, 0.7);
  transform: translateX(4px);
}

[data-theme="light"] .cinema-lyrics-stream .yt-cinema-lrc-line.active {
  color: #047857 !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(4, 120, 87, 0.35);
}

/* TẦNG 2: TIMELINE */
.music-studio-timeline-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.music-timeline-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  flex-shrink: 0;
}

[data-theme="light"] .music-timeline-time {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.music-timeline-track {
  flex: 1;
  min-width: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

[data-theme="light"] .music-timeline-track {
  background: rgba(0, 0, 0, 0.1);
}

.music-timeline-track:hover {
  height: 8px;
}

.music-timeline-buffer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
  width: 0%;
  pointer-events: none;
}

[data-theme="light"] .music-timeline-buffer {
  background: rgba(0, 0, 0, 0.1);
}

.music-timeline-played {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b87a, #00e599);
  width: 0%;
  pointer-events: none;
  transition: width 0.08s linear;
}

[data-theme="light"] .music-timeline-played {
  background: linear-gradient(90deg, #047857, #00b87a);
}

.music-timeline-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #00e599;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 229, 153, 0.6);
  z-index: 3;
}

.music-timeline-track:hover .music-timeline-knob {
  transform: translate(-50%, -50%) scale(1);
}

/* TẦNG 3: BỘ CÔNG CỤ ĐIỀU KHIỂN (3 CỤM CANH TRÁI, CANH GIỮA, CANH PHẢI) */
.music-studio-controls-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.music-ctrl-side-left {
  display: flex;
  align-items: center;
  flex: 0 0 160px;
}

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

.studio-vol-slider {
  width: 80px;
  height: 4px;
  accent-color: #00e599;
  cursor: pointer;
}

[data-theme="light"] .studio-vol-slider {
  accent-color: #047857;
}

.music-ctrl-center-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
}

.music-ctrl-side-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 160px;
}

.btn-studio-play-main {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00e599;
  color: #021a10;
  border: none;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 229, 153, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-studio-play-main:hover {
  background: #0dfba9;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 229, 153, 0.6);
}

.btn-studio-ctrl {
  background: transparent;
  border: 1px solid transparent;
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

[data-theme="light"] .btn-studio-ctrl {
  color: #0f172a !important;
}

@media (hover: hover) {
  .btn-studio-ctrl:hover {
    background: rgba(0, 229, 153, 0.12);
    color: #00e599;
  }

  [data-theme="light"] .btn-studio-ctrl:hover {
    background: rgba(4, 120, 87, 0.1);
    color: #047857 !important;
  }
}

.btn-studio-ctrl.active,
.btn-studio-ctrl.text-emerald.active {
  color: #00e599 !important;
  background: rgba(0, 229, 153, 0.18) !important;
  border-color: rgba(0, 229, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.35) !important;
}

[data-theme="light"] .btn-studio-ctrl.active,
[data-theme="light"] .btn-studio-ctrl.text-emerald.active {
  color: #047857 !important;
  background: rgba(4, 120, 87, 0.16) !important;
  border-color: rgba(4, 120, 87, 0.4) !important;
  box-shadow: 0 0 8px rgba(4, 120, 87, 0.2) !important;
}

.btn-studio-lyrics-toggle.active {
  color: #00e599 !important;
  background: rgba(0, 229, 153, 0.18) !important;
  border-color: rgba(0, 229, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.35) !important;
}

[data-theme="light"] .btn-studio-lyrics-toggle.active {
  color: #047857 !important;
  background: rgba(4, 120, 87, 0.16) !important;
  border-color: rgba(4, 120, 87, 0.4) !important;
  box-shadow: 0 0 8px rgba(4, 120, 87, 0.2) !important;
}

/* RESPONSIVE TRÌNH PHÁT TRÊN MOBILE */
@media (max-width: 768px) {
  .music-studio-stage {
    min-height: auto;
    padding: 14px 12px;
  }

  .music-studio-stage-main {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .music-studio-left-pane {
    width: 100%;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .music-studio-meta-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .music-studio-artwork-wrapper {
    width: 110px;
    height: 110px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  }

  .music-studio-info-col {
    width: 100%;
    align-items: center;
  }

  .music-studio-header-meta .d-flex {
    justify-content: center !important;
  }

  .music-studio-artist-wrap {
    justify-content: center;
  }

  .music-dancing-wave-box {
    height: 48px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  }

  .music-waveform-bars {
    width: 100%;
    height: 100%;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* KHI NHẤP ICON MICRO TRÊN MOBILE: */
  /* 1. Ảnh và Thông tin trượt thành 2 cột thu gọn */
  .music-studio-stage.lyrics-active .music-studio-meta-row {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    margin-bottom: 6px;
  }

  .music-studio-stage.lyrics-active .music-studio-artwork-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .music-studio-stage.lyrics-active .music-studio-badge-now {
    display: none !important;
  }

  .music-studio-stage.lyrics-active .music-studio-info-col {
    align-items: flex-start;
  }

  .music-studio-stage.lyrics-active .music-studio-header-meta .d-flex {
    justify-content: flex-start !important;
  }

  .music-studio-stage.lyrics-active .music-studio-title {
    font-size: 0.96rem;
  }

  .music-studio-stage.lyrics-active .music-studio-artist-wrap {
    justify-content: flex-start;
    font-size: 0.78rem;
    margin-top: 1px;
  }

  /* 2. Sóng nhạc ẩn đi nhường chỗ cho lời bài hát */
  .music-studio-stage.lyrics-active .music-waveform-bars {
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    transform: scale(0.92);
  }

  /* 3. Khung sóng nhạc giữ nguyên background & border, tăng chiều cao lên 195px xem được 5-6 dòng */
  .music-studio-stage.lyrics-active .music-dancing-wave-box {
    height: 195px;
    padding: 10px 12px;
    align-items: flex-start;
  }

  .mobile-lyrics-stream {
    display: none !important;
  }

  .music-studio-stage.lyrics-active .mobile-lyrics-stream {
    display: flex !important;
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    animation: mobileLyricsFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes mobileLyricsFadeIn {
    0% {
      opacity: 0;
      transform: translateY(8px);
    }

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

  .music-studio-stage.lyrics-active .mobile-lyrics-stream .yt-cinema-lrc-line {
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 4px 0;
  }

  .music-studio-stage.lyrics-active .mobile-lyrics-stream .yt-cinema-lrc-line.active {
    font-size: 1.02rem;
    font-weight: 700;
    transform: none;
  }

  /* Ẩn cột PC trên mobile */
  .music-studio-lyrics-col {
    display: none !important;
  }

  /* Controls trên mobile */
  .music-ctrl-side-left {
    flex: 0 0 auto;
  }

  .studio-vol-slider {
    width: 45px;
  }

  .music-ctrl-center-main {
    gap: 6px;
    flex: 1;
    justify-content: center;
  }

  .music-ctrl-side-right {
    flex: 0 0 auto;
  }

  .btn-studio-play-main {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .btn-studio-ctrl {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  .btn-studio-ctrl.active {
    background: rgba(0, 229, 153, 0.22) !important;
    border-color: rgba(0, 229, 153, 0.5) !important;
    color: #00e599 !important;
  }

  [data-theme="light"] .btn-studio-ctrl.active {
    background: rgba(4, 120, 87, 0.2) !important;
    border-color: rgba(4, 120, 87, 0.45) !important;
    color: #047857 !important;
  }
}

@media (max-width: 575.98px) {
  .music-studio-stage {
    padding: 12px 10px;
  }

  .music-studio-timeline-row {
    gap: 6px;
    margin-bottom: 8px;
  }

  .music-timeline-time {
    font-size: 0.72rem;
    min-width: 26px;
  }

  .studio-vol-slider {
    width: 40px;
  }

  .music-ctrl-center-main {
    gap: 4px;
  }
}


/* =============================================================================
   MINIPLAYER AUTO-HIDE / REVEAL FOOTER DOCK LOGIC
   ============================================================================= */
/* Khi ở trang chủ và nhìn thấy Player trung tâm: Ẩn thanh dock footer */
.bottom-music-player.dock-hidden-by-cinema {
  transform: translateY(120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease !important;
}

/* Khi dock chân trang ẩn thì Left Sidebar PC kéo dài xuống sát đáy 100vh */
@media (min-width: 992px) {
  .yt-sidebar.sidebar-full-dock {
    bottom: 0 !important;
    height: calc(100vh - 64px) !important;
  }
}

/* Nút bấm trên dock chân trang cuộn lên Player trung tâm */
.btn-scroll-top-cinema {
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: #00e599;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-scroll-top-cinema:hover {
  background: #00e599;
  color: #072a1e;
}

/* 5. TABS BAR UNDER PLAYER */
.yt-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
  padding-bottom: 2px;
}

.yt-tab-link {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  position: relative;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s ease;
}

.yt-tab-link:hover {
  color: var(--text-main, #111827);
}

.yt-tab-link.active {
  color: #00a86b;
}

.yt-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: #00a86b;
  border-radius: 3px 3px 0 0;
}

/* 6. YOUTUBE WATCH METADATA & ACTIONS (CHUẨN ẢNH 1.JPG) */
.yt-watch-metadata-row {
  padding-top: 4px;
}

.yt-channel-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.yt-channel-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.yt-channel-subs {
  font-size: 0.78rem;
  color: var(--text-muted, #606060);
  line-height: 1.2;
}

.btn-yt-subscribe {
  background: #0f0f0f;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 16px;
  height: 36px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-yt-subscribe:hover {
  background: #272727;
  color: #ffffff;
}

.btn-yt-subscribe.subscribed {
  background: rgba(0, 0, 0, 0.06);
  color: #0f0f0f;
}

.yt-actions-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-pill-segmented {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.btn-yt-segment {
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: #0f0f0f;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-yt-segment:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-yt-like.active {
  color: #00a86b;
  font-weight: 700;
}

.btn-yt-dislike.active {
  color: #ef4444;
  font-weight: 700;
}

.yt-segment-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.btn-yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.05);
  color: #0f0f0f;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-yt-pill:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-yt-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #0f0f0f;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.btn-yt-pill-icon:hover {
  background: rgba(0, 0, 0, 0.1);
}

.yt-dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px;
  min-width: 190px;
}

.yt-dropdown-menu .dropdown-item {
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main, #0f0f0f);
}

.yt-dropdown-menu .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 7. YOUTUBE DESCRIPTION CARD (CHUẨN ẢNH 1.JPG) */
.yt-description-card {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.yt-description-card:hover {
  background: rgba(0, 0, 0, 0.08);
}

.yt-desc-header {
  color: #0f0f0f;
  font-size: 0.86rem;
}

.yt-desc-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #282828;
}

.btn-yt-desc-toggle {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f0f0f;
  padding: 0;
  cursor: pointer;
}

.btn-yt-desc-toggle:hover {
  text-decoration: underline;
}

.yt-hashtag-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #065fd4;
}

.yt-hashtag-link:hover {
  text-decoration: underline;
}

/* 8. YOUTUBE COMMENTS SECTION (CHUẨN ẢNH 1.JPG) */
.yt-comments-section {
  margin-top: 24px;
}

.yt-comments-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f0f0f;
}

.btn-yt-sort {
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0f0f0f;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-yt-sort:hover {
  background: rgba(0, 0, 0, 0.06);
}

.yt-sort-menu {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px;
}

.yt-sort-menu .dropdown-item {
  border-radius: 8px;
  font-size: 0.86rem;
  padding: 8px 14px;
}

.yt-comment-form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.yt-comment-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.yt-input-underline-wrap {
  position: relative;
  width: 100%;
}

.yt-comment-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  resize: none;
  font-size: 0.9rem;
  color: #0f0f0f;
  padding: 4px 0 6px 0;
  outline: none;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}

.yt-input-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0f0f0f;
  transition: all 0.25s ease;
}

.yt-input-underline.active {
  left: 0;
  width: 100%;
}

.btn-yt-comment-cancel {
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  color: #0f0f0f;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-yt-comment-cancel:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-yt-comment-submit {
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  background: #065fd4;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.btn-yt-comment-submit:hover:not(.disabled) {
  background: #0553ba;
}

.btn-yt-comment-submit.disabled,
.btn-yt-comment-submit:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: #909090;
  cursor: not-allowed;
}

.yt-comment-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.yt-comment-user-handle {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f0f0f;
}

.yt-comment-time {
  font-size: 0.76rem;
  color: #606060;
}

.yt-comment-body {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #0f0f0f;
}

.btn-comment-dot {
  background: transparent;
  border: none;
  color: #606060;
  padding: 4px 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-comment-dot:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f0f0f;
}

.yt-comment-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-comment-action {
  background: transparent;
  border: none;
  color: #606060;
  font-size: 0.84rem;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-comment-action:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f0f0f;
}

.btn-comment-action.active {
  color: #00a86b;
}

.btn-comment-dislike.active {
  color: #ef4444;
}

.btn-comment-reply-trigger {
  background: transparent;
  border: none;
  color: #606060;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-comment-reply-trigger:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f0f0f;
}

.yt-reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.yt-reply-input {
  border-radius: 999px;
  font-size: 0.86rem;
  padding: 6px 14px;
}

.btn-yt-more-comments {
  background: transparent;
  color: #065fd4;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-yt-more-comments:hover {
  background: rgba(6, 95, 212, 0.06);
  border-color: #065fd4;
}

/* 8. RIGHT SIDEBAR WIDGETS */
.yt-widget-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.yt-widget-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #111827);
}

.yt-widget-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: #00a86b;
  text-decoration: none;
}

.yt-widget-view-all:hover {
  text-decoration: underline;
}

/* Recommended Songs */
.yt-recommend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-recommend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.15s ease;
  position: relative;
}

.yt-recommend-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.yt-rec-thumb-box {
  width: 76px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.yt-rec-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-rec-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yt-recommend-item:hover .yt-rec-play-overlay {
  opacity: 1;
}

.yt-rec-duration {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.yt-rec-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.yt-rec-artist {
  font-size: 0.76rem;
  color: var(--text-muted, #6b7280);
}

.yt-rec-stats {
  font-size: 0.72rem;
}

.btn-rec-more {
  background: transparent;
  border: none;
  color: #9ca3af;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-rec-more:hover {
  color: var(--text-main, #111827);
  background: rgba(0, 0, 0, 0.06);
}

/* Playlists Mini Cards */
.yt-playlist-mini-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.yt-pl-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
}

.yt-pl-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yt-playlist-mini-card:hover .yt-pl-thumb-img {
  transform: scale(1.05);
}

.yt-pl-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yt-playlist-mini-card:hover .yt-pl-hover-play {
  opacity: 1;
}

.yt-pl-count-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.yt-pl-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main, #111827);
  margin-bottom: 1px;
}

.yt-pl-creator {
  font-size: 0.7rem;
  color: var(--text-muted, #6b7280);
}

/* Contest Box (Cúp vàng hào quang 3D) */
.yt-contest-widget-box {
  background: linear-gradient(90deg, #061f15 0%, #061f15 42%, rgba(6, 31, 21, 0.45) 75%, rgba(6, 31, 21, 0.15) 100%), url('../img/contest_trophy_banner.webp') right center / cover no-repeat;
  border: 1px solid rgba(0, 229, 153, 0.35);
  border-radius: 16px;
  padding: 18px;
  color: #ffffff;
  box-shadow: 0 4px 22px rgba(0, 168, 107, 0.2);
}

.yt-contest-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-contest-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-contest-close:hover {
  color: #ffffff;
}

.yt-contest-tagline {
  font-size: 0.78rem;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.yt-badge-contest-live {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.yt-contest-stat-pill {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.pill-label {
  font-size: 0.66rem;
  color: #9ca3af;
  text-transform: uppercase;
}

.pill-val {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
}

/* Real-time Countdown Timer */
.yt-countdown-container {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.countdown-label-left {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00e599;
  text-transform: uppercase;
  white-space: nowrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}

.unit-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.unit-label {
  font-size: 0.62rem;
  color: #9ca3af;
  text-transform: uppercase;
  margin-top: 2px;
}

.btn-contest-join {
  background: #00a86b;
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: none;
  transition: all 0.15s ease;
}

.btn-contest-join:hover {
  background: #00935d;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-contest-leaderboard {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.btn-contest-leaderboard:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

/* "Có thể bạn sẽ thích" Mini Thumbnails */
.yt-like-mini-box {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #e5e7eb;
}

.yt-like-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yt-like-mini-box:hover .yt-like-img {
  transform: scale(1.08);
}

.yt-like-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yt-like-mini-box:hover .yt-like-play-overlay {
  opacity: 1;
}

/* =============================================================================
   PORTAL DEMO THEME: MENUTOP, MENULEFT & BODY TONE UNIFICATION (100% DEMO MATCH)
   ============================================================================= */
/* 🌙 THEME TỐI: LUXURY DARK EMERALD STUDIO (ĐỒNG BỘ 100% TOÀN HỆ THỐNG) */
html[data-theme="dark"] body,
[data-theme="dark"] body {
  background-color: #070d0a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .main-top-navbar,
[data-theme="dark"] .main-top-navbar,
html[data-theme="dark"] .site-header,
[data-theme="dark"] .site-header {
  background: rgba(7, 13, 10, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 229, 153, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .app-sidebar,
html[data-theme="dark"] .yt-sidebar,
[data-theme="dark"] .app-sidebar,
[data-theme="dark"] .yt-sidebar {
  background: #08110c !important;
  border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 3px 0 16px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .app-layout,
html[data-theme="dark"] .yt-app-layout,
[data-theme="dark"] .app-layout,
[data-theme="dark"] .yt-app-layout {
  background: #050a07 !important;
}

html[data-theme="dark"] .app-main-content,
html[data-theme="dark"] .yt-main-viewport,
[data-theme="dark"] .app-main-content,
[data-theme="dark"] .yt-main-viewport {
  background: radial-gradient(circle at 20% 0%, rgba(0, 229, 153, 0.07) 0%, transparent 55%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%), #050a07 !important;
}

html[data-theme="dark"] .chart-song-card,
html[data-theme="dark"] .music-standard-card,
html[data-theme="dark"] .hero-side-widget,
[data-theme="dark"] .chart-song-card,
[data-theme="dark"] .music-standard-card,
[data-theme="dark"] .hero-side-widget {
  background: #0e1e17 !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .song-context-menu,
[data-theme="dark"] .song-context-menu {
  background: rgba(11, 22, 16, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 229, 153, 0.18) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(0, 229, 153, 0.2) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .context-menu-header,
[data-theme="dark"] .context-menu-header {
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .context-menu-item,
[data-theme="dark"] .context-menu-item {
  color: #f8fafc !important;
}

html[data-theme="dark"] .context-menu-item:hover,
[data-theme="dark"] .context-menu-item:hover {
  background: rgba(0, 229, 153, 0.12) !important;
  color: #00e599 !important;
}

html[data-theme="dark"] .context-menu-item i,
[data-theme="dark"] .context-menu-item i {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .context-menu-item:hover i,
[data-theme="dark"] .context-menu-item:hover i {
  color: #10b981 !important;
}

html[data-theme="dark"] .context-menu-divider,
[data-theme="dark"] .context-menu-divider {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* 🌙 THEME TỐI: FOOTER DOCK PLAYER NỔI KHỐI TÁCH BẬC (ITEM IV) */
html[data-theme="dark"] .fixed-music-dock,
[data-theme="dark"] .fixed-music-dock {
  background: rgba(7, 34, 25, 0.95) !important;
  border-top: 1px solid rgba(0, 229, 153, 0.18) !important;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.65), 0 -1px 0 rgba(0, 229, 153, 0.25) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

html[data-theme="dark"] .flyout-drawer,
[data-theme="dark"] .flyout-drawer {
  background: rgba(11, 24, 18, 0.96) !important;
  border: 1px solid rgba(0, 229, 153, 0.18) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .drawer-header,
[data-theme="dark"] .drawer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--primary) !important;
}

html[data-theme="dark"] .dock-icon-action,
[data-theme="dark"] .dock-icon-action {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .dock-icon-action:hover,
[data-theme="dark"] .dock-icon-action:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .dock-icon-action.active,
[data-theme="dark"] .dock-icon-action.active {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
}

/* ☀️ THEME SÁNG: NGỌC BÍCH (SOFT ZINC & EMERALD - TÁCH KHỐI RÕ RÀNG CÓ CHIỀU SÂU) */
html[data-theme="light"] body,
[data-theme="light"] body {
  background-color: #edf1f5 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .main-top-navbar,
[data-theme="light"] .main-top-navbar,
html[data-theme="light"] .site-header,
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .yt-sidebar,
[data-theme="light"] .app-sidebar,
[data-theme="light"] .yt-sidebar {
  background: #f8fafc !important;
  border-right: 1px solid #cbd5e1 !important;
  box-shadow: 2px 0 10px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .app-layout,
html[data-theme="light"] .yt-app-layout,
[data-theme="light"] .app-layout,
[data-theme="light"] .yt-app-layout {
  background: #edf1f5 !important;
}

html[data-theme="light"] .app-main-content,
html[data-theme="light"] .yt-main-viewport,
[data-theme="light"] .app-main-content,
[data-theme="light"] .yt-main-viewport {
  background: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.06) 0%, transparent 60%), #edf1f5 !important;
}

html[data-theme="light"] .chart-song-card,
html[data-theme="light"] .music-standard-card,
html[data-theme="light"] .hero-side-widget,
[data-theme="light"] .chart-song-card,
[data-theme="light"] .music-standard-card,
[data-theme="light"] .hero-side-widget {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .song-context-menu,
[data-theme="light"] .song-context-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .context-menu-header,
[data-theme="light"] .context-menu-header {
  color: #64748b !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .context-menu-item,
[data-theme="light"] .context-menu-item {
  color: #0f172a !important;
}

html[data-theme="light"] .context-menu-item:hover,
[data-theme="light"] .context-menu-item:hover {
  background: #f1f5f9 !important;
  color: #059669 !important;
}

html[data-theme="light"] .context-menu-item i,
[data-theme="light"] .context-menu-item i {
  color: #475569 !important;
}

html[data-theme="light"] .context-menu-item:hover i,
[data-theme="light"] .context-menu-item:hover i {
  color: #059669 !important;
}

html[data-theme="light"] .context-menu-divider,
[data-theme="light"] .context-menu-divider {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* ☀️ THEME SÁNG: FOOTER DOCK PLAYER & TRÌNH PHÁT ĐỒNG BỘ THEME TỐI ĐẲNG CẤP THEO YÊU CẦU */
/* Cả theme Sáng và Tối đều dùng chung Dock Player & Trình phát nhạc phóng to theme Dark Emerald */
html[data-theme="light"] .fixed-music-dock,
[data-theme="light"] .fixed-music-dock,
html[data-theme="dark"] .fixed-music-dock,
[data-theme="dark"] .fixed-music-dock {
  background: linear-gradient(180deg, rgba(8, 24, 18, 0.94) 0%, rgba(3, 10, 7, 0.98) 100%) !important;
  border-top: 1px solid rgba(0, 255, 136, 0.22) !important;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8), 0 -1px 15px rgba(0, 255, 136, 0.2) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  color: #ffffff !important;
}

html[data-theme="light"] .flyout-drawer,
[data-theme="light"] .flyout-drawer,
html[data-theme="dark"] .flyout-drawer,
[data-theme="dark"] .flyout-drawer {
  background: rgba(8, 20, 15, 0.96) !important;
  border: 1px solid rgba(0, 255, 136, 0.22) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85) !important;
  color: #f8fafc !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

html[data-theme="light"] .drawer-header,
[data-theme="light"] .drawer-header,
html[data-theme="dark"] .drawer-header,
[data-theme="dark"] .drawer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--primary, #00ff88) !important;
}

html[data-theme="light"] .dock-icon-action,
[data-theme="light"] .dock-icon-action,
html[data-theme="dark"] .dock-icon-action,
[data-theme="dark"] .dock-icon-action {
  color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="light"] .dock-icon-action:hover,
[data-theme="light"] .dock-icon-action:hover,
html[data-theme="dark"] .dock-icon-action:hover,
[data-theme="dark"] .dock-icon-action:hover {
  color: #00ff88 !important;
  background: rgba(0, 255, 136, 0.14) !important;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.35) !important;
}

html[data-theme="light"] .dock-icon-action.active,
[data-theme="light"] .dock-icon-action.active,
html[data-theme="dark"] .dock-icon-action.active,
[data-theme="dark"] .dock-icon-action.active {
  color: #00ff88 !important;
  background: rgba(0, 255, 136, 0.22) !important;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.5) !important;
}

/* =========================================================================
   CUSTOM SCROLLBARS (HOVER-ONLY THIN SCROLLBAR THEO ẢNH 6.JPG & ITEM I.3, I.4)
   ========================================================================= */
#dockLyricsStream,
#dockQueueList,
.custom-hover-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}

#dockLyricsStream:hover,
#dockQueueList:hover,
.custom-hover-scrollbar:hover {
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

#dockLyricsStream::-webkit-scrollbar,
#dockQueueList::-webkit-scrollbar,
.custom-hover-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#dockLyricsStream::-webkit-scrollbar-track,
#dockQueueList::-webkit-scrollbar-track,
.custom-hover-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

#dockLyricsStream::-webkit-scrollbar-thumb,
#dockQueueList::-webkit-scrollbar-thumb,
.custom-hover-scrollbar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 9999px;
  transition: background 0.3s ease;
}

#dockLyricsStream:hover::-webkit-scrollbar-thumb,
#dockQueueList:hover::-webkit-scrollbar-thumb,
.custom-hover-scrollbar:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
}

#dockLyricsStream::-webkit-scrollbar-thumb:hover,
#dockQueueList::-webkit-scrollbar-thumb:hover,
.custom-hover-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #10b981);
}

/* =========================================================================
   TỐI ƯU VÙNG CLICK CÁC NÚT FOOTER & TỰ ĐỘNG ẨN TRÌNH PHÁT KHI PHÓNG TO
   ========================================================================= */
.fixed-music-dock {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}

.fixed-music-dock.dock-hidden-cinema {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* =========================================================================
   FIX LỖI CUỘN TRANG PHẦN FOOTER MENU LEFT (ẢNH 7.JPG)
   - Sidebar luôn full chiều cao tới đáy màn hình (100vh - 64px), không bị hụt 82px
   - Viền phải và nền kéo dài liền mạch, padding-bottom 110px chống che khuất bởi dock
   - Triệt tiêu padding-bottom trên body làm hở chân layout
   ========================================================================= */
body {
  padding-bottom: 0 !important;
}

.app-layout,
.yt-app-layout {
  display: flex !important;
  min-height: calc(100vh - 64px) !important;
  width: 100% !important;
  position: relative !important;
  align-items: stretch !important;
  background: var(--bg-body) !important;
}

.pjax-main-container,
.app-main-content,
.yt-main-viewport {
  background: var(--hero-glow), var(--bg-body) !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: calc(100vh - 64px) !important;
}

.app-sidebar,
.yt-sidebar {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--card-border) !important;
  padding: 24px 16px 120px 16px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  align-self: stretch !important;
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  z-index: 99 !important;
}

.sidebar-sticky-inner {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-sidebar::-webkit-scrollbar,
.yt-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb,
.yt-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.app-sidebar:hover::-webkit-scrollbar-thumb,
.yt-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
}

.dock-ctrl-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-icon-action {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0;
  outline: none;
}

.dock-icon-action:active {
  transform: scale(0.92);
}

.dock-right-pane {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header::after,
.main-top-navbar::after {
  display: none !important;
}

[data-theme="dark"] .yt-tabs-bar {
  border-bottom-color: var(--border-subtle) !important;
}

[data-theme="dark"] .yt-tab-link {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .yt-tab-link:hover {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .yt-tab-link.active {
  color: var(--primary) !important;
}

[data-theme="dark"] .yt-tab-link.active::after {
  background: var(--primary) !important;
}


[data-theme="dark"] .yt-channel-title a {
  color: #ffffff !important;
}

[data-theme="dark"] .yt-channel-subs {
  color: #aaaaaa !important;
}

[data-theme="dark"] .btn-yt-subscribe {
  background: #f1f1f1 !important;
  color: #0f0f0f !important;
}

[data-theme="dark"] .btn-yt-subscribe:hover {
  background: #d9d9d9 !important;
  color: #0f0f0f !important;
}

[data-theme="dark"] .btn-yt-subscribe.subscribed {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-yt-pill,
[data-theme="dark"] .yt-pill-segmented,
[data-theme="dark"] .btn-yt-pill-icon {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-yt-pill:hover,
[data-theme="dark"] .btn-yt-pill-icon:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-yt-segment {
  color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-yt-segment:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .yt-segment-divider {
  background: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-yt-like.active {
  color: #00e599 !important;
}

[data-theme="dark"] .btn-yt-dislike.active {
  color: #f87171 !important;
}

[data-theme="dark"] .yt-dropdown-menu,
[data-theme="dark"] .yt-sort-menu {
  background: #212121 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f1f1 !important;
}

[data-theme="dark"] .yt-dropdown-menu .dropdown-item,
[data-theme="dark"] .yt-sort-menu .dropdown-item {
  color: #f1f1f1 !important;
}

[data-theme="dark"] .yt-dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .yt-sort-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .yt-description-card {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f1f1 !important;
}

[data-theme="dark"] .yt-description-card:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .yt-desc-header,
[data-theme="dark"] .btn-yt-desc-toggle {
  color: #f1f1f1 !important;
}

[data-theme="dark"] .yt-desc-text {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .yt-hashtag-link {
  color: #3ea6ff !important;
}

[data-theme="dark"] .yt-comments-heading,
[data-theme="dark"] .btn-yt-sort {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-yt-sort:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .yt-comment-textarea {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .yt-input-underline {
  background: #ffffff !important;
}

[data-theme="dark"] .btn-yt-comment-cancel {
  color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-yt-comment-cancel:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .btn-yt-comment-submit {
  background: #3ea6ff !important;
  color: #0f0f0f !important;
}

[data-theme="dark"] .btn-yt-comment-submit.disabled,
[data-theme="dark"] .btn-yt-comment-submit:disabled {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #717171 !important;
}

[data-theme="dark"] .yt-comment-user-handle {
  color: #f1f1f1 !important;
}

[data-theme="dark"] .yt-comment-time,
[data-theme="dark"] .btn-comment-dot,
[data-theme="dark"] .btn-comment-action,
[data-theme="dark"] .btn-comment-reply-trigger {
  color: #aaaaaa !important;
}

[data-theme="dark"] .btn-comment-dot:hover,
[data-theme="dark"] .btn-comment-action:hover,
[data-theme="dark"] .btn-comment-reply-trigger:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-comment-action.active {
  color: #00e599 !important;
}

[data-theme="dark"] .yt-comment-body {
  color: #f1f1f1 !important;
}

[data-theme="dark"] .yt-reply-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-yt-more-comments {
  color: #3ea6ff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-yt-more-comments:hover {
  background: rgba(62, 166, 255, 0.1) !important;
  border-color: #3ea6ff !important;
}

[data-theme="dark"] .yt-widget-card {
  background: #111c17 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .yt-widget-heading {
  color: #ffffff !important;
}

[data-theme="dark"] .yt-rec-title a {
  color: #ffffff !important;
}

[data-theme="dark"] .yt-rec-artist {
  color: #94a3b8 !important;
}

[data-theme="dark"] .yt-pl-title {
  color: #ffffff !important;
}

[data-theme="dark"] .yt-pl-creator {
  color: #94a3b8 !important;
}

[data-theme="dark"] .btn-user-yt-toggle {
  background: #13201a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .btn-user-yt-toggle .header-user-name {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-theme-toggle {
  background: #13201a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f59e0b !important;
}

[data-theme="dark"] .btn-rec-more:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .yt-recommend-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Situnee Logo Emerald Glow on Dark Theme */
[data-theme="dark"] .brand-logo-img,
[data-theme="dark"] .footer-logo-img {
  filter: brightness(1.75) saturate(1.5) drop-shadow(0 0 8px rgba(0, 229, 153, 0.5)) !important;
}

/* Hiển thị Footer trang trọng, tràn đều mép trong layout YouTube Cinema */
.yt-app-layout .site-footer {
  display: block !important;
  margin-left: -36px;
  margin-right: -36px;
  margin-bottom: -120px;
  padding-left: 36px;
  padding-right: 36px;
}

@media (max-width: 1200px) {
  .yt-app-layout .site-footer {
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: -90px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Đảm bảo Sidebar và Viewport tràn đầy không gian */
.yt-app-layout {
  min-height: calc(100vh - 64px);
  width: 100%;
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .site-header {
    padding: 0 16px;
  }

  .yt-main-viewport {
    padding: 20px 18px 90px;
  }
}

@media (max-width: 991.98px) {
  .site-header {
    height: 60px;
    padding: 0 12px;
  }

  .header-nav-container {
    height: 60px;
    gap: 8px;
  }

  .yt-app-layout {
    padding-top: 60px;
  }

  .header-left-group {
    min-width: auto;
    gap: 8px;
  }

  .header-center-search {
    display: none !important;
  }

  .header-right-actions {
    min-width: auto;
    gap: 6px;
  }

  /* Mobile Drawer Sidebar: Full height, starting from top: 0 with backdrop */
  .app-sidebar,
  .yt-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: var(--bg-sidebar, #050907) !important;
    transform: translateX(-100%) !important;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.45) !important;
    z-index: 99999 !important;
    padding-top: 14px !important;
    padding-bottom: 90px !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    display: flex !important;
    visibility: hidden;
  }

  .app-sidebar.show,
  .yt-sidebar.show {
    transform: translateX(0) !important;
    visibility: visible !important;
    display: flex !important;
  }

  .yt-sidebar-mobile-top {
    display: flex !important;
  }

  .btn-sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main, #111827);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
  }

  [data-theme="dark"] .btn-sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  /* Backdrop Overlay */
  .yt-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99998 !important;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .yt-sidebar-backdrop.show {
    display: block !important;
    opacity: 1 !important;
  }

  body.sidebar-open {
    overflow: hidden !important;
  }

  .yt-main-viewport {
    margin-left: 0 !important;
    padding: 16px 12px 85px;
  }

  .yt-cinema-content-overlay {
    bottom: 70px;
    left: 16px;
    max-width: 90%;
    gap: 12px;
  }

  .yt-cinema-inset-cover {
    width: 80px;
    height: 80px;
  }

  .yt-cinema-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 767.98px) {
  .site-header {
    height: 58px;
    padding: 0 10px !important;
  }

  .header-nav-container {
    height: 58px;
    gap: 6px;
  }

  .yt-app-layout {
    padding-top: 58px;
  }

  .header-left-group {
    gap: 6px;
  }

  .brand-logo-img {
    height: 38px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
  }

  .btn-sidebar-toggle {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .header-right-actions {
    gap: 5px;
  }

  .btn-header-icon,
  .btn-theme-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }

  .btn-login-ghost {
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  .btn-nav-upload-yt {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    padding: 0 8px !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  .header-nav-container {
    gap: 4px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .header-left-group {
    min-width: 0 !important;
    gap: 4px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    height: 36px !important;
    width: auto !important;
    max-width: 135px !important;
    object-fit: contain !important;
  }

  .btn-sidebar-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .header-right-actions {
    min-width: 0 !important;
    gap: 4px;
    flex-shrink: 0;
  }

  .btn-theme-toggle,
  .btn-header-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
  }

  /* Nút Đăng tải nhạc chuyển thành nút tròn chỉ icon trên mobile siêu nhỏ */
  .btn-nav-upload-yt span {
    display: none !important;
  }

  .btn-nav-upload-yt {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-nav-upload-yt i {
    margin: 0 !important;
    font-size: 0.85rem !important;
  }

  .btn-login-ghost {
    padding: 3px 7px !important;
    font-size: 0.72rem !important;
  }

  .yt-cinema-inset-cover {
    display: none !important;
  }

  .yt-cinema-title {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .yt-cinema-tag-now {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .yt-cinema-artist {
    font-size: 0.8rem;
  }

  .yt-cinema-genre-pill {
    font-size: 0.7rem;
    padding: 1px 7px;
  }

  .yt-cinema-controls-dock {
    padding: 6px 10px;
  }

  .btn-cinema-play-round {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .btn-cinema-icon {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .yt-cinema-volume-wrap,
  .yt-badge-hd {
    display: none !important;
  }

  .yt-cinema-time {
    font-size: 0.72rem;
  }

  .yt-cinema-lyrics-overlay {
    bottom: 50px;
    padding: 10px 12px 6px;
  }

  #cinemaLyricsBadge {
    display: none !important;
  }

  .yt-cinema-lyrics-title {
    font-size: 0.82rem;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .yt-cinema-lrc-line {
    font-size: 1.05rem;
    padding: 4px 8px;
    line-height: 1.35;
    max-width: 96%;
  }

  .yt-cinema-lrc-line.active {
    font-size: 1.22rem;
    padding: 6px 10px;
  }

  .yt-cinema-lyrics-stream {
    padding: 10px 4px 30px;
    gap: 8px;
  }
}

/* =========================================================================
   YOUTUBE WATCH SECTION RESPONSIVE OPTIMIZATION (PC & MOBI)
   ========================================================================= */
@media (max-width: 768px) {
  .yt-watch-metadata-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  .yt-actions-pill-group {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    width: 100%;
  }

  .yt-actions-pill-group::-webkit-scrollbar {
    display: none;
  }

  .btn-yt-pill,
  .yt-pill-segmented,
  .btn-yt-pill-icon {
    flex-shrink: 0 !important;
  }

  .yt-description-card {
    padding: 10px 12px;
  }

  .yt-comment-form-row {
    gap: 10px;
  }

  .yt-comment-card {
    gap: 10px;
  }

  .yt-comment-author-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .yt-comments-heading {
    font-size: 1.1rem;
  }
}

/* === INTEGRATED COMPLETE DEMO CSS (PORTAL HOME & FULL-WIDTH CINEMA PLAYER) === */

/* =========================================================================
       1. CORE DESIGN SYSTEM & BẢNG MÀU CHUẨN
       - Theme Tối: Tông Xanh Đen Hoàng Gia (#070d19 & #00d285)
       - Theme Sáng: Tông Ngọc Bích Quý Phái (#f2faf6 & #00a86b)
       ========================================================================= */
:root {
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;
  --sidebar-width: 250px;
  --dock-height: 84px;
}

/* 🌙 THEME TỐI (LUXURY DARK EMERALD STUDIO) */
html[data-theme="dark"] {
  --bg-body: #070d0a;
  --bg-sidebar: #050907;
  --bg-header: rgba(7, 13, 10, 0.85);
  --bg-surface: rgba(13, 24, 18, 0.72);
  --bg-surface-hover: rgba(19, 36, 27, 0.88);
  --bg-surface-elevated: rgba(16, 30, 23, 0.85);
  --bg-input: rgba(9, 17, 13, 0.9);

  /* Dropdown variables */
  --dropdown-bg: #0d1a14;
  --dropdown-border: rgba(0, 229, 153, 0.22);
  --dropdown-item-hover: rgba(0, 229, 153, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 229, 153, 0.38);
  --border-active: #00e599;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --primary: #00e599;
  --primary-hover: #00c26f;
  --primary-glow: rgba(0, 229, 153, 0.28);

  --accent-cyan: #06b6d4;
  --dock-bg: rgba(13, 21, 39, 0.96);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
  --badge-rank-1: linear-gradient(135deg, #ffd700, #ffaa00);
  --badge-rank-2: linear-gradient(135deg, #cbd5e1, #94a3b8);
  --badge-rank-3: linear-gradient(135deg, #f59e0b, #b45309);
  --modal-overlay: rgba(9, 14, 26, 0.85);
}

/* ☀️ THEME SÁNG (SOFT ZINC & PORCELAIN - DỊU MẮT, TƯƠNG PHẢN CAO, ĐỒNG NHẤT) */
html[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-sidebar: #f1f5f9;
  --bg-header: rgba(248, 250, 252, 0.96);
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-input: #f1f5f9;

  /* Dropdown variables */
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(15, 23, 42, 0.12);
  --dropdown-item-hover: #f0fdf4;

  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-hover: rgba(5, 150, 105, 0.45);
  --border-active: #059669;

  --text-primary: #0f172a;
  /* Slate 900 - Chữ tiêu đề đậm nét, rõ ràng */
  --text-secondary: #334155;
  /* Slate 700 - Chữ phụ, ca sĩ, mô tả rõ ràng */
  --text-tertiary: #64748b;
  /* Slate 500 - Metadata, thời gian, số lượt nghe */

  --primary: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(5, 150, 105, 0.22);

  --accent-cyan: #0891b2;
  --dock-bg: rgba(255, 255, 255, 0.98);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 65%);
  --badge-rank-1: linear-gradient(135deg, #f59e0b, #d97706);
  --badge-rank-2: linear-gradient(135deg, #64748b, #475569);
  --badge-rank-3: linear-gradient(135deg, #b45309, #78350f);
  --modal-overlay: rgba(15, 23, 42, 0.6);
}

/* Light Theme Specific Contrast Enhancements */
html[data-theme="light"] .sidebar-group-title {
  color: #64748b !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .nav-item-link {
  color: #334155 !important;
}

html[data-theme="light"] .nav-item-link:hover {
  color: var(--text-primary) !important;
  background: #e2e8f0 !important;
}

html[data-theme="light"] .nav-item-link.active {
  color: var(--primary) !important;
  background: rgba(5, 150, 105, 0.12) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .chart-rank-num {
  color: #64748b !important;
}

html[data-theme="light"] .chart-rank-num.rank-1 {
  color: #d97706 !important;
}

html[data-theme="light"] .chart-rank-num.rank-2 {
  color: #475569 !important;
}

html[data-theme="light"] .chart-rank-num.rank-3 {
  color: #b45309 !important;
}

html[data-theme="light"] .chart-stats-meta {
  color: #475569 !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .chart-more-dots-btn {
  color: #64748b !important;
}

html[data-theme="light"] .chart-more-dots-btn:hover {
  color: var(--text-primary) !important;
  background: #e2e8f0 !important;
}

html[data-theme="light"] .search-input-field {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  color: var(--text-primary) !important;
}

html[data-theme="light"] .search-input-field:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

html[data-theme="light"] .search-input-field::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .theme-icon-btn {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

/* Cards & Panels in Light Theme */
html[data-theme="light"] .chart-song-card,
html[data-theme="light"] .music-standard-card,
html[data-theme="light"] .hero-side-widget {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .hero-mini-song-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .hero-mini-song-item:hover {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

html[data-theme="light"] .hero-mini-title,
html[data-theme="light"] .chart-song-title,
html[data-theme="light"] .card-title-text {
  color: #0f172a !important;
}

html[data-theme="light"] .hero-mini-artist,
html[data-theme="light"] .chart-song-artist,
html[data-theme="light"] .card-sub-artist {
  color: #334155 !important;
}

html[data-theme="light"] .section-title-wrap h2 {
  color: #0f172a !important;
}

html[data-theme="light"] .cat-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  color: #334155 !important;
}

html[data-theme="light"] .cat-pill:hover {
  background: #f0fdf4 !important;
  border-color: #059669 !important;
  color: #059669 !important;
}

html[data-theme="light"] .cat-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

html[data-theme="light"] .btn-cinema-back {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .cinema-player-hero {
  background: radial-gradient(circle at 15% 20%, rgba(5, 150, 105, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
    #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .cinema-track-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .cinema-right-deck {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="light"] .cinema-equalizer-container {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .cinema-tab-pill {
  background: #e2e8f0 !important;
  color: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .cinema-tab-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

html[data-theme="light"] .cinema-lrc-row {
  color: #64748b !important;
}

html[data-theme="light"] .cinema-lrc-row.active {
  color: var(--primary) !important;
  text-shadow: 0 0 12px var(--primary-glow) !important;
}

html[data-theme="light"] .cinema-artist-card,
html[data-theme="light"] .cinema-related-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .cinema-artist-card div,
html[data-theme="light"] .cinema-related-card div {
  color: inherit;
}

html[data-theme="light"] .yt-author-name,
html[data-theme="light"] .yt-comments-count,
html[data-theme="light"] .yt-comments-sort,
html[data-theme="light"] .yt-comment-author {
  color: #0f172a !important;
}

html[data-theme="light"] .yt-desc-text,
html[data-theme="light"] .yt-comment-text {
  color: #1e293b !important;
}

html[data-theme="light"] .yt-ai-spec-item,
html[data-theme="light"] .yt-prompt-box {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="light"] .section-title-wrap h2,
html[data-theme="light"] .charts-panel-header h2,
html[data-theme="light"] .category-title-strip h2 {
  color: #0f172a !important;
}

html[data-theme="light"] .dock-track-info h4 {
  color: #ffffff !important;
}

html[data-theme="light"] .dock-track-info p {
  color: rgba(255, 255, 255, 0.65) !important;
}

html[data-theme="light"] .fixed-music-dock {
  background: linear-gradient(180deg, rgba(8, 24, 18, 0.94) 0%, rgba(3, 10, 7, 0.98) 100%) !important;
  border-top: 1px solid rgba(0, 255, 136, 0.22) !important;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8), 0 -1px 15px rgba(0, 255, 136, 0.2) !important;
}

html[data-theme="light"] .dock-icon-action {
  color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="light"] .dock-icon-action:hover {
  color: #00ff88 !important;
  background: rgba(0, 255, 136, 0.14) !important;
}

/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =========================================================================
       2. UNIFIED TOP NAVBAR (TÌM KIẾM, TẠO NHẠC, TOGGLE THEME & AVATAR)
       ========================================================================= */
.main-top-navbar {
  height: 64px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.brand-logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.brand-text-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-highlight {
  color: var(--primary);
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #fff;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}

/* Topbar Search Wrap */
.topbar-search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-input-field {
  width: 100%;
  height: 42px;
  padding: 0 70px 0 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-field:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon-pos {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: none;
}

.search-shortcut-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
}

/* Topbar Right Cluster */
.topbar-right-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-create-music {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), #059669);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-create-music:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* Sleek Theme Toggle Icon Button */
.theme-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.theme-icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(18deg) scale(1.05);
}

/* Topbar User Avatar */
.topbar-avatar-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.topbar-avatar-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transition: var(--transition-smooth);
}

.topbar-avatar-wrap:hover img {
  transform: scale(1.06);
}

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-surface-elevated);
}

/* =========================================================================
       3. APP LAYOUT: SIDEBAR + MAIN VIEWPORT
       ========================================================================= */
.app-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  align-items: stretch;
  background: var(--bg-sidebar);
  transition: var(--transition-smooth);
}

/* Sidebar Navigation */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px 120px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
  min-height: 100%;
  height: auto;
  box-sizing: border-box;
}

.sidebar-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 700;
  padding: 0 12px;
  margin-bottom: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.sidebar-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.sidebar-nav-item.active {
  background: var(--primary-glow);
  color: var(--primary);
  font-weight: 700;
}

/* Main Content Area */
.app-main-content {
  flex: 1;
  padding: 24px 36px 120px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--hero-glow);
}

/* Top Search & User Bar */
.main-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
}

.search-input-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-icon-pos {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 15px;
  pointer-events: none;
}

.search-input-field {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 46px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Live Search Results Dropdown */
.live-search-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 800;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  display: none;
}

.live-search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.top-actions-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-create-music {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-smooth);
}

.btn-create-music:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* =========================================================================
       4. SECTIONS & CARDS COMMON STYLES
       ========================================================================= */
.section-wrap {
  margin-bottom: 38px;
}

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

.section-title-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.section-view-all:hover {
  opacity: 0.8;
  transform: translateX(3px);
}

/* Category Filter Pills */
.category-filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.cat-pill {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cat-pill:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px var(--primary-glow);
}

/* =========================================================================
       5. VIEW 1: HERO EVENT BANNER & SIDE QUICK-PICKS WIDGET
       ========================================================================= */
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  margin-bottom: 34px;
  align-items: stretch;
}

/* Standard Proportional Dual-Banner Slider (Tỷ Lệ 2:1 Chuẩn 100% Không Cắt Góc / Cạnh) */
.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg-surface);
  user-select: none;
  flex-shrink: 0;
}

:root .hero-slider-wrap,
[data-theme="dark"] .hero-slider-wrap {
  border-color: rgba(0, 255, 136, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 136, 0.06);
  background: #09120e;
}

[data-theme="light"] .hero-slider-wrap {
  border-color: rgba(0, 194, 111, 0.18);
  box-shadow: 0 10px 30px rgba(0, 194, 111, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.hero-slide-anchor {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
}

.hero-slide-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider-wrap:hover .hero-slide-cover-img {
  transform: none !important; /* Tuyệt đối không scale zoom làm mất góc hoặc cắt cạnh ảnh */
}

.hero-slide-glass-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

:root .hero-slide-glass-overlay,
[data-theme="dark"] .hero-slide-glass-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(5, 15, 10, 0.55) 100%);
}

[data-theme="light"] .hero-slide-glass-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.3) 100%);
}

/* Floating Action Pill on Slide */
.hero-slide-action-bar {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.btn-hero-slider-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-pill, 9999px);
  background: linear-gradient(135deg, #00ff88 0%, #00c26f 100%);
  color: #052214 !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-hero-slider-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
  filter: brightness(1.08);
}

.btn-hero-slider-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
}

:root .btn-hero-slider-secondary,
[data-theme="dark"] .btn-hero-slider-secondary {
  background: rgba(8, 20, 15, 0.82);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

:root .btn-hero-slider-secondary:hover,
[data-theme="dark"] .btn-hero-slider-secondary:hover {
  background: rgba(8, 20, 15, 0.95);
  border-color: rgba(0, 255, 136, 0.45);
  color: var(--ai-emerald, #00ff88) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-hero-slider-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-hero-slider-secondary:hover {
  background: #ffffff;
  color: #00874c !important;
  border-color: rgba(0, 194, 111, 0.35);
  transform: translateY(-2px);
}

.hero-slide-content {
  max-width: 460px;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.hero-banner-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-banner-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 18px;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hero-primary {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-hero-secondary {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.hero-graphic-visual {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-floating {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: rotate(4deg);
  transition: var(--transition-smooth);
}

.hero-card-floating:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-card-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glow-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.25;
  animation: pulseGlow 4s infinite alternate;
}

/* Slider Navigation Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 21, 39, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 10;
}

.hero-slider-wrap:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

[data-theme="light"] .slider-dot {
  background: rgba(0, 0, 0, 0.25);
}

.slider-dot.active {
  width: 22px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* 3-Dots Action Buttons & Floating Song Context Menu */
.card-more-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(13, 21, 39, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.85;
  transition: var(--transition-smooth);
  z-index: 3;
}

.card-more-btn:hover {
  opacity: 1;
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 3px 10px var(--primary-glow);
}

.chart-more-dots-btn,
.hero-mini-more-btn,
.chart-row-more-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.chart-more-dots-btn:hover,
.hero-mini-more-btn:hover,
.chart-row-more-btn:hover {
  color: var(--primary);
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.song-context-menu {
  position: fixed;
  z-index: 9999;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 6px;
  min-width: 210px;
  backdrop-filter: blur(20px);
  animation: contextFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contextFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.context-menu-header {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding: 6px 10px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

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

.context-menu-item:hover {
  background: var(--bg-surface-hover);
  color: var(--primary);
}

.context-menu-item i {
  width: 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.context-menu-item:hover i {
  color: var(--primary);
}

.context-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 6px;
}

/* Hero Side Widget: Weekly & Monthly Charts (1 Cột Tinh Gọn Cân Đối Đều Với Banner) */
.hero-side-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.hero-side-title {
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Bộ Tab BXH Tuần / Tháng */
.hero-chart-tabs-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.hero-chart-tab-pill {
  border: none;
  background: transparent;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1.4;
}

.hero-chart-tab-pill:hover {
  color: var(--text-primary);
}

.hero-chart-tab-pill.active {
  background: var(--primary);
  color: #052214 !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.hero-side-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.hero-side-more:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

/* Khung Bao Cách Ly Chiều Cao Chuẩn Grid (Chống làm phình chiều cao Banner 2:1) */
.hero-chart-scroll-box-outer {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* Container Cuộn Dọc Siêu Mảnh 2.5px Chuẩn Luxury UI */
.hero-chart-scroll-box {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.25) transparent;
}

.hero-chart-scroll-box::-webkit-scrollbar {
  width: 2.5px;
}

.hero-chart-scroll-box::-webkit-scrollbar-track {
  background: transparent;
}

.hero-chart-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.25);
  border-radius: 999px;
}

.hero-chart-scroll-box::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.6);
}

[data-theme="light"] .hero-chart-scroll-box {
  scrollbar-color: rgba(0, 194, 111, 0.25) transparent;
}

[data-theme="light"] .hero-chart-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(0, 194, 111, 0.25);
}

[data-theme="light"] .hero-chart-scroll-box::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 194, 111, 0.6);
}

/* 1 Cột BXH Tinh Gọn (Hạng 01 - 10) */
.hero-chart-1col,
.hero-chart-2cols {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.hero-chart-subcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-mini-song-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-sizing: border-box;
  height: 54px;
  flex-shrink: 0;
}

/* Chống mất viền top của card đầu tiên: Không dùng translateY, dùng shadow và border mềm mại */
.hero-mini-song-item:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .hero-mini-song-item:hover {
  border-color: rgba(0, 194, 111, 0.4);
  box-shadow: 0 3px 10px rgba(0, 194, 111, 0.08);
}

.hero-mini-rank {
  font-size: 13.5px;
  font-weight: 800;
  width: 24px;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.hero-mini-rank.rank-1 {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  font-weight: 900;
}

.hero-mini-rank.rank-2 {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  font-weight: 900;
}

.hero-mini-rank.rank-3 {
  color: #fb923c;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
  font-weight: 900;
}

.hero-mini-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.hero-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sóng nhạc Avatar nhấp nhô khi bài hát active */
.hero-mini-wave-bars {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  gap: 2.5px;
}

.hero-mini-song-item.active .hero-mini-wave-bars,
.hero-mini-song-item.playing .hero-mini-wave-bars {
  display: flex;
}

.hero-mini-wave-bars .bar {
  width: 2.5px;
  background: var(--primary, #00ff88);
  border-radius: 2px;
  animation: waveBounceMini 0.8s ease-in-out infinite alternate;
}

.hero-mini-wave-bars .bar-1 {
  height: 10px;
  animation-delay: 0.1s;
}

.hero-mini-wave-bars .bar-2 {
  height: 16px;
  animation-delay: 0.3s;
}

.hero-mini-wave-bars .bar-3 {
  height: 8px;
  animation-delay: 0.2s;
}

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

  100% {
    height: 18px;
  }
}

.hero-mini-info {
  flex: 1;
  min-width: 0;
}

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

.hero-mini-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Tác giả màu xanh sáng nổi bật có click */
.hero-mini-artist-link {
  font-weight: 700;
  font-size: 11px;
  color: #00ff88;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  flex-shrink: 0;
}

[data-theme="light"] .hero-mini-artist-link {
  color: #059669;
}

.hero-mini-artist-link:hover {
  color: #34d399;
  text-decoration: underline;
}

[data-theme="light"] .hero-mini-artist-link:hover {
  color: #047857;
}

/* Dấu chấm đệm ngăn cách rõ ràng */
.hero-mini-artist .meta-dot {
  opacity: 0.45;
  font-size: 9px;
  margin: 0 3px;
  flex-shrink: 0;
}

.hero-mini-views-text,
.hero-mini-time-text {
  flex-shrink: 0;
}

.hero-mini-more-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 13px;
}

.hero-mini-more-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* Section 3: Dual Tabs (Mới Cập Nhật & Đề Xuất) */
.discover-section-tabs-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.discover-section-tab-btn {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
}

.discover-section-tab-btn:hover {
  color: var(--text-primary);
}

.discover-section-tab-btn.active {
  background: var(--primary);
  color: #052214 !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.discover-tab-pane {
  animation: fadeInTab 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

@keyframes pulseGlow {
  from {
    transform: scale(0.9);
    opacity: 0.2;
  }

  to {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

@media (max-width: 1240px) and (min-width: 992px) {
  .hero-split-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 16px;
  }

  .hero-slider-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .hero-side-widget {
    height: 100%;
    min-height: 0;
  }

  .hero-chart-scroll-box {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .hero-chart-1col,
  .hero-chart-2cols {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 991px) {
  .hero-split-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .hero-slider-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1 !important;
  }

  .hero-side-widget {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-chart-scroll-box-outer {
    position: relative !important;
    height: 320px !important;
    min-height: 320px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .hero-chart-scroll-box {
    position: absolute !important;
    inset: 0 !important;
    max-height: none !important;
    height: 100% !important;
  }

  .hero-chart-1col,
  .hero-chart-2cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  .hero-chart-1col,
  .hero-chart-2cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }
}

/* =========================================================================
       6. CHARTS & SONG LIST COMMON STYLES
       ========================================================================= */
.top-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  width: 100%;
}

.chart-song-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.chart-song-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.chart-rank-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  width: 28px;
  text-align: center;
  color: var(--text-tertiary);
}

.chart-rank-num.rank-1 {
  color: #f59e0b;
}

.chart-rank-num.rank-2 {
  color: #94a3b8;
}

.chart-rank-num.rank-3 {
  color: #b45309;
}

.chart-thumb-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.chart-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chart-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.chart-song-card:hover .chart-hover-play {
  opacity: 1;
}

.chart-info-box {
  flex: 1;
  min-width: 0;
}

.chart-song-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.chart-song-artist {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-ai-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--primary);
  font-weight: 700;
  border: 1px solid var(--border-subtle);
}

.chart-stats-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================================
       7. MOODS & GENRES GRID
       ========================================================================= */
.moods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  width: 100%;
}

.mood-tile-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  min-height: 110px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mood-tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.mood-tile-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

.mood-tile-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
  margin-top: 2px;
}

.mood-tile-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.18);
  z-index: 1;
  transform: rotate(-10deg);
  transition: var(--transition-smooth);
}

.mood-tile-card:hover .mood-tile-icon {
  transform: rotate(0deg) scale(1.15);
  color: rgba(255, 255, 255, 0.28);
}

/* =========================================================================
       8. STANDARD SONG CARDS (FLUID AUTO-FILL GRID)
       ========================================================================= */
.song-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px;
  width: 100%;
}

.music-standard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.music-standard-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.card-artwork-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.music-standard-card:hover .card-artwork-wrap img {
  transform: scale(1.05);
}

.card-play-hover-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 6px 15px var(--primary-glow);
  transition: var(--transition-smooth);
}

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

/* Khối thông tin card: Title -> Tác giả, Thể loại -> Lượt nghe, Thời gian */
.card-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
}

/* Hàng 1: Title */
.card-title-text {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px 0;
  line-height: 1.35;
  color: var(--text-main, #ffffff);
  transition: color var(--transition-fast, 0.15s ease);
}

.music-standard-card:hover .card-title-text {
  color: var(--primary, #00e599);
}

[data-theme="light"] .card-title-text {
  color: #0f172a;
}

[data-theme="light"] .music-standard-card:hover .card-title-text {
  color: var(--primary, #00b377);
}

/* Hàng 2: Tác giả, Thể loại */
.card-meta-artist-genre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist-link {
  color: #38ef7d;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast, 0.15s ease);
}

.card-artist-link:hover {
  color: #00ff88;
  text-decoration: underline;
}

[data-theme="light"] .card-artist-link {
  color: #059669;
}

[data-theme="light"] .card-artist-link:hover {
  color: #047857;
}

.card-genre-tag {
  color: var(--text-secondary, #94a3b8);
  font-weight: 400;
}

[data-theme="light"] .card-genre-tag {
  color: #64748b;
}

/* Hàng 3: Lượt nghe, Thời gian phát hành */
.card-meta-views-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-tertiary, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .card-meta-views-time {
  color: #64748b;
}

.card-meta-views-time .meta-stat,
.card-meta-views-time .meta-time {
  display: inline-flex;
  align-items: center;
}

.card-meta-artist-genre .meta-dot,
.card-meta-views-time .meta-dot {
  color: var(--text-tertiary, rgba(255, 255, 255, 0.35));
  font-size: 0.75rem;
}

[data-theme="light"] .card-meta-artist-genre .meta-dot,
[data-theme="light"] .card-meta-views-time .meta-dot {
  color: rgba(15, 23, 42, 0.3);
}

.card-artwork-wrap .global-avatar-wave-bars {
  z-index: 4;
}

/* Giữ tương thích ngược */
.card-sub-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: auto;
}

/* =========================================================================
       9. CREATORS GRID
       ========================================================================= */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  width: 100%;
}

.creator-circle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.creator-circle-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.creator-avatar-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.creator-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-name-txt {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.creator-followers {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.btn-follow-creator {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-follow-creator.following {
  background: var(--primary);
  color: #fff;
}

/* =========================================================================
       10. VIEW 2: FULL CHARTS PAGE (BẢNG XẾP HẠNG ĐẦY ĐỦ)
       ========================================================================= */
.charts-hero-header {
  background: linear-gradient(135deg, rgba(0, 210, 133, 0.2) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.charts-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.charts-table-header,
.charts-row-item {
  display: grid;
  grid-template-columns: 50px 36px 1fr 140px 100px 80px 90px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  gap: 8px;
}

.charts-table-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  background: var(--bg-surface-elevated);
}

.charts-row-item:last-child {
  border-bottom: none;
}

.charts-row-item:hover {
  background: var(--bg-surface-hover);
}

.charts-trend-tag {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.trend-up {
  color: #00d285;
}

.trend-down {
  color: #ef4444;
}

.trend-same {
  color: var(--text-tertiary);
}

.trend-new {
  color: #3b82f6;
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
}

/* =========================================================================
       11. VIEW 3: SONG DETAIL & CINEMA STUDIO
       ========================================================================= */
.song-detail-stage {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.song-hero-vinyl-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.song-hero-vinyl-box::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Turntable & Grooved Vinyl Disc */
.vinyl-turntable-deck {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 10px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.vinyl-disc-spin {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(255, 255, 255, 0.06);
  background: repeating-radial-gradient(circle, #0e131d 0, #0e131d 4px, #182233 5px, #0e131d 7px);
  animation: spinDisc 16s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc-spin.paused {
  animation-play-state: paused;
}

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

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

.vinyl-disc-spin img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #23304a;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.vinyl-center-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid var(--primary);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Animated Soundwave Spectrum */
.studio-equalizer-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 14px;
  z-index: 1;
}

.eq-bar {
  width: 3.5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to top, var(--primary), var(--accent-cyan));
  animation: eqDance 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
  height: 35%;
  animation-delay: 0.1s;
}

.eq-bar:nth-child(2) {
  height: 75%;
  animation-delay: 0.3s;
}

.eq-bar:nth-child(3) {
  height: 95%;
  animation-delay: 0.15s;
}

.eq-bar:nth-child(4) {
  height: 45%;
  animation-delay: 0.4s;
}

.eq-bar:nth-child(5) {
  height: 80%;
  animation-delay: 0.25s;
}

.eq-bar:nth-child(6) {
  height: 100%;
  animation-delay: 0.5s;
}

.eq-bar:nth-child(7) {
  height: 60%;
  animation-delay: 0.2s;
}

.eq-bar:nth-child(8) {
  height: 85%;
  animation-delay: 0.35s;
}

.eq-bar:nth-child(9) {
  height: 40%;
  animation-delay: 0.1s;
}

.eq-bar:nth-child(10) {
  height: 90%;
  animation-delay: 0.45s;
}

@keyframes eqDance {
  0% {
    height: 20%;
    opacity: 0.5;
  }

  100% {
    height: 100%;
    opacity: 1;
  }
}

.studio-equalizer-bars.paused .eq-bar {
  animation-play-state: paused !important;
  opacity: 0.35 !important;
}

.studio-status-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Right Console: Studio Lyrics & Comments Viewer */
.studio-tabs-header {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.studio-tab-btn {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.studio-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.studio-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px var(--primary-glow);
}

.lyrics-karaoke-viewer {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--card-shadow);
  scroll-behavior: smooth;
}

.lrc-line {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1.5;
}

.lrc-line:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.lrc-line.active {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 18px var(--primary-glow);
  transform: translateX(4px);
}

.comments-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.comment-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-box-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  outline: none;
}

.comment-box-input:focus {
  border-color: var(--primary);
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.comment-item:last-child {
  border-bottom: none;
}

/* =========================================================================
       12. VIEW 4: ARTIST PROFILE PAGE
       ========================================================================= */
.artist-hero-banner {
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: -50px;
  background: linear-gradient(135deg, #0e1e38 0%, #050b18 100%);
}

.artist-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.artist-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.artist-big-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* =========================================================================
       13. VIEW 5: CONTEST HUB
       ========================================================================= */
.contest-hero {
  background: linear-gradient(135deg, rgba(0, 210, 133, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 30px;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
  width: 100%;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.prize-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

/* =========================================================================
       14. VIEW 6: MY LIBRARY (THƯ VIỆN CÁ NHÂN)
       ========================================================================= */
.library-tabs-bar {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.lib-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lib-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

/* =========================================================================
       15. FIXED DOCK PLAYER (SIÊU TIỆN DỤNG CỐ ĐỊNH CHÂN TRANG)
       ========================================================================= */
.fixed-music-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dock-height);
  background: var(--dock-bg);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.45);
}

.dock-left-pane {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 300px;
  min-width: 0;
  height: 100%;
}

.dock-art-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

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

.dock-track-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  margin: 0;
  padding: 0;
}

.dock-track-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.dock-track-info p {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.dock-like-btn {
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dock-like-btn.liked {
  color: #ef4444;
}

.dock-center-pane {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dock-ctrl-btns {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dock-icon-action {
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dock-icon-action:hover {
  color: var(--text-primary);
}

.dock-icon-action.active {
  color: var(--primary);
}

.dock-play-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.dock-play-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px var(--primary-glow);
}

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

.dock-time-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  width: 36px;
}

.dock-time-text.right {
  text-align: right;
}

.dock-seek-bar-track {
  flex: 1;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}

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

.dock-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.dock-right-pane {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 300px;
  justify-content: flex-end;
}

/* Flyout Drawers: Lyrics & Queue */
.flyout-drawer {
  position: fixed;
  bottom: var(--dock-height);
  right: 28px;
  width: 380px;
  max-height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.flyout-drawer.open {
  display: flex;
}

.drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.drawer-body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Modal Overlay & Card */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-item label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group-item input,
.form-group-item select,
.form-group-item textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.form-group-item input:focus,
.form-group-item textarea:focus {
  border-color: var(--primary);
}

/* Toast Notification */
.toast-bubble {
  position: fixed;
  top: 68px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 1200;
  display: none;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

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

/* =========================================================================
       16. RESPONSIVE & MOBILE FRAME SIMULATOR (ZERO OVERFLOW & FULL-DIV OPTIMIZED)
       ========================================================================= */
.col-hide-mobile {
  display: block;
}

/* --- MOBILE FRAME SIMULATOR MODE (Khi bấm nút Mobile ở thanh công cụ) --- */
.mobile-frame-mode {
  max-width: 430px !important;
  margin: 16px auto 90px !important;
  border: 12px solid #1a2436;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  background: var(--bg-body);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-frame-mode .app-sidebar {
  display: none !important;
}

.mobile-frame-mode .app-main-content {
  padding: 14px 12px 90px !important;
}

.mobile-frame-mode .hero-split-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.mobile-frame-mode .hero-graphic-visual {
  display: none !important;
}

.mobile-frame-mode .hero-banner-card {
  flex-direction: column !important;
  text-align: center !important;
  padding: 20px 14px !important;
}

.mobile-frame-mode .hero-banner-title {
  font-size: 22px !important;
}

.mobile-frame-mode .hero-btn-row {
  flex-direction: column !important;
  width: 100% !important;
  gap: 8px !important;
}

.mobile-frame-mode .hero-btn-row button {
  width: 100% !important;
  justify-content: center !important;
}

.mobile-frame-mode .main-topbar {
  flex-direction: column-reverse !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}

.mobile-frame-mode .search-input-wrap {
  max-width: 100% !important;
  width: 100% !important;
}

.mobile-frame-mode .top-actions-cluster {
  justify-content: space-between !important;
  width: 100% !important;
}

.mobile-frame-mode .btn-create-music {
  flex: 1 !important;
  justify-content: center !important;
}

.mobile-frame-mode .top-charts-grid {
  grid-template-columns: 1fr !important;
}

.mobile-frame-mode .moods-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.mobile-frame-mode .song-cards-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

.mobile-frame-mode .creators-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

.mobile-frame-mode .prizes-grid {
  grid-template-columns: 1fr !important;
}

.mobile-frame-mode .articles-grid {
  grid-template-columns: 1fr !important;
}

.mobile-frame-mode .charts-table-header,
.mobile-frame-mode .charts-row-item {
  grid-template-columns: 36px 1fr 64px !important;
  padding: 10px 10px !important;
  gap: 8px !important;
}

.mobile-frame-mode .col-hide-mobile {
  display: none !important;
}

.mobile-frame-mode .song-detail-stage {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.mobile-frame-mode .vinyl-disc-spin {
  width: 160px !important;
  height: 160px !important;
}

.mobile-frame-mode .lyrics-karaoke-viewer {
  height: 300px !important;
}

.mobile-frame-mode .artist-profile-header {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 10px !important;
  gap: 12px !important;
}

.mobile-frame-mode .artist-big-avatar {
  width: 88px !important;
  height: 88px !important;
}

.mobile-frame-mode .fixed-music-dock {
  height: 68px !important;
  padding: 0 12px !important;
}

.mobile-frame-mode .dock-progress-row {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  gap: 0 !important;
  margin: 0 !important;
}

.mobile-frame-mode .dock-time-text {
  display: none !important;
}

.mobile-frame-mode .dock-seek-bar-track {
  height: 3px !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.mobile-frame-mode .dock-seek-fill {
  border-radius: 0 !important;
}

.mobile-frame-mode .dock-left-pane {
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
  gap: 8px !important;
}

.mobile-frame-mode .dock-art-img {
  width: 44px !important;
  height: 44px !important;
}

.mobile-frame-mode .dock-center-pane {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  gap: 0 !important;
  margin: 0 4px !important;
}

.mobile-frame-mode .dock-ctrl-btns {
  gap: 10px !important;
}

.mobile-frame-mode #btnShuffle,
.mobile-frame-mode #btnRepeat {
  display: none !important;
}

.mobile-frame-mode .dock-play-circle-btn {
  width: 36px !important;
  height: 36px !important;
  font-size: 14px !important;
}

.mobile-frame-mode .dock-right-pane {
  display: flex !important;
  width: auto !important;
  gap: 8px !important;
  justify-content: flex-end !important;
}

.mobile-frame-mode .dock-volume-wrap {
  display: none !important;
}

.mobile-frame-mode .flyout-drawer {
  left: 0 !important;
  right: 0 !important;
  bottom: 68px !important;
  width: 100% !important;
  max-height: 72vh !important;
  border-radius: 20px 20px 0 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* --- RESPONSIVE MEDIA QUERIES (CHO MÀN HÌNH THẬT PC / TABLET / MOBILE) --- */
@media (max-width: 1024px) {
  .app-main-content {
    padding: 20px 24px 110px;
  }

  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 900px) {
  .app-sidebar:not(.show) {
    display: none;
  }

  .app-main-content {
    padding: 16px 16px 100px;
  }

  .hero-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }

  .hero-btn-row {
    justify-content: center;
  }

  .hero-graphic-visual {
    display: none;
  }

  .top-charts-grid {
    grid-template-columns: 1fr;
  }

  .song-detail-stage {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vinyl-disc-spin {
    width: 180px;
    height: 180px;
  }

  .lyrics-karaoke-viewer {
    height: 340px;
  }

  .artist-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
  }
}

/* =========================================================================
       LUXURY APEX HI-FI CINEMA STUDIO PLAYER & BANNER 3D GRAPHICS
       ========================================================================= */
.hero-slide.slide-contest {
  background: radial-gradient(ellipse at 85% 20%, rgba(16, 185, 129, 0.32) 0%, transparent 65%),
    radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.22) 0%, transparent 50%),
    linear-gradient(135deg, #052a21 0%, #081a29 55%, #031c15 100%) !important;
}

.hero-slide.slide-cyberpunk {
  background: radial-gradient(ellipse at 85% 20%, rgba(168, 85, 247, 0.35) 0%, transparent 65%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.22) 0%, transparent 50%),
    linear-gradient(135deg, #1d0735 0%, #0a1636 55%, #24083a 100%) !important;
}

.gold-shimmer {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15)) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25) !important;
}

.neon-violet {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.15)) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25) !important;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #c084fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-violet-glow {
  background: linear-gradient(135deg, #9333ea, #6366f1) !important;
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.45) !important;
}

.btn-violet-glow:hover {
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.65) !important;
}

.hero-graphic-visual.rich-3d {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-art-cover-stack {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: perspective(600px) rotateY(-8deg) rotateX(4deg);
  transition: var(--transition-smooth);
}

.hero-slide:hover .banner-art-cover-stack {
  transform: perspective(600px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.banner-art-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-floating-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(13, 21, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 4;
  white-space: nowrap;
}

/* FULL-WIDTH APEX CINEMA STUDIO PLAYER */
.cinema-player-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 34px;
}

.cinema-top-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-cinema-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-cinema-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-3px);
}

.cinema-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cinema-player-hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
    var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  margin-bottom: 30px;
  overflow: hidden;
}

.cinema-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.cinema-left-deck {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;
  box-sizing: border-box;
}

.cinema-art-and-title {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
}

.cinema-artwork-box {
  width: 175px;
  height: 175px;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.cinema-artwork-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cinema-art-and-title:hover .cinema-artwork-box img {
  transform: scale(1.05);
}

.cinema-track-details {
  flex: 1;
  min-width: 0;
}

.cinema-track-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cinema-artist-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.cinema-tag-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.cinema-equalizer-container {
  margin: 12px 0 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cinema-eq-spectrum {
  display: flex;
  align-items: flex-end;
  height: 36px;
  gap: 3.5px;
  flex: 1;
  justify-content: center;
}

.cinema-eq-bar {
  width: 3.5px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--primary), var(--accent-cyan));
  animation: eqCinemaDance 1.3s ease-in-out infinite alternate;
}

.cinema-eq-spectrum.paused .cinema-eq-bar {
  animation-play-state: paused !important;
  opacity: 0.3 !important;
  height: 5px !important;
}

@keyframes eqCinemaDance {
  0% {
    height: 12%;
  }

  50% {
    height: 85%;
  }

  100% {
    height: 35%;
  }
}

.cinema-eq-bar:nth-child(2n) {
  animation-delay: 0.15s;
}

.cinema-eq-bar:nth-child(3n) {
  animation-delay: 0.35s;
}

.cinema-eq-bar:nth-child(4n) {
  animation-delay: 0.5s;
}

.cinema-eq-bar:nth-child(5n) {
  animation-delay: 0.25s;
}

.cinema-timeline-block {
  margin-bottom: 18px;
}

.cinema-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-time-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  min-width: 42px;
}

.cinema-time-text.right {
  text-align: right;
}

.cinema-seek-track {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.cinema-seek-track:hover {
  height: 8px;
}

.cinema-seek-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  position: relative;
}

.cinema-seek-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cinema-seek-track:hover .cinema-seek-fill::after {
  opacity: 1;
}

.cinema-transport-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cinema-playback-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cinema-icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

.cinema-play-main-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 6px 24px var(--primary-glow);
  transition: var(--transition-smooth);
}

.cinema-play-main-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.cinema-volume-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cinema-right-deck {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(14px);
  height: 420px;
  box-sizing: border-box;
  overflow: hidden;
}

.cinema-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  overflow-x: auto;
  flex-shrink: 0;
}

.cinema-tab-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.cinema-tab-pill:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.cinema-tab-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px var(--primary-glow);
}

.cinema-tab-view {
  position: relative;
  flex: 1;
  height: 335px;
  max-height: 335px;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cinema-tab-view::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cinema-lrc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
}

.cinema-lrc-row {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.6;
  background: transparent;
  border: none;
}

.cinema-lrc-row:hover {
  color: var(--text-primary);
  background: transparent;
}

.cinema-lrc-row.active {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  background: transparent !important;
  border: none !important;
  transform: scale(1.02);
  transform-origin: left center;
  text-shadow: 0 0 16px var(--primary-glow);
}

.cinema-below-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.cinema-yt-main-col {
  min-width: 0;
  width: 100%;
}

.cinema-yt-side-col {
  min-width: 0;
  width: 100%;
}

/* 1. YouTube Author & Actions Row (Hình 4.jpg) */
.yt-author-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 16px 0;
  padding-bottom: 2px;
}

.yt-author-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.yt-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s;
}

.yt-author-avatar:hover {
  transform: scale(1.05);
}

.yt-author-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.yt-author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.yt-author-name:hover {
  color: var(--primary);
}

.yt-verified-badge {
  font-size: 13px;
  color: var(--text-secondary);
}

.yt-author-subs {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.yt-btn-subscribe {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s;
  margin-left: 12px;
  flex-shrink: 0;
}

html[data-theme="dark"] .yt-btn-subscribe {
  background: #f1f1f1;
  color: #0f0f0f;
}

html[data-theme="dark"] .yt-btn-subscribe:hover {
  background: #ffffff;
}

html[data-theme="dark"] .yt-btn-subscribe.subscribed {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
}

html[data-theme="light"] .yt-btn-subscribe {
  background: #0f0f0f;
  color: #ffffff;
}

html[data-theme="light"] .yt-btn-subscribe:hover {
  background: #272727;
}

html[data-theme="light"] .yt-btn-subscribe.subscribed {
  background: rgba(0, 0, 0, 0.06);
  color: #0f0f0f;
}

/* Actions Right Cluster (Like/Dislike, Share, Download, More) */
.yt-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-split-like-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

html[data-theme="dark"] .yt-split-like-btn,
html[data-theme="dark"] .yt-btn-pill,
html[data-theme="dark"] .yt-btn-circle {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f1f1;
}

html[data-theme="dark"] .yt-split-like-btn:hover,
html[data-theme="dark"] .yt-btn-pill:hover,
html[data-theme="dark"] .yt-btn-circle:hover {
  background: rgba(255, 255, 255, 0.15);
}

html[data-theme="light"] .yt-split-like-btn,
html[data-theme="light"] .yt-btn-pill,
html[data-theme="light"] .yt-btn-circle {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

html[data-theme="light"] .yt-split-like-btn:hover,
html[data-theme="light"] .yt-btn-pill:hover,
html[data-theme="light"] .yt-btn-circle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.yt-split-like-btn button {
  height: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  transition: background 0.2s;
}

.yt-split-like-btn button:hover {
  background: rgba(128, 128, 128, 0.15);
}

.yt-split-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.yt-btn-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}

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

.yt-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

/* 2. YouTube Description Box (Hình 5.jpg) */
.yt-desc-box {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s;
}

html[data-theme="dark"] .yt-desc-box {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f1f1;
}

html[data-theme="dark"] .yt-desc-box:hover {
  background: rgba(255, 255, 255, 0.11);
}

html[data-theme="light"] .yt-desc-box {
  background: #f2f2f2;
  color: #0f172a;
}

html[data-theme="light"] .yt-desc-box:hover {
  background: #e8e8e8;
}

.yt-desc-header {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.yt-hashtag {
  font-weight: 500;
  margin-left: 4px;
}

html[data-theme="dark"] .yt-hashtag {
  color: #3ea6ff;
}

html[data-theme="light"] .yt-hashtag {
  color: #065fd4;
}

.yt-desc-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.yt-desc-toggle {
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  margin-top: 6px;
  color: var(--text-primary);
}

.yt-desc-toggle:hover {
  text-decoration: underline;
}

/* AI Specs inside Description */
.yt-ai-specs-card {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  cursor: default;
}

.yt-ai-spec-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-ai-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.yt-ai-spec-item {
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-ai-spec-item .label {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.yt-ai-spec-item .val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.yt-ai-spec-item .val.highlight {
  color: var(--primary);
  font-family: var(--font-mono);
}

.yt-ai-spec-item .val.cyan {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
}

.yt-ai-spec-item .val.mono {
  font-family: var(--font-mono);
}

.yt-prompt-box {
  padding: 10px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.yt-prompt-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-prompt-copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.yt-prompt-copy-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.yt-prompt-content {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 3. YouTube Comments Section (Hình 4.jpg) */
.yt-comments-section {
  margin-top: 8px;
}

.yt-comments-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
}

.yt-comments-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.yt-comments-sort {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.yt-comment-input-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.yt-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.yt-comment-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-comment-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.yt-comment-input:focus {
  border-bottom: 2px solid var(--primary);
}

.yt-comment-buttons-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.yt-btn-comment-cancel {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.yt-btn-comment-cancel:hover {
  background: rgba(128, 128, 128, 0.15);
}

.yt-btn-comment-submit {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.yt-btn-comment-submit:hover {
  opacity: 0.9;
}

/* Comment Items */
.yt-comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.yt-comment-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}

.yt-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.yt-comment-body {
  flex: 1;
  min-width: 0;
}

.yt-comment-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yt-comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.yt-comment-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.yt-comment-menu-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  opacity: 0.7;
}

.yt-comment-menu-btn:hover {
  opacity: 1;
  color: var(--text-primary);
}

.yt-comment-text {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 6px;
  word-break: break-word;
}

.yt-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.yt-comment-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.yt-comment-action-btn:hover {
  background: rgba(128, 128, 128, 0.15);
  color: var(--text-primary);
}

.yt-comment-reply-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.yt-comment-reply-btn:hover {
  background: rgba(128, 128, 128, 0.15);
  color: var(--text-primary);
}

.cinema-artist-card,
.cinema-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* --- RESPONSIVE MEDIA QUERIES (CHUẨN MOBILE / TABLET / DESKTOP) --- */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.app-layout {
  overflow: visible;
}

.app-main-content {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .app-main-content {
    padding: 18px 20px 110px;
  }

  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cinema-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cinema-below-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .app-sidebar:not(.show) {
    display: none !important;
  }

  .app-main-content {
    padding: 14px 14px 100px;
  }

  .hero-graphic-visual {
    display: none !important;
  }

  .top-charts-grid {
    grid-template-columns: 1fr;
  }

  .artist-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {

  /* 1. GLOBAL LAYOUT & VIEWPORT CONSTRAINTS */
  html,
  body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
  }

  .app-layout,
  .app-main-content {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .app-main-content {
    padding: 14px 14px 100px 14px !important;
    /* Chuẩn 14px theo GEMINI.md Rule 5 */
  }

  .app-sidebar:not(.show) {
    display: none !important;
  }

  /* 2. TOPBAR: ZERO OVERFLOW, COMPACT 56px */
  .main-top-navbar {
    height: 56px !important;
    padding: 0 !important;
    /* Bỏ padding kép, để .main-topbar-row quản lý 14px */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1045 !important;
  }

  .main-topbar-row {
    height: 56px !important;
    padding: 0 14px !important;
    /* Đồng bộ tuyệt đối với 14px của #pjaxContainer */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-group {
    font-size: 14px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .brand-title {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .brand-highlight,
  .brand-badge {
    display: none !important;
  }

  .topbar-search-wrap {
    display: none !important;
  }

  .search-icon-pos {
    left: 10px !important;
    font-size: 12px !important;
  }

  .search-input-field {
    height: 36px !important;
    padding: 0 10px 0 30px !important;
    font-size: 12px !important;
    width: 100% !important;
    border-radius: var(--radius-pill) !important;
  }

  .search-input-field::placeholder {
    font-size: 11px !important;
  }

  .search-shortcut-hint {
    display: none !important;
  }

  .topbar-right-cluster {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .btn-create-music {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 14px !important;
  }

  .btn-create-music .btn-text-desktop {
    display: none !important;
  }

  .theme-icon-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .topbar-avatar-wrap img {
    width: 34px !important;
    height: 34px !important;
  }

  /* 3. CATEGORY PILLS HORIZONTAL SCROLL WITHOUT OVERFLOW */
  .category-filter-pills {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
    padding-bottom: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .category-filter-pills::-webkit-scrollbar {
    display: none !important;
  }

  .cat-pill {
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  /* 4. HERO BANNER SLIDER MOBILE: CLEAN AND FLUID */
  .hero-split-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  .hero-slider-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hero-slider-track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-slide {
    width: 100% !important;
    flex: 0 0 100% !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hero-slider-wrap .slider-dots {
    bottom: 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .hero-slider-wrap .slider-arrow {
    display: none !important;
  }

  .hero-slide-action-bar {
    bottom: 10px !important;
    left: 12px !important;
    gap: 6px !important;
  }

  .btn-hero-slider-primary,
  .btn-hero-slider-secondary {
    padding: 5px 12px !important;
    font-size: 11px !important;
  }

  .hero-slide-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-graphic-visual {
    display: none !important;
  }

  .hero-badge-tag {
    font-size: 10px !important;
    padding: 3px 8px !important;
    margin-bottom: 8px !important;
  }

  .hero-banner-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
    word-break: break-word !important;
  }

  .hero-banner-desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .hero-btn-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 8px 14px !important;
    font-size: 12px !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .slider-arrow {
    display: none !important;
  }

  .slider-dots {
    left: 16px !important;
    bottom: 8px !important;
  }

  /* 5. SIDE WIDGET (BẢNG XẾP HẠNG TUẦN / THÁNG 1 CỘT) */
  .hero-side-widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    border-radius: var(--radius-lg) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-chart-scroll-box-outer {
    position: relative !important;
    height: 320px !important;
    min-height: 320px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .hero-chart-scroll-box {
    position: absolute !important;
    inset: 0 !important;
    max-height: none !important;
    height: 100% !important;
  }

  .hero-chart-1col,
  .hero-chart-2cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .hero-mini-song-item {
    padding: 6px 8px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-mini-title {
    font-size: 12.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 6. GRIDS COLLAPSE RESPONSIVE */
  .song-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .music-standard-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
  }

  .card-info-wrap,
  .card-title-text,
  .card-meta-artist-genre,
  .card-meta-views-time,
  .card-sub-artist {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .moods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mood-tile-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .creators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .creator-profile-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .top-charts-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }

  .chart-song-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  .chart-info-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .chart-song-title {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .chart-song-artist {
    font-size: 11.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .chart-stats-meta {
    font-size: 10.5px !important;
  }

  .charts-table-header,
  .charts-row-item {
    grid-template-columns: 28px 1fr 60px !important;
    padding: 8px 6px !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .col-hide-mobile {
    display: none !important;
  }

  /* 7. FULL-WIDTH CINEMA PLAYER MOBILE STYLING */
  .cinema-player-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
  }

  .cinema-top-action-bar {
    gap: 6px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .btn-cinema-back {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .cinema-status-pill {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }

  .cinema-player-hero {
    padding: 16px 12px !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 18px !important;
  }

  .cinema-left-deck,
  .cinema-right-deck {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-art-and-title {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-artwork-box {
    width: 160px !important;
    height: 160px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3) !important;
  }

  .cinema-art-cover-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px !important;
  }

  .cinema-vinyl-peek {
    display: none !important;
  }

  .cinema-track-details {
    width: 100% !important;
    text-align: center !important;
  }

  .cinema-track-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .cinema-artist-meta {
    justify-content: center !important;
    font-size: 13px !important;
  }

  .cinema-tags-row {
    justify-content: center !important;
    gap: 6px !important;
  }

  .cinema-tag-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .cinema-equalizer-container {
    padding: 8px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-eq-spectrum {
    gap: 2px !important;
  }

  .cinema-timeline-block {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-progress-row {
    width: 100% !important;
  }

  .cinema-seek-track {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .cinema-transport-cluster {
    justify-content: center !important;
    width: 100% !important;
  }

  .cinema-volume-cluster {
    display: none !important;
  }

  .cinema-right-deck {
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-tabs-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }

  .cinema-tab-pill {
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
  }

  .cinema-tab-view {
    height: 270px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-below-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 16px !important;
  }

  .cinema-artist-card,
  .cinema-related-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 14px !important;
  }

  /* 8. FIXED BOTTOM DOCK PLAYER ON MOBILE (ZERO OVERFLOW, PINNED PROGRESS) */
  .fixed-music-dock {
    height: 62px !important;
    padding: 0 10px !important;
    background: var(--dock-bg) !important;
    border-top: 1px solid var(--border-subtle) !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    z-index: 999 !important;
  }

  .dock-progress-row {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .dock-time-text {
    display: none !important;
  }

  .dock-seek-bar-track {
    height: 3px !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    width: 100% !important;
  }

  .dock-seek-fill {
    border-radius: 0 !important;
  }

  .dock-left-pane {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 150px) !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    height: 100% !important;
  }

  .dock-art-img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .dock-track-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .dock-track-info h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.25 !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
  }

  .dock-track-info p {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  .dock-more-btn,
  #dockMoreBtn {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .dock-like-btn {
    display: none !important;
  }

  .dock-center-pane {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .dock-ctrl-btns {
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
  }

  #btnShuffle,
  #btnPrev,
  #btnRepeat {
    display: none !important;
  }

  #btnNext {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.75) !important;
  }

  .dock-play-circle-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }

  .dock-right-pane {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .dock-right-pane button:first-child,
  .dock-right-pane button:nth-child(2),
  .dock-volume-wrap {
    display: none !important;
  }

  .dock-right-pane button#btnExpandFullscreen,
  .dock-right-pane button:nth-child(3) {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  /* 9. DRAWERS ON MOBILE */
  .flyout-drawer {
    left: 0 !important;
    right: 0 !important;
    bottom: 62px !important;
    width: 100% !important;
    max-height: 72vh !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 13px !important;
  }

  .hero-banner-title {
    font-size: 17px !important;
  }
}

/* Cinema Player Artwork Container */
.cinema-artwork-box {
  width: 175px;
  height: 175px;
  border-radius: 18px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--border-subtle);
}

.cinema-art-cover-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cinema-artwork-box:hover .cinema-art-cover-img {
  transform: scale(1.05);
}

/* =========================================================================
       STAGE MUSIC STUDIO (CINEMA PLAYER 16:9 LUXURY - DEMO LAYOUT)
       ========================================================================= */
.music-studio-card {
  background: var(--player-stage-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.studio-inner-stage {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 400px;
  position: relative;
}

/* Turntable & Waveform Area */
.turntable-visualizer-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 24px;
  position: relative;
}

/* Spinning Vinyl with Ambient Glow */
.vinyl-stage-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  margin-bottom: 20px;
}

.vinyl-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.45;
  filter: blur(20px);
  border-radius: 50%;
  animation: pulseGlow 4s infinite alternate;
}

.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
  border: 5px solid #222;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 14s linear infinite;
}

.vinyl-disc.paused {
  animation-play-state: paused !important;
}

.vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.vinyl-cover-label {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  position: relative;
}

.vinyl-cover-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl-center-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--bg-body, #080d19);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Soundwave Dancing Bars */
.dancing-waveforms {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 38px;
  width: 100%;
  max-width: 440px;
  justify-content: center;
}

.wave-bar {
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
  animation: waveDance 1.2s infinite ease-in-out;
}

.wave-bar:nth-child(2n) {
  animation-delay: 0.2s;
}

.wave-bar:nth-child(3n) {
  animation-delay: 0.4s;
}

.wave-bar:nth-child(4n) {
  animation-delay: 0.1s;
}

.wave-bar:nth-child(5n) {
  animation-delay: 0.35s;
}

.dancing-waveforms.paused .wave-bar {
  animation-play-state: paused !important;
  opacity: 0.35 !important;
  height: 6px !important;
}

/* Player Seekbar & Transport Bar */
.studio-timeline-bar {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-stamp {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--primary-glow);
}

.progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Transport Controls Row */
.transport-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-buttons-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctrl-icon-btn {
  color: var(--text-muted);
  font-size: 17px;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}

.ctrl-icon-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.btn-main-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn-main-play:hover {
  transform: scale(1.08);
  background: var(--primary-hover);
}

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

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

@keyframes pulseGlow {
  from {
    transform: scale(0.96);
    opacity: 0.3;
  }

  to {
    transform: scale(1.04);
    opacity: 0.6;
  }
}

@keyframes waveDance {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 32px;
  }
}

@media (max-width: 991px) {
  .studio-inner-stage {
    grid-template-columns: 1fr;
  }

  .turntable-visualizer-pane {
    padding: 20px 14px;
  }

  .vinyl-stage-wrap {
    width: 170px;
    height: 170px;
  }

  .vinyl-cover-label {
    width: 72px;
    height: 72px;
  }
}

/* Flyout Drawers: Lyrics & Queue (Matching Demo) */
.flyout-drawer {
  position: fixed;
  bottom: var(--dock-height, 74px);
  right: 28px;
  width: 380px;
  max-height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flyout-drawer.open {
  display: flex;
}

.drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.drawer-body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lrc-line {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: var(--transition-smooth, all 0.2s);
  line-height: 1.5;
}

.lrc-line:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.lrc-line.active {
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  background: transparent !important;
  border-left: none !important;
  box-shadow: none !important;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
  transform: scale(1.03);
}

html[data-theme="light"] .lrc-line.active {
  color: #047857;
  background: transparent !important;
  border-left: none !important;
  box-shadow: none !important;
  text-shadow: 0 0 12px rgba(5, 150, 105, 0.35);
}

@media (max-width: 768px) {
  .flyout-drawer {
    left: 0 !important;
    right: 0 !important;
    bottom: 62px !important;
    width: 100% !important;
    max-height: 72vh !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

/* =========================================================================
   CINEMA LAYOUT GRID & YOUTUBE-STYLE FULL-WIDTH STUDIO PLAYER (DEMO LAYOUT)
   ========================================================================= */

/* Top Action Bar */
.cinema-top-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-cinema-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-cinema-back:hover {
  background: var(--bg-surface-hover);
  color: var(--primary);
  border-color: var(--primary-border, var(--border-active));
}

.cinema-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--primary-border, rgba(16, 185, 129, 0.3));
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* 2-COLUMN YOUTUBE CINEMA FEED */
.cinema-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  margin-bottom: 40px;
}

/* Left Pane: Player + Channel + Desc + Comments */
.left-feed-col {
  min-width: 0;
}

/* (Obsolete turntable player styles removed for performance) */

/* YOUTUBE-STYLE CHANNEL ROW & ACTION PILLS */
.yt-action-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.channel-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.channel-details h4 {
  font-size: 16px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 700;
}

.badge-verified {
  color: var(--primary);
  font-size: 13px;
}

.channel-details span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.btn-subscribe {
  background: #cc0000;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-subscribe.subscribed {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Actions Pill Group (Like/Dislike, Share, Download, 3-dots) */
.yt-actions-pill-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-segmented {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.pill-segment-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.pill-segment-btn:hover {
  background: var(--bg-surface-hover);
}

.pill-segment-btn.active {
  color: var(--primary);
}

.segment-divider {
  width: 1px;
  background: var(--border-subtle);
}

.btn-action-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-action-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary-border, var(--border-active));
  color: var(--primary);
}

.btn-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  cursor: pointer;
}

.btn-icon-pill:hover {
  background: var(--bg-surface-hover);
}

/* Dropdown 3 dots menu */
.dropdown-box {
  position: relative;
}

.demo-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 100;
}

.demo-dropdown-menu.show {
  display: block;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}

.dropdown-link:hover {
  background: var(--bg-surface-hover);
  color: var(--primary);
}

/* Description Card */
.description-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.description-card:hover {
  background: var(--bg-surface-hover);
}

.desc-meta {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-primary);
}

.desc-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Comments Section */
.comments-section-wrap {
  margin-top: 10px;
}

.comments-header {
  font-size: 17px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.comment-input-row {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.comment-input-row img,
.comment-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-field {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-subtle);
  padding: 8px 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-field:focus {
  border-bottom-color: var(--primary);
}

.comment-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.comment-item img,
.comment-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-content h5 {
  font-size: 13.5px;
  margin-bottom: 3px;
  color: var(--text-primary);
  font-weight: 700;
}

.comment-content h5 span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 6px;
}

.comment-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

/* RIGHT COLUMN (UP NEXT QUEUE & CONTEST WIDGET) */
.right-widgets-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.widget-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-weight: 700;
}

.widget-title a {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Up Next Track List */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  cursor: pointer;
  background: var(--bg-surface-elevated);
}

.queue-item:hover {
  background: var(--bg-surface-hover);
}

.queue-item.active {
  background: var(--primary-glow);
  border-left: 3px solid var(--primary);
}

.queue-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.queue-play-btn {
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queue-item:hover .queue-play-btn {
  color: var(--primary);
}

/* AI Contest Banner Card */
.contest-banner-card {
  background: linear-gradient(135deg, rgba(0, 210, 133, 0.12) 0%, rgba(0, 229, 255, 0.08) 100%);
  border: 1px solid var(--primary-border, var(--border-active, rgba(16, 185, 129, 0.35)));
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.contest-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  background: var(--primary-glow);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.countdown-boxes {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.time-box {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
}

.time-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.time-lbl {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.btn-contest-cta {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.btn-contest-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Animations */
@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }

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

@keyframes pulseGlow {
  from {
    transform: scale(0.96);
    opacity: 0.3;
  }

  to {
    transform: scale(1.04);
    opacity: 0.6;
  }
}

@keyframes waveDance {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 32px;
  }
}

/* Responsive Queries */
@media (max-width: 1100px) {
  .cinema-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .studio-inner-stage {
    grid-template-columns: 1fr;
  }

  .lyrics-karaoke-pane {
    display: none;
  }

  .yt-actions-pill-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  .music-studio-card {
    border-radius: 14px;
  }

  .vinyl-stage-wrap {
    width: 180px;
    height: 180px;
  }
}

/* =============================================================================
   AUTHORITATIVE DEMO DESIGN SYSTEM: TOPBAR, SIDEBAR, BODY & 3-DOTS CONTEXT MENU
   Đồng bộ 100% chính xác theo tailieu/demo_trang_chu.html & tailieu/demo_layout.html
   ============================================================================= */

/* 1. THEME DESIGN TOKENS */
:root {
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;
  --sidebar-width: 240px;
  --dock-height: 84px;
}

/* 🌙 THEME TỐI (LUXURY DARK EMERALD STUDIO - ĐỒNG BỘ 100%) */
html[data-theme="dark"],
[data-theme="dark"] {
  --bg-body: #070d0a;
  --bg-sidebar: #050907;
  --bg-header: rgba(7, 13, 10, 0.85);
  --bg-surface: rgba(13, 24, 18, 0.72);
  --bg-surface-hover: rgba(19, 36, 27, 0.88);
  --bg-surface-elevated: rgba(16, 30, 23, 0.85);
  --bg-input: rgba(9, 17, 13, 0.9);

  /* Dropdown variables */
  --dropdown-bg: #0d1a14;
  --dropdown-border: rgba(0, 229, 153, 0.22);
  --dropdown-item-hover: rgba(0, 229, 153, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 229, 153, 0.38);
  --border-active: #00e599;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --primary: #00e599;
  --primary-hover: #00c26f;
  --primary-glow: rgba(0, 229, 153, 0.28);

  --accent-cyan: #06b6d4;
  --dock-bg: rgba(13, 21, 39, 0.96);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
}

/* ☀️ THEME SÁNG (SOFT ZINC & PORCELAIN - CHUẨN DEMO: #f8fafc, #ffffff, #f1f5f9) */
html[data-theme="light"],
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-sidebar: #f1f5f9;
  --bg-header: rgba(248, 250, 252, 0.96);
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-input: #f1f5f9;

  /* Dropdown variables */
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(15, 23, 42, 0.12);
  --dropdown-item-hover: #f0fdf4;

  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-hover: rgba(5, 150, 105, 0.45);
  --border-active: #059669;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;

  --primary: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(5, 150, 105, 0.22);

  --accent-cyan: #0891b2;
  --dock-bg: rgba(255, 255, 255, 0.98);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 65%);
}

/* 2. DEFINITIVE BACKGROUND TONES (LUXURY DARK EMERALD STUDIO) */
/* Body */
html[data-theme="dark"] body,
[data-theme="dark"] body {
  background-color: #0b2b1b !important;
  color: #f8fafc !important;
}

html[data-theme="light"] body,
[data-theme="light"] body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Top Navbar */
html[data-theme="dark"] .main-top-navbar,
html[data-theme="dark"] .site-header,
[data-theme="dark"] .main-top-navbar,
[data-theme="dark"] .site-header {
  background-color: #081e13 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 229, 153, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="light"] .main-top-navbar,
html[data-theme="light"] .site-header,
[data-theme="light"] .main-top-navbar,
[data-theme="light"] .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Left Sidebar */
html[data-theme="dark"] .app-sidebar,
html[data-theme="dark"] .yt-sidebar,
[data-theme="dark"] .app-sidebar,
[data-theme="dark"] .yt-sidebar {
  background: #081e13 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .yt-sidebar,
[data-theme="light"] .app-sidebar,
[data-theme="light"] .yt-sidebar {
  background: #f1f5f9 !important;
  border-right: 1px solid rgba(15, 23, 42, 0.10) !important;
}

/* App Layout Container */
html[data-theme="dark"] .app-layout,
html[data-theme="dark"] .yt-app-layout,
[data-theme="dark"] .app-layout,
[data-theme="dark"] .yt-app-layout {
  background: #050907 !important;
}

html[data-theme="light"] .app-layout,
html[data-theme="light"] .yt-app-layout,
[data-theme="light"] .app-layout,
[data-theme="light"] .yt-app-layout {
  background: #f1f5f9 !important;
}

/* Main Viewport & Content Area */
html[data-theme="dark"] .app-main-content,
html[data-theme="dark"] .yt-main-viewport,
[data-theme="dark"] .app-main-content,
[data-theme="dark"] .yt-main-viewport {
  background: radial-gradient(circle at 20% 0%, rgba(0, 229, 153, 0.09) 0%, transparent 55%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%), #070d0a !important;
}

html[data-theme="light"] .app-main-content,
html[data-theme="light"] .yt-main-viewport,
[data-theme="light"] .app-main-content,
[data-theme="light"] .yt-main-viewport {
  background: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.06) 0%, transparent 60%), #edf1f5 !important;
}

/* Cards & Widgets in Dark Mode */
html[data-theme="dark"] .chart-song-card,
html[data-theme="dark"] .music-standard-card,
html[data-theme="dark"] .hero-side-widget,
[data-theme="dark"] .chart-song-card,
[data-theme="dark"] .music-standard-card,
[data-theme="dark"] .hero-side-widget {
  background: #0e1e17 !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .chart-song-card:hover,
html[data-theme="dark"] .music-standard-card:hover,
[data-theme="dark"] .chart-song-card:hover,
[data-theme="dark"] .music-standard-card:hover {
  background: #14281f !important;
  border-color: rgba(0, 229, 153, 0.45) !important;
  box-shadow: 0 14px 40px rgba(0, 229, 153, 0.18) !important;
}

html[data-theme="dark"] .hero-mini-song-item,
[data-theme="dark"] .hero-mini-song-item {
  background: rgba(6, 14, 10, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .hero-mini-song-item:hover,
[data-theme="dark"] .hero-mini-song-item:hover {
  background: rgba(0, 229, 153, 0.09) !important;
  border-color: rgba(0, 229, 153, 0.35) !important;
}

html[data-theme="dark"] .search-input-field,
[data-theme="dark"] .search-input-field {
  background: #060d09 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .theme-icon-btn,
[data-theme="dark"] .theme-icon-btn {
  background: #0e1e17 !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #fbbf24 !important;
}

/* Cards & Widgets in Light Mode */
html[data-theme="light"] .chart-song-card,
html[data-theme="light"] .music-standard-card,
html[data-theme="light"] .hero-side-widget,
[data-theme="light"] .chart-song-card,
[data-theme="light"] .music-standard-card,
[data-theme="light"] .hero-side-widget {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .chart-song-card:hover,
html[data-theme="light"] .music-standard-card:hover,
[data-theme="light"] .chart-song-card:hover,
[data-theme="light"] .music-standard-card:hover {
  background: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.16) !important;
}

html[data-theme="light"] .hero-mini-song-item,
[data-theme="light"] .hero-mini-song-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .hero-mini-song-item:hover,
[data-theme="light"] .hero-mini-song-item:hover {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

html[data-theme="light"] .hero-mini-title,
html[data-theme="light"] .chart-song-title,
html[data-theme="light"] .card-title-text,
[data-theme="light"] .hero-mini-title,
[data-theme="light"] .chart-song-title,
[data-theme="light"] .card-title-text {
  color: #0f172a !important;
}

html[data-theme="light"] .hero-mini-artist,
html[data-theme="light"] .chart-song-artist,
html[data-theme="light"] .card-sub-artist,
[data-theme="light"] .hero-mini-artist,
[data-theme="light"] .chart-song-artist,
[data-theme="light"] .card-sub-artist {
  color: #334155 !important;
}

html[data-theme="light"] .search-input-field,
[data-theme="light"] .search-input-field {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .search-input-field::placeholder,
[data-theme="light"] .search-input-field::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .theme-icon-btn,
[data-theme="light"] .theme-icon-btn {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

/* Sidebar navigation links */
html[data-theme="light"] .menu-heading {
  color: #64748b !important;
}

html[data-theme="light"] .sidebar-nav-item {
  color: #334155 !important;
}

html[data-theme="light"] .sidebar-nav-item:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

html[data-theme="light"] .sidebar-nav-item.active {
  color: #059669 !important;
  background: rgba(5, 150, 105, 0.12) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .sidebar-nav-item.active i,
html[data-theme="light"] .sidebar-nav-item.active span {
  color: #059669 !important;
}

/* 3. CARD ARTWORK & HOVER PLAY BUTTON */
.music-standard-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: var(--radius-md) !important;
  padding: 14px !important;
  transition: var(--transition-smooth) !important;
  cursor: pointer !important;
}

.music-standard-card:hover {
  transform: translateY(-4px) !important;
}

.card-artwork-wrap {
  width: 100% !important;
  aspect-ratio: 1 !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  position: relative !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.card-artwork-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: var(--transition-smooth) !important;
  display: block !important;
}

.music-standard-card:hover .card-artwork-wrap img {
  transform: scale(1.05) !important;
}

.card-play-hover-btn {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  box-shadow: 0 6px 15px var(--primary-glow) !important;
  transition: var(--transition-smooth) !important;
  z-index: 5 !important;
}

.music-standard-card:hover .card-play-hover-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 4. 3-DOTS BUTTON ON CARDS (CHUẨN DEMO 100%) */
.card-more-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(13, 21, 39, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  cursor: pointer !important;
  opacity: 0.85 !important;
  transition: var(--transition-smooth) !important;
  z-index: 10 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.card-more-btn:hover {
  opacity: 1 !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 3px 10px var(--primary-glow) !important;
}

html[data-theme="light"] .card-more-btn,
[data-theme="light"] .card-more-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .card-more-btn:hover,
[data-theme="light"] .card-more-btn:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.chart-more-dots-btn,
.hero-mini-more-btn,
.btn-song-more,
.chart-row-more-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-tertiary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.chart-more-dots-btn:hover,
.hero-mini-more-btn:hover,
.btn-song-more:hover,
.chart-row-more-btn:hover {
  color: var(--primary) !important;
  background: var(--bg-surface-elevated) !important;
  border-color: var(--border-subtle) !important;
  transform: scale(1.08) !important;
}

html[data-theme="light"] .chart-more-dots-btn,
html[data-theme="light"] .hero-mini-more-btn,
html[data-theme="light"] .btn-song-more,
html[data-theme="light"] .chart-row-more-btn,
[data-theme="light"] .chart-more-dots-btn,
[data-theme="light"] .hero-mini-more-btn,
[data-theme="light"] .btn-song-more,
[data-theme="light"] .chart-row-more-btn {
  color: var(--text-tertiary) !important;
}

html[data-theme="light"] .chart-more-dots-btn:hover,
html[data-theme="light"] .hero-mini-more-btn:hover,
html[data-theme="light"] .btn-song-more:hover,
html[data-theme="light"] .chart-row-more-btn:hover,
[data-theme="light"] .chart-more-dots-btn:hover,
[data-theme="light"] .hero-mini-more-btn:hover,
[data-theme="light"] .btn-song-more:hover,
[data-theme="light"] .chart-row-more-btn:hover {
  background: #e2e8f0 !important;
  color: var(--primary) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
}

/* 5. FLOATING SONG CONTEXT DROPDOWN MENU (#songContextMenu) (CHUẨN DEMO 100%) */
.song-context-menu {
  position: fixed !important;
  z-index: 999999 !important;
  background: rgba(11, 22, 16, 0.95) !important;
  border: 1px solid rgba(0, 229, 153, 0.18) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(0, 229, 153, 0.2) !important;
  padding: 6px !important;
  min-width: 220px !important;
  max-width: 280px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  animation: contextFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

html[data-theme="light"] .song-context-menu,
[data-theme="light"] .song-context-menu {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

@keyframes contextFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.context-menu-header {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  padding: 6px 10px 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

html[data-theme="light"] .context-menu-header,
[data-theme="light"] .context-menu-header {
  color: #64748b !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
}

.context-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #f8fafc !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
  user-select: none !important;
  font-family: inherit !important;
}

.context-menu-item:hover {
  background: rgba(0, 229, 153, 0.14) !important;
  color: #00e599 !important;
}

html[data-theme="light"] .context-menu-item,
[data-theme="light"] .context-menu-item {
  color: #0f172a !important;
}

html[data-theme="light"] .context-menu-item:hover,
[data-theme="light"] .context-menu-item:hover {
  background: #f1f5f9 !important;
  color: var(--primary) !important;
}

.context-menu-item i {
  width: 16px !important;
  text-align: center !important;
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

.context-menu-item:hover i {
  color: #10b981 !important;
}

html[data-theme="light"] .context-menu-item i,
[data-theme="light"] .context-menu-item i {
  color: #64748b !important;
}

html[data-theme="light"] .context-menu-item:hover i,
[data-theme="light"] .context-menu-item:hover i {
  color: var(--primary) !important;
}

.context-menu-divider {
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 4px 6px !important;
}

html[data-theme="light"] .context-menu-divider,
[data-theme="light"] .context-menu-divider {
  background: rgba(15, 23, 42, 0.10) !important;
}

/* ==========================================================================
   6. FULLSCREEN AMBIENT OVERLAY PLAYER (CHUẨN THEO PHONG CÁCH TAILIEU/1.PNG)
   Nền cảnh đêm cực quang huyền ảo - Bố cục 2 cột (Đĩa than & 2 Tab Karaoke/Hàng đợi)
   ========================================================================== */
.fullscreen-player-overlay,
.ai-fullscreen-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background-color: var(--ai-bg-base, #020604) !important;
  color: #ffffff !important;
  user-select: none !important;
  -webkit-font-smoothing: antialiased !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  opacity: 1 !important;
  transform: scale(1) translateY(0) translateZ(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s !important;
}

.fullscreen-player-overlay.collapsed,
.ai-fullscreen-overlay.collapsed {
  opacity: 0 !important;
  transform: scale(0.96) translateY(30px) translateZ(0) !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s !important;
}

.fullscreen-player-overlay.active,
.ai-fullscreen-overlay.active {
  opacity: 1 !important;
  transform: scale(1) translateY(0) translateZ(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s !important;
}

/* 1. HÌNH NỀN BACKGROUND CHUNG (Cảnh đêm cực quang hồ nước huyền ảo theo 1.png) */
.fs-scenic-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  z-index: 1 !important;
  pointer-events: none !important;
  filter: brightness(0.65) saturate(1.2) !important;
  transition: filter 0.5s ease !important;
}

/* Dynamic Album Art Glow Layer (Tối ưu 0% GPU - bỏ blur 90px và screen blend) */
.fs-ambient-glow-layer {
  display: none !important;
}

/* Vignette overlay tạo độ sâu huyền ảo và tăng độ tương phản cho UI */
.fs-scenic-overlay-vignette {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  background: radial-gradient(circle at 50% 45%, rgba(6, 11, 20, 0.25) 0%, rgba(6, 11, 20, 0.72) 70%, rgba(4, 7, 13, 0.94) 100%) !important;
  pointer-events: none !important;
}



/* Main Container */
.fs-player-container {
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 16px 32px 20px !important;
  box-sizing: border-box !important;
}

/* 2. TOP BAR */
.fs-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 48px !important;
  flex-shrink: 0 !important;
  padding-bottom: 8px !important;
}

/* Logo thương hiệu & Studio Hi-Fi bên trái */
.fs-top-left-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.fs-brand-logo {
  display: flex !important;
  align-items: center !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.3px !important;
}

.fs-brand-logo .text-emerald {
  color: #10b981 !important;
}



.fs-now-playing-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}



.fs-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981 !important;
  animation: fsPulse 2s infinite !important;
}

@keyframes fsPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

/* Mobile Tab Switcher (ẩn trên PC, hiện trên mobile) */
.fs-mobile-tab-nav {
  display: none !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  padding: 3px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.fs-m-tab-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.fs-m-tab-btn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
}

/* Cụm Nút Tác Vụ Phải & Nút Thu Nhỏ */
.fs-top-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}

.fs-icon-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  text-decoration: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.fs-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #10b981 !important;
  transform: scale(1.06) !important;
}

html[data-theme="light"] .fs-icon-btn,
[data-theme="light"] .fs-icon-btn {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

/* Nút Thu Nhỏ Canh Phải */
.fs-btn-collapse {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.fs-btn-collapse:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #10b981 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="light"] .fs-btn-collapse,
[data-theme="light"] .fs-btn-collapse {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

/* 3. MAIN WORKSPACE: BỐ CỤC 2 CỘT CHUẨN PC */
.fs-split-workspace {
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  gap: 36px !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 6px 0 !important;
  overflow: hidden !important;
}

/* =========================================================================
   CỘT TRÁI: ĐĨA THAN VINYL, SÓNG ÂM VISUALIZER & TRACK META
   ========================================================================= */
.fs-col-left {
  flex: 1 !important;
  max-width: 580px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.fs-vinyl-center-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  width: 100% !important;
  position: relative !important;
}

/* Hào quang vòng sóng nước (Ripple Rings) */
.fs-ripple-water-glow {
  position: absolute !important;
  width: 380px !important;
  height: 120px !important;
  top: 60% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) perspective(400px) rotateX(70deg) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.fs-ripple-ring {
  position: absolute !important;
  inset: 0 !important;
  border: 2px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(6, 182, 212, 0.25) !important;
}

.fs-ripple-water-glow.is-playing .ring-1,
.fs-ripple-water-glow.is-playing .ring-2,
.fs-ripple-water-glow.is-playing .ring-3 {
  animation: none !important;
  display: none !important;
}

/* Hàng Đĩa Than & Hai Cánh Sóng Âm (Flank Audio Visualizer) */
.fs-turntable-visualizer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Dải sóng âm ngang hai bên đĩa than (chuẩn như ảnh 1.png) */
.fs-flank-visualizer {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 80px !important;
  opacity: 0.6 !important;
  transition: opacity 0.3s ease !important;
}

.fs-flank-visualizer.is-playing {
  opacity: 0.95 !important;
}

.fs-flank-bar {
  width: 3.5px !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #06b6d4 0%, #10b981 100%) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
  transition: height 0.15s ease !important;
  height: 8px;
}

/* Chiều cao cơ bản tạo hình lượn sóng */
.fs-flank-bar.b1 {
  height: 10px;
}

.fs-flank-bar.b2 {
  height: 16px;
}

.fs-flank-bar.b3 {
  height: 26px;
}

.fs-flank-bar.b4 {
  height: 42px;
}

.fs-flank-bar.b5 {
  height: 56px;
}

.fs-flank-bar.b6 {
  height: 68px;
}

.fs-flank-bar.b7 {
  height: 52px;
}

.fs-flank-bar.b8 {
  height: 38px;
}

.fs-flank-bar.b9 {
  height: 22px;
}

.fs-flank-bar.b10 {
  height: 12px;
}

/* Animation nhảy sóng âm khi bài hát đang phát */
.fs-flank-visualizer.is-playing .b1 {
  animation: fsFlankBounce 0.7s ease-in-out infinite alternate 0.1s !important;
}

.fs-flank-visualizer.is-playing .b2 {
  animation: fsFlankBounce 0.8s ease-in-out infinite alternate 0.25s !important;
}

.fs-flank-visualizer.is-playing .b3 {
  animation: fsFlankBounce 0.65s ease-in-out infinite alternate 0.15s !important;
}

.fs-flank-visualizer.is-playing .b4 {
  animation: fsFlankBounce 0.9s ease-in-out infinite alternate 0.3s !important;
}

.fs-flank-visualizer.is-playing .b5 {
  animation: fsFlankBounce 0.75s ease-in-out infinite alternate 0.05s !important;
}

.fs-flank-visualizer.is-playing .b6 {
  animation: fsFlankBounce 0.85s ease-in-out infinite alternate 0.4s !important;
}

.fs-flank-visualizer.is-playing .b7 {
  animation: fsFlankBounce 0.7s ease-in-out infinite alternate 0.2s !important;
}

.fs-flank-visualizer.is-playing .b8 {
  animation: fsFlankBounce 0.8s ease-in-out infinite alternate 0.35s !important;
}

.fs-flank-visualizer.is-playing .b9 {
  animation: fsFlankBounce 0.6s ease-in-out infinite alternate 0.1s !important;
}

.fs-flank-visualizer.is-playing .b10 {
  animation: fsFlankBounce 0.75s ease-in-out infinite alternate 0.3s !important;
}

@keyframes fsFlankBounce {
  0% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }

  100% {
    transform: scaleY(1.35);
    opacity: 1;
  }
}

/* Đĩa Than Cơ Học (Turntable) */
.fs-turntable-wrapper {
  position: relative !important;
  width: 280px !important;
  height: 280px !important;
  max-width: 48vh !important;
  max-height: 48vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

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

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

.fs-vinyl-disc {
  width: 250px !important;
  height: 250px !important;
  max-width: 44vh !important;
  max-height: 44vh !important;
  border-radius: 50% !important;
  background: radial-gradient(circle,
      #080808 0%,
      #171717 12%,
      #0a0a0a 24%,
      #212121 36%,
      #0b0b0b 48%,
      #1a1a1a 60%,
      #0d0d0d 72%,
      #242424 84%,
      #050505 100%) !important;
  /* Viền hào quang ngọc lục bảo bao quanh đĩa than chuẩn như ảnh 1.png */
  border: 2px solid rgba(16, 185, 129, 0.75) !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.55), 0 16px 48px rgba(0, 0, 0, 0.85), inset 0 0 15px rgba(6, 182, 212, 0.35) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.fs-vinyl-disc.is-spinning {
  animation: fsSpinVinyl 18s linear infinite !important;
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.75), 0 20px 52px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(6, 182, 212, 0.45) !important;
}

.fs-vinyl-grooves {
  position: absolute !important;
  inset: 12px !important;
  border-radius: 50% !important;
  border: 1px dashed rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.02),
    0 0 0 18px rgba(255, 255, 255, 0.02),
    0 0 0 28px rgba(255, 255, 255, 0.02),
    0 0 0 40px rgba(255, 255, 255, 0.015) !important;
  pointer-events: none !important;
}

.fs-vinyl-label-center {
  width: 95px !important;
  height: 95px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 0 0 4px #121212, 0 4px 14px rgba(0, 0, 0, 0.8) !important;
}

.fs-vinyl-label-center img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.fs-vinyl-spindle-hole {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 15px !important;
  height: 15px !important;
  border-radius: 50% !important;
  background: #000000 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9) !important;
}

/* Kim Máy Quay Đĩa Than (Tonearm) */
.fs-tonearm {
  position: absolute !important;
  top: 8px !important;
  right: 12px !important;
  width: 70px !important;
  height: 110px !important;
  z-index: 10 !important;
  transform-origin: 52px 14px !important;
  transform: rotate(-32deg) !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

.fs-tonearm.is-playing {
  transform: rotate(0deg) !important;
}

.fs-tonearm-base {
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #e2e8f0 0%, #64748b 100%) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.fs-tonearm-lever {
  position: absolute !important;
  top: 15px !important;
  right: 17px !important;
  width: 4px !important;
  height: 75px !important;
  background: linear-gradient(180deg, #cbd5e1 0%, #475569 100%) !important;
  border-radius: 2px !important;
  transform: rotate(16deg) !important;
  transform-origin: top center !important;
}

.fs-tonearm-head {
  position: absolute !important;
  bottom: 12px !important;
  left: 20px !important;
  width: 13px !important;
  height: 22px !important;
  background: #10b981 !important;
  border-radius: 2px !important;
  transform: rotate(18deg) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* Track Metadata bên dưới đĩa than */
.fs-track-meta {
  text-align: center !important;
  max-width: 90% !important;
}

.fs-track-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}



.fs-track-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 14.5px !important;
  color: #94a3b8 !important;
}



.fs-track-artist {
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}



.fs-badge-ai {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  padding: 2px 9px !important;
  border-radius: 9999px !important;
}



/* Dots Indicator bên dưới (chuẩn 1.png) */
.fs-dots-indicator {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
}

.fs-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  transition: all 0.2s ease !important;
}

.fs-dot.active {
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
  transform: scale(1.3) !important;
}

/* =========================================================================
   CỘT PHẢI: KHUNG 2 TAB KÍNH MỜ (TAB 1: LỜI KARAOKE | TAB 2: HÀNG ĐỢI)
   ========================================================================= */
.fs-col-right {
  flex: 1 !important;
  max-width: 620px !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.fs-side-card-glass {
  background: rgba(10, 17, 30, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}



/* Header 2 Tab Bên Phải */
.fs-side-tab-header {
  padding: 14px 18px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}



.fs-side-tab-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  padding: 4px !important;
}



.fs-side-tab-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  border-radius: 9999px !important;
  padding: 7px 22px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  display: flex !important;
  align-items: center !important;
}

.fs-side-tab-btn:hover {
  color: #f8fafc !important;
}



.fs-side-tab-btn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.5) !important;
}

/* Nội Dung 2 Tab */
.fs-side-tab-content {
  flex: 1 !important;
  min-height: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.fs-side-tab-pane {
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
}

.fs-side-tab-pane.active {
  display: flex !important;
}

/* --- TAB 1: LỜI KARAOKE (.LRC CHỮ SÁNG) --- */
.fs-lyrics-stream-wrapper {
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  padding: 40px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  scroll-behavior: smooth !important;
  box-sizing: border-box !important;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%) !important;
}

.fs-lyrics-placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 180px !important;
  color: #94a3b8 !important;
  text-align: center !important;
}

/* Dòng lyric thông thường */
.fs-lrc-row {
  font-size: 20px !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.42) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  padding: 7px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  user-select: none !important;
}

.fs-lrc-row:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
}



/* DÒNG ĐANG HÁT: TÔ SÁNG CHỮ, KHÔNG TÔ BACKGROUND CẢ DÒNG VÀ KHÔNG BORDER-LEFT */
.fs-lrc-row.active {
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  transform: scale(1.05) !important;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.9), 0 0 45px rgba(16, 185, 129, 0.45) !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
}



/* --- TAB 2: HÀNG ĐỢI PHÁT NHẠC (QUEUE) --- */
.fs-queue-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.fs-queue-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}



.fs-queue-header h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  margin: 0 !important;
}



.fs-queue-badge-total {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
}

.fs-queue-list {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.fs-queue-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.fs-queue-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(3px) !important;
}

.fs-queue-item.active {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}



.fs-queue-thumb {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.fs-queue-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.fs-queue-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}



.fs-queue-artist {
  font-size: 12px !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}



/* =========================================================================
   4. BOTTOM CONTROL CONSOLE: SEEKBAR & HI-FI TRANSPORT (CHUẨN 1.PNG)
   ========================================================================= */
.fs-control-console {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  padding-top: 10px !important;
}

/* Timeline Seekbar */
.fs-timeline-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
}

.fs-time-text {
  font-size: 12.5px !important;
  font-family: var(--font-mono, monospace) !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  min-width: 44px !important;
}



.fs-time-text.right {
  text-align: right !important;
}

.fs-seek-track {
  flex: 1 !important;
  height: 5px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  position: relative !important;
  cursor: pointer !important;
  transition: height 0.15s ease !important;
}

.fs-seek-track:hover {
  height: 8px !important;
}



.fs-seek-fill {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  /* Gradient chuyển sắc từ Cyan sang Emerald theo ảnh 1.png */
  background: linear-gradient(90deg, #06b6d4 0%, #10b981 100%) !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
}

.fs-seek-thumb {
  position: absolute !important;
  right: -6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 14px rgba(16, 185, 129, 0.7) !important;
  transition: transform 0.15s ease !important;
}

.fs-seek-track:hover .fs-seek-thumb {
  transform: translateY(-50%) scale(1.25) !important;
}

/* Master Controls Cluster */
.fs-controls-cluster {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0 4px !important;
}

.fs-ctrl-left,
.fs-ctrl-right {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.fs-ctrl-right {
  justify-content: flex-end !important;
  gap: 10px !important;
}

.fs-quality-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #34d399 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  backdrop-filter: blur(12px) !important;
}



/* 5 Nút Điều Khiển Trung Tâm */
.fs-ctrl-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
}

.fs-btn-step {
  font-size: 15px !important;
}

/* NÚT PLAY/PAUSE CHÍNH GIỮA (LỚN, GRADIENT NGỌC LỤC BẢO CHUẨN 1.PNG) */
.fs-main-play-btn {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  cursor: pointer !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.65), 0 8px 18px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: 0 4px !important;
}

.fs-main-play-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.85), 0 10px 22px rgba(0, 0, 0, 0.5) !important;
}

.fs-main-play-btn:active {
  transform: scale(0.96) !important;
}

.fs-volume-range {
  width: 90px !important;
  accent-color: #10b981 !important;
  cursor: pointer !important;
}

/* =========================================================================
   5. NÂNG TẦM Z-INDEX CHO MODAL ĐĂNG NHẬP, TOAST & MENU 3 CHẤM (FIX BUG 2)
   Khi mở modal đăng nhập hay menu 3 chấm từ trình phát phóng to,
   nó luôn luôn nổi lên TRÊN CÙNG và rõ ràng trước mắt người dùng!
   ========================================================================= */
.song-context-menu {
  z-index: 1000005 !important;
}

.modal {
  z-index: 1000010 !important;
}

.modal-backdrop {
  z-index: 1000008 !important;
}

.modal-backdrop.show {
  opacity: 0.72 !important;
}

#authModal {
  z-index: 1000015 !important;
}

#customDialogModal {
  z-index: 1000020 !important;
}

.toast-container,
#toastContainer {
  z-index: 1000030 !important;
}

/* =========================================================================
   6. RESPONSIVE MOBILE & TABLET ERGONOMICS (< 992px)
   ========================================================================= */
@media (max-width: 991.98px) {
  .fs-player-container {
    padding: 12px 16px 14px !important;
  }

  .fs-mobile-tab-nav {
    display: flex !important;
  }

  .fs-split-workspace {
    flex-direction: column !important;
    gap: 0 !important;
    position: relative !important;
  }

  .fs-col-left,
  .fs-col-right {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Ẩn cột phụ khi mobile tab tương ứng không được chọn */
  .fs-col-left.d-none-mobile {
    display: none !important;
  }

  .fs-col-right.d-none-mobile {
    display: none !important;
  }

  /* Ẩn mặc định cột phải trên mobile, chỉ hiện khi chọn tab Lời hoặc Hàng đợi */
  .fs-col-right {
    display: none;
  }

  .fs-flank-visualizer {
    display: none !important;
  }

  .fs-turntable-wrapper {
    width: min(220px, 32vh) !important;
    height: min(220px, 32vh) !important;
  }

  .fs-vinyl-disc {
    width: min(200px, 28vh) !important;
    height: min(200px, 28vh) !important;
  }

  .fs-vinyl-label-center {
    width: 70px !important;
    height: 70px !important;
  }

  .fs-tonearm {
    transform: scale(0.8) rotate(-32deg) !important;
    top: 2px !important;
    right: 6px !important;
  }

  .fs-tonearm.is-playing {
    transform: scale(0.8) rotate(0deg) !important;
  }

  .fs-track-title {
    font-size: 19px !important;
  }

  .fs-lrc-row {
    font-size: 17px !important;
    line-height: 1.7 !important;
    padding: 5px 12px !important;
  }

  .fs-lrc-row.active {
    font-size: 22px !important;
  }

  .fs-ctrl-left,
  .fs-ctrl-right {
    display: none !important;
  }

  .fs-ctrl-center {
    width: 100% !important;
    justify-content: space-evenly !important;
    gap: 12px !important;
  }

  .fs-main-play-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
  }
}

/* =========================================================================
   RESPONSIVE MOBILE: ẨN THỜI GIAN XUẤT BẢN - DÀNH TRỌN DIỆN TÍCH CHO TÊN TÁC GIẢ
   ========================================================================= */
@media (max-width: 992px) {

  .fullscreen-player-overlay .ai-queue-time-text,
  .fullscreen-player-overlay .ai-queue-time-sep,
  .flyout-drawer .ai-queue-time-text,
  .flyout-drawer .ai-queue-time-sep,
  .ai-queue-time-text,
  .ai-queue-time-sep {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .fullscreen-player-overlay .ai-queue-artist-text,
  .flyout-drawer .ai-queue-artist-text,
  .ai-queue-artist-text {
    max-width: none !important;
    width: auto !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .fullscreen-player-overlay .ai-queue-views-text,
  .flyout-drawer .ai-queue-views-text,
  .ai-queue-views-text {
    flex-shrink: 0 !important;
  }
}

/* =========================================================================
   HỆ THỐNG SÓNG NHẠC AVATAR TOÀN NỀN TẢNG (GLOBAL PLAYING INDICATOR)
   Quy tắc: Khi bài hát playing, bất kỳ card item nào trên mọi trang đều có sóng nhạc
   ========================================================================= */
.global-avatar-wave-bars {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.global-avatar-wave-bars .wave-bar {
  width: 2.5px;
  background: #00ff88;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
  animation: globalWaveBounce 0.85s ease-in-out infinite alternate;
}

.global-avatar-wave-bars .wave-bar-1 {
  height: 8px;
  animation-delay: 0.1s;
}

.global-avatar-wave-bars .wave-bar-2 {
  height: 16px;
  animation-delay: 0.35s;
}

.global-avatar-wave-bars .wave-bar-3 {
  height: 10px;
  animation-delay: 0.2s;
}

.global-avatar-wave-bars .wave-bar-4 {
  height: 18px;
  animation-delay: 0.45s;
}

@keyframes globalWaveBounce {
  0% {
    height: 4px;
    opacity: 0.6;
  }

  100% {
    height: 18px;
    opacity: 1;
  }
}

/* Khi bài hát is-playing (đang phát): Hiện sóng nhạc nhấp nhô */
[data-song-id].is-playing .global-avatar-wave-bars,
[data-song-id].is-playing .hero-mini-wave-bars,
[data-song-id].is-playing .fs-avatar-wave-bars,
[data-song-id].is-playing .ai-queue-live-waves {
  display: flex !important;
}

/* Khi bài hát paused: Giữ hiển thị sóng nhạc nhưng đóng băng (paused animation) */
[data-song-id].is-playing.paused .global-avatar-wave-bars .wave-bar,
[data-song-id].is-playing.paused .hero-mini-wave-bars .bar,
[data-song-id].is-playing.paused .ai-queue-live-waves .ai-wave-bar,
[data-song-id].is-paused .global-avatar-wave-bars .wave-bar,
[data-song-id].is-paused .hero-mini-wave-bars .bar,
[data-song-id].is-paused .ai-queue-live-waves .ai-wave-bar {
  animation-play-state: paused !important;
  opacity: 0.55;
}

/* =============================================================================
   BẢNG XẾP HẠNG SITUNEE AI MUSIC CHUYÊN BIỆT (/bxh, /charts)
   Chuẩn thiết kế Full Width 100% bám sát Mockup Demo PC & Mobile:
   1. Hero Header Banner (Gradient Aurora, Cúp Vàng, Trạng thái Realtime, Nút Phát Toàn Bộ)
   2. Bộ Lọc Tabs Kép (Chu Kỳ: BXH Hôm Nay, Tuần Này, Tháng Này, Mọi Thời Đại & Thể Loại)
   3. Khu Vực Spotlight TOP 3 (Podium Vàng, Bạc, Đồng dạng Card Ngang PC & 3 Cột Mobile)
   4. Bảng Xếp Hạng Chi Tiết Full-Width (CARD-CHART-ROW từ #04 trở đi, Trend Indicators, Metrics YouTube)
   ============================================================================= */

.bxh-page-flow,
.portal-bxh-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0;
  margin: 0;
}

/* 1. Header Banner BXH (Dùng chung sân khấu trao giải cho cả 2 theme) */
.bxh-hero-banner {
  position: relative;
  border-radius: 20px;
  padding: 26px 32px;
  background-color: #070d0a;
  background-image: linear-gradient(90deg, rgba(7, 13, 10, 0.88) 0%, rgba(7, 13, 10, 0.72) 42%, rgba(7, 13, 10, 0.25) 100%),
    url('../img/bxh/bxh_hero_banner.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 229, 153, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 229, 153, 0.1);
  overflow: hidden;
  width: 100%;
}

.bxh-banner-glow-backdrop {
  position: absolute;
  top: -50px;
  left: 20%;
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.bxh-trophy-icon {
  font-size: 1.85rem;
  color: #ffd700 !important;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
  animation: bxhTrophyPulse 3s ease-in-out infinite alternate;
}

@keyframes bxhTrophyPulse {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  }

  100% {
    transform: scale(1.06) rotate(3deg);
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.8));
  }
}

.bxh-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.bxh-realtime-subtext {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  display: inline-block;
  animation: bxhLivePulse 1.4s ease-in-out infinite;
}

@keyframes bxhLivePulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Nút To Nổi Bật: Phát Toàn Bộ BXH */
.btn-bxh-play-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #00ff88 0%, #00c96c 100%);
  color: #041a0f !important;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-bxh-play-all:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.45);
  filter: brightness(1.05);
}

.btn-bxh-play-all:active {
  transform: translateY(0) scale(0.98);
}

.btn-play-all-icon {
  font-size: 0.95rem;
  color: #041a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light Theme Header (Dùng chung sân khấu trao giải) */
[data-theme="light"] .bxh-hero-banner {
  background-color: #070d0a;
  background-image: linear-gradient(90deg, rgba(7, 13, 10, 0.88) 0%, rgba(7, 13, 10, 0.72) 42%, rgba(7, 13, 10, 0.25) 100%),
    url('../img/bxh/bxh_hero_banner.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 194, 111, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 24px rgba(0, 194, 111, 0.1);
}

[data-theme="light"] .bxh-hero-banner .bxh-main-title {
  color: #ffffff;
}

[data-theme="light"] .bxh-hero-banner .bxh-realtime-subtext {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 2. Bộ Lọc Tabs Kép */
.bxh-filters-section {
  width: 100%;
}

.bxh-period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.bxh-period-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.bxh-period-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.bxh-period-btn.active {
  background: var(--primary, #00e599);
  color: #061a10;
  box-shadow: 0 2px 10px rgba(0, 229, 153, 0.35);
}

[data-theme="light"] .bxh-period-tabs {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bxh-period-btn {
  color: #64748b;
}

[data-theme="light"] .bxh-period-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .bxh-period-btn.active {
  background: #00b377;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 179, 119, 0.3);
}

/* Genre horizontal scroll bar */
.bxh-genre-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
  width: 100%;
}

.bxh-genre-scroll-wrapper::-webkit-scrollbar {
  height: 3px;
}

.bxh-genre-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.25);
  border-radius: 999px;
}

.bxh-genre-scroll-list {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.bxh-genre-pill {
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  background: var(--card-bg, #101915);
  color: var(--text-muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bxh-genre-pill:hover {
  border-color: var(--primary, #00e599);
  color: #ffffff;
}

.bxh-genre-pill.active {
  background: rgba(0, 255, 136, 0.12);
  border-color: var(--primary, #00e599);
  color: var(--primary, #00e599);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

[data-theme="light"] .bxh-genre-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .bxh-genre-pill:hover {
  border-color: #00b377;
  color: #0f172a;
}

[data-theme="light"] .bxh-genre-pill.active {
  background: #e6f9ef;
  border-color: #00b377;
  color: #00875a;
  box-shadow: 0 0 8px rgba(0, 179, 119, 0.15);
}

/* 3. Khu Vực Spotlight TOP 3 (Podium Dạng Thẻ Ngang Theo Mockup PC) */
.bxh-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
}

.bxh-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.bxh-podium-card {
  position: relative;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.bxh-podium-card:hover {
  transform: translateY(-3px);
}

/* TOP 1: Quán Quân Vàng Kim */
.bxh-podium-card.rank-1-card {
  border: 1.5px solid rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, rgba(14, 28, 22, 0.95) 0%, rgba(14, 28, 22, 0.75) 45%, rgba(14, 28, 22, 0.3) 100%),
    url('../img/bxh/bxh_podium_top1.webp') right center / cover no-repeat;
  background-color: #0e1c16;
}

.bxh-podium-card.rank-1-card:hover {
  border-color: #ffd700;
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.38), 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* TOP 2: Á Quân 1 Bạc / Bạch Kim */
.bxh-podium-card.rank-2-card {
  border: 1.5px solid rgba(200, 210, 225, 0.6);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.16), 0 8px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, rgba(14, 28, 22, 0.95) 0%, rgba(14, 28, 22, 0.75) 45%, rgba(14, 28, 22, 0.3) 100%),
    url('../img/bxh/bxh_podium_top2.webp') right center / cover no-repeat;
  background-color: #0e1c16;
}

.bxh-podium-card.rank-2-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 0 28px rgba(226, 232, 240, 0.28), 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* TOP 3: Á Quân 2 Đồng / Hổ Phách */
.bxh-podium-card.rank-3-card {
  border: 1.5px solid rgba(205, 127, 50, 0.6);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.16), 0 8px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, rgba(14, 28, 22, 0.95) 0%, rgba(14, 28, 22, 0.75) 45%, rgba(14, 28, 22, 0.3) 100%),
    url('../img/bxh/bxh_podium_top3.webp') right center / cover no-repeat;
  background-color: #0e1c16;
}

.bxh-podium-card.rank-3-card:hover {
  border-color: #ea580c;
  box-shadow: 0 0 28px rgba(234, 88, 12, 0.28), 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Light Theme Podium Cards */
[data-theme="light"] .bxh-podium-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .bxh-podium-card.rank-1-card {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.3) 100%),
    url('../img/bxh/bxh_podium_top1.webp') right center / cover no-repeat;
  background-color: #ffffff;
  border-color: #eab308;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.22);
}

[data-theme="light"] .bxh-podium-card.rank-2-card {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.3) 100%),
    url('../img/bxh/bxh_podium_top2.webp') right center / cover no-repeat;
  background-color: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] .bxh-podium-card.rank-3-card {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.3) 100%),
    url('../img/bxh/bxh_podium_top3.webp') right center / cover no-repeat;
  background-color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.18);
}

.podium-card-crown-badge {
  display: none !important;
}

/* Avatar Podium vuông 76px */
.podium-card-cover-wrap {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #15221b;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.podium-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bxh-podium-card:hover .podium-card-cover-img {
  transform: scale(1.08);
}

.podium-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}

.bxh-podium-card:hover .podium-cover-overlay,
.bxh-podium-card.is-playing .podium-cover-overlay {
  opacity: 1;
}

.podium-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary, #00e599);
  color: #041a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bxh-podium-card:hover .podium-play-btn,
.bxh-podium-card.is-playing .podium-play-btn {
  transform: scale(1);
}

/* Body Podium Ngang */
.podium-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
  padding-right: 28px;
}

.podium-badge-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.podium-song-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.bxh-podium-card:hover .podium-song-title {
  color: var(--primary, #00e599);
}

[data-theme="light"] .podium-song-title {
  color: #0f172a;
}

.podium-artist-row {
  font-size: 0.8rem;
  color: #38ef7d;
  font-weight: 500;
}

.podium-artist-link {
  color: inherit;
  text-decoration: none;
}

.podium-artist-link:hover {
  text-decoration: underline;
}

[data-theme="light"] .podium-artist-row {
  color: #059669;
}

.podium-stat-views {
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

.podium-more-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* 4. Bảng Xếp Hạng Chi Tiết (CARD-CHART-ROW Full Width từ #04 trở đi) */
.bxh-list-section {
  background: #0a1711;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .bxh-list-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

.chart-rows-container {
  width: 100%;
}

.chart-table-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.05em;
  gap: 14px;
  width: 100%;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

[data-theme="light"] .chart-table-header {
  border-color: #e2e8f0;
}

.chart-col-rank {
  width: 48px;
  flex-shrink: 0;
  text-align: center;
}

.chart-rank-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-muted, #94a3b8);
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

.chart-col-trend {
  width: 76px;
  min-width: 76px;
  flex-shrink: 0;
  white-space: nowrap;
}

.chart-trend-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-trend-new {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid #06b6d4;
  color: #06b6d4;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.chart-col-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.chart-row-thumb-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #15221b;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.chart-row-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.chart-row-item:hover .chart-row-thumb-img {
  transform: scale(1.08);
}

.chart-row-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.chart-row-item:hover .chart-row-thumb-overlay,
.chart-row-item.is-playing .chart-row-thumb-overlay {
  opacity: 1;
}

.chart-row-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, #00e599);
  color: #041a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.chart-col-info {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  padding-left: 6px;
}

.chart-row-title {
  margin: 0 0 3px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.chart-row-item:hover .chart-row-title {
  color: var(--primary, #00e599);
}

[data-theme="light"] .chart-row-title {
  color: #0f172a;
}

.chart-row-meta {
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.chart-row-artist-link {
  color: #38ef7d;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.chart-row-artist-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

[data-theme="light"] .chart-row-artist-link {
  color: #059669;
}

.chart-row-genre-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary, #00e599);
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="light"] .chart-row-genre-tag {
  background: #e6f9ef;
  border-color: #bbf7d0;
  color: #00875a;
}

/* Đã loại bỏ AI Model badge theo yêu cầu người dùng */
.chart-row-ai-badge {
  display: none !important;
}

.chart-col-views {
  width: 120px;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.chart-views-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  white-space: nowrap;
}

[data-theme="light"] .chart-views-val {
  color: #0f172a;
}

.chart-views-lbl {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.chart-col-duration {
  width: 75px;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
}

.chart-duration-text {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.chart-col-actions {
  width: 75px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.chart-row-more-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Thẻ dòng CARD-CHART-ROW Full Width - Ngăn chặn triệt để dồn hàng */
.chart-row-item {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(6, 14, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.chart-row-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 229, 153, 0.45);
  background: rgba(0, 229, 153, 0.09);
  box-shadow: 0 4px 18px rgba(0, 229, 153, 0.14);
}

.chart-row-item.is-playing {
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.18);
}

[data-theme="light"] .chart-row-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .chart-row-item:hover {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .chart-row-item.is-playing {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.14);
}

/* Spinner Overlay khi tải AJAX */
.bxh-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 14, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 16px;
}

/* =============================================================================
   RESPONSIVE MOBILE CHO BẢNG XẾP HẠNG (< 768px và < 992px)
   Bám sát Mockup Demo Mobile: Top 3 Spotlight 3 Cột Cạnh Nhau
   ============================================================================= */
@media (max-width: 991px) {
  .bxh-hero-banner {
    padding: 20px 18px;
  }

  .bxh-main-title {
    font-size: 1.5rem;
  }

  .bxh-podium-grid {
    gap: 10px;
  }

  .bxh-podium-card {
    padding: 10px 12px;
  }
}

@media (max-width: 767px) {

  .bxh-page-flow,
  .portal-bxh-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .bxh-hero-banner {
    padding: 16px 14px;
    border-radius: 16px;
    overflow: hidden;
  }

  .bxh-hero-banner .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .bxh-hero-banner [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .bxh-main-title {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .bxh-trophy-icon {
    font-size: 1.35rem;
  }

  .btn-bxh-play-all {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 16px;
  }

  /* Tabs Chu kỳ: cuộn ngang mượt mà, ẩn scrollbar native */
  .bxh-filters-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .bxh-period-tabs-wrap {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px !important;
  }

  .bxh-period-tabs-wrap::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  .bxh-period-tabs {
    display: inline-flex !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
    padding: 4px !important;
  }

  .bxh-period-btn {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  /* Thể loại cuộn ngang: Ẩn thanh cuộn native trên mobile */
  .bxh-genre-scroll-wrapper {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }

  .bxh-genre-scroll-wrapper::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  /* Top 3 Spotlight trên mobile: Carousel vuốt ngang mượt mà chuẩn Mockup Mobile */
  .bxh-podium-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .bxh-podium-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 4px 10px 4px !important;
  }

  .bxh-podium-grid::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  .bxh-podium-card {
    flex: 0 0 148px !important;
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    scroll-snap-align: start !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 12px 10px !important;
    border-radius: 14px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* Thứ tự trên mobile: Top 1 (order 1) - Top 2 (order 2) - Top 3 (order 3) */
  .bxh-podium-card.rank-1-card {
    order: 1;
  }

  .bxh-podium-card.rank-2-card {
    order: 2;
  }

  .bxh-podium-card.rank-3-card {
    order: 3;
  }

  .podium-card-cover-wrap {
    display: none !important;
  }

  .podium-card-crown-badge {
    display: none !important;
  }

  .podium-badge-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .badge-rank-text {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .podium-card-body {
    padding-right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .podium-artist-row {
    font-size: 0.76rem;
    line-height: 1.25;
    margin-top: 1px;
  }

  .podium-artist-link {
    color: var(--primary, #00e599) !important;
    font-weight: 600;
    text-decoration: none;
  }

  .podium-song-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.28;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ffffff;
  }

  .podium-meta-row {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .podium-stat-views {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
  }

  .podium-actions-wrap {
    display: none !important;
  }

  /* Bảng dòng bài hát chi tiết trên Mobile: Khớp 100% Mockup Mobile */
  .bxh-list-section,
  .chart-rows-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .chart-row-item {
    display: flex !important;
    padding: 8px 8px !important;
    gap: 6px !important;
    border-radius: 12px;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .chart-col-rank {
    width: 26px !important;
    min-width: 26px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
  }

  .chart-rank-number {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    display: block !important;
    line-height: 1.1 !important;
  }

  .chart-col-trend {
    display: none !important;
  }

  .chart-col-thumb {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex-shrink: 0 !important;
  }

  .chart-row-thumb-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
  }

  .chart-col-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding-left: 2px !important;
  }

  .chart-row-title {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  .chart-row-meta {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100% !important;
  }

  .chart-row-artist-link {
    color: var(--primary, #00e599) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline !important;
  }

  .chart-row-artist-link i {
    display: none !important;
  }

  .chart-row-meta .meta-dot,
  .chart-row-meta .chart-row-genre-tag {
    display: none !important;
  }

  .chart-col-views {
    width: auto !important;
    flex-shrink: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    padding-right: 2px !important;
  }

  .chart-views-val {
    font-size: 0.74rem !important;
    color: var(--text-muted, #94a3b8) !important;
    white-space: nowrap !important;
  }

  .chart-views-lbl {
    display: inline !important;
    font-size: 0.7rem !important;
    color: var(--text-muted, #94a3b8) !important;
    margin-left: 2px !important;
  }

  .chart-col-duration {
    display: none !important;
  }

  .chart-col-actions {
    width: 24px !important;
    min-width: 24px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .chart-like-btn {
    display: none !important;
  }

  .chart-row-more-btn {
    width: 24px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted, #94a3b8) !important;
    background: transparent !important;
    border: none !important;
  }
}

/* =============================================================================
   GENRES & MOODS DISCOVERY HUB (/the-loai)
   ============================================================================= */
.genres-hub-page,
.genres-detail-page {
  width: 100% !important;
  max-width: 100% !important;
  padding-bottom: 60px;
}

/* 1. Header & Navigation Pills */
.genres-page-header {
  margin-bottom: 28px;
}

.genres-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.genres-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.25);
  color: var(--primary, #00e599);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.genres-title-main {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-color, #ffffff);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.genres-desc-sub {
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0;
  max-width: 580px;
}

/* Nav Pills */
.genres-nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(8px);
}

.genre-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
  white-space: nowrap;
}

.genre-pill-btn:hover {
  color: var(--text-color, #ffffff);
  background: rgba(255, 255, 255, 0.06);
}

.genre-pill-btn.active {
  background: linear-gradient(135deg, #00e599 0%, #00b377 100%);
  color: #041c11;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.35);
}

/* Section Headings */
.genres-content-section {
  position: relative;
}

.genre-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.genre-section-heading .heading-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heading-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.heading-icon-box.mood-accent {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
}

.heading-icon-box.genre-accent {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: #00e599;
}

.heading-icon-box.fire-accent {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.genre-section-heading .heading-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color, #ffffff);
  margin-bottom: 2px;
  line-height: 1.25;
}

.genre-section-heading .heading-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0;
}

.genre-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
}

.genre-bxh-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #00e599);
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s ease);
}

.genre-bxh-link:hover {
  color: #34d399;
  transform: translateX(3px);
}

/* 2. Moods Tiles Grid */
.moods-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.mood-tile-item {
  min-width: 0;
}

.mood-tile-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 1 / 1.15;
  min-height: 165px;
  background: #08110c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.mood-tile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 16px var(--tile-accent, rgba(0, 229, 153, 0.3));
}

.mood-tile-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
}

.mood-tile-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mood-tile-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.5s ease;
}

.mood-tile-card:hover .mood-tile-bg-img {
  transform: scale(1.08);
}

.mood-tile-glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4) 65%, rgba(4, 10, 7, 0.94) 100%);
  pointer-events: none;
}

.mood-tile-body {
  position: relative;
  z-index: 3;
  padding: 16px 14px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.mood-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mood-emoji-badge {
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.mood-count-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.mood-tile-bottom {
  padding-right: 32px;
}

.mood-tile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.mood-tile-desc {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Play Button on Mood Tile */
.mood-quick-play-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00e599;
  color: #071510;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.mood-quick-play-btn i {
  margin-left: 2px;
}

.mood-tile-card:hover .mood-quick-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.mood-quick-play-btn:hover {
  background: #ffffff;
  color: #00b377;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 229, 153, 0.65);
}

/* 3. Genres Cards Grid */
.genres-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.genre-card-item {
  min-width: 0;
}

.genre-card-v2 {
  position: relative;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  min-height: 160px;
  background: var(--card-bg, #0d1712);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--card-shadow, 0 4px 16px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.genre-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 229, 153, 0.15);
}

.genre-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
}

.genre-card-artwork {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  overflow: hidden;
}

.genre-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.genre-card-v2:hover .genre-artwork-img {
  transform: scale(1.08);
}

.genre-artwork-fallback {
  width: 100%;
  height: 100%;
}

.genre-artwork-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d1712 0%, rgba(13, 23, 18, 0.65) 28%, rgba(13, 23, 18, 0.08) 65%, transparent 100%);
  pointer-events: none;
}

.genre-card-content {
  position: relative;
  z-index: 3;
  width: 68%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.genre-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.genre-pill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary, #00e599);
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.genre-track-count {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

.genre-title-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-color, #ffffff);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.genre-title-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.genre-footer-action {
  margin-top: 10px;
}

.genre-explore-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary, #00e599);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.genre-card-v2:hover .genre-explore-label {
  color: #34d399;
  gap: 8px;
}

/* Quick Play Button on Genre Card */
.genre-quick-play-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00e599;
  color: #071510;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.45);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.genre-quick-play-btn i {
  margin-left: 2px;
}

.genre-card-v2:hover .genre-quick-play-btn {
  opacity: 1;
  transform: scale(1);
}

.genre-quick-play-btn:hover {
  background: #ffffff;
  color: #00b377;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 229, 153, 0.65);
}

/* 4. Light Theme Specifics */
[data-theme="light"] .genres-page-header .genres-title-main {
  color: #0f172a;
}

[data-theme="light"] .genres-header-content {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .genres-nav-pills {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .genre-pill-btn {
  color: #64748b;
}

[data-theme="light"] .genre-pill-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .genre-pill-btn.active {
  background: linear-gradient(135deg, #00b377 0%, #00874c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 179, 119, 0.3);
}

[data-theme="light"] .genre-section-heading .heading-title {
  color: #0f172a;
}

[data-theme="light"] .genre-count-badge {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .genre-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .genre-card-v2:hover {
  border-color: #00b377;
  box-shadow: 0 8px 24px rgba(0, 179, 119, 0.15);
}

[data-theme="light"] .genre-artwork-gradient-mask {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 28%, rgba(255, 255, 255, 0.08) 65%, transparent 100%);
}

[data-theme="light"] .genre-title-name {
  color: #0f172a;
}

[data-theme="light"] .genre-title-desc {
  color: #64748b;
}

[data-theme="light"] .genre-quick-play-btn {
  background: #00b377;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 179, 119, 0.4);
}

[data-theme="light"] .genre-quick-play-btn:hover {
  background: #041c11;
  color: #00e599;
}

/* 5. Responsive Breakpoints */
@media (max-width: 1200px) {
  .moods-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .moods-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .genres-title-main {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .genres-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .genres-nav-pills {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
  }

  .genres-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .genre-pill-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .mood-quick-play-btn {
    opacity: 1;
    transform: none;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    right: 10px;
    bottom: 10px;
  }

  .genre-quick-play-btn {
    opacity: 1;
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 576px) {
  .moods-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .genres-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mood-tile-card {
    min-height: 145px;
  }

  .mood-tile-name {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .mood-tile-desc {
    display: none;
  }

  .genres-title-main {
    font-size: 1.45rem;
  }

  .genre-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .genre-section-heading .heading-meta {
    align-self: flex-start;
  }
}

/* =============================================================================
   GENRE / MOOD DETAIL PAGE (/genre/{slug})
   ============================================================================= */
.genre-detail-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  padding: 4px 0;
}

.genre-breadcrumb-link {
  color: var(--primary, #00e599);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast, 0.2s ease);
}

.genre-breadcrumb-link:hover {
  color: #34d399;
  transform: translateX(-2px);
}

.genre-detail-hero {
  position: relative;
  border-radius: 20px;
  padding: 36px 40px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.genre-detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.genre-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.genre-detail-hero-thumb {
  width: 180px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.genre-detail-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .genre-detail-hero {
    padding: 24px 20px;
  }

  .genre-detail-hero-thumb {
    width: 120px;
    height: 80px;
  }
}

/* =============================================================================
   YOUTUBE-GRADE LIVE SEARCH DROPDOWN & SEARCH PAGE (GEMINI.MD COMPLIANT)
   ============================================================================= */

/* 1. Live Search Dropdown Container */
.live-search-dropdown.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1060;
  background: var(--bg-surface-elevated, #131b22);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  animation: searchDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Slim scrollbar theo GEMINI.md */
.live-search-dropdown::-webkit-scrollbar {
  width: 3px;
}

.live-search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.live-search-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.25);
  border-radius: 999px;
}

.live-search-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.6);
}

/* 2. YouTube Channel / Creator Spotlight Card (Hiển thị trên đầu kết quả) */
.search-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 255, 136, 0.02) 100%);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.search-channel-card:hover {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.14) 0%, rgba(0, 255, 136, 0.04) 100%);
}

.search-channel-card .channel-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.search-channel-card .channel-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary, #00c26f);
  box-shadow: 0 0 10px rgba(0, 194, 111, 0.3);
}

.search-channel-card .channel-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  background: var(--bg-surface-elevated, #131b22);
  color: var(--primary, #00c26f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.search-channel-card .channel-meta {
  flex: 1;
  min-width: 0;
}

.search-channel-card .channel-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.search-channel-card .channel-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-channel-card .channel-check-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.search-channel-card .channel-tag-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 255, 136, 0.16);
  color: var(--primary, #00ff88);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-channel-card .channel-sub-row {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-channel-card .channel-handle {
  color: var(--primary, #00ff88);
  font-weight: 600;
}

.search-channel-card .channel-dot {
  opacity: 0.45;
}

.search-channel-card .channel-bio-snippet {
  font-size: 11px;
  color: var(--text-tertiary, #64748b);
  margin-top: 3px;
  line-height: 1.35;
}

.btn-channel-follow-sm {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--primary, #00c26f);
  background: transparent;
  color: var(--primary, #00c26f);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-channel-follow-sm:hover,
.btn-channel-follow-sm.following {
  background: var(--primary, #00c26f);
  color: #061e14;
}

/* 3. Section Label */
.search-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary, #94a3b8);
  padding: 10px 16px 6px;
  display: flex;
  align-items: center;
}

/* 4. Danh sách bài hát liên quan */
.search-songs-list {
  display: flex;
  flex-direction: column;
}

.search-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-song-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-song-thumb-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1c2630;
}

.search-song-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.search-song-row:hover .search-song-thumb {
  transform: scale(1.05);
}

.search-thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-song-row:hover .search-thumb-play-overlay {
  opacity: 1;
}

/* Sóng nhạc Avatar Playing theo GEMINI.md */
.search-thumb-wave-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 3px;
  border-radius: 4px;
}

.search-song-row.playing .search-thumb-wave-indicator {
  display: flex;
}

.search-thumb-wave-indicator .wave-bar {
  width: 2px;
  height: 100%;
  background: var(--primary, #00ff88);
  border-radius: 2px;
  animation: searchWaveBounce 0.8s ease-in-out infinite alternate;
}

.search-thumb-wave-indicator .wave-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.search-thumb-wave-indicator .wave-bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes searchWaveBounce {
  0% {
    height: 20%;
  }

  100% {
    height: 100%;
  }
}

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

.search-song-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.search-song-row:hover .search-song-title {
  color: var(--primary, #00ff88);
}

.search-song-sub {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.search-artist-text {
  color: var(--primary, #00ff88);
  font-weight: 500;
}

.mini-check-icon {
  font-size: 10px;
}

.search-sub-dot {
  opacity: 0.45;
}

.btn-search-quick-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-quick-play:hover {
  background: var(--primary, #00c26f);
  color: #061e14;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 194, 111, 0.4);
}

/* 5. Nút Xem Tất Cả Dưới Cùng */
.search-dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #ffffff);
  font-size: 12.5px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-dropdown-footer-link:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary, #00ff88);
}

/* 6. Trang Kết Quả Tìm Kiếm Chuyên Biệt (/search, /tim-kiem) */
.search-page-flow {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 70vh;
}

.badge-search-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 255, 136, 0.12);
  color: var(--primary, #00ff88);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.search-header-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin-top: 4px;
}

/* YouTube Channel Showcase Card trên trang /search (Thiết kế 2 Cột Chuẩn Cao Cấp) */
.yt-channel-card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt-channel-card:hover {
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 255, 136, 0.06);
}

.yt-channel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* CỘT 1 (Trái): Avatar + Thông tin Tác giả */
.yt-channel-col-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.yt-channel-avatar-link {
  flex-shrink: 0;
  display: block;
}

.yt-channel-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(0, 255, 136, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.yt-channel-avatar-link:hover .yt-channel-avatar-img {
  transform: scale(1.05);
  border-color: var(--primary, #00ff88);
}

.yt-channel-info {
  flex: 1;
  min-width: 0;
}

.yt-channel-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.yt-channel-title-link {
  color: var(--text-primary, #ffffff);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.yt-channel-title-link:hover {
  color: var(--primary, #00ff88);
}

.yt-channel-meta {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.yt-channel-handle {
  color: var(--primary, #00ff88);
  font-weight: 600;
}

.yt-channel-meta .meta-dot {
  color: rgba(255, 255, 255, 0.2);
}

.yt-channel-bio {
  font-size: 12.5px;
  color: var(--text-tertiary, #94a3b8);
  margin-bottom: 0;
  line-height: 1.45;
  max-width: 680px;
}

/* CỘT 2 (Phải): Nút Tác Vụ */
.yt-channel-col-actions,
.yt-channel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-channel-follow-lg {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--primary, #00c26f);
  background: var(--primary, #00c26f);
  color: #04140c;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-channel-follow-lg:hover {
  background: #00dd7e;
  border-color: #00dd7e;
  color: #020a06;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.35);
}

.btn-channel-follow-lg.following {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary, #ffffff);
}

.btn-channel-visit-lg {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #ffffff);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-channel-visit-lg:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.search-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin-bottom: 14px;
}

.search-results-list-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 7. Light Theme Adaptations */
html[data-theme="light"] .live-search-dropdown.search-results-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .search-channel-card {
  background: linear-gradient(90deg, rgba(0, 194, 111, 0.06) 0%, rgba(0, 194, 111, 0.02) 100%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .search-channel-card:hover {
  background: linear-gradient(90deg, rgba(0, 194, 111, 0.12) 0%, rgba(0, 194, 111, 0.04) 100%);
}

html[data-theme="light"] .search-channel-card .channel-avatar-badge {
  background: #ffffff;
}

html[data-theme="light"] .search-song-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .search-dropdown-footer-link {
  background: #f8fafc;
  border-top-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn-search-quick-play {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .yt-channel-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .yt-channel-card:hover {
  border-color: rgba(0, 194, 111, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .yt-channel-avatar-img {
  border-color: var(--primary, #00c26f);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .yt-channel-title-link {
  color: #0f172a;
}

html[data-theme="light"] .yt-channel-meta .meta-dot {
  color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .btn-channel-follow-lg.following {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .btn-channel-visit-lg {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

html[data-theme="light"] .btn-channel-visit-lg:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* 8. Mobile Responsiveness */
@media (max-width: 991.98px) {
  .yt-channel-card {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .yt-channel-inner {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .yt-channel-col-main {
    gap: 12px;
  }

  .yt-channel-avatar-img {
    width: 54px;
    height: 54px;
    border-width: 2px;
  }

  .yt-channel-title {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .yt-channel-meta {
    font-size: 11.5px;
    gap: 5px;
    margin-bottom: 0;
  }

  .yt-channel-bio {
    display: none;
  }

  .yt-channel-col-actions,
  .yt-channel-actions {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    justify-content: center;
    min-width: 86px;
    width: auto;
  }

  .btn-channel-follow-lg,
  .btn-channel-visit-lg {
    padding: 6px 12px;
    font-size: 11.5px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .yt-channel-card {
    padding: 12px 14px;
  }

  .yt-channel-avatar-img {
    width: 46px;
    height: 46px;
  }

  .yt-channel-title {
    font-size: 14px;
  }

  .yt-channel-count {
    display: none;
  }

  .yt-channel-col-actions,
  .yt-channel-actions {
    min-width: 80px;
    gap: 5px;
  }

  .btn-channel-follow-lg,
  .btn-channel-visit-lg {
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media (max-width: 767.98px) {
  .live-search-dropdown.search-results-dropdown {
    border-radius: 12px;
    max-height: 400px;
  }

  .search-channel-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .search-channel-card .channel-avatar-wrap,
  .search-channel-card .channel-avatar-img {
    width: 42px;
    height: 42px;
  }

  .btn-channel-follow-sm {
    padding: 4px 10px;
    font-size: 11px;
  }

  .search-song-row {
    padding: 6px 12px;
    gap: 10px;
  }

  .search-song-thumb-box {
    width: 40px;
    height: 40px;
  }

  .search-header-title {
    font-size: 20px;
  }
}

/* =============================================================================
   SỰ KIỆN ÂM NHẠC AI - FULL WIDTH, MODERN & CLEAN UI (/contests)
   ============================================================================= */

/* 1. Full-Width Container (Đồng bộ chuẩn 100% lề Trang Chủ, không padding kép) */
.events-hub-page,
.events-detail-page {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Header & Filter Pills */
.events-page-header {
  margin-bottom: 32px;
}

.events-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.events-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--primary, #00ff88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.events-title-main {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.events-desc-sub {
  font-size: 0.95rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 0;
  max-width: 640px;
}

/* Filter Nav Pills */
.events-filter-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.04));
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.event-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.event-filter-pill:hover {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.06);
}

.event-filter-pill.active {
  background: var(--primary, #00c26f);
  color: #061e14;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.35);
}

/* 3. Spotlight Event Hero Banner */
.events-spotlight-hero {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(19, 27, 34, 0.95) 100%);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.events-spotlight-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.12), transparent 70%);
  pointer-events: none;
}

.spotlight-visual-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.spotlight-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.spotlight-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spotlight-visual-wrap:hover .spotlight-banner-img {
  transform: scale(1.04);
}

.spotlight-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.spotlight-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.spotlight-status-pill.submitting {
  background: rgba(5, 150, 105, 0.9);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.spotlight-status-pill.upcoming {
  background: rgba(126, 34, 206, 0.9);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

.spotlight-status-pill.ended {
  background: rgba(71, 85, 105, 0.9);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.pulse-dot-white {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: contestPulseAnim 1.8s infinite;
}

.spotlight-content-wrap {
  position: relative;
  z-index: 1;
}

.spotlight-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  margin-bottom: 8px;
}

.spotlight-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.spotlight-title a {
  color: var(--text-primary, #ffffff);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.spotlight-title a:hover {
  color: var(--primary, #00ff88);
}

.spotlight-desc {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3 Metrics Cards */
.spotlight-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spotlight-metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
}

.metric-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-icon-box.gold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.metric-icon-box.emerald {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

.metric-icon-box.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.metric-info-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.metric-sub-label {
  font-size: 0.72rem;
  color: var(--text-tertiary, #64748b);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.metric-main-value {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-gold {
  color: #fbbf24 !important;
}

.text-cyan {
  color: #06b6d4 !important;
}

/* Spotlight Actions */
.spotlight-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-spotlight-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--primary, #00c26f), #059669);
  color: #061e14 !important;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 194, 111, 0.35);
}

.btn-spotlight-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 194, 111, 0.5);
  color: #061e14 !important;
}

.btn-spotlight-outline {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  color: var(--text-primary, #ffffff) !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-spotlight-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  transform: translateX(2px);
}

/* 4. Section Grid & Event Modern Card */
.events-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

.event-modern-card {
  background: var(--bg-surface-elevated, #161f26);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.event-modern-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.event-card-banner-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.event-card-banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-modern-card:hover .event-card-img {
  transform: scale(1.04);
}

.event-card-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.event-card-timer-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(10, 15, 25, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.event-card-timer-badge.upcoming {
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.4);
}

.event-card-timer-badge.submitting {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.4);
}

.event-card-timer-badge.voting {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
}

.event-card-timer-badge.ended {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.event-card-body-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-title a {
  color: var(--text-primary, #ffffff);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.event-card-title a:hover {
  color: var(--primary, #00ff88);
}

.event-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Khối Giải Thưởng Rõ Ràng & Đơn Giản */
.event-card-prize-highlight {
  display: flex;
  align-items: center;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fbbf24;
}

.event-card-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-tertiary, #64748b);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.event-card-footer-action {
  margin-top: auto;
}

.btn-event-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-event-card-cta:hover {
  background: var(--primary, #00c26f);
  color: #061e14 !important;
  border-color: var(--primary, #00c26f);
  box-shadow: 0 4px 12px rgba(0, 194, 111, 0.3);
}

/* 5. Light Theme Adjustments */
html[data-theme="light"] .events-spotlight-hero {
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.08) 0%, #ffffff 100%);
  border-color: rgba(0, 194, 111, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .spotlight-metric-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .event-modern-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn-event-card-cta {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a !important;
}

html[data-theme="light"] .events-filter-nav {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Detail Page Full-Width Enhancements */
.events-detail-page .contest-detail-hero-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, var(--bg-surface-elevated, #141c22) 100%);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

/* 2. Top Showcase Banner Stage (100% Uncropped with Ambient Backlight) */
.contest-detail-banner-stage {
  position: relative;
  width: 100%;
  height: 380px;
  max-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09130e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ambient Blurred Background (Tạo quầng sáng hòa trộn với ảnh) */
.contest-stage-bg-blur {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(40px) brightness(0.4);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

/* 100% Uncropped Foreground Banner (Ảnh nét, giữ nguyên tỷ lệ, viền kính) */
.contest-stage-fg-img {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contest-stage-fg-img:hover {
  transform: scale(1.015);
}

/* Floating Status Badge (Góc trên bên trái của Banner) */
.contest-stage-badge-float {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 3;
}

/* Floating Stats Chips (Góc dưới bên phải của Banner) */
.contest-stage-stats-float {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(10, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* 3. Hero Body - 2 Cột Cân Đối (Main Content 62% + Countdown/Timeline 38%) */
.contest-detail-hero-body {
  padding: 32px 36px 36px;
}

.contest-hero-body-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

.contest-hero-col-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contest-hero-col-side {
  min-width: 0;
}

/* Tiêu đề & Mô tả trong cột chính */
.events-detail-page .contest-detail-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary, #ffffff);
  margin-top: 0;
  margin-bottom: 12px;
}

.events-detail-page .contest-detail-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 20px;
}

/* Grand Prize Card Styling */
.events-detail-page .contest-grand-prize-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.04) 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.events-detail-page .contest-grand-prize-icon {
  font-size: 1.6rem;
  color: #fbbf24;
  margin-top: 2px;
  flex-shrink: 0;
}

.events-detail-page .contest-grand-prize-text {
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff);
  line-height: 1.6;
  flex-grow: 1;
}

.events-detail-page .contest-grand-prize-text strong {
  color: #fbbf24;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.events-detail-page .contest-grand-prize-text p {
  margin-bottom: 6px;
}

.events-detail-page .contest-grand-prize-text p:last-child {
  margin-bottom: 0;
}

/* Hero Action Buttons */
.events-detail-page .contest-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

/* Tab Switching Smooth Transition */
.contest-tab-pane {
  animation: fadeInPane 0.2s ease-in-out;
}

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

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

/* Light Theme Adjustments */
html[data-theme="light"] .events-detail-page .contest-detail-hero-card {
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.06) 0%, #ffffff 100%);
  border-color: rgba(0, 194, 111, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .contest-detail-banner-stage {
  background: #f1f5f9;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .quick-stat-chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .events-detail-page .contest-detail-h1 {
  color: #0f172a;
}

html[data-theme="light"] .events-detail-page .contest-detail-lead {
  color: #475569;
}

html[data-theme="light"] .events-detail-page .contest-grand-prize-box {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

html[data-theme="light"] .events-detail-page .contest-grand-prize-text {
  color: #1e293b;
}

/* Responsive Media Queries cho Mobile & Tablet */
@media (max-width: 991.98px) {
  .contest-detail-banner-stage {
    height: 280px;
  }

  .contest-detail-hero-body {
    padding: 24px 20px;
  }

  .contest-hero-body-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .events-detail-page .contest-detail-h1 {
    font-size: 1.5rem;
  }

  .contest-stage-badge-float {
    top: 14px;
    left: 14px;
  }

  .contest-stage-stats-float {
    bottom: 14px;
    right: 14px;
  }
}

@media (max-width: 575.98px) {
  .contest-detail-banner-stage {
    height: 220px;
    border-radius: 16px 16px 0 0;
  }

  .contest-stage-fg-img {
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    border-radius: 10px;
  }

  .contest-detail-hero-body {
    padding: 20px 16px;
  }

  .events-detail-page .contest-detail-h1 {
    font-size: 1.35rem;
  }

  .contest-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contest-hero-actions .btn-contest-action,
  .contest-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 6. Responsive Breakpoints */
@media (max-width: 991.98px) {
  .spotlight-metrics-row {
    grid-template-columns: 1fr;
  }

  .events-spotlight-hero {
    padding: 20px;
  }
}

@media (max-width: 767.98px) {
  .events-title-main {
    font-size: 1.6rem;
  }

  .spotlight-title {
    font-size: 1.35rem;
  }

  .events-filter-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .event-filter-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* =============================================================================
   TIN TỨC & CẨM NANG - FULL WIDTH & PREMIUM PAGINATION (/news)
   ============================================================================= */

/* 1. Full-Width Container (Đồng bộ chuẩn 100% lề Trang Chủ, không padding kép) */
.news-portal-page,
.news-detail-page {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Header & Stats */
.news-page-header {
  margin-bottom: 28px;
}

.news-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.news-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--primary, #00ff88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-title-main {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.25;
}

.news-desc-sub {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 0;
  max-width: 680px;
}

.news-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

/* 3. Phân Trang Cao Cấp (Studio Premium Pagination) */
.news-pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-pagination-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface-elevated, #161f26);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.news-page-numbers-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.news-page-btn:hover:not(.disabled):not(.active) {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.news-page-btn.active {
  background: linear-gradient(135deg, var(--primary, #00c26f), #059669);
  color: #061e14 !important;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.4);
  transform: scale(1.04);
}

.news-page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.news-page-nav-btn {
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.news-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  color: var(--text-tertiary, #64748b);
  font-weight: 700;
  letter-spacing: 0.1em;
  user-select: none;
}

.news-pagination-info-text {
  font-size: 0.8rem;
  color: var(--text-tertiary, #64748b);
  letter-spacing: 0.02em;
}

/* 4. Light Theme Overrides */
html[data-theme="light"] .news-header-inner {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .news-title-main {
  color: #0f172a;
}

html[data-theme="light"] .news-stat-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

html[data-theme="light"] .news-pagination-inner {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .news-page-btn {
  color: #64748b;
}

html[data-theme="light"] .news-page-btn:hover:not(.disabled):not(.active) {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

html[data-theme="light"] .news-page-btn.active {
  background: linear-gradient(135deg, #00c26f, #059669);
  color: #ffffff !important;
}

html[data-theme="light"] .news-page-nav-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* 5. Bộ Lọc Chuyên Mục Tin Tức (News Category Pills) */
.news-category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.news-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.news-pill-btn:hover {
  color: #ffffff;
  background: rgba(0, 229, 153, 0.12);
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateY(-1px);
}

.news-pill-btn.active {
  color: #0d2117;
  background: var(--primary, #00e599);
  border-color: var(--primary, #00e599);
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.3);
  font-weight: 700;
}

html[data-theme="light"] .news-pill-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

html[data-theme="light"] .news-pill-btn:hover {
  color: #00874e;
  background: #e6f9f0;
  border-color: #a3e6cb;
}

html[data-theme="light"] .news-pill-btn.active {
  color: #ffffff;
  background: #00874e;
  border-color: #00874e;
  box-shadow: 0 4px 14px rgba(0, 135, 78, 0.25);
}

/* 6. Responsive Breakpoints for News */
@media (max-width: 767.98px) {
  .news-title-main {
    font-size: 1.5rem;
  }

  .news-pagination-inner {
    padding: 6px 8px;
    gap: 4px;
  }

  .news-page-btn {
    min-width: 34px;
    height: 34px;
    font-size: 0.8rem;
    padding: 0 8px;
  }

  .news-page-nav-btn {
    padding: 0 10px;
  }
}

/* =============================================================================
   NGHE GẦN ĐÂY - LỊCH SỬ NGHE NHẠC (/history, /nghe-gan-day)
   ============================================================================= */

/* 1. Full-Width Container (Đồng bộ chuẩn 100% lề Trang Chủ, Quy chuẩn 5) */
.history-page-flow {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Header & Actions */
.history-page-header {
  margin-bottom: 24px;
  background: #0e1e17;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.history-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.history-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 194, 111, 0.12);
  border: 1px solid rgba(0, 194, 111, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary, #00c26f);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-title-main {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.history-desc-sub {
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
}

.history-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.history-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
}

.btn-history-play-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c26f, #059669);
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.35);
  transition: all 0.2s ease;
}

.btn-history-play-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 194, 111, 0.45);
  filter: brightness(1.08);
}

.btn-history-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #94a3b8);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-history-clear:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* 3. Guest Sync Banner */
.history-guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(0, 194, 111, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.guest-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 194, 111, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #00c26f);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.btn-guest-login {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--primary, #00c26f);
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-guest-login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Responsive Mobile Adjustments for Guest Sync Banners across History, Liked Songs, and My Playlists */
@media (max-width: 767.98px) {

  .history-guest-banner,
  .liked-guest-banner,
  .playlist-guest-banner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 16px !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .guest-banner-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto !important;
  }

  .guest-banner-text {
    width: 100% !important;
    text-align: center !important;
  }

  .guest-banner-text h5 {
    font-size: 1.05rem !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }

  .guest-banner-text p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }

  .btn-guest-login {
    width: 100% !important;
    max-width: 260px !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    margin: 4px auto 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* 4. History Item Row */
.history-songs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0a1711;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.06);
}

.history-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(6, 14, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.history-item-row:hover {
  background: rgba(0, 229, 153, 0.09);
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateX(2px);
}

.history-item-row.is-active,
.history-item-row.is-playing {
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.18);
}

.history-col-index {
  width: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  flex-shrink: 0;
}

.history-col-cover {
  flex-shrink: 0;
}

.history-cover-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
}

.history-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.history-item-row:hover .history-cover-img {
  transform: scale(1.05);
}

.history-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.history-item-row:hover .history-cover-overlay {
  opacity: 1;
}

.history-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, #00c26f);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Soundwaves on Cover */
.history-cover-wrap .global-avatar-wave-bars {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 2;
}

.history-item-row.is-playing .history-cover-wrap .global-avatar-wave-bars {
  display: flex;
}

.history-song-title-wrap {
  line-height: 1.35;
  margin-bottom: 2px;
}

.history-song-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.history-song-title:hover {
  color: var(--primary, #00c26f);
}

.history-song-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.history-artist-link {
  color: var(--primary, #00c26f) !important;
  text-decoration: none;
  font-weight: 500;
}

.history-artist-link:hover {
  text-decoration: underline !important;
}

.history-time-stat {
  color: var(--text-muted, #94a3b8);
}

.history-genre-tag {
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.history-col-like {
  flex-shrink: 0;
}

.history-col-actions {
  flex-shrink: 0;
}

.btn-history-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.18s ease;
}

.history-item-row:hover .btn-history-item-remove {
  opacity: 1;
}

.btn-history-item-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* 5. Empty State */
.history-empty-state {
  padding: 70px 20px;
}

.history-empty-state .empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 194, 111, 0.1);
  border: 1px solid rgba(0, 194, 111, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary, #00c26f);
  box-shadow: 0 0 30px rgba(0, 194, 111, 0.15);
}

.history-empty-state .empty-state-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-history-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c26f, #059669);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 194, 111, 0.35);
  transition: all 0.2s ease;
}

.btn-history-explore:hover {
  color: #ffffff;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 194, 111, 0.45);
}

/* 6. Light Theme Overrides */
html[data-theme="light"] .history-page-header {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .history-header-inner {
  border-bottom: none;
}

html[data-theme="light"] .history-title-main {
  color: #0f172a;
}

html[data-theme="light"] .history-desc-sub {
  color: #64748b;
}

html[data-theme="light"] .history-stat-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .btn-history-clear {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

html[data-theme="light"] .history-guest-banner {
  background: linear-gradient(135deg, rgba(0, 194, 111, 0.08) 0%, #ffffff 100%);
  border-color: rgba(0, 194, 111, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .history-guest-banner h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .history-guest-banner p {
  color: #64748b !important;
}

html[data-theme="light"] .liked-guest-banner,
[data-theme="light"] .liked-guest-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, #ffffff 100%) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .liked-guest-banner h5,
[data-theme="light"] .liked-guest-banner h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .liked-guest-banner p,
[data-theme="light"] .liked-guest-banner p {
  color: #64748b !important;
}

html[data-theme="light"] .playlist-guest-banner,
[data-theme="light"] .playlist-guest-banner {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, #ffffff 100%) !important;
  border-color: rgba(5, 150, 105, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .playlist-guest-banner h5,
[data-theme="light"] .playlist-guest-banner h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .playlist-guest-banner p,
[data-theme="light"] .playlist-guest-banner p {
  color: #64748b !important;
}

html[data-theme="light"] .history-songs-wrapper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .history-item-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .history-item-row:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(2px);
}

html[data-theme="light"] .history-item-row.is-active,
html[data-theme="light"] .history-item-row.is-playing {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.14);
}

html[data-theme="light"] .history-song-title {
  color: #0f172a;
}

html[data-theme="light"] .history-empty-state .empty-state-title {
  color: #0f172a;
}

html[data-theme="light"] .history-empty-state .empty-state-desc {
  color: #64748b !important;
}

/* 7. Responsive Breakpoints */
@media (max-width: 767.98px) {
  .history-title-main {
    font-size: 1.55rem;
  }

  .history-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .history-item-row {
    padding: 8px 8px;
    gap: 10px;
  }

  .history-col-index {
    display: none;
  }

  .history-cover-wrap {
    width: 44px;
    height: 44px;
  }

  .btn-history-play-all,
  .btn-history-clear {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
}

/* =============================================================================
   BÀI HÁT YÊU THÍCH (/liked-songs, /bai-hat-yeu-thich)
   ============================================================================= */

/* 1. Full-Width Container (Đồng bộ chuẩn 100% lề Trang Chủ, Quy chuẩn 5) */
.liked-songs-page-flow {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Header & Actions */
.liked-page-header {
  margin-bottom: 24px;
  background: #0e1e17;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.liked-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.liked-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.liked-title-main {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.liked-desc-sub {
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
}

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

.liked-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
}

.btn-liked-play-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c26f, #059669);
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.35);
  transition: all 0.2s ease;
}

.btn-liked-play-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 194, 111, 0.45);
  filter: brightness(1.08);
}

/* 3. Guest Sync Banner */
.liked-guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 4. Search Bar */
.liked-toolbar-card {
  max-width: 680px;
  background: #0e1e17;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.liked-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 18px;
  background: #060d09;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.liked-search-input-wrap:focus-within {
  background: #08110c;
  border-color: var(--primary, #00c26f);
  box-shadow: 0 0 0 3px rgba(0, 194, 111, 0.2);
}

.liked-search-icon {
  color: var(--primary, #00c26f);
  font-size: 0.95rem;
  margin-right: 12px;
}

.liked-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
}

.liked-search-input::placeholder {
  color: var(--text-muted, #94a3b8);
}

.liked-search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted, #94a3b8);
  margin-right: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.liked-search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.liked-search-submit-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--primary, #00c26f);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.liked-search-submit-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.liked-search-feedback-bar {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

/* 5. Liked Item Row */
.liked-songs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0a1711;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.06);
}

.liked-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(6, 14, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.liked-item-row:hover {
  background: rgba(0, 229, 153, 0.09);
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateX(2px);
}

.liked-item-row.is-active,
.liked-item-row.is-playing {
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.18);
}

.liked-col-index {
  width: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  flex-shrink: 0;
}

.liked-col-cover {
  flex-shrink: 0;
}

.liked-cover-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
}

.liked-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.liked-item-row:hover .liked-cover-img {
  transform: scale(1.05);
}

.liked-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.liked-item-row:hover .liked-cover-overlay {
  opacity: 1;
}

.liked-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, #00c26f);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Soundwaves on Cover */
.liked-cover-wrap .global-avatar-wave-bars {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 2;
}

.liked-item-row.is-playing .liked-cover-wrap .global-avatar-wave-bars {
  display: flex;
}

.liked-song-title-wrap {
  line-height: 1.35;
  margin-bottom: 2px;
}

.liked-song-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.liked-song-title:hover {
  color: var(--primary, #00c26f);
}

.liked-song-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.liked-artist-link {
  color: var(--primary, #00c26f) !important;
  text-decoration: none;
  font-weight: 500;
}

.liked-artist-link:hover {
  text-decoration: underline !important;
}

.liked-time-stat {
  color: var(--text-muted, #94a3b8);
}

.liked-genre-tag {
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.liked-col-like {
  flex-shrink: 0;
}

.liked-col-actions {
  flex-shrink: 0;
}

/* 6. Empty State */
.liked-empty-state {
  padding: 70px 20px;
}

.liked-empty-state .empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.liked-empty-state .empty-state-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-liked-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c26f, #059669);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 194, 111, 0.35);
  transition: all 0.2s ease;
}

.btn-liked-explore:hover {
  color: #ffffff;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 194, 111, 0.45);
}

/* 7. Pagination */
.liked-pagination-nav {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.liked-pagination-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.liked-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.liked-page-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.liked-page-btn.active {
  background: linear-gradient(135deg, #00c26f, #059669);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 194, 111, 0.35);
}

.liked-page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.liked-page-nav-btn:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.liked-page-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.liked-page-dots {
  color: var(--text-muted, #94a3b8);
  padding: 0 4px;
}

/* 8. Light Theme Overrides */
html[data-theme="light"] .liked-page-header {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .liked-header-inner {
  border-bottom: none;
}

html[data-theme="light"] .liked-title-main {
  color: #0f172a;
}

html[data-theme="light"] .liked-desc-sub {
  color: #64748b;
}

html[data-theme="light"] .liked-stat-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .liked-toolbar-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .liked-search-input-wrap {
  background: #f8fafc;
  border-color: #cbd5e1;
}

html[data-theme="light"] .liked-search-input {
  color: #0f172a;
}

html[data-theme="light"] .liked-search-feedback-bar {
  background: #f1f5f9;
}

html[data-theme="light"] .liked-search-feedback-bar .text-white {
  color: #0f172a !important;
}

html[data-theme="light"] .liked-songs-wrapper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .liked-item-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .liked-item-row:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(2px);
}

html[data-theme="light"] .liked-item-row.is-active,
html[data-theme="light"] .liked-item-row.is-playing {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.14);
}

html[data-theme="light"] .liked-song-title {
  color: #0f172a;
}

html[data-theme="light"] .liked-empty-state .empty-state-title {
  color: #0f172a;
}

html[data-theme="light"] .liked-empty-state .empty-state-desc {
  color: #64748b !important;
}

html[data-theme="light"] .liked-pagination-nav {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .liked-page-btn,
html[data-theme="light"] .liked-page-nav-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

html[data-theme="light"] .liked-page-btn:hover,
html[data-theme="light"] .liked-page-nav-btn:hover:not(.disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .liked-page-btn.active {
  background: linear-gradient(135deg, #00c26f, #059669);
  color: #ffffff;
}

/* 9. Responsive Breakpoints */
@media (max-width: 767.98px) {
  .liked-title-main {
    font-size: 1.55rem;
  }

  .liked-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .liked-item-row {
    padding: 8px 8px;
    gap: 10px;
  }

  .liked-col-index {
    display: none;
  }

  .liked-cover-wrap {
    width: 44px;
    height: 44px;
  }

  .btn-liked-play-all {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .liked-toolbar-card {
    max-width: 100%;
  }
}

/* =============================================================================
   10. CHUẨN GIAO DIỆN PLAYLIST HUB & CHI TIẾT PLAYLIST YOUTUBE MUSIC
   Áp dụng cho: /my-playlists (.playlists-page-flow) và /playlist/{slug} (.playlist-detail-page-flow)
   Tuân thủ nghiêm ngặt Quy chuẩn GEMINI.md:
   - Full-Width, Single Source of Padding (#pjaxContainer)
   - Dark Emerald Luxury Studio Theme & Light Mode Adaptations
   - Không chứa nút Tạo playlist trên hub (thao tác chuẩn qua modal menu 3 chấm)
   ============================================================================= */

/* --- 10.1. PLAYLIST HUB PAGE (.playlists-page-flow) --- */
.playlists-page-flow {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.playlists-page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.playlists-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.playlist-badge-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 153, 0.12) !important;
  color: #00e599 !important;
  border: 1px solid rgba(0, 229, 153, 0.28) !important;
  text-transform: uppercase;
}

html[data-theme="light"] .playlist-badge-chip,
[data-theme="light"] .playlist-badge-chip {
  background: rgba(5, 150, 105, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  font-weight: 700 !important;
}

.playlists-title-main {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.playlists-desc-sub {
  color: #94a3b8;
  font-size: 0.95rem;
}

.playlist-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Guest Banner */
.playlist-guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.guest-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.btn-guest-login {
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.3);
}

.btn-guest-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 255, 136, 0.45);
}

/* Toolbar Card: Tabs + Search + Sort */
.playlist-toolbar-card {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.playlist-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.playlist-filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.playlist-filter-pill.active {
  color: #021a10;
  background: #00ff88;
  border-color: #00ff88;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

.playlist-search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  transition: all 0.25s ease;
  width: 100%;
}

.playlist-search-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: #00ff88;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
}

.playlist-search-icon {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.playlist-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 6px 0;
  width: auto;
}

.playlist-search-input::placeholder {
  color: #94a3b8;
}

.playlist-search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #94a3b8;
  margin-right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.playlist-search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.playlist-search-submit-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.playlist-search-submit-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.4);
}

/* Sắp xếp với SVG Chevron hiện đại, loại bỏ hoàn toàn nút hộp vuông mặc định Windows */
.playlist-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.playlist-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 36px 8px 16px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.playlist-sort-select::-ms-expand {
  display: none;
}

.playlist-sort-select:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
  color: #ffffff;
}

.playlist-sort-select:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.18);
}

.playlist-sort-select option {
  background: #0f172a;
  color: #fff;
}

/* --- LƯỚI CARD PLAYLIST YOUTUBE STACKED STYLE --- */
.playlist-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1200px) {
  .playlist-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .playlist-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

.playlist-card-item {
  position: relative;
  background: #0e1e17;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.playlist-card-item:hover {
  transform: translateY(-4px);
  background: #14281f;
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 153, 0.18);
}

/* Thao tác chồng tầng (Stacked Playlist Effect YouTube) */
.playlist-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.playlist-stack-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.playlist-card-item:hover .playlist-cover-img {
  transform: scale(1.05);
}

.playlist-badge-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  z-index: 2;
}

.playlist-privacy-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.badge-public {
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
}

.badge-private {
  background: rgba(100, 116, 139, 0.85);
  color: #ffffff;
}

.playlist-privacy-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}

.playlist-privacy-tag.is-public {
  background: rgba(0, 255, 136, 0.12);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.playlist-privacy-tag.is-private {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

html[data-theme="light"] .playlist-privacy-tag.is-public {
  background: rgba(0, 194, 111, 0.12);
  color: #00874e;
  border-color: rgba(0, 194, 111, 0.3);
}

html[data-theme="light"] .playlist-privacy-tag.is-private {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}

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

.playlist-card-item:hover .playlist-overlay-play {
  opacity: 1;
}

.btn-play-playlist-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.playlist-card-item:hover .btn-play-playlist-circle {
  transform: scale(1);
}

.playlist-card-body {
  padding-top: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.playlist-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.playlist-card-title:hover {
  color: #00ff88;
}

.playlist-creator-link {
  font-size: 0.82rem;
  color: #00ff88;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 180px;
}

.playlist-creator-link:hover {
  text-decoration: underline;
}

.playlist-card-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

/* Card 3-dots actions dropdown */
.btn-playlist-dots {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
}

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

.playlist-dots-menu {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  min-width: 170px;
}

.playlist-dots-menu .dropdown-item {
  color: #e2e8f0;
  font-size: 0.83rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.playlist-dots-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.playlist-dots-menu .dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444 !important;
}

/* --- 10.2. PLAYLIST DETAIL PAGE (.playlist-detail-page-flow) --- */
.playlist-detail-page-flow {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.playlist-detail-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Sticky Sidebar Hero */
.playlist-hero-sidebar {
  width: 340px;
  min-width: 320px;
  flex-shrink: 0;
}

.playlist-hero-sticky-card {
  position: sticky;
  top: 86px;
  padding: 24px;
  border-radius: 20px;
  background: #0f2219;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.playlist-hero-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.15);
}

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

.playlist-hero-cover-wrap:hover .playlist-hero-cover-img {
  transform: scale(1.04);
}

.playlist-hero-play-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.45);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.playlist-hero-cover-wrap:hover .playlist-hero-play-btn {
  opacity: 1;
  transform: scale(1);
}

.playlist-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 18px;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.playlist-creator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.playlist-creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.playlist-creator-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.playlist-hero-stats-line {
  font-size: 0.83rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.playlist-stat-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.playlist-hero-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Cụm Action Buttons */
.playlist-hero-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-playlist-play-all {
  width: 100%;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-playlist-play-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.5);
}

.btn-playlist-shuffle {
  width: 100%;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-playlist-shuffle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.playlist-sub-actions-row {
  display: flex;
  gap: 8px;
}

.btn-sub-action {
  flex: 1;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-sub-action-danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-sub-action-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Right Panel: Songs Table */
.playlist-songs-panel {
  flex: 1;
  min-width: 0;
  background: #0a1711;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.06);
}

.playlist-panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.badge-count-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.playlist-table-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.th-stt {
  width: 36px;
}

.th-cover {
  width: 52px;
}

.th-views {
  width: 90px;
}

.th-duration {
  width: 70px;
}

.th-actions {
  width: 90px;
}

/* Dòng bài hát chi tiết */
.playlist-song-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: rgba(6, 14, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-song-row:hover {
  background: rgba(0, 229, 153, 0.09);
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateX(2px);
}

.playlist-song-row.active {
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.18);
}

.col-stt {
  width: 36px;
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
}

.stt-play-icon {
  display: none;
  color: #00ff88;
}

.playlist-song-row:hover .stt-number {
  display: none;
}

.playlist-song-row:hover .stt-play-icon {
  display: inline-block;
}

.col-cover {
  width: 52px;
}

.playlist-row-cover-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #1e293b;
}

.playlist-row-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-info {
  min-width: 0;
  padding-right: 14px;
}

.playlist-song-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.playlist-song-title:hover {
  color: #00ff88;
}

.playlist-song-subline {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.playlist-artist-link {
  color: #00ff88;
  text-decoration: none;
}

.playlist-artist-link:hover {
  text-decoration: underline;
}

.playlist-genre-tag {
  color: #94a3b8;
}

.col-views {
  width: 90px;
}

.col-duration {
  width: 70px;
}

.col-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-remove-song-from-playlist {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-song-from-playlist:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Breadcrumb Studio */
.studio-breadcrumb-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.82rem;
  color: var(--text-tertiary, #64748b);
  max-width: 100%;
}

.breadcrumb-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary, #94a3b8);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.breadcrumb-item-link:hover {
  color: var(--primary, #00ff88);
}

.breadcrumb-separator {
  color: var(--text-tertiary, #475569);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-current-text {
  color: var(--text-primary, #e2e8f0);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

@media (max-width: 767.98px) {
  .studio-breadcrumb-box {
    font-size: 0.78rem;
    gap: 4px 6px;
  }

  .breadcrumb-current-text {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .breadcrumb-current-text {
    max-width: 130px;
  }
}

/* Empty State Hub Playlist (.playlist-empty-state) */
.playlist-empty-state {
  padding: 70px 20px;
}

.playlist-empty-state .empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #00ff88;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.18);
  margin-bottom: 20px;
}

.playlist-empty-state .empty-state-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.playlist-empty-state .empty-state-desc {
  color: #94a3b8 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

.btn-playlist-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10 !important;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
  transition: all 0.2s ease;
}

.btn-playlist-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.5);
  color: #021a10 !important;
}

/* Empty State Detail Playlist (.playlist-empty-panel) */
.playlist-empty-panel {
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 48px 24px;
}

.empty-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #64748b;
}

/* --- 10.3. STUDIO PLAYLIST MODAL (CHUẨN YOUTUBE LƯU BÀI HÁT TỪ MENU 3 CHẤM) --- */
.studio-playlist-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.studio-playlist-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.studio-playlist-dialog {
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 136, 0.1);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-playlist-modal-backdrop.active .studio-playlist-dialog {
  transform: scale(1);
}

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

.studio-playlist-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.studio-modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.studio-modal-close-btn:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.studio-playlist-modal-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px 16px;
}

.studio-playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.studio-playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.studio-playlist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00e599;
  cursor: pointer;
}

.studio-playlist-modal-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.5);
}

.studio-playlist-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 10px 0 0 10px;
  font-size: 0.88rem;
}

.studio-playlist-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: #00e599;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 229, 153, 0.2);
}

.btn-create-playlist-submit {
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  background: linear-gradient(135deg, #00ff88, #00b060);
  color: #021a10;
  border: none;
}

/* --- 10.4. LIGHT THEME ADAPTATIONS --- */
html[data-theme="light"] .playlists-title-main,
html[data-theme="light"] .playlist-hero-title,
html[data-theme="light"] .playlist-panel-title,
html[data-theme="light"] .studio-playlist-modal-title {
  color: #0f172a !important;
}

html[data-theme="light"] .playlists-desc-sub {
  color: #475569 !important;
}

html[data-theme="light"] .playlist-stat-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .playlist-stat-pill #playlistsTotalCount {
  color: #0f172a !important;
}

html[data-theme="light"] .playlists-desc-sub,
html[data-theme="light"] .playlist-hero-desc {
  color: #64748b;
}

html[data-theme="light"] .playlist-toolbar-card,
html[data-theme="light"] .playlist-card-item {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .playlist-card-item:hover {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.16);
}

html[data-theme="light"] .playlist-card-title,
html[data-theme="light"] .playlist-song-title {
  color: #0f172a;
}

html[data-theme="light"] .playlist-hero-sticky-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .playlist-songs-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .playlist-creator-name {
  color: #1e293b;
}

html[data-theme="light"] .btn-playlist-shuffle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .btn-playlist-shuffle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .btn-sub-action {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

html[data-theme="light"] .btn-sub-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

html[data-theme="light"] .playlist-table-header {
  border-bottom-color: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .playlist-song-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .playlist-song-row:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(2px);
}

html[data-theme="light"] .playlist-song-row.active {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.14);
}

html[data-theme="light"] .studio-breadcrumb-box {
  color: #94a3b8;
}

html[data-theme="light"] .breadcrumb-item-link {
  color: #64748b;
}

html[data-theme="light"] .breadcrumb-item-link:hover {
  color: #047857;
}

html[data-theme="light"] .breadcrumb-separator {
  color: #cbd5e1;
}

html[data-theme="light"] .breadcrumb-current-text {
  color: #0f172a;
}

html[data-theme="light"] .playlist-search-input-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
}

html[data-theme="light"] .playlist-search-input-wrap:focus-within {
  background: #ffffff;
  border-color: #00c26f;
  box-shadow: 0 0 16px rgba(0, 194, 111, 0.2);
}

html[data-theme="light"] .playlist-search-icon {
  color: #64748b;
}

html[data-theme="light"] .playlist-search-input {
  color: #0f172a;
}

html[data-theme="light"] .playlist-search-input::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .playlist-sort-select {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300c26f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .playlist-sort-select:hover {
  border-color: #00c26f;
  background-color: #f8fafc;
}

html[data-theme="light"] .playlist-empty-state .empty-state-icon {
  background: rgba(0, 194, 111, 0.1);
  border-color: rgba(0, 194, 111, 0.25);
  color: #00c26f;
  box-shadow: 0 0 20px rgba(0, 194, 111, 0.15);
}

html[data-theme="light"] .playlist-empty-state .empty-state-title {
  color: #0f172a;
}

html[data-theme="light"] .playlist-empty-state .empty-state-desc {
  color: #64748b !important;
}

html[data-theme="light"] .btn-playlist-explore {
  background: linear-gradient(135deg, #00c26f, #059669);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 194, 111, 0.35);
}

html[data-theme="light"] .btn-playlist-explore:hover {
  color: #ffffff !important;
}

html[data-theme="light"] .playlist-filter-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .playlist-filter-pill.active {
  background: #00c26f;
  color: #ffffff;
  border-color: #00c26f;
}

html[data-theme="light"] .studio-playlist-dialog {
  background: #ffffff;
  border-color: #cbd5e1;
}

html[data-theme="light"] .studio-playlist-modal-header {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .studio-playlist-modal-footer {
  border-top-color: #e2e8f0;
  background: #f8fafc;
}

html[data-theme="light"] .studio-playlist-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .studio-playlist-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .studio-playlist-item .fw-semibold {
  color: #0f172a !important;
}

/* --- 10.5. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 991.98px) {
  .playlist-detail-layout {
    flex-direction: column;
    gap: 24px;
  }

  .playlist-hero-sidebar {
    width: 100%;
    min-width: 100%;
  }

  .playlist-hero-sticky-card {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 22px;
    align-items: center;
  }

  .playlist-hero-cover-wrap {
    width: 200px;
    min-width: 200px;
  }

  .playlist-hero-meta-group {
    flex: 1;
    min-width: 0;
  }

  .playlist-hero-actions-bar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-playlist-play-all,
  .btn-playlist-shuffle {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 767.98px) {
  .playlists-title-main {
    font-size: 1.55rem;
  }

  .playlist-hero-sticky-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .playlist-creator-row {
    justify-content: center;
  }

  .playlist-hero-stats-line {
    justify-content: center;
  }

  .playlist-hero-cover-wrap {
    width: 220px;
    max-width: 100%;
  }

  .playlist-song-row {
    padding: 8px 6px;
    gap: 8px;
  }

  .col-stt {
    display: none;
  }

  .playlist-row-cover-wrap {
    width: 42px;
    height: 42px;
  }
}


/* ========================================================================== */
/* TINYMCE RICH TEXT RENDERED CONTENT TYPOGRAPHY & MEDIA                     */
/* ========================================================================== */

.tinymce-rendered-content {
  line-height: 1.75;
  font-size: 0.92rem;
  color: var(--text-body, #cbd5e1);
}

html[data-theme="light"] .tinymce-rendered-content {
  color: #334155 !important;
}

.tinymce-rendered-content p {
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.tinymce-rendered-content h1,
.tinymce-rendered-content h2,
.tinymce-rendered-content h3,
.tinymce-rendered-content h4,
.tinymce-rendered-content h5,
.tinymce-rendered-content h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary, #ffffff);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

html[data-theme="light"] .tinymce-rendered-content h1,
html[data-theme="light"] .tinymce-rendered-content h2,
html[data-theme="light"] .tinymce-rendered-content h3,
html[data-theme="light"] .tinymce-rendered-content h4,
html[data-theme="light"] .tinymce-rendered-content h5,
html[data-theme="light"] .tinymce-rendered-content h6 {
  color: #0f172a !important;
}

.tinymce-rendered-content ul,
.tinymce-rendered-content ol {
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.tinymce-rendered-content li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.tinymce-rendered-content a {
  color: var(--primary, #00e599);
  text-decoration: underline;
  font-weight: 600;
}

html[data-theme="light"] .tinymce-rendered-content a {
  color: #059669 !important;
}

.tinymce-rendered-content blockquote {
  border-left: 4px solid var(--primary, #00e599);
  padding: 10px 16px;
  background: rgba(0, 229, 153, 0.08);
  border-radius: 8px;
  margin: 1rem 0;
  color: var(--text-primary, #f8fafc);
  font-style: italic;
}

html[data-theme="light"] .tinymce-rendered-content blockquote {
  background: #f0fdf4 !important;
  color: #0f172a !important;
  border-left-color: #059669 !important;
}

.tinymce-rendered-content table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.tinymce-rendered-content th,
.tinymce-rendered-content td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

html[data-theme="light"] .tinymce-rendered-content table,
html[data-theme="light"] .tinymce-rendered-content th,
html[data-theme="light"] .tinymce-rendered-content td {
  border-color: #cbd5e1 !important;
}

.tinymce-rendered-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.75rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: block;
}

.tinymce-rendered-content iframe,
.tinymce-rendered-content video {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin: 0.85rem 0;
  border: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   USER NOTIFICATIONS MODULE STYLES
   ========================================================================== */
.notification-row-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.notification-row-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 229, 153, 0.4) !important;
}

html[data-theme="light"] .notification-row-card:hover {
  box-shadow: 0 4px 16px rgba(0, 194, 111, 0.12);
  border-color: rgba(0, 194, 111, 0.4) !important;
}

.notification-dropdown-footer a:hover {
  opacity: 0.85;
}



/* ==========================================================================
   AI MODEL SELECT & STUDIO DROPDOWN DARK THEME FIX
   ========================================================================== */
[data-theme="dark"] .select-control-studio,
[data-theme="dark"] select.input-control-studio {
  color-scheme: dark !important;
  color: #f1f5f9 !important;
  background-color: transparent !important;
}

[data-theme="dark"] .select-control-studio option,
[data-theme="dark"] select.input-control-studio option {
  background-color: #111a15 !important;
  color: #f1f5f9 !important;
  padding: 10px 14px !important;
}

/* Custom Select Dropdown Dark Theme Enhancements */
[data-theme="dark"] .custom-select-trigger {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .custom-select-selected-text {
  color: #f8fafc !important;
}

[data-theme="dark"] .custom-select-dropdown {
  background: #111a15 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .custom-select-item {
  color: #f8fafc !important;
}

[data-theme="dark"] .custom-select-item:hover {
  background: rgba(0, 229, 153, 0.12) !important;
}

[data-theme="dark"] .custom-select-item.is-selected {
  background: rgba(0, 229, 153, 0.18) !important;
  color: #00e599 !important;
}

[data-theme="dark"] .custom-select-item-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .custom-select-item.is-selected .custom-select-item-name {
  color: #00e599 !important;
}


/* ==========================================================================
   CONTEST DETAIL PAGE - HERO 2-COLUMN SPLIT & MODAL ENHANCEMENT
   ========================================================================== */
.contest-hero-header-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

html[data-theme="light"] .contest-hero-header-box,
[data-theme="light"] .contest-hero-header-box {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.contest-hero-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.contest-hero-cover-col {
  min-width: 0;
  display: flex;
}

.contest-cover-media-wrap {
  width: 100%;
  min-height: 290px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .contest-cover-media-wrap,
[data-theme="light"] .contest-cover-media-wrap {
  background: #f1f5f9;
  border-color: #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.contest-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.contest-cover-media-wrap:hover .contest-cover-img {
  transform: scale(1.02);
}

.contest-hero-timeline-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contest-hero-timeline-col .contest-countdown-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Contest Modals: Chuẩn hóa màu nền không bị trong suốt trên cả Light & Dark Theme */
.contest-modal-content {
  background-color: var(--bg-surface-elevated, #ffffff) !important;
  color: var(--text-main, #0f172a) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .contest-modal-content,
[data-theme="light"] .contest-modal-content {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="dark"] .contest-modal-content,
[data-theme="dark"] .contest-modal-content {
  background-color: #131b22 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.contest-modal-content .modal-header {
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

html[data-theme="light"] .contest-modal-content .modal-header,
[data-theme="light"] .contest-modal-content .modal-header {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .contest-modal-content .form-control,
html[data-theme="light"] .contest-modal-content .form-select,
[data-theme="light"] .contest-modal-content .form-control,
[data-theme="light"] .contest-modal-content .form-select {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .contest-modal-content .form-control,
html[data-theme="dark"] .contest-modal-content .form-select,
[data-theme="dark"] .contest-modal-content .form-control,
[data-theme="dark"] .contest-modal-content .form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.contest-modal-info-box {
  background: var(--bg-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

html[data-theme="light"] .contest-modal-info-box,
[data-theme="light"] .contest-modal-info-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="dark"] .contest-modal-info-box,
[data-theme="dark"] .contest-modal-info-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================================================
   2-STEP WIZARD MODAL: NỘP BÀI DỰ THI (Tối ưu không Stepper, Card chuẩn đẹp)
   ========================================================================= */
.modal-title-icon-badge {
  width: 38px;
  height: 38px;
  background: rgba(0, 194, 111, 0.12);
}
[data-theme="dark"] .modal-title-icon-badge {
  background: rgba(0, 229, 153, 0.15);
}

/* Search Box */
.contest-song-search-box .contest-song-search-icon {
  font-size: 0.88rem;
  color: var(--primary, #00c26f) !important;
}
.contest-song-search-input {
  font-size: 0.88rem;
  background-color: var(--input-bg, #ffffff) !important;
  border: 1px solid var(--border-color, #cbd5e1) !important;
  color: var(--text-main, #0f172a) !important;
  transition: all 0.2s ease;
}
.contest-song-search-input:focus {
  border-color: var(--primary, #00c26f) !important;
  box-shadow: 0 0 0 3px rgba(0, 194, 111, 0.18) !important;
}
[data-theme="dark"] .contest-song-search-input,
html[data-theme="dark"] .contest-song-search-input {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .contest-song-search-input:focus {
  border-color: #00e599 !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.22) !important;
}

/* Song Scrollable List */
.wizard-song-scroll-list {
  background: rgba(125, 125, 125, 0.03);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 8px;
  max-height: 330px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .wizard-song-scroll-list {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Song Card */
.wizard-song-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--card-bg, #ffffff);
  border: 1.5px solid var(--card-border, #e2e8f0);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.wizard-song-card:hover {
  border-color: var(--primary, #00c26f);
  background-color: rgba(0, 194, 111, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}
.wizard-song-card.active-selected {
  border-color: var(--primary, #00c26f) !important;
  background-color: rgba(0, 194, 111, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 194, 111, 0.16);
}
[data-theme="dark"] .wizard-song-card {
  background-color: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .wizard-song-card:hover {
  border-color: #00e599;
  background-color: rgba(0, 229, 153, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .wizard-song-card.active-selected {
  border-color: #00e599 !important;
  background-color: rgba(0, 229, 153, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.22);
}

/* Song Info Wrap (Left part of card) */
.wizard-song-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex-grow: 1;
  min-width: 0;
}

/* Song Thumbnail Box */
.wizard-song-thumb-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Quick Play Button */
.wizard-song-quick-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  cursor: pointer;
}
.wizard-song-card:hover .wizard-song-quick-play-btn,
.wizard-song-quick-play-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: var(--primary, #00c26f);
  color: #ffffff;
}
[data-theme="dark"] .wizard-song-card:hover .wizard-song-quick-play-btn,
[data-theme="dark"] .wizard-song-quick-play-btn:hover {
  background: #00e599;
  color: #042416;
}
.wizard-song-quick-play-btn.playing {
  opacity: 1 !important;
  background: var(--primary, #00c26f) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 194, 111, 0.35);
  animation: pulse-quick-play 1.8s infinite;
}
[data-theme="dark"] .wizard-song-quick-play-btn.playing {
  background: #00e599 !important;
  color: #042416 !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.35);
}

@keyframes pulse-quick-play {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 111, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 194, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 111, 0); }
}

/* Song Text Box */
.wizard-song-text-box {
  overflow: hidden;
  flex-grow: 1;
  min-width: 0;
}
.wizard-song-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}
.wizard-song-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.wizard-song-meta .wizard-meta-dot {
  opacity: 0.45;
}

/* Checkbox Selection Indicator */
.wizard-song-select-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  flex-shrink: 0;
}
.wizard-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-color, #cbd5e1);
  background-color: var(--input-bg, #ffffff);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.wizard-song-card:hover .wizard-radio-circle {
  border-color: var(--primary, #00c26f);
}
.wizard-radio-circle.selected {
  background-color: var(--primary, #00c26f) !important;
  border-color: var(--primary, #00c26f) !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 194, 111, 0.35);
}
[data-theme="dark"] .wizard-radio-circle {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .wizard-song-card:hover .wizard-radio-circle {
  border-color: #00e599;
}
[data-theme="dark"] .wizard-radio-circle.selected {
  background-color: #00e599 !important;
  border-color: #00e599 !important;
  color: #042416 !important;
  box-shadow: 0 2px 10px rgba(0, 229, 153, 0.35);
}

/* Step 2 Summary Card */
.wizard-selected-summary-card {
  background: rgba(0, 194, 111, 0.08);
  border: 1px solid rgba(0, 194, 111, 0.22);
  border-radius: 12px;
}
[data-theme="dark"] .wizard-selected-summary-card {
  background: rgba(0, 229, 153, 0.1);
  border-color: rgba(0, 229, 153, 0.25);
}

/* Scrollbar */
.wizard-song-scroll-list::-webkit-scrollbar {
  width: 6px;
}
.wizard-song-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 4px;
}
[data-theme="dark"] .wizard-song-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive Adjustments */
@media (max-width: 575.98px) {
  .contest-modal-content {
    border-radius: 20px !important;
  }
  .contest-modal-content .modal-header {
    padding: 14px 16px !important;
  }
  .contest-modal-content .modal-body {
    padding: 14px 14px !important;
  }
  .contest-modal-content .modal-footer {
    padding: 12px 16px !important;
  }
  .wizard-song-scroll-list {
    padding: 6px !important;
    gap: 6px !important;
    max-height: 280px !important;
    border-radius: 12px !important;
  }
  .wizard-song-card {
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }
  .wizard-song-info-wrap {
    gap: 10px !important;
  }
  .wizard-song-thumb-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
  }
  .wizard-song-title {
    font-size: 0.86rem !important;
    margin-bottom: 2px !important;
  }
  .wizard-song-meta {
    font-size: 0.72rem !important;
    gap: 6px !important;
  }
  .wizard-radio-circle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
    font-size: 0.68rem !important;
  }
  .wizard-song-select-indicator {
    margin-left: 8px !important;
  }
}

/* ==========================================================================
   CONTEST DETAIL - GRAND PRIZE SINGLE BLOCK (Gom thành 1 khối không chia cột icon)
   ========================================================================== */
.events-detail-page .contest-grand-prize-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.04) 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.28) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  display: block !important;
  margin-bottom: 24px !important;
}

.events-detail-page .contest-grand-prize-header {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fbbf24;
}

.events-detail-page .contest-grand-prize-header .contest-grand-prize-icon {
  font-size: 1.25rem;
  color: #fbbf24;
  flex-shrink: 0;
  margin: 0;
}

.events-detail-page .contest-grand-prize-text {
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff);
  line-height: 1.6;
  width: 100%;
}

/* ==========================================================================
   PREMIUM REDESIGN: LIVE COUNTDOWN TICKER & ROADMAP TIMELINE WIDGET
   ========================================================================== */
.contest-countdown-wrap {
  background: linear-gradient(155deg, rgba(14, 26, 20, 0.95) 0%, rgba(8, 15, 11, 0.97) 60%, rgba(5, 10, 8, 0.99) 100%) !important;
  border: 1px solid rgba(0, 229, 153, 0.22) !important;
  border-radius: 20px !important;
  padding: 24px 26px !important;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.contest-countdown-wrap::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .contest-countdown-wrap,
[data-theme="light"] .contest-countdown-wrap {
  background: linear-gradient(155deg, #ffffff 0%, #f0fdf4 55%, #e8f9ee 100%) !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: 0 12px 32px -4px rgba(5, 150, 105, 0.09), 0 2px 8px rgba(0, 0, 0, 0.02), inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .contest-countdown-wrap::before,
[data-theme="light"] .contest-countdown-wrap::before {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%);
}

/* Header Bar */
.countdown-header-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  position: relative !important;
  z-index: 1 !important;
  flex-wrap: wrap !important;
}

.countdown-title-text {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.countdown-title-text.submitting,
.countdown-title-text {
  background: rgba(0, 229, 153, 0.14) !important;
  color: #00e599 !important;
  border: 1px solid rgba(0, 229, 153, 0.35) !important;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.18) !important;
}

html[data-theme="light"] .countdown-title-text.submitting,
html[data-theme="light"] .countdown-title-text,
[data-theme="light"] .countdown-title-text.submitting,
[data-theme="light"] .countdown-title-text {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #86efac !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12) !important;
}

.countdown-title-text.voting {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2) !important;
}

html[data-theme="light"] .countdown-title-text.voting,
[data-theme="light"] .countdown-title-text.voting {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.countdown-title-text.upcoming {
  background: rgba(192, 132, 252, 0.14) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(192, 132, 252, 0.4) !important;
}

html[data-theme="light"] .countdown-title-text.upcoming,
[data-theme="light"] .countdown-title-text.upcoming {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}

.countdown-title-text.ended {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.countdown-subtitle-text {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="light"] .countdown-subtitle-text,
[data-theme="light"] .countdown-subtitle-text {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

/* 4-digit Realtime Grid */
.countdown-digits-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.countdown-digit-cell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 16px 8px 14px !important;
  text-align: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s ease !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.countdown-digit-cell:hover {
  border-color: rgba(0, 229, 153, 0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(0, 229, 153, 0.15) !important;
}

html[data-theme="light"] .countdown-digit-cell,
[data-theme="light"] .countdown-digit-cell {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .countdown-digit-cell:hover,
[data-theme="light"] .countdown-digit-cell:hover {
  border-color: #059669 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.12) !important;
}

.countdown-digit-num {
  font-size: 2.15rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  color: #00e599 !important;
  display: block !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 0 16px rgba(0, 229, 153, 0.35) !important;
}

html[data-theme="light"] .countdown-digit-num,
[data-theme="light"] .countdown-digit-num {
  color: #059669 !important;
  text-shadow: none !important;
}

.countdown-digit-unit {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: rgba(255, 255, 255, 0.55) !important;
  display: block !important;
  margin-top: 6px !important;
}

html[data-theme="light"] .countdown-digit-unit,
[data-theme="light"] .countdown-digit-unit {
  color: #64748b !important;
}

/* Roadmap Stepper Timeline Bar */
.contest-countdown-wrap .contest-timeline-bar {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 0 !important;
  padding: 14px 16px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .contest-countdown-wrap .contest-timeline-bar,
[data-theme="light"] .contest-countdown-wrap .contest-timeline-bar {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.contest-countdown-wrap .timeline-step-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
  width: 100% !important;
  position: relative !important;
}

.contest-countdown-wrap .timeline-step-indicator {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
  text-align: center !important;
}

.contest-countdown-wrap .timeline-step-dot {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s ease !important;
}

html[data-theme="light"] .contest-countdown-wrap .timeline-step-dot,
[data-theme="light"] .contest-countdown-wrap .timeline-step-dot {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

/* Step Active (Đang diễn ra) */
.contest-countdown-wrap .timeline-step-item.is-active .timeline-step-dot {
  background: linear-gradient(135deg, #00e599, #059669) !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.6) !important;
}

html[data-theme="light"] .contest-countdown-wrap .timeline-step-item.is-active .timeline-step-dot,
[data-theme="light"] .contest-countdown-wrap .timeline-step-item.is-active .timeline-step-dot {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
}

/* Step Done (Đã hoàn thành) */
.contest-countdown-wrap .timeline-step-item.is-done:not(.is-active) .timeline-step-dot {
  background: rgba(0, 229, 153, 0.16) !important;
  color: #00e599 !important;
  border: 1px solid rgba(0, 229, 153, 0.4) !important;
}

html[data-theme="light"] .contest-countdown-wrap .timeline-step-item.is-done:not(.is-active) .timeline-step-dot,
[data-theme="light"] .contest-countdown-wrap .timeline-step-item.is-done:not(.is-active) .timeline-step-dot {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

.contest-countdown-wrap .timeline-step-name {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.7) !important;
  white-space: nowrap !important;
}

.contest-countdown-wrap .timeline-step-item.is-active .timeline-step-name {
  color: #00e599 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .contest-countdown-wrap .timeline-step-name,
[data-theme="light"] .contest-countdown-wrap .timeline-step-name {
  color: #475569 !important;
}

html[data-theme="light"] .contest-countdown-wrap .timeline-step-item.is-active .timeline-step-name,
[data-theme="light"] .contest-countdown-wrap .timeline-step-item.is-active .timeline-step-name {
  color: #047857 !important;
}

.contest-countdown-wrap .timeline-step-date {
  display: block !important;
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-align: center !important;
  width: 100% !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

html[data-theme="light"] .contest-countdown-wrap .timeline-step-date,
[data-theme="light"] .contest-countdown-wrap .timeline-step-date {
  color: #94a3b8 !important;
}

/* ==========================================================================
   ENCLOSED TABS CARD DESIGN (Khung viền bao toàn bộ nội dung Tab)
   ========================================================================== */
.contest-tabs-enclosed-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(13, 24, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-fast);
}

html[data-theme="light"] .contest-tabs-enclosed-card,
[data-theme="light"] .contest-tabs-enclosed-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

/* 1. Header bar gắn liền viền trên của khung, đáy khít đường kẻ border */
.contest-tabs-header-bar {
  background: rgba(9, 17, 13, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 18px 0 18px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: relative;
}

html[data-theme="light"] .contest-tabs-header-bar,
[data-theme="light"] .contest-tabs-header-bar {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

/* 1. Tab Navigation Item: Hiệu ứng Active chuẩn chỉnh, khít đường viền đáy */
.contest-tab-nav-item {
  background: transparent !important;
  border: none !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 12px 22px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text-muted, #94a3b8) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  position: relative !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.contest-tab-nav-item:hover {
  color: var(--text-main, #f8fafc) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="light"] .contest-tab-nav-item {
  color: #64748b !important;
}

html[data-theme="light"] .contest-tab-nav-item:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

/* Tab Active: Nền highlight nhẹ, text sáng, gạch chân khít mép đáy border-bottom */
.contest-tab-nav-item.active {
  color: var(--primary, #00e599) !important;
  font-weight: 700 !important;
  background: rgba(0, 229, 153, 0.08) !important;
}

.contest-tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary, #00e599);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.6);
}

html[data-theme="light"] .contest-tab-nav-item.active {
  color: #059669 !important;
  background: rgba(5, 150, 105, 0.08) !important;
}

html[data-theme="light"] .contest-tab-nav-item.active::after {
  background: #059669 !important;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4) !important;
}

/* 2. Content Body: Cân chỉnh padding cân đối, gọn gàng, không bị khoảng trống quá lớn */
.contest-tabs-content-body {
  padding: 20px 22px !important;
  position: relative;
}

.contest-rules-content-wrap {
  line-height: 1.7;
}

/* ==========================================================================
   3. BẢNG DANH SÁCH BÀI HÁT DỰ THI (CONTEST SUBMISSIONS TABLE LIST)
   ========================================================================== */
.contest-submissions-table-wrap {
  width: 100%;
  position: relative;
}

/* Header hàng bảng */
.contest-sub-table-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

html[data-theme="light"] .contest-sub-table-header {
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

/* Từng hàng bài hát dạng danh sách (Table Row) */
.contest-sub-table-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  transition: all var(--transition-fast);
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.contest-sub-table-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .contest-sub-table-row {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .contest-sub-table-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Top 1, Top 2, Top 3 (Không dùng border-left theo yêu cầu) */
.contest-sub-table-row.rank-top-1,
.contest-sub-table-row.rank-top-2,
.contest-sub-table-row.rank-top-3 {
  border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="light"] .contest-sub-table-row.rank-top-1,
html[data-theme="light"] .contest-sub-table-row.rank-top-2,
html[data-theme="light"] .contest-sub-table-row.rank-top-3 {
  border-left: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

/* Định kích thước từng cột */
.col-sub-rank {
  width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.col-sub-track {
  flex-grow: 1;
  min-width: 0;
}

.col-sub-views {
  width: 115px;
  flex-shrink: 0;
  text-align: center;
}

.col-sub-votes {
  width: 125px;
  flex-shrink: 0;
  text-align: center;
}

.col-sub-action {
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

/* Rank Badge hiển thị thứ hạng */
.sub-table-rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-weight: 800;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.sub-table-rank-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #ffffff;
  font-weight: 800;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sub-table-rank-badge.rank-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #ffffff;
  font-weight: 800;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sub-table-rank-badge.rank-normal {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Thumbnail bài hát trong bảng */
.contest-sub-thumb-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

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

.sub-table-play-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.contest-sub-table-row:hover .sub-table-play-btn {
  opacity: 1;
}

/* Chi tiết bài hát & Tác giả */
.contest-sub-track-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
}

.contest-sub-track-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.contest-sub-track-title a:hover {
  color: var(--primary) !important;
}

.contest-sub-track-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.contest-sub-track-creator {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contest-sub-track-creator:hover {
  color: var(--text-main);
}

.contest-sub-track-creator-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.contest-sub-track-quote {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 320px;
}

/* Lượt nghe & Bình chọn */
.sub-views-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sub-votes-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

html[data-theme="light"] .sub-votes-badge {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

/* Nút Bình Chọn trong Bảng */
.btn-vote-trigger {
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-vote-trigger.contest-vote-btn-active {
  background: var(--primary);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 229, 153, 0.3);
}

.btn-vote-trigger.contest-vote-btn-active:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

html[data-theme="light"] .btn-vote-trigger.contest-vote-btn-active {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25) !important;
}

html[data-theme="light"] .btn-vote-trigger.contest-vote-btn-active:hover {
  background: #047857 !important;
}

.btn-vote-trigger.voted {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.btn-vote-trigger.btn-vote-own {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="light"] .btn-vote-trigger.btn-vote-own {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

.btn-vote-trigger.btn-vote-exhausted {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Empty submissions container */
.contest-empty-submissions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .contest-empty-submissions {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Contest Modals: Chuẩn hóa màu nền không bị trong suốt trên cả Light & Dark Theme */
.contest-modal-content {
  background-color: var(--bg-surface-elevated, #ffffff) !important;
  color: var(--text-main, #0f172a) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .contest-modal-content,
[data-theme="light"] .contest-modal-content {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="dark"] .contest-modal-content,
[data-theme="dark"] .contest-modal-content {
  background-color: #131b22 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.contest-modal-content .modal-header {
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

html[data-theme="light"] .contest-modal-content .modal-header,
[data-theme="light"] .contest-modal-content .modal-header {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .contest-modal-content .form-control,
html[data-theme="light"] .contest-modal-content .form-select,
[data-theme="light"] .contest-modal-content .form-control,
[data-theme="light"] .contest-modal-content .form-select {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .contest-modal-content .form-control,
html[data-theme="dark"] .contest-modal-content .form-select,
[data-theme="dark"] .contest-modal-content .form-control,
[data-theme="dark"] .contest-modal-content .form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.contest-modal-info-box {
  background: var(--bg-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

html[data-theme="light"] .contest-modal-info-box,
[data-theme="light"] .contest-modal-info-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="dark"] .contest-modal-info-box,
[data-theme="dark"] .contest-modal-info-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES FOR CONTEST DETAIL PAGE
   ========================================================================== */

/* Prevent horizontal overflow on mobile viewports */
.events-detail-page {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Status badge in detail page stays in normal document flow, never absolute */
.contest-badge-inflow,
.events-detail-page .contest-status-badge,
.contest-header-badge-row .contest-status-badge,
.contest-badge-status-wrap .contest-status-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  z-index: 1 !important;
}

.contest-badge-status-wrap {
  display: inline-flex;
}
.contest-badge-stats-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 991.98px) {
  .contest-hero-split-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contest-cover-media-wrap {
    min-height: unset !important;
    max-height: 280px !important;
  }
  .contest-tabs-header-bar {
    padding: 4px 10px 0 10px !important;
  }
  .contest-tab-nav-item {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }
  .contest-tabs-content-body {
    padding: 14px 14px !important;
  }
}

@media (max-width: 767.98px) {
  /* 1. Global Page & Breadcrumb */
  .events-detail-page {
    padding-bottom: 70px !important;
  }
  .studio-breadcrumb-box {
    font-size: 0.76rem !important;
    gap: 4px 6px !important;
    margin-bottom: 10px !important;
  }
  .breadcrumb-current-text {
    max-width: 130px !important;
  }

  /* 2. Hero Card & Spacing */
  .events-detail-page .contest-detail-hero-card {
    border-radius: 18px !important;
    margin-bottom: 1.25rem !important;
  }
  .contest-detail-hero-body {
    padding: 16px 14px 18px 14px !important;
  }
  .contest-hero-header-box {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 6px !important;
  }
  .events-detail-page .contest-detail-h1 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    word-break: break-word !important;
  }
  .contest-detail-lead {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }

  /* Header Badges: Trạng thái 1 hàng riêng, 2 badge bài dự thi & bình chọn ở hàng 2 */
  .contest-header-badge-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .contest-badge-status-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
  .contest-badge-status-wrap .contest-status-badge {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }
  .contest-badge-stats-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .contest-header-badge-row .contest-status-badge,
  .contest-header-badge-row .quick-stat-chip {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
  }

  /* 3. Cover Media Wrap (Aspect Ratio 16:9 chuẩn mực) */
  .contest-hero-cover-col {
    width: 100% !important;
  }
  .contest-cover-media-wrap {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    max-height: 220px !important;
    min-height: unset !important;
    border-radius: 14px !important;
  }

  /* 4. Khung Timeline & Countdown Ticker */
  .contest-hero-timeline-col .contest-countdown-wrap,
  .contest-countdown-wrap {
    padding: 16px 14px !important;
    border-radius: 18px !important;
    gap: 10px !important;
  }
  .contest-countdown-wrap .countdown-header-flex {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 8px !important;
  }
  .contest-countdown-wrap .countdown-header-flex .countdown-title-text {
    font-size: 0.74rem !important;
    padding: 5px 10px !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }
  .contest-countdown-wrap .countdown-header-flex .countdown-subtitle-text {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
  }
  .contest-countdown-wrap .countdown-digits-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin: 8px 0 !important;
  }
  .contest-countdown-wrap .countdown-digit-cell {
    padding: 10px 4px 8px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
  }
  .contest-countdown-wrap .countdown-digit-num {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
  }
  .contest-countdown-wrap .countdown-digit-unit {
    font-size: 0.6rem !important;
    letter-spacing: 0.04em !important;
    margin-top: 3px !important;
  }
  .contest-countdown-wrap .contest-timeline-bar {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    margin-top: 6px !important;
  }
  .contest-countdown-wrap .timeline-step-indicator {
    gap: 4px !important;
    justify-content: center !important;
  }
  .contest-countdown-wrap .timeline-step-dot {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.68rem !important;
  }
  .contest-countdown-wrap .timeline-step-name {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
  .contest-countdown-wrap .timeline-step-date {
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    text-align: center !important;
    margin-top: 2px !important;
  }

  /* 5. Grand Prize Box (1 khối liền mạch) */
  .contest-grand-prize-box {
    padding: 14px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    display: block !important;
  }
  .contest-grand-prize-header {
    font-size: 0.92rem !important;
    margin-bottom: 6px !important;
  }
  .contest-grand-prize-icon {
    font-size: 1.15rem !important;
  }
  .contest-grand-prize-text {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* 6. Action Buttons */
  .contest-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .contest-hero-actions .btn-contest-action,
  .contest-hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
    border-radius: 9999px !important;
    text-align: center !important;
  }

  /* 7. Quota Banner */
  .contest-quota-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }
  .contest-quota-left {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
  }
  .quota-icon-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }
  .quota-text-wrap {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .quota-title {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }
  .quota-desc {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    margin-top: 3px !important;
  }
  .contest-quota-right {
    width: 100% !important;
  }
  .contest-quota-right .btn,
  .user-quota-status-pill {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.8rem !important;
    padding: 7px 12px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* 8. Tabs Card */
  .contest-tabs-enclosed-card {
    border-radius: 16px !important;
    margin-bottom: 1.5rem !important;
  }
  .contest-tabs-header-bar {
    padding: 2px 8px 0 8px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .contest-tab-nav-item {
    padding: 9px 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-radius: 8px 8px 0 0 !important;
  }
  .contest-tabs-content-body {
    padding: 12px 10px !important;
  }

  /* 9. Bảng danh sách bài hát trên Mobile:
        - Thiết kế lại khung card đẹp, gọn gàng, đồng bộ, KHÔNG dùng border-left
        - Hàng 1: Thứ hạng (Rank badge) + Thumbnail + Tiêu đề bài hát & Tác giả (rộng rãi, khoảng cách hợp lý)
        - Hàng 2: Badge vote (trái) + Nút Bình chọn (phải) trên cùng 1 hàng */
  .contest-sub-table-header {
    display: none !important;
  }
  .col-sub-views {
    display: none !important;
  }
  .contest-sub-table-row,
  .contest-sub-table-row.rank-top-1,
  .contest-sub-table-row.rank-top-2,
  .contest-sub-table-row.rank-top-3 {
    display: grid !important;
    grid-template-columns: 36px 1fr auto !important;
    grid-template-areas:
      "rank track track"
      "votes votes action" !important;
    align-items: center !important;
    padding: 12px 14px !important;
    column-gap: 0 !important;
    row-gap: 10px !important;
    margin-bottom: 10px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  html[data-theme="light"] .contest-sub-table-row,
  html[data-theme="light"] .contest-sub-table-row.rank-top-1,
  html[data-theme="light"] .contest-sub-table-row.rank-top-2,
  html[data-theme="light"] .contest-sub-table-row.rank-top-3 {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
  }
  .col-sub-rank {
    grid-area: rank !important;
    width: 36px !important;
    min-width: 36px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .sub-table-rank-badge.rank-1,
  .sub-table-rank-badge.rank-2,
  .sub-table-rank-badge.rank-3 {
    padding: 2px 7px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
    border-radius: 9999px !important;
  }
  .sub-table-rank-badge.rank-normal {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
  }
  .col-sub-track {
    grid-area: track !important;
    min-width: 0 !important;
    padding: 0 0 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    overflow: hidden !important;
  }
  .contest-sub-thumb-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .contest-sub-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }
  .contest-sub-text-details {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }
  .contest-sub-track-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .contest-sub-track-meta {
    font-size: 0.75rem !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .contest-sub-track-creator-avatar {
    width: 16px !important;
    height: 16px !important;
  }
  .creator-name-text {
    max-width: 140px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  .contest-sub-track-quote {
    display: none !important;
  }
  .col-sub-votes {
    grid-area: votes !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 0 0 !important;
    text-align: left !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  html[data-theme="light"] .col-sub-votes {
    border-top-color: #f1f5f9 !important;
  }
  .sub-votes-badge {
    font-size: 0.74rem !important;
    padding: 3px 9px !important;
    white-space: nowrap !important;
    gap: 3px !important;
  }
  .col-sub-action {
    grid-area: action !important;
    width: 100% !important;
    text-align: right !important;
    padding: 10px 0 0 0 !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  html[data-theme="light"] .col-sub-action {
    border-top-color: #f1f5f9 !important;
  }
  .btn-vote-trigger {
    padding: 5px 14px !important;
    font-size: 0.78rem !important;
  }
}
