* {
  box-sizing: border-box;
}

:root {
  --sticky-year-top: 205px;
  --year-scroll-margin: 220px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f0f0f;
  color: #f5f5f5;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(6px);
  padding: 12px 20px;
}

/* YEAR NAV */

.year-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 10px;
}

.year-nav button,
.filter-nav button {
  border: 1px solid #333;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.year-nav button:hover,
.filter-nav button:hover,
.filter-nav button.active,
.year-nav button.active {
  background: #f5f5f5;
  color: #111;
  border-color: #f5f5f5;
}

.year-nav button.active {
  font-weight: 800;
  transform: translateY(-1px);
}

/* FILTER NAV */

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid #242424;
}

.filter-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-nav button.active {
  font-weight: 700;
}

.filter-icon {
  line-height: 1;
}

/* COLUMN HEADER (ALIGNED) */

.column-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-top: 10px;
  font-weight: 700;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.column-header-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* TIMELINE */

#timeline {
  padding: 20px;
}

/* YEAR BLOCK */

.year-section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-bottom: 34px;
  scroll-margin-top: var(--year-scroll-margin);
}

.year-label {
  position: sticky;
  top: var(--sticky-year-top);
  align-self: start;
  z-index: 4;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.year-section.is-active .year-label {
  opacity: 1;
  transform: translateX(2px);
}

.year-count {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  opacity: 0.85;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.column {
  padding-left: 10px;
  border-left: 1px solid #2a2a2a;
}

/* ITEM */

.item {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.track-title {
  font-size: 14px;
  line-height: 1.4;
  color: #f5f5f5;
}

.track-title strong {
  font-weight: 800;
}

.item-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.track-icon {
  flex-shrink: 0;
  font-size: 16px;
  cursor: default;
}

/* TEXT */

.item span:not(.track-icon) {
  display: block;
  font-size: 12px;
  color: #cfcfcf;
  margin-bottom: 4px;
}

.item small {
  display: block;
  font-size: 11px;
  color: #888;
}

.empty-state {
  max-width: 420px;
}

/* TOOLTIP */

#tooltip {
  position: fixed;
  pointer-events: none;
  background: #f5f5f5;
  color: #111;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: 0.12s ease;
  z-index: 9999;
}

#tooltip.visible {
  opacity: 1;
}

.yt {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.yt svg {
  display: block;
  transition: transform 0.15s ease;
}

.yt:hover svg {
  transform: scale(1.15);
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .column-header {
    grid-template-columns: 1fr;
  }

  .column-header-inner {
    grid-template-columns: 1fr;
  }

  .year-section {
    grid-template-columns: 1fr;
    scroll-margin-top: var(--year-scroll-margin);
  }

  .year-label {
    position: static;
    margin-bottom: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .column {
    border-left: none;
    padding-left: 0;
  }
}


/* UPDATE 20260506_04 */
.column-header-inner {
  text-align: center;
}


/* UPDATE 20260506_05 */
#bottomSpacer {
  width: 100%;
  pointer-events: none;
}


/* UPDATE 20260506_07: INFO + BLOG OVERLAYS */

.header-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 10px;
}

.header-actions button {
  border: 1px solid #333;
  background: #141414;
  color: #f5f5f5;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-actions button:hover {
  background: #f5f5f5;
  color: #111;
  border-color: #f5f5f5;
}

body.overlay-open {
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.overlay.visible {
  display: block;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.overlay-panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  margin: 24px auto;
  background: #151515;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.overlay-close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid #333;
  border-radius: 50%;
  background: #222;
  color: #f5f5f5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.overlay-close:hover {
  background: #f5f5f5;
  color: #111;
}

.overlay-panel h2 {
  margin: 0 42px 18px 0;
  font-size: 26px;
}

.overlay-content {
  clear: both;
}

.content-block,
.blog-post {
  border-top: 1px solid #2a2a2a;
  padding-top: 16px;
  margin-top: 16px;
}

.content-block:first-child,
.blog-post:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.content-block h3,
.blog-post h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.content-block p,
.blog-post p {
  margin: 0;
  color: #d6d6d6;
  font-size: 14px;
  line-height: 1.65;
}

.blog-date {
  color: #9a9a9a;
  font-size: 12px;
  margin-bottom: 6px;
}

@media (max-width: 800px) {
  .overlay-panel {
    margin: 16px auto;
    padding: 20px;
  }
}


/* UPDATE 20260506_08: AUTO-LINKS IN INFO/BLOG */
.overlay-content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.overlay-content a:hover {
  color: #cfcfcf;
}


/* UPDATE 20260506_09: CATALOG TOTALS */
.catalog-stats {
  text-align: center;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
  padding: 0 0 12px;
}

.catalog-stats strong {
  color: #ffffff;
}

/* UPDATE 20260506_11: MOBILE LAYOUT */
.mobile-column-title {
  display: none;
}

@media (max-width: 800px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding: 10px 12px 8px;
  }

  .year-nav,
  .filter-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 7px;
    padding-left: max(2px, env(safe-area-inset-left));
    padding-right: max(2px, env(safe-area-inset-right));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .year-nav::-webkit-scrollbar,
  .filter-nav::-webkit-scrollbar {
    display: none;
  }

  .year-nav button,
  .filter-nav button,
  .header-actions button {
    flex: 0 0 auto;
    min-height: 34px;
    font-size: 12px;
    padding: 7px 10px;
  }

  .filter-nav {
    margin-bottom: 8px;
    padding-bottom: 10px;
  }

  .header-actions {
    padding: 0 0 8px;
  }

  .catalog-stats {
    font-size: 12px;
    padding-bottom: 8px;
  }

  .column-header {
    display: none;
  }

  #timeline {
    padding: 14px 12px 24px;
  }

  .year-section {
    display: block;
    margin-bottom: 34px;
  }

  .year-label {
    position: sticky;
    top: calc(var(--sticky-year-top) - 6px);
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    background: linear-gradient(180deg, rgba(15,15,15,0.98), rgba(15,15,15,0.88));
    padding: 8px 0 10px;
    margin: 0 0 8px;
    font-size: 24px;
    border-bottom: 1px solid #242424;
  }

  .year-count {
    margin-top: 0;
  }

  .grid {
    display: block;
  }

  .column {
    padding-left: 0;
    border-left: none;
    margin-bottom: 18px;
  }

  .column.is-empty {
    display: none;
  }

  .mobile-column-title {
    display: block;
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
  }

  .item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 11px;
  }

  .item-header {
    gap: 8px;
  }

  .track-title {
    font-size: 13px;
  }

  .item span:not(.track-icon) {
    font-size: 11px;
  }

  .item small {
    font-size: 10.5px;
    line-height: 1.35;
  }

  #tooltip {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  #timeline {
    padding-left: 10px;
    padding-right: 10px;
  }

  .track-title {
    font-size: 12.5px;
  }
}


/* UPDATE 20260506_12: MOBILE YEAR NAV + BLACK STICKY BACKGROUNDS */
@media (max-width: 800px) {
  .site-header,
  .catalog-stats,
  #timeline {
    background: #0f0f0f;
  }

  .year-nav {
    scroll-padding-inline: 50%;
  }

  .year-nav button.active {
    background: #f5f5f5;
    color: #111;
    border-color: #f5f5f5;
  }

  .year-label {
    background: #0f0f0f;
    box-shadow: 0 -12px 0 #0f0f0f, 0 12px 0 #0f0f0f;
  }
}


/* UPDATE 20260506_13: SMOOTHER MOBILE YEAR MENU */
@media (max-width: 800px) {
  .year-nav {
    overscroll-behavior-x: contain;
    will-change: scroll-position;
  }

  .year-nav button {
    transform: translateZ(0);
  }

  .year-nav button.active {
    transform: none;
  }
}


/* UPDATE 20260506_23: ALBUM COVERS */
.cover-button {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

.cover-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease;
}

.cover-button:hover img {
  transform: scale(1.12);
}

.cover-overlay-content {
  display: grid;
  gap: 14px;
}

.cover-overlay-content img {
  display: block;
  width: min(520px, 100%);
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #333;
  background: #0f0f0f;
}

.cover-overlay-caption {
  text-align: center;
  color: #d6d6d6;
  font-size: 13px;
  line-height: 1.45;
}

.cover-overlay-caption strong,
.cover-overlay-caption span {
  display: block;
}

.cover-overlay-caption strong {
  color: #ffffff;
  margin-bottom: 3px;
}
