/* ============================================================
   THE DAVE HAWKINS ARCHIVE
   craigslist-core, matches dhawkinslinks + halfaliveep.
   pure system fonts, gray bars, blue links, offset-shadow cards,
   win95 outset buttons, brutalist bottom player.
   ============================================================ */

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    max-width: 620px;
    margin: 0 auto;
    padding: 12px 12px 104px 12px;
    background: #f6f6f6;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.01) 2px, rgba(0,0,0,.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.01) 2px, rgba(0,0,0,.01) 4px);
    color: #000;
}

a { color: #00c; }
a:visited { color: #551a8b; }

h1 {
    font-size: 22px;
    margin: 10px 0 4px 0;
    border-bottom: 3px double #999;
    padding-bottom: 8px;
    letter-spacing: 1px;
}
h2 { font-size: 15px; font-weight: normal; color: #666; margin: 0 0 10px 0; }
h3 {
    font-size: 15px;
    margin: 20px 0 8px 0;
    background: #eee;
    padding: 4px 7px;
    border: 1px solid #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}
hr { border: none; border-top: 1px solid #ccc; margin: 12px 0; }

.small { font-size: 13px; color: #666; }
.howto { margin: 10px 0; }
.howto b { color: #9B4A34; }
.jump { margin: 10px 0; }
.jump a { margin: 0 2px; }

/* ===== Hero newsletter panel (verbatim craigslist pattern) ===== */
.panel { border: 1px solid #333; padding: 14px; margin: 14px 0; background: #fff; }
.panel-hero { border: 2px solid #333; background: #fffef5; }
.panel-title { font-weight: bold; font-size: 17px; margin: 0 0 8px 0; }
.panel-subtitle { font-size: 14px; color: #666; margin: 0 0 12px 0; font-style: italic; }
.panel form { margin: 0; padding: 0; background: none; display: flex; flex-wrap: wrap; gap: 8px; }
.panel input[type="email"] { padding: 9px 10px; font-size: 16px; flex: 1 1 200px; min-width: 0; border: 1px solid #999; }
.panel input[type="submit"] { padding: 9px 18px; font-size: 15px; cursor: pointer; }

/* ===== Release cards (the old-eBay listing item) ===== */
.rel {
    background: #fff;
    border: 2px solid #333;
    padding: 14px;
    margin: 12px 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
    overflow: hidden;
}
.rel.now-playing { box-shadow: 4px 4px 0 #9B4A34; }
.rel-head { display: flex; gap: 14px; }
.rel-art {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #333;
    flex-shrink: 0;
}
.rel-art-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    background: #4F6A89;
    padding: 6px;
    line-height: 1.2;
}
.rel-main { flex: 1; min-width: 0; }
.rel-title { font-weight: bold; font-size: 19px; }
.rel-badge {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #9B4A34;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
}
.rel-meta { font-family: 'Courier New', monospace; font-size: 13px; color: #666; margin: 3px 0 9px 0; }

/* action row */
.rel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.rel-links { font-size: 14px; margin-top: 8px; }
.rel-links .sep { color: #999; margin: 0 5px; }
.rel-links .bandcamp { font-weight: bold; }

/* win95 outset play / download buttons */
.btn95 {
    width: 34px; height: 34px;
    background: #ccc;
    border: 1px outset #999;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    vertical-align: middle; cursor: pointer; text-decoration: none;
}
.btn95:hover { background: #222; }
.btn95:hover svg { fill: #fff; }
.btn95:active { border-style: inset; }
.btn95 svg { width: 17px; height: 17px; fill: #000; }

/* text-link actions */
.txtlink {
    font-size: 14px;
    color: #00c;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    font-family: inherit;
}
.txtlink:hover { color: #fff; background: #00c; padding: 2px; text-decoration: none; }

/* EP tracklist */
.ep-tracks { list-style: none; padding: 0; margin: 10px 0 0 0; border-top: 1px solid #ddd; }
.ep-track {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.ep-num { font-family: 'Courier New', monospace; font-weight: bold; color: #666; font-size: 14px; width: 18px; text-align: right; }
.ep-title { font-size: 16px; }
.ep-track.now-playing .ep-title { font-weight: bold; }
.ep-track.now-playing .ep-title:before { content: "\25B6 "; color: #9B4A34; font-size: 12px; }
.ep-dur { font-family: 'Courier New', monospace; font-size: 13px; color: #666; }
.ep-spacer { flex: 1; }

/* B-side */
.rel-bside { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bside-tag { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #4F6A89; border: 1px solid #4F6A89; padding: 1px 5px; }
.bside-title { font-size: 16px; }

/* LIVE version block */
.rel-live { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }
.rel-live-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.live-tag { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: #9B4A34; padding: 2px 6px; }
.rel-live .rel-links { margin-top: 8px; }

/* inline expandables (lyrics + video) */
.rel-extra { margin-top: 10px; }
.lyrics-box {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-left: 2px solid #9B4A34;
    font-size: 15px;
    color: #333;
    white-space: pre-wrap;
    line-height: 1.65;
    max-height: 360px;
    overflow-y: auto;
}
.lyrics-box.open { display: block; }
/* video thumbnails - click-to-play facades */
.vids { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.vid {
    position: relative;
    width: 100%;
    max-width: 340px;
    border: 2px solid #333;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}
.vid-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vid-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 58px; height: 40px;
    background: rgba(155,74,52,0.92);
    border: 2px solid #fff;
}
.vid-play::after {
    content: ""; position: absolute; top: 50%; left: 56%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
}
.vid:hover .vid-play { background: #9B4A34; }
.vid-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.66); color: #fff;
    font-size: 13px; padding: 5px 8px;
}
.vid.playing { max-width: 100%; cursor: default; box-shadow: none; }
.vid-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.footer { font-size: 13px; color: #666; margin-top: 18px; line-height: 1.7; }

/* ============================================================
   BRUTALIST BOTTOM PLAYER  (mirrors halfaliveep .now-playing)
   ============================================================ */
.player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border-top: 2px solid #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
    font-size: 15px;
    box-sizing: border-box;
}
.player.active { display: block; }
.player-row { display: block; }
.player-ctrls { margin-left: 6px; }
.ctrl-btn { color: #00c; cursor: pointer; text-decoration: underline; margin: 0 4px; }
.ctrl-btn:hover { color: #fff; background: #00c; padding: 0 2px; text-decoration: none; }
.player-time { font-family: 'Courier New', monospace; color: #666; float: right; }
.progress { width: 100%; height: 8px; background: #ccc; margin: 8px 0 0 0; cursor: pointer; }
.progress-fill { height: 100%; background: #666; width: 0%; }
.player-lyric {
    margin: 6px 0 0 0;
    padding: 0 0 0 10px;
    border-left: 2px solid #999;
    font-size: 13px;
    color: #444;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 18px;
}

/* ===== narrow screens ===== */
@media (max-width: 480px) {
    body { font-size: 17px; }
    h1 { font-size: 23px; }
    .rel-head { flex-direction: column; }
    .rel-art, .rel-art-ph { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .rel-title { font-size: 20px; }
    .ep-title { font-size: 17px; }
    .txtlink { font-size: 15px; }
    .rel-links { font-size: 15px; }
    .player-time { float: none; display: block; margin-top: 6px; }
    .player-ctrls { display: block; margin: 6px 0 0 0; }
}
