/* ============================================================
   Sarajevo in Songs — main stylesheet (exact reference colors)
   ============================================================ */

:root {
  --bg:           #111416;
  --bg-soft:      #23211c;
  --surface:      #1c1e1d;
  --surface-2:    #232521;
  --border:       #20201c;
  --border-hi:    rgba(242,229,204,0.14);
  --text:         #f2e5cc;
  --text-dim:     #ebddc3;
  --text-mute:    #c9b994;
  --accent:       #13130c;
  --accent-soft:  #a58d69;
  --youtube:      #ff0000;
  --radius:       8px;
  --radius-sm:    5px;
  --shadow-card:  0 1px 0 rgba(255,245,220,0.02) inset;
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body:    "DM Sans", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero_bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero_bg img,
.hero_bg svg {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block;
}
.hero_bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(17,20,22,0.10) 0%,
      rgba(17,20,22,0.45) 38%,
      rgba(17,20,22,0.82) 70%,
      var(--bg) 100%
    ),
    linear-gradient(90deg, rgba(17,20,22,0.80) 0%, rgba(17,20,22,0.10) 55%);
}
.hero_inner {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 320px;
  padding-top: 48px;
  padding-bottom: 28px;
}
.hero_text {}
.hero_search-wrap {
  display: block;
  width: 100%;
}
.hero_search-wrap .search {
  display: flex;
  width: 100%;
}
.hero_title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  white-space: nowrap;
  color: var(--text);
}
.hero_title .note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.55em;
  vertical-align: 0.18em;
  margin-left: 6px;
  color: var(--text-dim);
}
.hero_sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 40ch;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Toolbar (tags only) ----------------------------------------- */

.toolbar { padding: 14px 0 6px; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(17,20,22,0.75);
  border: 1px solid var(--border-hi);
  border-radius: 7px;
  padding: 0 14px;
  height: 48px;
  transition: border-color .15s ease, background .15s ease;
  backdrop-filter: blur(6px);
}
.search:focus-within {
  border-color: rgba(242,229,204,0.22);
  background: var(--surface);
}
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  padding: 0 12px;
}
.search input::placeholder { color: var(--text-mute); }
.search_icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--text-mute);
}

.tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.tags_label {
  color: var(--text-mute);
  font-size: 13.5px;
  margin-right: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.pill:hover { color: var(--text); border-color: var(--border-hi); }
.pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.pill--sm { height: 24px; padding: 0 9px; font-size: 12px; color: var(--text-dim); }

/* ---------- Results meta ------------------------------------------------- */

.results-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.results-meta_count { color: var(--text-dim); font-size: 14px; }
.results-meta_sort  { display: flex; align-items: center; gap: 10px; color: var(--text-mute); font-size: 13px; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b994' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center / 16px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 7px 40px 7px 12px;
}

/* ---------- Song list ---------------------------------------------------- */

.song-list-box {
  border: 1px solid rgba(42,39,33,0.9);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}

.song-list { list-style: none; margin: 0; padding: 0; }
.song {
  border-bottom: 1px solid #4b3d2b;
  transition: background .18s ease;
  background: #121614;
}
.song:last-child { border-bottom: none; }
.song:hover { background: rgba(255,248,232,0.012); }
.song.is-open { background-color: rgba(34, 32, 27, 0.5); }

.song_row {
  display: grid;
  grid-template-columns: 36px 68px 1fr auto 28px;
  gap: 18px;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
}
.song_index {
  font-family: var(--font-mono);
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
}
.song_cover {
  width: 56px; height: 56px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  color: rgba(242,229,204,0.70);
  text-align: center;
  border: 1px solid #4b3d2b;
  line-height: 1.05;
}
.song_cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.song_cover_placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  opacity: 0.35;
}
.song_cover_placeholder svg { width: 32px; height: 32px; color: var(--text); }

.song_info { min-width: 0; }
.song_title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song_artist {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 5px;
}
.song_meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-mute);
  flex-wrap: nowrap;
  overflow: hidden;
}
.song_meta span { white-space: nowrap; }
.song_meta .dot {
  flex-shrink: 0;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

.song_tags {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.song_toggle {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-mute);
  transition: transform .2s ease, color .15s ease;
}
.song.is-open .song_toggle { transform: rotate(180deg); color: var(--text-dim); }

/* ---------- Expanded panel ----------------------------------------------- */

.song_panel {
  display: none;
  padding: 6px 18px 26px;
  border-top: 1px solid var(--border-hi);
}
.song.is-open .song_panel { display: block; }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 28px;
  padding-top: 20px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.video_embed { position: absolute; inset: 0; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video_thumb-link,
.video_thumb-play { position: absolute; inset: 0; display: block; cursor: pointer; }
.video_thumb-link img,
.video_thumb-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video_placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)),
    repeating-linear-gradient(135deg, #221e18 0 14px, #1a1712 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
}
.video_play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 68px; height: 48px;
  border-radius: 10px;
  background: var(--youtube);
  display: flex; align-items: center; justify-content: center;
}
.video_play::after {
  content: ""; display: block;
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}
.video_chrome-top,
.video_chrome-bot {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center;
  padding: 8px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.80);
  font-family: var(--font-body);
}
.video_chrome-top { top: 0; gap: 8px; }
.video_chrome-bot { bottom: 0; gap: 10px; }
.video_yt-logo {
  margin-left: auto;
  font-weight: 700;
  background: rgba(0,0,0,.4);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.video_avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#c08457,#7a4a2a); flex-shrink: 0; }
.video_time   { font-family: var(--font-mono); font-size: 11px; }

.meta-table { font-size: 13.5px; }
.meta-table dl { margin: 0; display: grid; grid-template-columns: 80px 1fr; row-gap: 9px; column-gap: 12px; }
.meta-table dt { color: var(--text-mute); font-weight: 400; }
.meta-table dd { margin: 0; color: var(--text); }

.panel-section { margin-top: 24px; }
.panel-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 9px;
  color: var(--text);
}
.panel-section p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

.lyrics-section { margin-top: 24px; }
.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.lyrics-header h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.lyrics-langs { display: flex; gap: 5px; }
.lyrics-lang-btn {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
}
.lyrics-lang-btn.is-active {
  border-color: var(--accent, #c08457);
  color: var(--text);
  background: var(--surface-2);
}
.lyrics-variant { margin-top: 0; }

.lyrics {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}
.lyrics-toggle {
  display: inline-flex;
  align-items: center; gap: 6px;
  margin-top: 9px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
}
.lyrics-toggle svg { transition: transform .2s ease; flex-shrink: 0; }
.lyrics-toggle[data-expanded="true"] svg { transform: rotate(180deg); }

.link-list {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.link-list a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
}
.link-list a:hover { color: var(--text); }
.link-list .ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}
.ico--yt   { background: var(--youtube); }
.ico--disc { background: #111; border: 1px solid #444; }
.ico--wiki { background: #fff; color: #000; }
.ico--gen  { background: #ffff64; color: #111; }

/* ---------- Footer skyline ----------------------------------------------- */

.skyline {
  margin-top: 60px;
  padding-top: 0;
  opacity: 1;
}
.skyline img { width: 100%; display: block; }
.skyline svg { width: 100%; display: block; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 34px;
  color: var(--text-mute);
  font-size: 13px;
}
.footer_left p { margin: 0; line-height: 1.55; color: var(--text-mute); }
.footer_heart { color: #c8453a; }
.footer_right { display: flex; gap: 24px; }
.footer_right a { color: var(--text-dim); }
.footer_right a:hover { color: var(--text); }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 820px) {
  .panel-grid { grid-template-columns: 1fr; gap: 20px; }
  .song_row {
    grid-template-columns: 24px 52px 1fr 24px;
    gap: 12px;
  }
  .song_cover { width: 52px; height: 52px; }
  .song_tags { display: none; }
  .hero_title { font-size: 38px; }
}
