:root {
    --bg: #0a0f1e;
    --surface: #111827;
    --surface2: #1a2235;
    --accent: #c9a84c;
    --accent2: #e8c97a;
    --text: #f0ece4;
    --muted: #777;
    --border: #1e2d45;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-weight: 300; min-height: 100vh; }

  /* HEADER */
  header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 48px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: rgba(10,15,30,0.96); backdrop-filter: blur(16px); z-index: 100;
  }
  .logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--accent); letter-spacing: 0.04em; }
  .header-stats { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-align: right; line-height: 1.8; }

  /* HERO */
  .hero { padding: 56px 48px 36px; border-bottom: 1px solid var(--border); }
  .hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.15; }
  .hero-title em { font-style: italic; color: var(--accent); }

  /* GADA JOSLA */
  .year-bar {
    display: flex; align-items: center; overflow-x: auto;
    border-bottom: 1px solid var(--border); scrollbar-width: none; padding: 0 40px;
  }
  .year-bar::-webkit-scrollbar { display: none; }
  .year-btn {
    background: none; border: none; color: var(--muted);
    font-family: 'DM Sans', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em;
    cursor: pointer; padding: 16px 18px; white-space: nowrap; position: relative; transition: color 0.2s;
  }
  .year-btn::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
  .year-btn:hover { color: var(--text); }
  .year-btn.active { color: var(--accent2); }
  .year-btn.active::after { width: 70%; }

  /* ALBUMU SEKCIJA */
  .section-header { padding: 32px 48px 16px; display: flex; align-items: center; justify-content: space-between; }
  .section-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
  .section-count { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--border); }

  /* REŽĢIS */
  .albums-grid { padding: 0 48px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

  /* ALBUMA KARTĪTE */
  .album-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
    overflow: hidden; cursor: pointer; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s;
  }
  .album-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,0.5); }

  /* Cover bilde */
  .thumb-cover {
    width: 100%; aspect-ratio: 3/2;
    background: var(--surface2);
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: var(--border); font-size: 2rem;
  }

  .album-info {
    padding: 14px 16px 14px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  }
  .album-name { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 400; line-height: 1.35; }
  .album-date { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; margin-top: 10px; }

  .open-link {
    background: none; border: 1px solid var(--border); color: var(--muted);
    width: 32px; height: 32px; border-radius: 2px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; text-decoration: none; transition: border-color 0.2s, color 0.2s;
  }
  .open-link:hover { border-color: var(--accent); color: var(--accent); }

  /* TUKŠS STĀVOKLIS */
  .empty-state { grid-column: 1/-1; text-align: center; padding: 80px 40px; color: var(--muted); }
  .empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
  .empty-state p { font-size: 0.85rem; letter-spacing: 0.1em; }

  /* PAZIŅOJUMS — kā pievienot albūmus */
  .howto {
    margin: 0 48px 48px; padding: 24px 28px;
    border: 1px solid var(--border); border-left: 3px solid var(--accent);
    border-radius: 3px; background: var(--surface);
  }
  .howto-title { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
  .howto p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
  .howto code { background: var(--surface2); color: var(--text); padding: 1px 6px; border-radius: 2px; font-size: 0.78rem; }

  @media (max-width: 700px) {
    header { padding: 18px 20px; }
    .hero { padding: 36px 20px 24px; }
    .year-bar { padding: 0 12px; }
    .section-header, .albums-grid, .howto { padding-left: 20px; padding-right: 20px; }
    .albums-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  }
  @media (max-width: 480px) {
    .albums-grid { grid-template-columns: 1fr; }
  }