/* ══════════════════════════════════════════════════════════════
   QUIETFIX — shared styles
   v1.0
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: 'DM Sans', sans-serif; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── TOKENS ── */
:root {
  --bg:        #141414;
  --surface:   #1f1f1f;
  --surface2:  #2a2a2a;
  --surface3:  #333333;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.15);
  --accent:    #7c3aed;
  --accent-dim:rgba(124,58,237,0.12);
  --accent2:   #5b21b6;
  --accent3:   #a78bfa;
  --text:      #ffffff;
  --muted:     #8c8c8c;
  --muted2:    #555555;
  --red:       #ef4444;
  --nav-h:     60px;
  --max-w:     1200px;
}

/* ── NAV ── */
.topnav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(20,20,20,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
@media(min-width:768px){ .topnav { padding: 0 48px; } }

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 1px; color: var(--accent);
  flex-shrink: 0;
}
.logo span { color: inherit; }
.logo:hover { opacity: .85; }

.nav-links { display: none; gap: 28px; list-style: none; }
@media(min-width:700px){ .nav-links { display: flex; } }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #080a0e;
  border: none; border-radius: 6px;
  padding: 13px 28px; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; transition: all .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: #9155f5; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(124,58,237,.45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border2); border-radius: 6px;
  padding: 12px 22px; font-size: 14px; font-weight: 500; transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: var(--surface); }

/* ── TAGS / BADGES ── */
.badge {
  display: inline-block; font-size: 9px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
}
.badge-hot  { background: #e84747; color: #fff; }
.badge-new  { background: var(--accent2); color: #fff; }
.badge-free { background: var(--accent3); color: #fff; }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,.55); border-color: rgba(232,197,71,.2); }

.card-thumb {
  aspect-ratio: 3/2; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden; font-size: 40px;
}
.card-duration { position: absolute; bottom: 7px; right: 8px; background: rgba(0,0,0,.75); color: var(--accent); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.card-badge   { position: absolute; top: 7px; left: 7px; }
.card-body    { padding: 11px 13px 14px; }
.card-cat     { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.card-title   { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer  { display: flex; align-items: center; justify-content: space-between; }
.card-price   { font-size: 13px; font-weight: 800; color: var(--accent); }
.card-rating  { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.card-rating .s { color: var(--accent); }

/* Hover overlay */
.card-overlay { position: absolute; inset: 0; background: rgba(8,10,14,.82); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; z-index: 5; }
.card:hover .card-overlay { opacity: 1; }
.play-pill { background: var(--accent); color: #080a0e; border: none; border-radius: 24px; padding: 9px 20px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .5px; }

/* ── SECTION LABEL ── */
.section-label { font-family: 'DM Serif Display', serif; font-size: clamp(18px,3vw,24px); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-label::after { content:''; flex:1; height:1px; background:var(--border); }
.section-label em { color: var(--accent); font-style: italic; }

/* ── FILTER CHIPS ── */
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 16px; border-radius: 24px; border: 1px solid var(--border2); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .18s; white-space: nowrap; user-select: none; }
.chip:hover { border-color: rgba(232,197,71,.3); color: var(--text); }
.chip.active { background: var(--accent); color: #080a0e; border-color: var(--accent); font-weight: 700; }

/* ── GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media(min-width:540px){ .cards-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:768px){ .cards-grid { grid-template-columns: repeat(4,1fr); gap:16px; } }
@media(min-width:1024px){ .cards-grid { grid-template-columns: repeat(5,1fr); } }
@media(min-width:1280px){ .cards-grid { grid-template-columns: repeat(6,1fr); } }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp .45s ease both; }

/* ── UTILS ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media(min-width:768px){ .container { padding: 0 48px; } }
@media(min-width:1300px){ .container { padding: 0 32px; } }

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.divider { height: 1px; background: var(--border); margin: 6px 0 22px; }

/* ── PLAYING INDICATOR ── */
.playing-bars { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.playing-bars span { display: block; width: 3px; border-radius: 2px; background: var(--accent); animation: barAnim .9s ease-in-out infinite; }
.playing-bars span:nth-child(1){ height:8px; animation-delay:0s; }
.playing-bars span:nth-child(2){ height:14px; animation-delay:.2s; }
.playing-bars span:nth-child(3){ height:10px; animation-delay:.4s; }
@keyframes barAnim { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(.3)} }
