:root {
  --primary: #58cc02;
  --primary-pressed: #46a700;
  --primary-border: #3aa400;
  --secondary: #ffd45b;
  --secondary-border: #e6bf4f;
  --accent-blue: #1cb0f6;
  --accent-blue-border: #1899d6;
  --accent-purple: #ce82ff;
  --accent-purple-border: #b86cf2;
  --nav-h: 62px;
  --bg: #fff8ee;
  --surface: #ffffff;
  --surface-soft: #fff1cf;
  --surface-muted: #f6f4ef;
  --text: #1f2a1f;
  --text-secondary: #6b7268;
  --text-dim: #9ca39a;
  --safe-bg: #effbe6;
  --safe-text: #2fb344;
  --risk-bg: #fff1f0;
  --risk-text: #e5484d;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --shadow-card: 0 4px 0 rgba(0,0,0,0.05);
  --shadow-btn: 0 6px 0 var(--primary-border);
  --shadow-btn-pressed: 0 3px 0 var(--primary-border);
  --font-rounded: "Varela Round", "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-rounded);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 18px;
  font-weight: 600;
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav.site-nav {
  background: var(--surface);
  border-bottom: 3px solid var(--surface-muted);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

@media (max-width: 820px) {
  nav .container { display: flex; }
  .nav-menu { display: none; }
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
nav .logo img {
  display: block;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}
nav .logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.3px;
}

/* Right group (hamburger + lang) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
}
.nav-toggle:hover { background: var(--surface-muted); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.25s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Tool nav - desktop: icons, mobile: dropdown */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.12s;
  position: relative;
}
.nav-menu a:hover {
  color: var(--text);
  background: var(--surface-soft);
}
.nav-menu a.active {
  color: var(--primary);
  background: var(--safe-bg);
  width: auto;
  padding: 0 14px 0 10px;
  gap: 5px;
}
.nav-menu a.active .nav-label {
  display: inline;
  font-size: 13px;
  font-weight: 800;
}
.nav-menu a.active[data-tip]:hover::after,
.nav-menu a.active[data-tip]:hover::before {
  display: none;
}
.nav-menu a[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--primary-border);
  z-index: 200;
  pointer-events: none;
}
.nav-menu a[data-tip]:hover::before {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--primary);
  z-index: 200;
  pointer-events: none;
}
.nav-menu .nav-icon {
  width: 20px;
  height: 20px;
}
.nav-menu .nav-label { display: none; }

/* Mobile: dropdown with labels */
@media (max-width: 820px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 4px solid var(--surface-muted);
    padding: 8px 12px 16px;
    gap: 2px;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-secondary);
  }
  .nav-menu a:hover {
    color: var(--text);
    background: var(--surface-soft);
  }
  .nav-menu a.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 3px 0 var(--primary-border);
  }
  .nav-menu .nav-label { display: inline; }
  .nav-menu .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-soft);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}
.lang-toggle:hover { background: var(--surface-muted); }
.lang-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.lang-toggle.is-open svg { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  flex-direction: column;
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 6px;
  gap: 2px;
  z-index: 99;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  min-width: 140px;
}
.lang-menu.is-open { display: flex; }
.lang-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius);
  transition: all 0.1s;
  white-space: nowrap;
}
.lang-menu a:hover {
  color: var(--text);
  background: var(--surface-soft);
}
.lang-menu a.active {
  color: var(--primary);
  background: var(--safe-bg);
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--text);
}

.hero p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tool input */
.tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--surface-muted);
}

.dl-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: var(--surface-soft);
  color: var(--text);
  border: 3px solid var(--surface-muted);
  border-radius: var(--radius);
  font: 600 16px/1.5 var(--font-rounded);
  outline: none;
  resize: none;
  min-height: 80px;
  display: block;
  transition: border-color 0.15s, background 0.15s;
}

.dl-form textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.dl-form textarea::placeholder {
  color: var(--text-secondary);
  font-weight: 600;
}

.dl-input-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.dl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 32px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-rounded);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}

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

.dl-btn-primary:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-btn-pressed);
}

.dl-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-btn);
}

.dl-form-hint {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.dl-form-hint.err { color: var(--risk-text); }
.dl-form-hint.ok { color: var(--safe-text); }

/* Song hero card */
.song-hero {
  --cover-url: none;
  position: relative;
  margin: 24px 0 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.song-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: var(--cover-url);
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.3) brightness(0.9);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.song-hero > * { position: relative; z-index: 1; }

.song-hero-suno {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--surface-muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  min-height: 44px;
  cursor: pointer;
}

.song-hero-suno:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-soft);
}

.song-hero-suno svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.song-hero-top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 560px) {
  .song-hero { padding: 20px; }
  .song-hero-top { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .song-hero-suno { position: static; margin-bottom: 10px; display: inline-flex; }
  .song-hero-meta { justify-content: center; }
  .song-hero-tags { justify-content: center; }
}

.song-hero-cover {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-muted);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

@media (max-width: 560px) {
  .song-hero-cover { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1/1; margin: 0 auto; }
}

.song-hero-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}

.song-hero-artist {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
}

.song-hero-artist strong { color: var(--primary); font-weight: 800; }

.song-hero-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.song-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.song-hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.song-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.song-hero-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
}

/* Details toggle */
.song-hero-toggle.dl-hidden { display: none; }
.song-hero-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-blue);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.song-hero-toggle:hover { color: var(--primary); }
.song-hero-toggle-arrow {
  width: 16px; height: 16px;
  transition: transform 0.2s;
}
.song-hero-toggle[aria-expanded="true"] .song-hero-toggle-arrow {
  transform: rotate(180deg);
}

.song-hero-details {
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.song-hero-details.dl-collapsed {
  display: none;
}

/* Skeleton loading */
.song-hero.is-loading .song-hero-title,
.song-hero.is-loading .song-hero-artist,
.song-hero.is-loading .song-hero-meta li,
.song-hero.is-loading .song-hero-tag {
  background: linear-gradient(90deg, var(--surface-muted), #e8e6e0, var(--surface-muted));
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: 8px;
}

.song-hero.is-loading .song-hero-title { height: 28px; width: 70%; margin-bottom: 8px; }
.song-hero.is-loading .song-hero-artist { height: 18px; width: 40%; }
.song-hero.is-loading .song-hero-meta li { height: 14px; width: 60px; }
.song-hero.is-loading .song-hero-tag { height: 22px; width: 50px; }
.song-hero.is-loading .song-hero-cover { opacity: 0.3; }
.song-hero.is-loading .song-hero-suno { opacity: 0.3; pointer-events: none; }

@keyframes skelShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Lyrics */
.song-hero-lyrics {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--surface-muted);
}
.song-hero-lyrics-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.song-hero-lyrics-content {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 16px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
  scroll-behavior: smooth;
}
.song-hero-lyrics-content::-webkit-scrollbar { width: 5px; }
.song-hero-lyrics-content::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 99px; }
.song-hero-lyrics-content:empty { display: none; }

/* Sections */
.dl-section {
  margin-top: 20px;
}

.dl-section-label {
  margin: 0 4px 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-dim);
}

/* Preview */
.dl-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-audio-wrap {
  padding: 10px 12px;
  background: var(--surface-muted);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
}

.dl-audio-wrap audio {
  width: 100%;
  height: 40px;
  display: block;
}

.dl-video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 2px solid var(--surface-muted);
}

.dl-video-wrap video {
  width: 100%;
  max-height: 360px;
  display: block;
  background: #000;
}

.dl-preview-miss {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--surface-soft);
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
}

.dl-preview-miss strong { color: var(--text); font-weight: 800; }

/* Download chips */
.dl-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 640px) { .dl-rail { grid-template-columns: 1fr; } }

.dl-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  text-align: left;
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-rounded);
  font-size: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.1s;
}

.dl-chip:hover:not([disabled]) {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0,0,0,0.05);
}

.dl-chip:active:not([disabled]) {
  transform: translateY(2px);
  box-shadow: none;
}

.dl-chip[disabled] { opacity: 0.55; cursor: not-allowed; }
.dl-chip.is-saved { border-color: var(--primary); background: var(--safe-bg); }

.dl-chip-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--text-secondary);
}
.dl-chip-ic svg { width: 20px; height: 20px; }

.dl-chip.is-saved .dl-chip-ic { background: var(--primary); color: #fff; }

.dl-chip-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }

.dl-chip-kind {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.dl-chip-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 2px;
}

.dl-chip-arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.15s, color 0.15s;
}

.dl-chip:hover:not([disabled]) .dl-chip-arrow {
  color: var(--primary);
  transform: translateY(2px);
}

.dl-chip.is-saved .dl-chip-arrow { color: var(--primary); }

/* Chip states */
.dl-chip.is-checking { opacity: 0.7; cursor: wait; }
.dl-chip.is-unavailable {
  opacity: 0.6;
  cursor: default;
  border-style: dashed;
}
.dl-chip.is-unavailable:hover { border-color: var(--surface-muted); transform: none; }
.dl-chip.is-unavailable .dl-chip-arrow { display: none; }

/* Download-all button */
.dl-btn-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 24px;
  border: 3px solid var(--accent-blue-border);
  border-radius: var(--radius);
  background: var(--accent-blue);
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--accent-blue-border);
  transition: transform 0.1s, box-shadow 0.1s;
}
.dl-btn-all:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--accent-blue-border);
}
.dl-btn-all:active:not([disabled]) {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--accent-blue-border);
}
.dl-btn-all[disabled] {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  transform: none;
}
.dl-btn-all-ic { font-size: 22px; line-height: 1; }

.dl-hidden { display: none !important; }

/* Content sections */
.section {
  margin: 48px 0;
}

.section h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
}

.section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.section p, .section li {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.section ul, .section ol {
  padding-left: 24px;
}

.section ol li, .section ul li {
  margin-bottom: 10px;
}

.section ol li::marker,
.section ul li::marker {
  color: var(--primary);
  font-weight: 800;
}

.section strong {
  color: var(--text);
  font-weight: 800;
}

.section code {
  background: var(--surface-muted);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.faq-item {
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text);
  cursor: pointer;
}

.faq-item p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

footer {
  background: var(--surface);
  border-top: 3px solid var(--surface-muted);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  transition: border-color 0.1s;
}

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

footer .disclaimer {
  background: var(--surface-soft);
  border: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

footer .disclaimer strong {
  font-weight: 900;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .footer-copy {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Footer sitemap */
.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: left;
  margin-bottom: 32px;
}
.footer-sitemap-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-sitemap-col h4 {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-sitemap-col a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: none;
  transition: color 0.1s;
}
.footer-sitemap-col a:hover {
  color: var(--primary);
  border-bottom: none;
}

@media (max-width: 600px) {
  .footer-sitemap { gap: 24px; }
}

/* === Specialized tool pages === */

/* Lyrics card - beautiful typography */
.lyrics-card {
  margin: 24px 0 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.lyrics-card-header {
  position: relative;
  padding: 28px 32px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  overflow: hidden;
}
.lyrics-card-header::before {
  content: '';
  position: absolute;
  inset: -30%;
  background-image: var(--cover-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(50px) saturate(1.2) brightness(1.05);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.lyrics-card-header > * { position: relative; z-index: 1; }
.lyrics-card-cover {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-muted);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.lyrics-card-meta { min-width: 0; }
.lyrics-card-title {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}
.lyrics-card-artist {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.lyrics-card-date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.lyrics-card-divider {
  height: 2px;
  background: var(--surface-muted);
  margin: 0 32px;
}
.lyrics-card-body {
  padding: 28px 32px 32px;
}
.lyrics-card-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 2.1;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}
.lyrics-card-text::-webkit-scrollbar { width: 5px; }
.lyrics-card-text::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 99px; }
.lyrics-card-text.dl-hidden { display: none; }

/* Lyrics tag (e.g. [Chorus], [Verse 1]) */
.lyrics-tag {
  display: block;
  margin: 20px 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}
.lyrics-tag:first-child { margin-top: 0; }

/* Divider between sections */
.lyrics-section-divider {
  display: block;
  height: 1px;
  margin: 20px 0;
  background: var(--surface-muted);
}

/* Plain lyric line */
.lyrics-line {
  display: block;
}

/* Themes */
.lyrics-card.theme-dark {
  background: #1a1a2e;
  border-color: #2a2a3e;
  color: #e8e8f0;
}
.theme-dark .lyrics-card-header::before { opacity: 0.08; }
.theme-dark .lyrics-card-title { color: #f0f0ff; }
.theme-dark .lyrics-card-artist { color: #58cc02; }
.theme-dark .lyrics-card-date { color: #6b7280; }
.theme-dark .lyrics-card-text { color: #d0d0e0; }
.theme-dark .lyrics-tag { color: #58cc02; }
.theme-dark .lyrics-section-divider { background: #2a2a3e; }
.theme-dark .lyrics-card-divider { background: #2a2a3e; }

.lyrics-card.theme-compact .lyrics-card-text {
  font-size: 14px;
  line-height: 1.7;
  max-height: 400px;
}
.lyrics-card.theme-compact .lyrics-tag { font-size: 11px; margin: 14px 0 4px; }
.lyrics-card.theme-compact .lyrics-section-divider { margin: 14px 0; }

.lyrics-card.theme-large .lyrics-card-text {
  font-size: 21px;
  line-height: 2.2;
  max-height: 600px;
}
.lyrics-card.theme-large .lyrics-tag { font-size: 15px; margin: 26px 0 8px; }
.lyrics-card.theme-large .lyrics-section-divider { margin: 26px 0; }
.lyrics-card.theme-large .lyrics-card-cover { width: 90px; height: 90px; }
.lyrics-card.theme-large .lyrics-card-title { font-size: 26px; }

/* Theme selector */
.lyrics-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  flex-wrap: wrap;
}
.lyrics-toolbar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.lyrics-theme-btn {
  padding: 5px 12px;
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.lyrics-theme-btn:hover { border-color: var(--text-dim); }
.lyrics-theme-btn.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--safe-bg);
}

.lyrics-card-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.lyrics-card-actions .dl-btn-primary {
  padding: 12px 32px;
  font-size: 16px;
  min-width: 200px;
  justify-content: center;
}
.lyrics-card-actions .dl-btn-ghost {
  padding: 12px 20px;
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lyrics-card-actions .dl-btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Skeleton loading */
.lyrics-card.is-loading .lyrics-card-title,
.lyrics-card.is-loading .lyrics-card-artist,
.lyrics-card.is-loading .lyrics-card-date,
.lyrics-card.is-loading .lyrics-card-text,
.lyrics-card.is-loading .lyrics-toolbar {
  background: linear-gradient(90deg, var(--surface-muted), #e8e6e0, var(--surface-muted));
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: 8px;
}
.lyrics-card.is-loading .lyrics-card-title { height: 26px; width: 55%; margin-bottom: 6px; }
.lyrics-card.is-loading .lyrics-card-artist { height: 18px; width: 35%; margin-bottom: 4px; }
.lyrics-card.is-loading .lyrics-card-date { height: 14px; width: 25%; }
.lyrics-card.is-loading .lyrics-card-text { height: 200px; }
.lyrics-card.is-loading .lyrics-card-cover { opacity: 0.3; }
.lyrics-card.is-loading .lyrics-toolbar { height: 32px; width: 60%; }

@media (max-width: 560px) {
  .lyrics-card-header { padding: 20px 20px 18px; gap: 14px; }
  .lyrics-card-cover { width: 56px; height: 56px; }
  .lyrics-card-title { font-size: 18px; }
  .lyrics-card-divider { margin: 0 20px; }
  .lyrics-card-body { padding: 20px; }
  .lyrics-card-text { font-size: 15px; line-height: 1.9; }
  .lyrics-card.theme-large .lyrics-card-text { font-size: 18px; }
  .lyrics-card.theme-large .lyrics-card-title { font-size: 22px; }
}

/* === Full-screen slideshow === */
.lyrics-ps {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f0f1a;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.lyrics-ps.is-open {
  opacity: 1;
  visibility: visible;
}
.lyrics-ps-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.2);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.lyrics-ps > * { position: relative; z-index: 1; }
.lyrics-ps-section {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 720px;
  max-height: 70vh;
  overflow-y: auto;
  transition: opacity 0.25s;
  scrollbar-width: none;
}
.lyrics-ps-section::-webkit-scrollbar { display: none; }
.lyrics-ps-section.is-fading { opacity: 0; }
.lyrics-ps-tag {
  display: block;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}
.lyrics-ps-progress {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  transition: opacity 0.4s ease;
  gap: 6px;
  align-items: center;
}
.lyrics-ps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.lyrics-ps-dot.is-active { background: var(--primary); width: 24px; border-radius: 4px; }
.lyrics-ps-topbar {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.lyrics-ps-close, .lyrics-ps-fs {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.4s ease;
}
.lyrics-ps-close:hover,
.lyrics-ps-fs:hover { background: rgba(255,255,255,0.16); }
.lyrics-ps-fs.is-active {
  background: var(--primary);
  color: #fff;
}
.lyrics-ps-fs.is-active:hover { background: var(--primary-dark, var(--primary)); }
.lyrics-ps.is-idle .lyrics-ps-topbar { opacity: 0; pointer-events: none; }
.lyrics-ps.is-idle .lyrics-ps-hint { opacity: 0; pointer-events: none; }
.lyrics-ps.is-idle .lyrics-ps-progress { opacity: 0; pointer-events: none; }
.lyrics-ps-hint {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

/* Video player wrapper */
.dl-player-wrap {
  margin: 18px 0;
}
.dl-player-wrap video {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius);
  background: #000;
  display: block;
}

/* Cover page - large image + size info */
.dl-cover-display {
  margin: 18px 0;
  text-align: center;
}
.dl-cover-display img {
  max-width: 100%;
  max-height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  background: var(--surface-muted);
}
.dl-cover-size {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.dl-cover-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* No-video / no-lyrics message */
.dl-empty-state {
  text-align: center;
  padding: 32px 20px;
  margin: 18px 0;
  background: var(--surface);
  border: 3px dashed var(--surface-muted);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.dl-empty-state strong {
  color: var(--text);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}
.dl-empty-state .dl-empty-ic {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}
.dl-empty-state .dl-empty-ic svg { width: 40px; height: 40px; display: block; margin: 0 auto; }

/* Small cover download button variant */
.dl-chip-s {
  padding: 10px 18px;
  font-size: 15px;
}

/* Video card (lyrics-card style for video page) */
.video-card {
  margin: 24px 0 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.video-card-cover-wrap {
  position: relative;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.video-card-cover {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.video-card-play-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 40px;
  font-size: 20px;
  min-width: 200px;
  justify-content: center;
  box-shadow: 0 6px 0 var(--primary-border);
  gap: 10px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-rounded);
  font-weight: 800;
  background: var(--primary);
  color: #fff;
}
.video-card-play-btn:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow: 0 3px 0 var(--primary-border);
}
.video-card-play-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateX(-50%);
  box-shadow: 0 6px 0 var(--primary-border);
}
.video-card-play-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.video-card-info {
  padding: 24px 28px 28px;
  text-align: center;
}
.video-card-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}
.video-card-artist {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.video-card-artist strong { color: var(--primary); font-weight: 800; }
.video-card-date {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.video-card-suno {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.video-card-suno:hover { background: var(--surface-soft); }
.video-card-suno svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.video-card-dl-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 24px;
  font-size: 16px;
}
.video-card.is-loading .video-card-dl-btn {
  height: 48px;
  background: linear-gradient(90deg, var(--surface-muted), #e8e6e0, var(--surface-muted));
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: var(--radius);
  box-shadow: none;
  border: none;
  pointer-events: none;
}

/* Cover card */
.cover-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 18px;
}
.cover-card-cover-wrap {
  position: relative;
  background: var(--surface-muted);
}
.cover-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.cover-card-info {
  padding: 24px 28px 28px;
  text-align: center;
}
.cover-card-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}
.cover-card-artist {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.cover-card-artist strong { color: var(--primary); font-weight: 800; }
.cover-card-size {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.cover-card-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.cover-card-btn {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  min-width: 0;
}
.cover-card-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cover-card-suno {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.cover-card-suno:hover { background: var(--surface-soft); }
.cover-card-suno svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* Cover card skeleton */
.cover-card.is-loading .cover-card-title,
.cover-card.is-loading .cover-card-artist,
.cover-card.is-loading .cover-card-size,
.cover-card.is-loading .cover-card-btn {
  background: linear-gradient(90deg, var(--surface-muted), #e8e6e0, var(--surface-muted));
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: 8px;
}
.cover-card.is-loading .cover-card-actions .cover-card-btn {
  height: 48px;
  box-shadow: none;
  border: none;
  pointer-events: none;
}
.cover-card.is-loading .cover-card-title { height: 26px; width: 55%; margin: 0 auto 6px; }
.cover-card.is-loading .cover-card-artist { height: 18px; width: 35%; margin: 0 auto 4px; }
.cover-card.is-loading .cover-card-size { height: 14px; width: 25%; margin: 0 auto 16px; }
.cover-card.is-loading .cover-card-cover { opacity: 0.3; }

/* Metadata editor */
.me-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  border: 3px dashed var(--surface-muted);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.me-drop-zone:hover { border-color: var(--primary); background: var(--surface-soft); }
.me-drop-zone.is-dragover { border-color: var(--primary); background: var(--surface-soft); }
.me-drop-zone.is-loaded { border-style: solid; border-color: var(--primary); }
.me-drop-icon { color: var(--text-dim); }
.me-drop-zone.is-loaded .me-drop-icon,
.me-drop-zone.is-loaded .me-drop-sub { display: none; }
.me-drop-text { text-align: center; }
.me-drop-hint {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.me-drop-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 4px;
}
.me-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  min-height: 1.4em;
}
.me-status.err { color: var(--risk-text); }
.me-status.ok { color: var(--primary); }
.me-form {
  margin-top: 18px;
}
.me-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.me-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.me-field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.me-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.me-input {
  padding: 10px 14px;
  border: 2.5px solid var(--surface-muted);
  border-radius: var(--radius);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
.me-input:focus { border-color: var(--primary); }
.me-save-btn {
  width: 100%;
  padding: 16px 32px !important;
  font-size: 17px !important;
  gap: 8px !important;
}

/* Cover section */
.me-cover-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--surface-muted);
}
.me-cover-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.me-cover-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.me-cover-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 5px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.me-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.me-cover-placeholder {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
  padding: 0 12px;
}
.me-cover-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.me-cover-btn {
  padding: 12px 28px !important;
  font-size: 16px !important;
  min-height: 46px !important;
  box-shadow: 0 5px 0 var(--primary-border) !important;
}
.me-cover-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 2px 0 var(--primary-border) !important;
}
.me-cover-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 28px;
  min-height: 46px;
  border: none;
  border-radius: var(--radius);
  background: var(--risk-bg);
  color: var(--risk-text);
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-rounded);
  cursor: pointer;
  box-shadow: 0 5px 0 #d9c6c5;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.me-cover-remove:hover { background: #ffe4e2; }
.me-cover-remove:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #d9c6c5;
}

/* Playlist list */
.pl-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--surface-soft), #fff);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.pl-header.no-img {
  justify-content: center;
  text-align: center;
  background: var(--primary);
}
.pl-header.no-img .pl-header-text {
  text-align: center;
}
.pl-header.no-img .pl-header-label {
  color: rgba(255,255,255,0.8);
}
.pl-header.no-img .pl-header-text strong {
  color: #fff;
  font-size: 22px;
  white-space: normal;
}
.pl-header-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: 0 3px 0 rgba(0,0,0,0.06);
}
.pl-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pl-header-text {
  min-width: 0;
  text-align: left;
}
.pl-header-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}
.pl-header-text strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  align-items: center;
}
.pl-item-cover-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-muted);
}
.pl-item-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pl-item-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pl-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pl-item-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 24px;
  text-align: right;
}
.pl-item-text {
  min-width: 0;
}
.pl-item-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-item-artist {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-item-artist strong { color: var(--primary); font-weight: 800; }
.pl-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pl-item-btn {
  padding: 7px 12px !important;
  font-size: 12px !important;
  min-height: auto !important;
  box-shadow: 0 3px 0 var(--primary-border) !important;
  gap: 4px !important;
}
.pl-item-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 var(--primary-border) !important;
}
.pl-item-btn svg { width: 14px; height: 14px; }
.pl-batch-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.pl-batch-btn {
  padding: 14px 36px !important;
  font-size: 17px !important;
  gap: 8px !important;
}
.pl-batch-cover-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  padding: 4px 0;
}
.pl-batch-cover-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pl-batch-cover-toggle .check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--text-dim);
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.pl-batch-cover-toggle .check-box svg {
  display: block;
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
  color: #fff;
}
.pl-batch-cover-toggle input:checked + .check-box {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 0 var(--primary-border);
}
.pl-batch-cover-toggle input:checked + .check-box svg {
  opacity: 1;
  transform: scale(1);
}
.pl-batch-cover-toggle:hover input:not(:checked) + .check-box {
  border-color: var(--primary);
  transform: scale(1.05);
}
.pl-batch-cover-toggle:active .check-box {
  transform: scale(0.92);
}
.pl-batch-cover-toggle-label {
  line-height: 1.2;
}

/* Player top bar */
.dl-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  transition: opacity 0.4s ease;
}
.dl-player-topbar-actions {
  display: flex;
  gap: 8px;
}
.dl-player-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-player-dl-btn {
  padding: 8px 18px;
  font-size: 13px;
  min-height: auto;
  gap: 5px;
  box-shadow: 0 4px 0 var(--primary-border);
}
.dl-player-dl-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-border);
}
.dl-player-cinema-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius-full);
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dl-player-cinema-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
}
.dl-player-cinema-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 0 var(--primary-border);
}
.dl-player-cinema-btn.is-active:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--primary-border);
}

/* Cinema hint */
.dl-player-cinema-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 10001;
}
.dl-player-cinema-hint.is-visible { opacity: 1; }
.dl-player-cinema-hint.is-idle { opacity: 0; }
.dl-player-cinema-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
}

/* Download progress bar (Duolingo style) */
.dl-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
}
.dl-progress-track {
  flex: 1;
  height: 14px;
  background: var(--surface-muted);
  border-radius: 999px;
  overflow: hidden;
}
.dl-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.dl-progress-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dl-progress.is-done .dl-progress-fill {
  background: var(--primary);
}

/* Cinema mode */
.is-cinema {
  background: #07070d !important;
}
.is-cinema .container > .hero,
.is-cinema .container > .section,
.is-cinema nav,
.is-cinema footer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.is-cinema .tool-card .dl-form,
.is-cinema .tool-card .dl-form-hint,
.is-cinema .tool-card .video-card,
.is-cinema .tool-card .dl-empty-state {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.is-cinema .tool-card .dl-player-wrap {
  position: fixed;
  inset: 0;
  z-index: 10000;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  padding: 0;
  animation: cinemaIn 0.4s ease;
}
@keyframes cinemaIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.is-cinema .tool-card .dl-player-wrap video {
  max-height: 100vh;
  height: 100%;
  width: 100%;
  border-radius: 0;
  object-fit: contain;
}
.is-cinema .tool-card .dl-player-wrap .dl-player-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: linear-gradient(rgba(0,0,0,0.7), transparent);
  padding: 16px 20px;
  margin: 0;
}
.is-cinema .tool-card .dl-player-wrap .dl-player-label {
  color: rgba(255,255,255,0.8);
}
.is-cinema .tool-card .dl-player-wrap .dl-player-dl-btn {
  box-shadow: 0 4px 0 var(--primary-border);
}
.is-cinema .tool-card .dl-player-wrap .dl-player-cinema-btn {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.is-cinema .tool-card .dl-player-wrap .dl-player-cinema-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Cinema idle — auto-hide chrome */
.is-cinema-idle .tool-card .dl-player-wrap .dl-player-topbar {
  opacity: 0;
  pointer-events: none;
}
.is-cinema-idle .tool-card .dl-player-wrap video::-webkit-media-controls {
  opacity: 0 !important;
  transition: opacity 0.4s;
}

/* No-video state — Duolingo risk pattern */
.video-card.is-no-video .video-card-play-btn {
  background: var(--risk-text);
  box-shadow: 0 6px 0 #b02a2a;
}
.video-card.is-no-video .video-card-play-btn:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow: 0 3px 0 #b02a2a;
}
.video-card.is-no-video .video-card-play-btn svg {
  display: none;
}
.video-card.is-no-video .video-card-play-btn:disabled {
  opacity: 1;
}

/* Video card skeleton */
.video-card.is-loading .video-card-title,
.video-card.is-loading .video-card-artist,
.video-card.is-loading .video-card-date,
.video-card.is-loading .video-card-play-btn {
  background: linear-gradient(90deg, var(--surface-muted), #e8e6e0, var(--surface-muted));
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: 8px;
}
.video-card.is-loading .video-card-title { height: 26px; width: 55%; margin: 0 auto 6px; }
.video-card.is-loading .video-card-artist { height: 18px; width: 35%; margin: 0 auto 4px; }
.video-card.is-loading .video-card-date { height: 14px; width: 25%; margin: 0 auto 14px; }
.video-card.is-loading .video-card-play-btn { height: 56px; width: 200px; margin: 0 auto; box-shadow: none; position: static; transform: none; color: transparent; }
.video-card.is-loading .video-card-cover { opacity: 0.3; }

/* ─── Blog / Article pages ─────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 64px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius-full);
  flex-wrap: wrap;
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 90;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb a[aria-current="page"],
.breadcrumb > span:last-child {
  color: var(--primary);
  font-weight: 800;
}
.breadcrumb .sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 900;
  opacity: 1;
  flex-shrink: 0;
}
.article-header {
  margin-bottom: 32px;
}
.article-header h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; opacity: 0.7; }
.article-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--surface-muted);
  margin: 24px 0 32px;
  background: var(--surface-muted);
}
.article-hero-placeholder {
  width: 100%;
  
  border-radius: var(--radius-lg);

  
  margin: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
}
.article-hero-placeholder svg { width: 40px; height: 40px; margin-bottom: 8px; }
.article-toc {
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 24px 28px 18px 28px;
  margin-bottom: 36px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
}
.article-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 3px solid var(--surface-muted);
  margin: 0 0 18px 0;
}
.article-toc h2 {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-toc h2 svg { width: 18px; height: 18px; color: var(--primary); }
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 28px;
}
.article-toc ol li { counter-increment: toc; margin: 0; padding: 0; break-inside: avoid; }
.article-toc ol li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 -8px 4px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.article-toc ol li a::before {
  content: counter(toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--surface-muted);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 900;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.article-toc ol li a:hover {
  background: rgba(88, 204, 2, 0.08);
  color: var(--primary);
}
.article-toc ol li a:hover::before {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin: 0 0 20px; }
.prose h2 {
  font-size: 26px;
  font-weight: 900;
  margin: 40px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 12px;
  line-height: 1.35;
}
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 8px 0; line-height: 1.7; }
.prose strong { font-weight: 800; }
.prose em { font-style: italic; }
.prose a { color: var(--primary); text-decoration: underline; font-weight: 700; }
.prose a:hover { color: var(--primary-pressed); }
.prose code {
  background: var(--surface-muted);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--text);
}
.prose pre {
  background: var(--surface-muted);
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
  border-left: 4px solid var(--secondary);
  padding: 8px 0 8px 20px;
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--surface-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--surface-muted);
  margin: 20px 0;
}
.prose figure { margin: 28px 0; text-align: center; }
.prose figure img { display: block; margin: 0 auto; }
.prose figcaption {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 10px;
}
.prose .callout {
  background: linear-gradient(135deg, hsla(166, 56%, 92%, 0.6), hsla(48, 100%, 94%, 0.5));
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 24px 0;
  font-weight: 700;
}
.prose .callout-title { display: block; font-size: 13px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose figure figure-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
  border: 2px dashed var(--text-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-weight: 700;
  margin: 20px 0;
}
.prose .cta-box {
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
}
.prose .cta-box h3 { margin-top: 0; color: var(--primary); }
.prose .cta-box .cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.06s, box-shadow 0.06s;
  margin-top: 8px;
}
.prose .cta-box .cta-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 0 var(--primary-border); }
.prose .cta-box .cta-btn:active { transform: translateY(3px); box-shadow: var(--shadow-btn-pressed); }
.article-faq {
  margin-top: 40px;
}
.article-faq h2 { margin-bottom: 16px; }
.article-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 20px;
  background: var(--surface-muted);
  border-radius: var(--radius);
  list-style: none;
  position: relative;
  transition: background 0.15s;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.article-faq details[open] summary::after { content: "−"; }
.article-faq details { margin-bottom: 12px; }
.article-faq summary:hover { background: var(--surface-soft); }
.article-faq .faq-answer {
  padding: 14px 20px 4px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.article-related {
  border-top: 2px solid var(--surface-muted);
  padding-top: 28px;
  margin-top: 48px;
}
.article-related h2 { font-size: 22px; margin: 0 0 16px; }
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.article-related-card {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 3px solid var(--surface-muted);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}
.article-related-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.article-related-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.article-related-card p { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 0; }

@media (max-width: 768px) {
  .article { padding: 16px 0 48px; }
  .article-header h1 { font-size: 26px; }
  .breadcrumb { position: static; padding: 8px 12px; gap: 6px; font-size: 12px; }
  .breadcrumb .sep { width: 14px; height: 14px; font-size: 10px; }
  .article-toc { padding: 16px 18px; }
  .article-toc ol { columns: 1; }
  .prose { font-size: 16px; line-height: 1.7; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 18px; }
  .cta-box { padding: 20px; }
  .article-related-grid { grid-template-columns: 1fr; }
}

