/* TTCD Public Songs AD — lean UI, app-compatible, Ctrl+B left panel toggle. */
:root {
  --ps-accent: #c8102e;
  --ps-accent-soft: rgba(200, 16, 46, 0.08);
  --ps-bg: #f3f4f6;
  --ps-surface: #ffffff;
  --ps-surface-2: #f8fafc;
  --ps-text: #1f2937;
  --ps-muted: #64748b;
  --ps-border: #e5e7eb;
  --ps-border-strong: #d1d5db;
  --ps-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  /* Token dùng chung với songs-style.css (nút, trạng thái) */
  --red: #c8102e;
  --red-dark: #a00d25;
  --blue: #4a6fa5;
  --blue-dark: #3a5a8a;
  --green: #28a745;
  --green-dark: #218838;
  --danger: #dc3545;
  --danger-dark: #c82333;
  --amber: #e09800;
  --amber-dark: #c07800;
  --radius: 12px;
}
/* Alias theo token songs, đặt ở body để tự đổi theo body.dark-mode */
body {
  --text: var(--ps-text);
  --muted: var(--ps-muted);
  --border: var(--ps-border);
  --bg: var(--ps-bg);
  --surface: var(--ps-surface);
  --hover-bg: var(--ps-surface-2);
  --input-bg: var(--ps-surface);
  --shadow: var(--ps-shadow);
}
body {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--ps-bg);
  color: var(--ps-text);
  margin: 0;
}
body.dark-mode {
  --ps-bg: #0f172a;
  --ps-surface: #1e1e2e;
  --ps-surface-2: #2a2a3a;
  --ps-text: #e5e7eb;
  --ps-muted: #94a3b8;
  --ps-border: #333;
  --ps-border-strong: #334155;
  --ps-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}
.ps-page {
  width: min(1760px, calc(100vw - 36px));
  margin: 18px auto 36px;
}
.ps-hero {
  background: var(--ps-surface);
  color: var(--ps-text);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--ps-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.ps-hero--compact {
  padding: 18px 22px;
}
.ps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--ps-border);
  background: var(--ps-surface-2);
  color: var(--ps-muted);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ps-hero h1 {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ps-text);
}
.ps-hero p {
  margin: 0;
  color: var(--ps-muted);
  font-weight: 600;
  line-height: 1.55;
  font-size: 14.5px;
}
.ps-hero-login {
  flex: 0 0 auto;
  color: var(--ps-text);
  text-decoration: none;
  border: 1px solid var(--ps-border-strong);
  background: var(--ps-surface-2);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
}
.ps-hero-login:hover {
  border-color: var(--ps-accent);
  background: var(--ps-accent-soft);
}

.ps-layout-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.ps-left-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ps-border-strong);
  border-radius: 10px;
  background: var(--ps-surface);
  color: var(--ps-text);
  padding: 8px 11px;
  font: 800 13px inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
.ps-left-toggle:hover {
  border-color: var(--ps-accent);
  background: var(--ps-accent-soft);
}
.ps-left-toggle kbd,
.ps-shortcut-badge {
  font:
    800 11px/1 "Montserrat",
    system-ui,
    sans-serif;
  border: 1px solid var(--ps-border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 6px;
  background: var(--ps-surface-2);
  color: var(--ps-muted);
}
.ps-layout-hint {
  font-size: 12.5px;
  color: var(--ps-muted);
  font-weight: 650;
}

.ps-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.68fr) minmax(620px, 1.65fr);
  gap: 14px;
  align-items: stretch;
  transition: grid-template-columns 0.22s ease;
}
.ps-shell.ps-left-collapsed {
  grid-template-columns: 1fr;
}
.ps-shell.ps-left-collapsed .ps-left {
  display: none;
}
.ps-left,
.ps-right {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  box-shadow: var(--ps-shadow);
  min-width: 0;
  height: clamp(640px, calc(100vh - 205px), 900px);
}
.ps-left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ps-right {
  overflow: auto;
  padding: 26px 30px;
}
.ps-shell.ps-left-collapsed .ps-right {
  padding-left: clamp(28px, 5vw, 76px);
  padding-right: clamp(28px, 5vw, 76px);
}
.ps-left-sticky {
  padding: 14px 14px 0;
  flex: 0 0 auto;
  background: var(--ps-surface);
  z-index: 1;
}
.ps-search-wrapper {
  margin-bottom: 9px;
  position: relative;
}
.ps-search-wrapper .ps-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.ps-search-wrapper .ps-search-input {
  padding-left: 38px;
}
.ps-search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ps-border);
  border-radius: 10px;
  background: var(--ps-surface-2);
  color: var(--ps-text);
  font: 650 14.5px inherit;
  outline: none;
  transition: 0.18s;
  box-sizing: border-box;
}
.ps-search-input:focus {
  border-color: var(--ps-accent);
  background: var(--ps-surface);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}
.ps-sort-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}
.ps-sort-btn {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.ps-sort-btn:hover:not(.active) {
  border-color: var(--red);
  color: var(--red);
}
.ps-sort-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.ps-list-note {
  font-size: 12px;
  font-weight: 700;
  color: var(--ps-muted);
  padding: 0 2px 9px;
}
.ps-song-list-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 14px 14px;
  scrollbar-gutter: stable;
}
.ps-song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-song-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ps-border);
  background: var(--ps-surface-2);
  border-radius: 10px;
  padding: 12px 13px;
  transition: 0.16s;
}
.ps-song-item:hover,
.ps-song-item.active {
  border-color: rgba(200, 16, 46, 0.32);
  background: var(--ps-accent-soft);
  transform: translateY(-1px);
}
.ps-song-title {
  display: block;
  color: var(--ps-text);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 4px;
}
.ps-song-item.active .ps-song-title {
  color: var(--ps-accent);
}
.ps-song-snippet {
  display: block;
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.45;
  max-height: 56px;
  overflow: hidden;
}
.ps-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--ps-muted);
  font-weight: 700;
  line-height: 1.6;
}
.ps-lazy-sentinel {
  height: 1px;
}

.ps-placeholder {
  text-align: center;
  color: var(--ps-muted);
  max-width: 620px;
  margin: 78px auto 0;
  line-height: 1.7;
}
.ps-placeholder-icon {
  font-size: 46px;
  margin-bottom: 12px;
  color: var(--red);
  opacity: 0.35;
}
.ps-placeholder h2 {
  color: var(--ps-text);
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 900;
}
.ps-spinner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 4px solid var(--ps-border);
  border-top-color: var(--ps-accent);
  animation: psSpin 0.8s linear infinite;
  margin: 28px auto 14px;
}
@keyframes psSpin {
  to {
    transform: rotate(360deg);
  }
}
.ps-song-content {
  max-width: 1180px;
  margin: 0 auto;
}
.ps-song-content h2 {
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ps-text);
  font-weight: 950;
  letter-spacing: -0.01em;
}
.ps-back-mobile {
  display: none;
  color: var(--ps-accent);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
}
.ps-transpose-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--ps-surface-2);
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0 20px;
  position: sticky;
  top: -26px;
  z-index: 2;
  flex-direction: row;
}
.ps-tool-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ps-tool-btn {
    border: none;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    min-height: 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: background 0.2s;
}
.ps-tool-btn:hover {
  background: var(--blue-dark);
}
.ps-tool-btn--addplaylist,
.ps-tool-btn--viewplaylist {
  background: var(--blue-dark);
}
.ps-tool-btn--addplaylist:hover,
.ps-tool-btn--viewplaylist:hover {
  background: var(--blue);
}
.ps-tool-step {
  font-size: 20px;
  min-width: 42px;
  padding: 6px 10px;
}
.ps-tool-reset {
  background: var(--red);
}
.ps-tool-reset:hover {
  background: var(--red-dark);
}
.ps-tool-display {
  min-width: 46px;
  text-align: center;
  font-weight: 950;
  color: var(--ps-text);
}
.ps-tool-display-sm {
  min-width: 56px;
  font-size: 12.5px;
}
.ps-lyrics-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 2.12;
  margin: 0;
  color: var(--ps-text);
  font-size: 17px;
  background: transparent;
  border: none;
}
.chord {
  color: #1f5f9f;
  font-weight: 950;
}
.dark-mode .chord {
  color: #f2c068;
}
.ps-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.ps-primary-btn,
.ps-ghost-btn {
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
  font-size: 13px;
}
.ps-primary-btn {
  background: var(--red);
  color: #fff;
  transition: background 0.2s;
}
.ps-primary-btn:hover {
  background: var(--red-dark);
}
.ps-ghost-btn {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s;
}
.ps-ghost-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.ps-noscript {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  margin-top: 18px;
  padding: 18px;
}
.ps-noscript a {
  color: var(--ps-accent);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .ps-page {
    width: calc(100vw - 28px);
  }
  .ps-shell {
    grid-template-columns: minmax(320px, 0.85fr) minmax(500px, 1.25fr);
    gap: 12px;
  }
  .ps-right {
    padding: 22px;
  }
  .ps-shell.ps-left-collapsed .ps-right {
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (max-width: 968px) {
  .ps-page {
    width: calc(100vw - 20px);
    margin-top: 12px;
  }
  .ps-hero {
    border-radius: 14px;
    padding: 17px;
    display: block;
  }
  .ps-hero-login {
    display: inline-flex;
    margin-top: 14px;
  }
  .ps-layout-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .ps-layout-hint {
    font-size: 12px;
  }
  .ps-shell {
    display: block;
  }
  .ps-shell.ps-left-collapsed .ps-left {
    display: none;
  }
  .ps-left,
  .ps-right {
    height: auto;
    min-height: 0;
    border-radius: 14px;
  }
  .ps-left {
    margin-bottom: 14px;
  }
  .ps-song-list-wrapper {
    max-height: none;
    overflow: visible;
  }
  .ps-right {
    padding: 20px 16px;
  }
  .ps-shell.ps-left-collapsed .ps-right {
    padding: 20px 16px;
  }
  .ps-placeholder {
    margin: 34px auto;
  }
  .ps-back-mobile {
    display: inline-block;
  }
  .ps-transpose-bar {
    position: relative;
  }
  .ps-tool-group {
    width: 100%;
    justify-content: center;
  }
  .ps-lyrics-pre {
    line-height: 2;
    column-count: 1 !important;
  }
  .ps-tool-columns {
    display: none;
  }
  .ps-song-content h2 {
    font-size: 24px;
  }
  .ps-hero h1 {
    font-size: 24px;
  }
}

/* TTCD PATCH AF — Public header uses common app-header visual language, no auth dependency */
.app-header.ps-app-header {
  background: #0d0d14;
  border-bottom: 1px solid #1e1e28;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  font-family: "Montserrat", sans-serif;
}
.ps-app-header .header-container {
  max-width: 1800px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ps-app-header .header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ps-app-header .header-logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}
.ps-app-header .header-logo span {
  font-size: 13px;
  font-weight: 700;
  color: #ffcd51;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ps-app-header .header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  position: relative;
  flex: 1;
  justify-content: flex-end;
}
.ps-app-header .header-nav > a,
.ps-app-header .header-nav > .tools-menu > a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 7px;
  position: relative;
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.ps-app-header .header-nav > a:hover,
.ps-app-header .tools-menu > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.ps-app-header .header-nav > a.active {
  color: #c8102e;
}
.ps-app-header .header-nav > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 2px;
  left: 50%;
  background: #c8102e;
  transition:
    width 0.2s,
    left 0.2s;
  transform: translateX(-50%);
  border-radius: 1px;
}
.ps-app-header .header-nav > a:hover::after,
.ps-app-header .header-nav > a.active::after {
  width: calc(100% - 22px);
}
.ps-app-header .tools-menu {
  position: relative;
}
.ps-app-header .tools-menu::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
  background: transparent;
  z-index: 1001;
}
.ps-app-header .tools-menu > a {
  display: block;
  cursor: pointer;
}
.ps-app-header .tools-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #111118;
  border: 1px solid #2a2a36;
  min-width: 230px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  padding: 6px 0;
  z-index: 1002;
}
.ps-app-header .tools-menu:hover .tools-dropdown {
  display: block;
}
.ps-app-header .tools-dropdown a {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s,
    padding-left 0.12s;
}
.ps-app-header .tools-dropdown a:hover {
  background: rgba(200, 16, 46, 0.1);
  color: #fff;
  padding-left: 24px;
}
.ps-app-header .header-nav > a.header-slide-builder-link {
  color: rgba(255, 205, 81, 0.92);
  background: rgba(255, 205, 81, 0.08);
  border: 1px solid rgba(255, 205, 81, 0.16);
}
.ps-app-header .header-nav > a.header-slide-builder-link:hover {
  color: #ffdd7a;
  background: rgba(255, 205, 81, 0.14);
}
.ps-app-header .header-nav > a.header-slide-builder-link::after {
  background: #ffcd51;
}
.ps-app-header .header-nav .ps-header-login {
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
.ps-app-header .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}
.ps-app-header .hamburger span {
  width: 24px;
  height: 2px;
  background: #c8102e;
  border-radius: 2px;
  transition: all 0.25s;
  display: block;
}
.ps-app-header .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.ps-app-header .hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.ps-app-header .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.ps-app-header .mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #111118;
  border-top: 1px solid #1e1e28;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  padding: 8px 0 20px;
  z-index: 999;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ps-app-header .mobile-menu.open {
  display: block;
}
.ps-app-header .mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #1e1e28;
  transition:
    background 0.12s,
    color 0.12s;
  font-family: "Montserrat", sans-serif;
}
.ps-app-header .mobile-menu a:hover {
  background: rgba(200, 16, 46, 0.08);
  color: #fff;
}
.ps-app-header .mobile-submenu {
  background: #0d0d14;
}
.ps-app-header .mobile-submenu a {
  padding: 10px 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}
@media (min-width: 1366px) {
  .ps-app-header .header-nav {
    display: flex;
  }
  .ps-app-header .hamburger {
    display: none;
  }
}
@media (max-width: 1365px) and (min-width: 1200px) {
  .ps-app-header .header-nav {
    display: flex;
    gap: 2px;
  }
  .ps-app-header .header-nav > a,
  .ps-app-header .tools-menu > a {
    font-size: 13px;
    padding: 6px 9px;
  }
}
@media (max-width: 1199px) {
  .ps-app-header .header-nav {
    display: none;
  }
  .ps-app-header .hamburger {
    display: flex;
  }
}
@media (max-width: 480px) {
  .app-header.ps-app-header {
    padding: 0 10px;
  }
  .ps-app-header .header-logo img {
    height: 34px;
  }
  .ps-app-header .header-logo span {
    display: none;
  }
  .ps-app-header .header-container {
    height: 52px;
  }
  .ps-app-header .mobile-menu {
    top: 52px;
    max-height: calc(100vh - 52px);
  }
}

/* TTCD PATCH AG — app-like public header + Montserrat + SEO subtitle */
body,
.ps-page,
.ps-public-header,
.ps-public-header * {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.ps-seo-subtitle {
  margin: -6px 0 14px;
  color: var(--ps-muted);
  font-weight: 700;
  line-height: 1.55;
}
.ps-public-header.app-header {
  background: #0d0d14;
  border-bottom: 1px solid #1e1e28;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.ps-public-header .header-container {
  max-width: 1800px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ps-public-header .header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ps-public-header .header-logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.ps-public-header .header-logo span {
  font-size: 13px;
  font-weight: 700;
  color: #ffcd51;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ps-public-header .header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  position: relative;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.ps-public-header .header-nav > a,
.ps-public-header .header-nav > .tools-menu > a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 7px;
  position: relative;
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
  display: block;
}
.ps-public-header .header-nav > a:hover,
.ps-public-header .header-nav > .tools-menu > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.ps-public-header .header-nav > a.active {
  color: #ffcd51;
}
.ps-public-header .header-nav > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 2px;
  left: 50%;
  background: #c8102e;
  transition:
    width 0.2s,
    left 0.2s;
  transform: translateX(-50%);
  border-radius: 1px;
}
.ps-public-header .header-nav > a:hover::after,
.ps-public-header .header-nav > a.active::after {
  width: calc(100% - 22px);
}
.ps-public-header .tools-menu {
  position: relative;
}
.ps-public-header .tools-menu::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
  background: transparent;
  z-index: 1001;
}
.ps-public-header .tools-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #111118;
  border: 1px solid #2a2a36;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  padding: 6px 0;
  z-index: 1000;
}
.ps-public-header .tools-menu:hover .tools-dropdown {
  display: block;
}
.ps-public-header .tools-dropdown a {
  display: block;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ps-public-header .tools-dropdown a:hover,
.ps-public-header .tools-dropdown a.active {
  background: #1b1b24;
  color: #fff;
}
.ps-public-header .header-slide-builder-link {
  color: #ffcd51 !important;
  background: rgba(255, 205, 81, 0.1) !important;
  border: 1px solid rgba(255, 205, 81, 0.25);
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.ps-public-header .ps-public-login-link {
  color: #e11d48 !important;
  font-weight: 700 !important;
}
.ps-public-header .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.ps-public-header .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s;
}
.ps-public-header .mobile-menu {
  display: none;
  background: #111118;
  border-top: 1px solid #2a2a36;
  padding: 12px 20px;
}
.ps-public-header .mobile-menu[hidden] {
  display: none !important;
}
.ps-public-header .mobile-menu a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ps-public-header .mobile-menu a.active {
  color: #ffcd51;
}
@media (max-width: 1100px) {
  .ps-public-header .header-nav {
    display: none;
  }
  .ps-public-header .hamburger {
    display: flex;
  }
  .ps-public-header .mobile-menu:not([hidden]) {
    display: block;
  }
}
@media (max-width: 680px) {
  .ps-public-header.app-header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ps-public-header .header-container {
    height: 58px;
  }
  .ps-public-header .header-logo img {
    height: 34px;
  }
  .ps-public-header .header-logo span {
    font-size: 12px;
    letter-spacing: 0.3px;
  }
}

/* TTCD PATCH AI — mobile library-to-reader flow */
@media (max-width: 968px) {
  body[data-ps-mobile-mode="detail"] {
    overflow-x: hidden;
  }
  .ps-page {
    width: 100%;
    margin: 0 auto 24px;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .ps-hero {
    margin: 10px 0 10px;
    padding: 14px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  }
  .ps-hero p {
    font-size: 13px;
    line-height: 1.5;
  }
  .ps-layout-toolbar {
    display: none;
  }
  .ps-shell {
    display: block;
    min-height: calc(100vh - 80px);
  }
  .ps-left,
  .ps-right {
    height: auto;
    min-height: 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  }
  .ps-left {
    display: block;
    margin-bottom: 0;
    overflow: visible;
  }
  .ps-left-sticky {
    position: sticky;
    top: 58px;
    padding: 12px;
    background: var(--ps-surface);
    border-radius: 12px 12px 0 0;
    z-index: 20;
    border-bottom: 1px solid var(--ps-border);
  }
  .ps-search-input {
    font-size: 16px;
    padding: 13px 14px;
  }
  .ps-sort-bar {
    gap: 6px;
  }
  .ps-sort-btn {
    font-size: 11.5px;
    padding: 8px 4px;
  }
  .ps-list-note {
    padding-bottom: 8px;
  }
  .ps-song-list-wrapper {
    max-height: none !important;
    overflow: visible !important;
    padding: 10px 10px 14px;
  }
  .ps-song-list {
    gap: 8px;
  }
  .ps-song-item {
    padding: 13px 12px;
    border-radius: 11px;
    transform: none !important;
  }
  .ps-song-title {
    font-size: 15px;
    line-height: 1.35;
  }
  .ps-song-snippet {
    font-size: 12.5px;
    max-height: 38px;
  }
  .ps-right {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .ps-shell.ps-mobile-detail-open .ps-left {
    display: none !important;
  }
  .ps-shell.ps-mobile-detail-open .ps-right {
    display: block !important;
  }
  .ps-shell.ps-mobile-list-open .ps-left {
    display: block !important;
  }
  .ps-shell.ps-mobile-list-open .ps-right {
    display: none !important;
  }
  .ps-shell.ps-left-collapsed .ps-left {
    display: none !important;
  }
  .ps-shell.ps-left-collapsed .ps-right {
    display: block !important;
  }
  .ps-song-content {
    max-width: none;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    padding: 14px 13px 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  }
  .ps-back-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid var(--ps-border);
    background: var(--ps-surface-2);
    color: var(--ps-text);
    font-weight: 900;
    text-decoration: none;
  }
  .ps-song-content h2 {
    font-size: 22px;
    line-height: 1.22;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
  }
  .ps-seo-subtitle {
    font-size: 12.5px;
    margin: 0 0 12px;
  }
  .ps-transpose-bar {
    position: sticky;
    top: 58px;
    z-index: 30;
    margin: 0 -4px 14px;
    padding: 9px;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }
  .dark-mode .ps-transpose-bar {
    background: rgba(24, 34, 53, 0.96);
  }
  .ps-tool-group {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .ps-tool-btn {
    flex: 1;
    min-height: 40px;
    padding: 8px 7px;
    font-size: 12.5px;
  }
  .ps-tool-step {
    font-size: 20px;
    min-width: 42px;
    flex: 0 0 42px;
  }
  .ps-tool-display {
    flex: 0 0 44px;
    min-width: 44px;
  }
  .ps-tool-display-sm {
    flex: 0 0 56px;
  }
  .ps-tool-columns {
    display: none !important;
  }
  .ps-lyrics-pre {
    font-size: 13px;
    line-height: 1.9;
    column-count: 1 !important;
    overflow-wrap: anywhere;
    padding: 2px 1px 10px;
  }
  .chord {
    font-size: 1.08em;
  }
  .ps-detail-actions {
    margin-top: 16px;
  }
  .ps-primary-btn,
  .ps-ghost-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .ps-placeholder {
    display: none;
  }
}
@media (max-width: 480px) {
  .ps-page {
    padding: 0 8px;
  }
  .ps-hero h1 {
    font-size: 22px;
  }
  .ps-hero-login {
    padding: 8px 10px;
    font-size: 12px;
  }
  .ps-left-sticky {
    top: 52px;
  }
  .ps-transpose-bar {
    top: 52px;
  }
  .ps-song-content {
    padding: 12px 11px 16px;
  }
  .ps-lyrics-pre {
    font-size: 13px;
    line-height: 1.86;
  }
}

/* TTCD PATCH AJ — true mobile reader/list state, overrides old desktop-left-collapse rules */
@media (max-width: 968px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .ps-layout-toolbar {
    display: none !important;
  }
  .ps-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: calc(100vh - 64px);
  }
  body.ps-mobile-list .ps-shell,
  body[data-ps-mobile-mode="list"] .ps-shell {
    display: block !important;
  }
  body.ps-mobile-list .ps-left,
  body[data-ps-mobile-mode="list"] .ps-left,
  body.ps-mobile-list .ps-shell.ps-left-collapsed .ps-left,
  body[data-ps-mobile-mode="list"] .ps-shell.ps-left-collapsed .ps-left {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body.ps-mobile-list .ps-right,
  body[data-ps-mobile-mode="list"] .ps-right,
  body.ps-mobile-list .ps-shell.ps-left-collapsed .ps-right,
  body[data-ps-mobile-mode="list"] .ps-shell.ps-left-collapsed .ps-right {
    display: none !important;
    visibility: hidden !important;
  }
  body.ps-mobile-reader .ps-left,
  body[data-ps-mobile-mode="reader"] .ps-left,
  body.ps-mobile-reader .ps-shell.ps-left-collapsed .ps-left,
  body[data-ps-mobile-mode="reader"] .ps-shell.ps-left-collapsed .ps-left {
    display: none !important;
    visibility: hidden !important;
  }
  body.ps-mobile-reader .ps-right,
  body[data-ps-mobile-mode="reader"] .ps-right,
  body.ps-mobile-reader .ps-shell.ps-left-collapsed .ps-right,
  body[data-ps-mobile-mode="reader"] .ps-shell.ps-left-collapsed .ps-right {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.ps-mobile-reader .ps-hero {
    display: none !important;
  }
  .ps-left {
    width: 100% !important;
    margin: 0 !important;
  }
  .ps-right {
    width: 100% !important;
    margin: 0 !important;
  }
  .ps-song-list-wrapper {
    max-height: none !important;
    overflow: visible !important;
  }
  .ps-song-content {
    min-height: calc(100vh - 74px);
  }
  .ps-back-mobile {
    position: sticky;
    top: 58px;
    z-index: 40;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }
  .dark-mode .ps-back-mobile {
    background: rgba(18, 26, 42, 0.98);
  }
  .ps-transpose-bar {
    position: sticky !important;
    top: 104px !important;
    z-index: 35;
  }
  .ps-tool-columns {
    display: none !important;
  }
  .ps-lyrics-pre {
    column-count: 1 !important;
  }
  .ps-placeholder.ps-loading {
    display: flex !important;
    min-height: 45vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .ps-back-mobile {
    top: 52px;
  }
  .ps-transpose-bar {
    top: 96px !important;
  }
}

/* TTCD COPYRIGHT CLAIM BUNDLE — public claim UI */
.ps-copyright-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(200, 16, 46, 0.06);
  border: 1px solid rgba(200, 16, 46, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 14px;
  color: var(--ps-text);
  font-size: 13px;
  font-weight: 700;
}
.ps-copyright-strip strong {
  color: var(--ps-accent);
  font-weight: 950;
}
.ps-claim-btn {
  border: 1px solid rgba(200, 16, 46, 0.28);
  background: var(--ps-surface);
  color: var(--ps-accent);
  border-radius: 9px;
  padding: 8px 10px;
  font:
    850 13px "Montserrat",
    system-ui,
    sans-serif;
  cursor: pointer;
}
.ps-claim-btn:hover {
  background: var(--ps-accent-soft);
  border-color: var(--ps-accent);
}
body.ps-claim-open {
  overflow: hidden;
}
.ps-claim-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ps-claim-modal.show {
  display: flex;
}
.ps-claim-dialog {
  width: min(860px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--ps-surface);
  color: var(--ps-text);
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  padding: 22px;
  position: relative;
}
.ps-claim-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: var(--ps-surface-2);
  color: var(--ps-text);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}
.ps-claim-dialog h2 {
  margin: 0 42px 8px 0;
  font-size: 24px;
  line-height: 1.25;
}
.ps-claim-note {
  color: var(--ps-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.ps-claim-form {
  display: grid;
  gap: 12px;
}
.ps-claim-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 850;
  color: var(--ps-text);
}
.ps-claim-form input,
.ps-claim-form select,
.ps-claim-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: var(--ps-surface-2);
  color: var(--ps-text);
  font:
    650 14px "Montserrat",
    system-ui,
    sans-serif;
  padding: 10px 11px;
  outline: none;
}
.ps-claim-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.ps-claim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ps-claim-song {
  background: var(--ps-surface-2);
  border: 1px dashed var(--ps-border-strong);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  color: var(--ps-accent);
}
.ps-claim-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.ps-claim-check {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 700 !important;
  line-height: 1.45;
  color: var(--ps-muted) !important;
}
.ps-claim-check input {
  width: auto !important;
  margin-top: 3px;
}
.ps-claim-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ps-claim-status {
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
  color: var(--ps-muted);
}
.ps-claim-status.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 9px 10px;
}
.ps-claim-status.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 9px 10px;
}
.dark-mode .ps-copyright-strip {
  background: rgba(242, 192, 104, 0.08);
  border-color: rgba(242, 192, 104, 0.18);
}
.dark-mode .ps-claim-btn {
  border-color: rgba(242, 192, 104, 0.22);
  color: #f2c068;
}
@media (max-width: 720px) {
  .ps-claim-dialog {
    padding: 18px;
    border-radius: 14px;
  }
  .ps-claim-grid {
    grid-template-columns: 1fr;
  }
  .ps-claim-actions {
    justify-content: stretch;
  }
  .ps-claim-actions a,
  .ps-claim-actions button {
    flex: 1 1 auto;
  }
  .ps-copyright-strip {
    align-items: stretch;
  }
  .ps-claim-btn {
    width: 100%;
  }
}

/* ===== alpha-rail (đồng bộ từ songs-style.css, 2026-09-10) ===== */
.alpha-rail {
  flex-shrink: 0;
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: static;
  z-index: 99;
  align-self: flex-start;
  top: 0;
}

.alpha-rail-btn {
  border: none;
  background: transparent;
  color: var(--ps-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 1px 0;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  line-height: 1.4;
  width: 24px;
  transform-origin: center right;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.12s ease-out;
  will-change: transform;
}

.alpha-rail-btn:hover {
  background: var(--ps-accent-soft, rgba(200, 16, 46, 0.08));
  color: var(--ps-accent, #c8102e);
}

.alpha-rail-btn.active {
  background: var(--ps-accent, #c8102e);
  color: #fff;
}

@media (min-width: 969px) {
  .alpha-rail {
    position: absolute;
    left: -34px;
    top: 0;
  }
}

@media (max-width: 968px) {
  .alpha-rail {
    display: flex;
    position: fixed !important;
    left: auto !important;
    right: 2px;
    top: 50% !important;
    transform: translateY(-50%);
    max-height: 70vh;
    overflow: visible;
    background: transparent;
    border-radius: 14px;
    padding: 4px 2px;
    box-shadow: none;
    gap: 0;
    transition:
      background 0.15s,
      box-shadow 0.15s;
    touch-action: none;
  }
  .alpha-rail.dragging {
    background: var(--ps-surface, #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  }
  .alpha-rail-btn {
    width: 18px;
    height: 15px;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    padding: 0;
    transform-origin: center right;
  }
  .alpha-rail-btn.active {
    transform: scale(1.15);
  }
}

.alpha-rail-bubble {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  transform: translate(-115%, -50%) scale(0.5);
  background: var(--ps-accent, #c8102e);
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.1s,
    transform 0.1s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.alpha-rail-bubble.show {
  opacity: 1;
  transform: translate(-115%, -50%) scale(1);
}

/* Banner mucvutrinhchieucodoc.com */
.ps-hero-banner {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ps-hero-banner picture {
  display: block;
}
.ps-hero-banner img {
  display: block;
  max-height: 150px;
  width: auto;
  border-radius: 10px;
}
@media (max-width: 968px) {
  .ps-hero-banner {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
  }
  .ps-hero-banner img {
    max-height: none;
    width: 100%;
    max-width: 420px;
  }
}

.ps-mobile-banner {
  display: none;
}
@media (max-width: 968px) {
  .ps-mobile-banner {
    display: block;
    margin: 0 0 12px;
    text-align: center;
  }
  .ps-mobile-banner img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 10px;
  }
}
.ps-share-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.ps-share-modal.show {
  display: block;
}
.ps-share-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.ps-share-box {
  position: relative;
  max-width: 380px;
  width: 90%;
  margin: 8vh auto 0;
  background: var(--ps-surface);
  color: var(--ps-text);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--ps-shadow);
}
.ps-share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ps-surface-2);
  border: none;
  border-radius: 8px;
  color: var(--ps-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
}
.ps-share-close:hover {
  color: var(--ps-text);
}
.ps-share-header {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 4px;
}
.ps-share-header p {
  font-size: 13px;
  color: var(--ps-muted);
  margin: 4px 0 16px;
  font-weight: 500;
}
.ps-share-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-bottom: 12px;
}
.ps-share-qr-box img,
.ps-share-qr-box canvas,
.ps-share-qr-box table {
  border-radius: 6px;
}
.ps-share-qr-loading,
.ps-share-qr-error {
  font-size: 13px;
  color: var(--ps-muted);
}
.ps-share-link-row {
  display: flex;
  gap: 8px;
}
.ps-share-link-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface-2);
  color: var(--ps-text);
  font-size: 13px;
}
.ps-share-copy-btn {
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.ps-share-copy-btn:hover {
  background: var(--red-dark);
}

/* --- Public Playlist: nút thêm bài + toast (2026-09-14) --- */
.ps-song-item {
  padding-right: 44px;
}
.ps-add-playlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ps-border-strong);
  border-radius: 8px;
  background: var(--ps-surface);
  color: var(--ps-accent);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: 0.16s;
}
.ps-add-playlist-btn:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.pp-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ps-surface);
  color: var(--ps-text);
  border: 1px solid var(--ps-border-strong);
  box-shadow: var(--ps-shadow);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.pp-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.pp-toast-link {
  color: var(--ps-accent);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* --- Public Playlist: nút "Xem playlist" trang danh sách (2026-09-14) --- */
.pp-view-playlist-bar {
  margin-bottom: 9px;
}
.pp-view-playlist-bar .ps-tool-btn--viewplaylist {
  width: 100%;
}

/* TTCD-CTA 2026-11-02: link dang ky tai khoan mau vang */
.ps-seo-subtitle a,
.ps-hero p a,
.ps-share-header p a {
  color: #ffcd51;
  font-weight: 700;
  text-decoration: underline;
}
.ps-seo-subtitle a:hover,
.ps-hero p a:hover,
.ps-share-header p a:hover {
  color: #ffe08a;
}

/* Font Awesome dùng chung với songs: icon trong toast / tuner / header */
.pp-toast-ico {
  font-size: 16px;
  flex: 0 0 auto;
  color: var(--red);
}
.gt-status-ico {
  margin-right: 2px;
}
.ps-search-wrapper .ps-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}
