@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500;600&family=Fira+Code:wght@400;500&display=swap');

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

  :root {
    --bg:         #0c0a09;
    --bg2:        #141210;
    --bg3:        #1e1b18;
    --text:       #e8e2da;
    --text-dim:   #6a6055;
    --accent:     #c82828;
    --accent-bg:  rgba(200,40,40,0.08);
    --white:      #ffffff;
    --border:     rgba(232,226,218,0.07);
    --border-med: rgba(232,226,218,0.13);
    --silver:     #b8b0a4;
    --code-bg:    #080705;
  }

  html { scroll-snap-type: y proximity; scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.9;
    overflow-x: hidden;
  }

  p { margin-bottom: 0.85rem; }
  p:last-child { margin-bottom: 0; }

  a { color: var(--silver); }

  code {
    font-family: 'Fira Code', monospace;
    font-size: 0.8em;
    color: var(--silver);
    background: var(--bg3);
    padding: 0.1em 0.4em;
    border-radius: 3px;
  }

  strong { color: var(--text); font-weight: 600; }

  /* ── Hero ── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
    background:
      linear-gradient(to bottom, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0.75) 60%, rgba(12,10,9,0.97) 100%),
      linear-gradient(to right, rgba(12,10,9,0.3) 0%, transparent 50%, rgba(12,10,9,0.3) 100%),
      url('world_map.jpg') center / cover no-repeat;
    scroll-snap-align: start;
    position: relative;
  }

  .hero-medallion {
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
    filter:
      drop-shadow(0 0 48px rgba(200,40,40,0.3))
      drop-shadow(0 0 20px rgba(255,255,255,0.15));
    animation: float 7s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
  }

  .hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    max-width: 900px;
  }
  .hero .subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    color: var(--silver);
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
    max-width: 640px;
    line-height: 1.7;
  }
  .hero .meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 4rem;
    letter-spacing: 0.01em;
  }
  .hero .scroll-hint {
    font-family: 'Inter', sans-serif;
    color: var(--silver);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    text-transform: uppercase;
    animation: pulse 2.5s ease-in-out infinite;
    cursor: pointer;
    opacity: 0.6;
  }
  @keyframes pulse { 0%,100% { opacity: 0.2; } 50% { opacity: 0.75; } }

  /* ── Navigation ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12,10,9,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    height: 44px;
    align-items: center;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    font-family: 'Inter', sans-serif;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 1rem;
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
  }
  nav a:hover { color: var(--text); }
  nav a.active { color: var(--white); border-bottom-color: var(--accent); }

  /* ── Sections ── */
  section {
    max-width: 1060px;
    margin: 0 auto;
    padding: min(10rem, 14vh) 2rem;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border);
  }

  /* ── Eyebrow labels ── */
  .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
  }

  section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
  }
  section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 3rem 0 1rem;
  }
  section .section-intro {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    color: var(--silver);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.9;
    margin-bottom: 3.5rem;
    max-width: 680px;
  }

  /* ── Code blocks ── */
  pre {
    background: var(--code-bg);
    border-left: 3px solid var(--accent);
    padding: 1.75rem 2rem;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
    color: var(--silver);
  }
  pre .comment { color: var(--text-dim); font-style: italic; }
  pre .keyword { color: #7bafd4; }
  pre .string  { color: #89b87b; }
  pre .number  { color: #d4886a; }
  pre .type    { color: var(--silver); }
  pre .dev     { color: var(--accent); font-weight: 600; }

  /* ── Cards & grids ── */
  .card {
    background: var(--bg2);
    border: 1px solid var(--border-med);
    border-radius: 6px;
    padding: 1.75rem 2rem;
    margin: 0.5rem 0;
    transition: border-color 0.2s;
    font-family: 'Lora', Georgia, serif;
  }
  .card:hover { border-color: rgba(232,226,218,0.22); }
  .card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.75rem;
  }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

  /* ── Architecture diagram ── */
  .arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2.5rem 0;
    align-items: center;
  }
  .arch-layer {
    background: var(--bg2);
    border: 1px solid var(--border-med);
    border-radius: 6px;
    padding: 1.5rem 3rem;
    text-align: center;
    width: 100%;
    max-width: 640px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.2s;
    cursor: default;
  }
  .arch-layer:hover { border-color: rgba(232,226,218,0.22); }
  .arch-layer .layer-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  .arch-layer .layer-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
  }
  .arch-arrow {
    color: var(--border-med);
    font-size: 1.1rem;
    padding: 0.3rem;
    line-height: 1;
  }

  /* ── File tree ── */
  .file-tree {
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 2.1;
    color: var(--text-dim);
    padding: 2rem 2.5rem;
    background: var(--code-bg);
    border-left: 3px solid var(--border-med);
    border-radius: 0 4px 4px 0;
    overflow-x: auto;
    margin: 2rem 0;
  }
  .file-tree .dir       { color: var(--silver); font-weight: 600; }
  .file-tree .size      { color: #2e2922; float: right; margin-left: 1rem; }
  .file-tree .highlight { color: var(--accent); }

  /* ── Stat bars ── */
  .stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.65rem 0;
  }
  .stat-label {
    font-family: 'Inter', sans-serif;
    width: 76px;
    text-align: right;
    color: var(--text-dim);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
  }
  .stat-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--bg3);
    border-radius: 3px;
    overflow: visible;
  }
  .stat-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.7s ease;
    position: relative;
  }
  .stat-val {
    font-family: 'Fira Code', monospace;
    width: 40px;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-dim);
  }

  /* ── Bestiary ── */
  .bestiary { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
  .monster-btn {
    font-family: 'Inter', sans-serif;
    background: transparent;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.15s;
    letter-spacing: 0.03em;
    font-weight: 400;
  }
  .monster-btn:hover { border-color: rgba(232,226,218,0.22); color: var(--text); }
  .monster-btn.active {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
  }

  .lang-btn {
    font-family: 'Inter', sans-serif;
    background: transparent;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.15s;
    letter-spacing: 0.03em;
  }
  .lang-btn:hover { border-color: rgba(232,226,218,0.22); color: var(--text); }
  .lang-btn.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

  .monster-detail {
    background: var(--bg2);
    border: 1px solid var(--border-med);
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 2rem;
    display: none;
  }
  .monster-detail.active { display: block; }

  .monster-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .monster-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
  }
  .monster-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.4rem;
  }

  .resist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .resist-item {
    background: var(--bg3);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.72rem;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--border);
    font-family: 'Fira Code', monospace;
    color: var(--text-dim);
  }
  .resist-item .val { color: var(--text); }
  .resist-item .val.weak   { color: var(--accent); }
  .resist-item .val.resist { color: #4caf7d; }
  .resist-item .val.immune { color: #5b9bd5; }

  .immunity-list { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
  .immunity-tag {
    background: rgba(91,155,213,0.07);
    border: 1px solid rgba(91,155,213,0.2);
    color: #5b9bd5;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-family: 'Fira Code', monospace;
  }

  /* ── Faction grid ── */
  .faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  .faction-card {
    background: var(--bg2);
    border: 1px solid var(--border-med);
    border-radius: 6px;
    padding: 1.1rem 1.4rem;
    cursor: default;
    transition: border-color 0.2s;
  }
  .faction-card:hover { border-color: rgba(232,226,218,0.22); }
  .faction-card .icon { font-size: 1.2rem; margin-bottom: 0.4rem; }
  .faction-card .name {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.3;
  }
  .faction-card .code {
    font-family: 'Fira Code', monospace;
    font-size: 0.62rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
  }

  /* ── Gallery ── */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
  }
  .gallery-item {
    background: var(--bg2);
    border: 1px solid var(--border-med);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
  }
  .gallery-item:hover { border-color: rgba(232,226,218,0.22); transform: translateY(-3px); }
  .gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
  }
  .gallery-item:hover img { opacity: 1; }
  .gallery-item .caption {
    padding: 0.5rem 0.85rem;
    font-size: 0.65rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dim);
    letter-spacing: 0.03em;
  }

  /* ── Dev quotes ── */
  .dev-quote {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.85;
    border-left: 3px solid var(--accent);
    padding: 1.5rem 2.5rem;
    margin: 2.5rem 0;
    background: var(--accent-bg);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text);
  }
  .dev-quote .author {
    font-family: 'Inter', sans-serif;
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    display: block;
  }

  /* ── Tabs ── */
  .tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-med);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }
  .tab {
    font-family: 'Inter', sans-serif;
    padding: 0.7rem 1.3rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
  }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--white); border-bottom-color: var(--accent); }

  .tab-content {
    display: none;
    background: var(--bg2);
    border: 1px solid var(--border-med);
    border-top: none;
    padding: 2.5rem;
    border-radius: 0 0 6px 6px;
  }
  .tab-content.active { display: block; }
  .tab-content h3 { margin-top: 0; }
  .tab-content h3 + h3 { margin-top: 2.5rem; }

  /* ── Tooltip ── */
  .tip {
    position: relative;
    border-bottom: 1px dotted var(--border-med);
    cursor: help;
  }
  .tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg3);
    border: 1px solid var(--border-med);
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    color: var(--text);
    font-style: normal;
    margin-bottom: 6px;
  }
  .tip:hover::after { opacity: 1; }

  /* ── Dialog tree ── */
  .dialog-tree { min-height: 200px; }

  .dlg-npc {
    background: var(--bg3);
    border: 1px solid var(--border-med);
    border-left: 3px solid var(--silver);
    border-radius: 0 6px 6px 0;
    padding: 1.5rem 2rem;
    margin: 1.25rem 0;
  }
  .dlg-npc .dlg-speaker {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.6rem;
  }
  .dlg-npc .dlg-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
  }
  .dlg-npc .dlg-original {
    font-family: 'Fira Code', monospace;
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.72rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    line-height: 1.6;
  }

  .dlg-choices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1rem 0 1rem 2rem;
  }
  .dlg-choice {
    background: transparent;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 0.75rem 1.25rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
    transition: all 0.15s;
    line-height: 1.5;
  }
  .dlg-choice:hover { border-color: rgba(232,226,218,0.22); color: var(--text); background: var(--bg2); }
  .dlg-choice::before { content: '▸ '; color: var(--accent); font-size: 0.7em; margin-right: 0.3em; }

  .dlg-back {
    font-family: 'Inter', sans-serif;
    background: none;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 0.4rem 1rem;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    transition: all 0.15s;
  }
  .dlg-back:hover { border-color: rgba(232,226,218,0.22); color: var(--text); }

  .dlg-end {
    font-family: 'Lora', Georgia, serif;
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.88rem;
    margin: 0.75rem 0 0 2rem;
    padding: 0.75rem 1.25rem;
    border: 1px dashed var(--border-med);
    border-radius: 4px;
  }

  /* ── Tables ── */
  .table-wrap { overflow-x: auto; margin: 2rem 0; }
  table { width: 100%; border-collapse: collapse; }
  th {
    font-family: 'Inter', sans-serif;
    padding: 0.7rem 1rem;
    text-align: left;
    color: var(--silver);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-med);
  }
  td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-dim);
    vertical-align: middle;
  }
  td:first-child { color: var(--text); font-weight: 500; }

  /* ── Lightbox ── */
  .lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; }

  /* ── Scroll reveal ── */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ── Utility ── */
  .accent { color: var(--accent); }
  .red    { color: var(--accent); }
  .dim    { color: var(--text-dim); }
  .silver { color: var(--silver); }
  mark    { background: rgba(200,40,40,0.12); color: var(--accent); padding: 0.1em 0.35em; border-radius: 2px; }

  /* ── Footer ── */
  footer {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    scroll-snap-align: end;
    max-width: 1060px;
    margin: 0 auto;
  }
  footer .sig {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--silver);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.75rem;
  }

  /* ── Mobile ── */
  @media (max-width: 768px) {
    section { padding: 5rem 1.25rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-medallion { width: 140px; height: 140px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    nav { padding: 0 1rem; }
    nav a { padding: 0 0.6rem; font-size: 0.62rem; }
    .monster-detail { padding: 1.5rem; }
    pre { font-size: 0.72rem; padding: 1.25rem 1.5rem; }
    .tab-content { padding: 1.5rem; }
    .dev-quote { padding: 1.25rem 1.75rem; }
  }

/* Audio player */
.dlg-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.dlg-audio button {
  background: none;
  border: 1px solid var(--border-med);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.dlg-audio button:hover { border-color: var(--accent); color: var(--accent); }
.dlg-audio button.playing { border-color: var(--accent); color: var(--accent); }
.dlg-audio .label {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Music section */
.track-list { margin: 2rem 0; }
.track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.track-item:first-child { border-top: 1px solid var(--border); }
.track-item:hover { background: var(--bg2); }
.track-play {
  background: none;
  border: 1px solid var(--border-med);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.track-play:hover, .track-play.playing { border-color: var(--accent); color: var(--accent); }
.track-info { flex: 1; }
.track-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
}
.track-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}
