/* drumandbass.lt viešoji dalis – „Brutalistinis zinas“ (dizaino 2 variantas) */
:root {
  --paper: #F1EEE6;
  --ink: #111111;
  --muted: #55524C;   /* 6.9:1 ant --paper */
  --rule: #111111;
  --soft-rule: #CFCAC0;
  --accent: #D63A00;  /* 4.6:1 ant --paper */
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 72rem;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Kompiuterio ekranuose visas mastelis ~12 % mažesnis (visi dydžiai – rem) */
@media (min-width: 761px) { html { font-size: 87.5%; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 .9375rem/1.55 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Viršus */
.meta-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); font: 400 .7rem var(--mono); }
.masthead { padding: .9rem 0 .5rem; border-bottom: 4px solid var(--rule); }
.masthead a { display: block; text-decoration: none; font-weight: 900; font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .85; letter-spacing: -0.05em; }
.masthead.small a { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: .9; }
.masthead a span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.nav a { padding: .6rem .9rem; font-weight: 800; font-size: .78rem; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; border-right: 1px solid var(--rule); }
.nav a:first-child { padding-left: 0; }
.nav a:last-child { border-right: 0; }
.nav a.on { color: var(--accent); }

/* Pagrindinis: pagrindinė istorija + numeruotas sąrašas */
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.lead { padding: 1.75rem 1.75rem 1.75rem 0; border-right: 1px solid var(--rule); }
.label { font: 600 .7rem var(--mono); text-transform: uppercase; margin: 0 0 .9rem; }
.lead h1 { font-weight: 900; font-size: clamp(1.75rem, 3.1vw, 2.85rem); line-height: .98; letter-spacing: -0.035em; }
.lead h1 a { text-decoration: none; }
.lead p.dek { font-size: 1.05rem; line-height: 1.5; max-width: 36rem; margin: 1.1rem 0 0; }
.more { display: inline-block; margin-top: 1.1rem; font: 600 .78rem var(--mono); }
.index { padding: 1.75rem 0 1.75rem 1.75rem; }
.index a { display: flex; gap: .75rem; padding: .8rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.index .n { font-weight: 900; font-size: 1.35rem; line-height: 1; color: var(--accent); min-width: 1.9rem; }
.index .t { font-weight: 800; font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; }

/* Sekcijos ir tinkleliai */
.section { border-bottom: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding: 1.4rem 0 .8rem; }
.section-head h2 { font-weight: 900; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.col { padding: 1.4rem 1.25rem 1.4rem 0; border-top: 1px solid var(--rule); }
.cols > .col + .col { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.col h3 { font-weight: 800; font-size: 1.15rem; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.015em; }
.col h3 a { text-decoration: none; }
.col p { margin: 0; font-size: .875rem; line-height: 1.5; }
.empty { padding: 2rem 0; font: 400 .9rem var(--mono); color: var(--muted); }

.band { background: var(--ink); color: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 2.5rem var(--gutter); }
.band a { color: var(--paper); }
.band .section-head { border-bottom: 1px solid var(--paper); padding-top: 0; }

/* Straipsnis */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40rem) minmax(0, 1fr); padding: 2.25rem 0 3rem; }
.article > * { grid-column: 2; }
.article h1 { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 1.1rem; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font: 400 .72rem var(--mono); padding: .7rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.prose { font-size: 1.07rem; line-height: 1.65; font-weight: 500; }
.prose p { margin: 0 0 1.15em; overflow-wrap: anywhere; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 1.5em 0; padding: 0; font-weight: 900; font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.03em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.note { font: 400 .75rem/1.5 var(--mono); border: 1px solid var(--rule); padding: .8rem 1rem; margin-bottom: 1.8rem; }
.note.preview { border-color: var(--accent); color: var(--accent); }
.sources { margin-top: 2.25rem; border-top: 4px solid var(--rule); padding-top: .8rem; font: 400 .75rem/1.6 var(--mono); }
.sources ol { margin: .5rem 0 0; padding-left: 1.4rem; }
.sources a { overflow-wrap: anywhere; }

/* Sąrašai (archyvas, skiltys) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li a { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .75rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.rows .y { font: 400 .72rem var(--mono); }
.rows .t { font-weight: 800; font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; }
.rows .k { font: 400 .68rem var(--mono); text-transform: uppercase; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.filters a { padding: .5rem .9rem; font: 600 .7rem var(--mono); text-transform: uppercase; text-decoration: none; border-right: 1px solid var(--rule); }
.filters a.on { background: var(--ink); color: var(--paper); }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 2rem; font: 600 .75rem var(--mono); border-top: 1px solid var(--rule); }
.page-title { padding: 1.75rem 0 1.2rem; }
.page-title h1 { font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.8rem); line-height: .95; letter-spacing: -0.04em; }
.page-title p { max-width: 40rem; margin: .8rem 0 0; font-size: .95rem; }

/* Miksai */
.mix-list { list-style: none; margin: 0 0 2.5rem; padding: 0; border-bottom: 1px solid var(--rule); }
.mix-list li { border-top: 1px solid var(--rule); }
.mx-row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 2.2rem 2rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 0; }
.mx-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-n { font: 400 .72rem var(--mono); }
.mx-mark { width: 2rem; height: 2rem; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; }
.mx-mark svg { width: .9rem; height: .9rem; fill: currentColor; }
.mx-title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.01em; }
.mx-by { display: block; font: 400 .72rem var(--mono); margin-top: .15rem; }
.mx-meta { display: flex; gap: .3rem 1.1rem; flex-wrap: wrap; justify-content: flex-end; font: 400 .72rem var(--mono); color: var(--muted); }
.mx-row:hover .mx-title, .mix-list li.on .mx-title { color: var(--accent); }
.mix-list li.on .mx-mark { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.mx-notes { padding: 0 0 .9rem 5.1rem; }
.mx-notes summary { cursor: pointer; font: 600 .72rem var(--mono); text-transform: uppercase; }
.mx-notes pre { font: 400 .78rem/1.6 var(--mono); white-space: pre-wrap; margin: .6rem 0 0; }

.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); color: var(--paper); border-top: 4px solid var(--accent); }
.player-in { display: grid; grid-template-columns: auto minmax(10rem, 16rem) minmax(0, 1fr) auto; gap: 1rem 1.25rem; align-items: center; padding-top: .7rem; padding-bottom: .7rem; }
:where(.player) button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; }
:where(.player) button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(.player) button[disabled] { opacity: .35; cursor: default; }
.player svg { fill: currentColor; }
.p-play { width: 2.9rem; height: 2.9rem; background: var(--paper); color: var(--ink); }
.p-play svg { width: 1.2rem; height: 1.2rem; }
.p-now { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.p-now strong { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-now span { font-size: .7rem; color: #BDB8AE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-tape { display: flex; align-items: center; gap: .7rem; min-width: 0; font-size: .7rem; }
.p-track { flex: 1; height: 2.4rem; cursor: pointer; touch-action: none; }
.p-track[aria-disabled="true"] { cursor: default; }
.p-bars { width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent) var(--p, 0%), #5C5850 var(--p, 0%));
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat; }
.p-side { display: flex; align-items: center; gap: .6rem; }
.p-skip { width: 2.75rem; height: 2.75rem; }
.p-skip svg { width: 1rem; height: 1rem; }
.p-vol { width: 5.5rem; accent-color: var(--accent); }
body:has(.player) { padding-bottom: 6rem; }

/* Kontaktai („Apie“) */
.contact-h { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.03em; margin: 2.2rem 0 .8rem; padding-top: .9rem; border-top: 4px solid var(--rule); }
.contacts { list-style: none; padding: 0; margin: 0; }
.contacts li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.contacts li:last-child { border-bottom: 1px solid var(--rule); }
.contacts .mono { font-size: .75rem; padding-top: .2rem; }

/* Apačia */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; padding: 1.1rem 0 2.25rem; border-top: 4px solid var(--rule); font: 400 .7rem var(--mono); }

@media (max-width: 760px) {
  .meta-strip a, .foot a, .more, .section-head a, .sources a { display: inline-block; padding: .85rem 0; margin: -.85rem 0; }
  .meta-strip, .foot { row-gap: .9rem; }
  .filters a { padding: .85rem .9rem; }
  .pager a { display: inline-block; padding: .8rem 0; }
  .index a { padding: 1rem 0; }
  .rows li a { padding: .9rem 0; }
  .contacts a { display: inline-block; padding: .55rem 0; margin: -.55rem 0; }
  .label, .mono, .rows .y, .rows .k, .byline, .mx-meta, .mx-n { font-size: .75rem; }
  .p-play { width: 3rem; height: 3rem; }
  .player-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .p-tape { grid-column: 1 / -1; grid-row: 2; }
  .p-vol { display: none; }
  body:has(.player) { padding-bottom: 9rem; }
  .mx-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .mx-n { display: none; }
  .mx-meta { grid-column: 2; justify-content: flex-start; }
  .mx-notes { padding-left: 2.9rem; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .lead { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); }
  .index { padding-left: 0; }
  .cols > .col + .col { padding-left: 0; border-left: 0; }
  .col { padding-right: 0; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { padding: .9rem .6rem; font-size: .74rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .nav a:nth-child(3n+1) { padding-left: 0; }
  .nav a:nth-child(3n) { border-right: 0; }
  .nav a:nth-last-child(-n+3) { border-bottom: 0; }
  .rows li a { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .article > * { grid-column: 1; }
}
