/*
Theme Name: Harmonia Bundle
Theme URI: https://harmoniabundle.com
Author: Harmonia Bundle
Description: Minimal dark theme for Harmonia Bundle — authentic world music samples.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: harmonia-bundle
*/

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080808;
  --bg-2:     #111111;
  --bg-3:     #1a1a1a;
  --border:   #222222;
  --text:     #ffffff;
  --text-2:   #aaaaaa;
  --text-3:   #555555;
  --accent:   #c8a96e;
  --accent-2: #e8c898;
  --radius:   6px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span { color: var(--accent); }

/* ─── Nav ──────────────────────────────────────────────────────────────────── */
.nav-primary { display: flex; align-items: center; }

.nav-primary ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-primary ul li { position: relative; }

.nav-primary ul li a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-primary ul li a:hover,
.nav-primary ul li.current-menu-item:not(.btn-cta) > a {
  color: var(--text);
  background: var(--bg-3);
}

/* Dropdown */
.nav-primary ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 6px 6px;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.nav-primary ul li:hover > ul,
.nav-primary ul li:focus-within > ul {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav-primary ul li ul li a {
  display: block;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-2);
  text-align: left;
}

.nav-primary ul li ul li a:hover { color: var(--text); background: var(--bg-3); }

/* CTA nav button */
.nav-primary .menu-item-buy > a,
.nav-primary li > a[href*="lifetime"],
.nav-primary li.btn-cta > a {
  background: var(--accent);
  color: #000 !important;
  font-weight: 600;
  padding: 7px 16px;
}

.nav-primary .menu-item-buy > a:hover,
.nav-primary li.btn-cta > a:hover {
  background: var(--accent-2);
}

/* ─── Hamburger ────────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-toggle:hover { background: var(--bg-3); }

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Nav ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-primary {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-primary.is-open { transform: translateX(0); }

  .nav-primary ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-primary ul li { width: 100%; }

  .nav-primary ul li > a {
    padding: 13px 0;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    width: 100%;
  }

  .nav-primary ul li ul {
    position: static;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: none;
  }

  .nav-primary ul li ul li {
    width: 100%;
    display: block;
  }

  .nav-primary ul li ul li a {
    display: block;
    width: 100%;
    font-size: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-3);
    text-align: left !important;
  }

  .nav-primary .menu-item-buy > a,
  .nav-primary li.btn-cta > a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: var(--radius);
  }
}

/* ─── Main ─────────────────────────────────────────────────────────────────── */
.site-main { padding-top: var(--header-h); }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
  background: #fff;
  color: #111;
  --text:   #111111;
  --text-2: #555555;
  --border: rgba(0,0,0,.1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(184,147,90,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(184,147,90,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-features {
  align-items: stretch;
}

.hero-actions {
  justify-content: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-size: .75em;
  font-weight: 700;
  display: block;
  margin-top: 6px;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}


.hero-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-instruments {
  font-size: 13px;
  color: #111;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  text-align: center;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.3);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.5);
  color: #ffffff;
}

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

/* Hero video */
.hero-media { position: relative; }

.video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 48px 0 64px; min-height: auto; }
}

/* ─── Section Shared ───────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ─── Instrument Grid ──────────────────────────────────────────────────────── */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.instrument-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: block;
}

.instrument-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,169,110,0.15);
}

.instrument-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-3);
}

.instrument-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instrument-card:hover .instrument-card-img img {
  transform: scale(1.04);
}

.instrument-card-body {
  padding: 14px 16px 16px;
}

.instrument-card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.instrument-card-origin {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.instrument-card-count {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.instrument-file-count {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.instrument-zip-info {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
}
.instrument-zip-info strong { color: var(--text-2); }

/* ── File list header (artist + download bar) ─── */
.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.10));
}

.file-list-artist {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.file-list-artist-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.file-list-artist-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-1, #fff);
  letter-spacing: -0.01em;
}

.file-list-download-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  padding: 8px 14px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}
.file-list-download-note svg { flex-shrink: 0; opacity: .6; }
.file-list-download-note strong { color: var(--text-1, #fff); font-weight: 600; }
.file-list-zip-size {
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--border, rgba(255,255,255,0.15));
  color: var(--text-3);
}

@media (max-width: 600px) {
  .instruments-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ─── Photo Strip ──────────────────────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.photo-strip-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-strip-item:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ─── CTA Strip ────────────────────────────────────────────────────────────── */
.cta-strip {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-strip-copy h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 8px; color: #111111; }
.cta-strip-copy p  { color: #555555; font-size: 15px; }

@media (max-width: 640px) {
  .cta-strip { flex-direction: column; padding: 36px 24px; text-align: center; }
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ─── Generic Page ─────────────────────────────────────────────────────────── */
.page-content {
  padding: 64px 0 96px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 32px; }
.page-content h2 { font-size: 24px; margin: 40px 0 16px; }
.page-content p  { color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { color: var(--text-2); padding-left: 20px; margin-bottom: 16px; }
.page-content a  { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }

/* ─── Instrument Page ──────────────────────────────────────────────────────── */
.instrument-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.instrument-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.instrument-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.instrument-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.instrument-hero-desc p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.instrument-hero-desc .performer {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 0;
}

.instrument-hero-desc .bundle-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
}

.instrument-hero-desc .bundle-tag a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instrument-hero-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.instrument-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .instrument-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .instrument-hero-img   { order: -1; }
}

/* ─── Sample Previews ──────────────────────────────────────────────────────── */
.sample-previews {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.sample-previews .section-label { color: #a07840; }

.sample-previews .section-title { color: #111111; }

.sample-previews .section-subtitle { color: #555555; }

.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .sample-grid { grid-template-columns: 1fr; }
}

.sample-card {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.sample-card:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.sample-card.is-playing { border-color: var(--accent); background: #fff; }

.sample-play-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}

.sample-play-btn:hover   { background: var(--accent-2); transform: scale(1.08); }
.sample-card.is-playing .sample-play-btn { background: var(--accent-2); }

.sample-play-btn svg { width: 14px; height: 14px; fill: #000; }

.sample-card-info { flex: 1; min-width: 0; }

.sample-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sample-card-meta {
  font-size: 11px;
  color: #888888;
  letter-spacing: 0.05em;
}

/* ─── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-section {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 56px 0;
}

.pricing-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.pricing-strip-copy h2 { font-size: clamp(20px, 2.5vw, 28px); color: #111; margin-bottom: 8px; }
.pricing-strip-copy p  { font-size: 14px; color: #666; }

.pricing-section .btn-ghost {
  border: 2px solid #111;
  color: #111;
}

.pricing-section .btn-ghost:hover {
  background: #111;
  color: #fff;
}

.pricing-strip-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pricing-option-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.pricing-divider {
  font-size: 12px;
  color: #bbb;
  font-style: italic;
  margin-top: 18px;
}

/* ─── File List ────────────────────────────────────────────────────────────── */
.file-list-section { padding: 64px 0; border-top: 1px solid var(--border); }

.file-list-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.file-list-section h2:first-child { margin-top: 0; }

.file-list-section h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 28px 0 12px;
}

.file-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
  margin-bottom: 0;
}

.file-list li {
  font-size: 13px;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s;
}

.file-list li:hover { border-color: var(--border); }

.file-list li .preview-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(200,169,110,0.1);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ─── Sticky Audio Player ──────────────────────────────────────────────────── */
.hb-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: #0f0f0f;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}

.hb-player.is-visible { transform: translateY(0); }

.hb-player-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--bg-3);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.hb-player-icon svg { width: 18px; height: 18px; fill: var(--accent); }

.hb-player-info { flex-shrink: 0; min-width: 0; max-width: 200px; }

.hb-player-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-player-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.hb-player-controls {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}

.hb-btn-play {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.hb-btn-play:hover { background: var(--accent-2); transform: scale(1.06); }
.hb-btn-play svg   { width: 16px; height: 16px; fill: #000; }

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

.hb-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hb-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.hb-player-time {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.hb-btn-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  color: var(--text-3);
  transition: background 0.2s, color 0.2s;
}

.hb-btn-close:hover { background: var(--border); color: var(--text); }
.hb-btn-close svg   { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Player padding to avoid content being hidden behind player */
body.player-open { padding-bottom: 68px; }

@media (max-width: 600px) {
  .hb-player { padding: 0 12px; gap: 8px; height: 60px; }
  .hb-player-icon { display: none; }
  .hb-player-info { max-width: 90px; flex-shrink: 1; min-width: 0; }
  .hb-player-title { font-size: 11px; }
  .hb-player-sub { display: none; }
  .hb-player-controls { gap: 6px; }
  .hb-btn-play { width: 36px; height: 36px; }
  .hb-player-progress { gap: 6px; min-width: 0; }
  .hb-player-time { font-size: 10px; min-width: 36px; }
  .hb-btn-close { width: 28px; height: 28px; }
  .sample-grid { grid-template-columns: 1fr; }
}

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg-2);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s;
  cursor: pointer;
}

.faq-question:hover { background: var(--bg-3); }

.faq-question[aria-expanded="true"] { background: var(--bg-3); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--accent);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); }

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  background: var(--bg-2);
}

.faq-answer.is-open { grid-template-rows: 1fr; }

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 28px 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin: 0;
}

.faq-answer-inner a { color: var(--accent); }
.faq-answer-inner a:hover { text-decoration: underline; }

/* ─── WP Admin Bar ─────────────────────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
