/* llamamall: phish.in-style dark layout with the old llamamall branding
   (Street Cred logo, glyphicons, fire ratings, exclusive badge, running dog). */
@font-face { font-family: "street_credregular"; font-display: swap;
  src: url("/static/fonts/streetcr-webfont.woff") format("woff"), url("/static/fonts/streetcr-webfont.ttf") format("truetype"); }
@font-face { font-family: "Glyphicons Halflings"; font-display: block;
  src: url("/static/fonts/glyphicons-halflings-regular.woff") format("woff"); }

:root {
  --bg: #383838; --bar: #2b2b2d; --panel: #303032; --panel-2: #3a3a3d; --line: #454549;
  --text: #abb1bf; --bright: #e9eaee; --muted: #858a96;
  --blue: #0088ff; --blue-2: #4aa8ff; --yellow: #ffe545;
  --radius: 8px; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 16px/1.55 var(--sans); padding-bottom: 96px; }
/* condensed type is for the brand bits: headings, tabs, buttons, tiles, setlist headers */
h1, h2, h3, .tab, .btn, .pager, .tile, .sec-head, .card-kicker, .card-title, .pn-date, .pn-venue, .pn-loc, .pn-label,
.quickjump label, .song-h, .show-head, .stat b, .np-title, .crumbs, .show-nav, .subtabs { font-family: var(--cond); font-stretch: condensed; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--bright); }
h1, h2, h3 { color: var(--bright); font-weight: 700; margin: 0; letter-spacing: .01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.wrap { max-width: 1640px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }

/* glyphicons */
.g { font-family: "Glyphicons Halflings"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block;
  -webkit-font-smoothing: antialiased; position: relative; top: 1px; }
.g { margin-right: 6px; }
.play .g, .pbtn .g, .heart .g, .chip .g, .search .g { margin-right: 0; }
.g-calendar:before{content:"\e109"} .g-marker:before{content:"\e062"} .g-list:before{content:"\e056"}
.g-music:before{content:"\e002"} .g-fire:before{content:"\e104"} .g-info:before{content:"\e086"}
.g-search:before{content:"\e003"} .g-off:before{content:"\e017"} .g-login:before{content:"\e161"}
.g-left:before{content:"\e132"} .g-right:before{content:"\e131"} .g-play:before{content:"\e072"}
.g-pause:before{content:"\e073"} .g-prev:before{content:"\e069"} .g-next:before{content:"\e077"}
.g-heart:before{content:"\e005"} .g-ok:before{content:"\e013"} .g-ticket:before{content:"\e034"}
.g-plus:before{content:"\e081"} .g-x:before{content:"\e014"} .g-up:before{content:"\e113"} .g-down:before{content:"\e114"}
.g-trash:before{content:"\e020"} .g-edit:before{content:"\e065"} .g-cog:before{content:"\e019"} .g-user:before{content:"\e008"}
.g-fullscreen:before{content:"\e140"} .g-headphones:before{content:"\e035"} .g-th-list:before{content:"\e012"} .g-time:before{content:"\e023"} .g-share:before{content:"\e066"} .g-stats:before{content:"\e185"}

/* top bar */
.topbar { background: var(--bar); box-shadow: 0 2px 10px rgba(0,0,0,.35); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.logo { margin-right: 14px; }
.logo { font-family: "street_credregular", var(--cond); font-size: 30px; flex: none; color: var(--blue); letter-spacing: .02em;
  text-transform: uppercase; line-height: 1; padding-top: 4px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.logo:hover { color: var(--blue-2); }
.tabs { display: flex; gap: 8px; flex-wrap: nowrap; }
.tab, .btn { display: inline-flex; align-items: center; gap: 2px; padding: 8px 10px; white-space: nowrap; border-radius: 6px; border: 0;
  background: #48484c; color: var(--text); font: 600 15px var(--cond); font-stretch: condensed; text-transform: uppercase;
  letter-spacing: .03em; cursor: pointer; }
/* Songs dropdown (desktop: on hover or keyboard focus) */
.tab-drop { position: relative; display: flex; }
.caret { margin-left: 4px; font-size: .7em; opacity: .7; }
.drop-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 170px; padding: 6px;
  margin-top: 4px; background: #3a3a3d; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.tab-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; } /* hover bridge */
.tab-drop:hover .drop-menu, .tab-drop:focus-within .drop-menu { display: grid; }
.drop-menu a { padding: 8px 12px; border-radius: 6px; color: var(--text); font: 600 15px var(--cond); font-stretch: condensed;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.drop-menu a:hover, .drop-menu a:focus { background: #4d4d52; color: var(--bright); }
.drop-menu a.on { color: var(--bright); background: rgba(0,136,255,.25); }
.tab:hover, .btn:hover { background: #55555a; color: var(--bright); }
.tab.active { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-icon { padding: 8px 10px; }
.search { position: relative; margin-left: auto; margin-right: 6px; }
.search .g { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.search input { background: #48484c; border: 0; border-radius: 6px; color: var(--bright); padding: 9px 12px 9px 32px;
  font: 15px var(--sans); width: 150px; text-transform: none; }
.search input::placeholder { color: var(--muted); text-transform: uppercase; }
.search input:focus { outline: 2px solid var(--blue); width: 200px; }
.who { display: flex; align-items: center; gap: 8px; }
.who form { margin: 0; }
.me { display: flex; align-items: center; gap: 8px; color: var(--bright); background: var(--blue); border-radius: 6px; padding: 4px 12px 4px 4px; }
.me img { border-radius: 4px; display: block; }

/* page grid: sidebar card + main */
.page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding-top: 28px; align-items: start; }
.side { position: sticky; top: 90px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.card-kicker { text-transform: uppercase; color: var(--text); }
.card-title { color: var(--bright); font-size: 1.9rem; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.card-meta { color: var(--text); margin-top: 4px; }
.card-meta.strong { font-size: 1.2rem; color: var(--bright); font-weight: 600; }
.card-small { font-size: .95rem; margin: 0; }
.card p { margin: 8px 0; }
.prevnext { display: flex; justify-content: space-between; gap: 8px; }
.prevnext .g-right, .g-right { margin-left: 6px; margin-right: 0; }
.art, .avatar { width: 100%; aspect-ratio: 1; border-radius: 6px; display: block; margin-bottom: 6px; }
.art { display: grid; place-items: end start; padding: 10px; color: rgba(255,255,255,.85); font-weight: 700;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 85% 62%), transparent 55%),
              radial-gradient(circle at 80% 80%, hsl(calc(var(--h) + 60) 75% 45%), transparent 60%),
              linear-gradient(135deg, hsl(var(--h) 55% 30%), hsl(calc(var(--h) + 140) 45% 18%)); }
.avatar { object-fit: cover; height: auto; }

/* section heads + tiles */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 12px; gap: 12px; }
.sec-head > span { font-weight: 700; color: var(--bright); white-space: nowrap; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; }
.sec-head + .tiles, .tiles + .sec-head { margin-top: 0; }
.tiles + .sec-head { margin-top: 34px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; text-align: center; padding: 0 10px 14px; color: var(--bright);
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 85% 62%), transparent 55%),
              radial-gradient(circle at 80% 75%, hsl(calc(var(--h) + 60) 75% 45%), transparent 60%),
              linear-gradient(135deg, hsl(var(--h) 55% 32%), hsl(calc(var(--h) + 140) 45% 18%));
  box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .12s ease, box-shadow .12s ease; }
.tile.has-art { background: #222 var(--img) center / cover no-repeat; }
.art-img { object-fit: cover; height: auto; background: #222; padding: 0; }
.tile::after { content: ""; position: absolute; inset: 50% 0 0; background: rgba(40,40,42,.72); z-index: 0; }
.tile > * { position: relative; z-index: 1; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.45); color: #fff; }
.tile-big { font-size: 3.6rem; font-weight: 800; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.tile-sub { font-weight: 700; margin-top: 4px; }
.tile-show .tile-date { font-size: 1.9rem; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.tile-venue { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile-city { font-size: .85rem; font-weight: 700; }
.tile-flags { position: absolute !important; top: 10px; right: 10px; display: flex; gap: 4px; }
.tile .flames { margin-top: 6px; }

/* panels of rows (track lists, show lists, venues...) */
.panel { background: var(--panel); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.rows { list-style: none; margin: 0 0 30px; padding: 0 16px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.row:last-child { border-bottom: 0; }
.row-title { flex: 1; min-width: 0; color: var(--bright); font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.row-title:hover { color: var(--blue-2); }
.row-title small { font-size: .95rem; margin-left: 6px; }
.row-sub { min-width: 160px; }
.row-date { width: 120px; flex: none; font-weight: 600; }
.row-num { width: 70px; text-align: right; flex: none; }
.row-dur { width: 70px; text-align: right; flex: none; color: var(--text); }
.row-tags { display: flex; gap: 6px; flex: none; }
.row-head { min-height: 40px; color: var(--muted); text-transform: uppercase; font-size: .85rem; }
.row-head .row-title { color: var(--muted); font-size: .85rem; }
.segue { color: var(--yellow); font-weight: 700; margin-left: 8px; }
.tracks .row { cursor: default; }
.tracks .row:hover { background: rgba(255,255,255,.03); }
.tracks .row.playing { background: rgba(0,136,255,.16); margin: 0 -16px; padding: 0 16px; }
.tracks .row.playing .row-title { color: var(--yellow); }
.tracks .row.dead .row-title { color: var(--muted); }
.play { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: #48484c; color: var(--bright);
  display: grid; place-items: center; cursor: pointer; font-size: 12px; padding-left: 2px; }
.play:hover, .row.playing .play { background: var(--blue); color: #fff; }
span.play { background: transparent; color: var(--muted); cursor: not-allowed; }
.heart { border: 0; background: none; color: var(--text); cursor: pointer; display: inline-flex; gap: 4px; align-items: center;
  font: italic 600 .95rem var(--cond); width: 56px; justify-content: flex-start; padding: 0; }
.heart .g { margin: 0; }
.heart:hover, .heart.on { color: #ff5d7a; }

.badge { display: inline-block; background: #4a4a4f; color: var(--bright); font-size: .72rem; font-weight: 700; border-radius: 4px;
  padding: 2px 6px; text-transform: none; letter-spacing: .02em; line-height: 1.3; }
.exclusive { display: inline-block; width: 16px; height: 16px; background: url("/static/images/llamamall_exclusive.png") no-repeat; vertical-align: middle; }

/* old llamamall fire ratings */
.flames { position: relative; display: inline-block; width: 120px; height: 24px; background: url("/static/images/FireOff.png") repeat-x; }
.flames > span { position: absolute; inset: 0 auto 0 0; background: url("/static/images/FireOn.png") repeat-x; }
.flames.sm { transform: scale(.75); transform-origin: left center; width: 120px; margin-right: -30px; }
.tile .flames.sm { transform-origin: center; margin: 2px -15px 0; }

/* setlists: phish.net / live.phish.net style */
.pn { margin-bottom: 28px; }
.pn-date { border-top: 5px solid var(--blue); margin-bottom: 6px; }
.pn-date a, .pn-date span { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.25rem;
  letter-spacing: .04em; padding: 3px 12px 4px; }
.pn-date a:hover { background: var(--blue-2); color: #fff; }
.pn + .pn { margin-top: 56px; }
.setlists-top { display: flex; align-items: center; gap: 16px; }
.quickjump { display: flex; align-items: center; gap: 10px; }
.quickjump label { font-size: 1.7rem; font-weight: 800; color: var(--bright); text-transform: uppercase; }
.quickjump input { background: #48484c; border: 0; border-radius: 6px; color: var(--bright); padding: 8px 10px; font: 1.1rem var(--sans); color-scheme: dark; }
.showing { margin: 6px 0 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 22px; }
.pager a, .pager span { padding: 5px 11px; border-radius: 5px; background: #48484c; color: var(--bright); font-weight: 700; }
.pager a:hover { background: #55555a; }
.pager .cur { background: var(--blue); color: #fff; }
.pager .gap { background: transparent; color: var(--muted); }
.filter label { display: grid; gap: 6px; margin: 14px 0; color: var(--text); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.filter select { min-width: 0; width: 100%; text-overflow: ellipsis; }
.filter select { background: #48484c; color: var(--bright); border: 0; border-radius: 5px; padding: 6px 8px; font: .95rem var(--sans); }
.filter-btns { display: flex; gap: 8px; margin-top: 14px; }
.side-links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.side-links li::before { content: "— "; color: var(--muted); }
.pn-venue { font-size: 2.3rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; margin: 4px 0 2px; }
.pn-venue a { color: var(--bright); }
.pn-venue a:hover { color: var(--blue-2); }
.pn-loc { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.pn-body { font-size: 1.12rem; line-height: 1.75; color: var(--bright); max-width: 75ch; }
.pn-set { margin: 0 0 18px; }
.pn-label { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.pn-song { color: var(--bright); }
.pn-song:hover { color: var(--blue-2); text-decoration: underline; }
.pn-segue { color: var(--text); }
.pn-ref { color: var(--blue-2); font-size: .7em; margin-left: 1px; }
.pn-notes { list-style: none; margin: 4px 0 18px; padding: 0; font-size: .92rem; color: var(--text); line-height: 1.55; }
.pn-shownotes { font-size: 1rem; color: var(--text); line-height: 1.6; white-space: pre-line; margin: 0 0 14px; }
.pn-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: .92rem; color: var(--text); border-top: 1px solid var(--line); padding-top: 12px; }
.pn-none { font-size: 1.1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; margin-top: 8px; }
.badge-setlist { background: #1c6fc4; }
@media (max-width: 900px) { .pn-venue { font-size: 1.7rem; } .pn-body { font-size: 1.08rem; } }

/* song page (phish.net style) */
.song-h { font-size: 2.2rem; font-weight: 800; margin: 4px 0 12px; }
.song-h small { font-size: 1.15rem; color: var(--muted); font-weight: 700; margin-left: 6px; }
.song-h small b { color: var(--blue-2); }
.song-summary p { margin: 0 0 4px; color: var(--text); }
.perf-search { display: grid; gap: 6px; max-width: 320px; margin: 22px 0 14px; color: var(--text); }
.perf-search input { background: #48484c; border: 0; border-radius: 6px; color: var(--bright); padding: 9px 11px; font: 1rem var(--sans); }
.perf-wrap { overflow-x: auto; margin-bottom: 30px; }
.perf { width: 100%; border-collapse: collapse; font-size: .98rem; }
.perf th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.perf td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--bright); }
.perf tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.perf tbody tr:hover { background: rgba(0,136,255,.08); }
.perf td:nth-child(1) { white-space: nowrap; }

.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.subtabs a { padding: 8px 12px; color: var(--text); border-radius: 6px 6px 0 0; }
.subtabs a.on { background: var(--panel); color: var(--bright); font-weight: 700; }
.table-count { padding: 10px 14px; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line); text-align: right; }
.sortable th[data-sort] { cursor: pointer; user-select: none; }
.sortable th.sorted-asc::after { content: " ▲"; font-size: .7em; }
.sortable th.sorted-desc::after { content: " ▼"; font-size: .7em; }

.btn-archive { flex-direction: column; align-items: flex-start; text-transform: none; letter-spacing: 0; text-align: left; }
.btn-archive span { text-transform: uppercase; letter-spacing: .03em; }
.btn-archive small { white-space: normal; overflow-wrap: anywhere; font-weight: 400; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.card-kicker + .btn { margin-top: 6px; }
.pn-meta > span { display: inline; }

/* lyrics */
[id] { scroll-margin-top: 96px; }
.lyrics-box { margin: 26px 0 8px; }
.lyrics-box h2 { margin-bottom: 10px; }
.lyrics { white-space: pre-line; background: var(--panel); border-radius: var(--radius); padding: 18px 22px; color: var(--bright);
  line-height: 1.7; max-width: 60ch; }
.lyrics-credit { margin: 8px 0 0; font-size: .9rem; }
.lyrics-edit { margin-top: 12px; }
.lyrics-edit > summary { list-style: none; display: inline-flex; }
.lyrics-edit > summary::-webkit-details-marker { display: none; }
.lyrics-form { max-width: 640px; }
.lyrics-form textarea { background: #48484c; border: 0; border-radius: 6px; color: var(--bright); padding: 10px 12px; font: 15px/1.6 var(--sans); resize: vertical; }
.form label.check { display: flex; align-items: center; gap: 8px; }
.lyrics-list { columns: 3 220px; column-gap: 28px; list-style: none; padding: 0; margin: 0 0 24px; }
.lyrics-list li { break-inside: avoid; padding: 4px 0; }
.lyrics-list small { color: var(--muted); margin-left: 6px; }

/* setlist ratings */
.pn-rating { display: inline-flex; align-items: center; gap: 4px; }
.pn-rating .flames.sm { margin-right: -26px; }
.rating-num { color: var(--bright); font-weight: 700; margin-left: 4px; }
.rate-box { background: var(--panel); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; max-width: 520px; }
.rate-box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.rate-box p { margin: 6px 0 0; }
.rate-flames { display: flex; align-items: center; gap: 2px; }
.rate-f { border: 0; background: none; color: #5d5d63; font-size: 26px; cursor: pointer; padding: 2px 4px; line-height: 1; }
.rate-f .g { margin: 0; }
.rate-f.on, .rate-flames:hover .rate-f.hot { color: #ff8a1f; }
.rate-flames:hover .rate-f:not(.hot) { color: #5d5d63; }
.rate-clear { margin-left: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; font: .85rem var(--sans); text-decoration: underline; }

/* previous / next show on setlist pages (phish.net style) */
.show-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-weight: 700; }
.show-nav a { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 6px; padding: 7px 12px; }
.show-nav a:hover { background: var(--panel-2); }
.show-nav small { color: var(--muted); font-weight: 600; }
.show-nav .g-left { margin-right: 0; }
.show-nav-bottom { margin-top: 28px; }
.show-nav a[rel=next] { text-align: right; }
@media (max-width: 900px) {
  .show-nav a { white-space: nowrap; padding: 7px 10px; }
  .show-nav small { display: block; font-size: .8rem; }
}

/* show page (old llamamall layout) */
.page.wide { grid-template-columns: 1fr; }
.show-head h1 { font-size: 2.2rem; }
.show-head h1 small { font-size: 1.2rem; color: var(--text); font-weight: 600; margin-left: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--panel); border-radius: 6px; padding: 9px 14px; margin: 10px 0 20px; color: var(--muted); }
.crumbs b { color: var(--bright); }
.crumbs-pn { margin-left: auto; display: flex; gap: 18px; }
.showgrid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 26px; align-items: start; }
.show-left .art { max-width: 100%; margin-bottom: 14px; }
.block { margin-bottom: 18px; }
.block h3 { font-size: 1.15rem; margin-bottom: 8px; }
.block p { margin: 0; color: var(--text); word-break: break-word; }
.well { background: var(--panel); border-radius: 6px; padding: 12px 14px; color: var(--text); }
.source-pick select { width: 100%; background: #48484c; color: var(--bright); border: 0; border-radius: 6px; padding: 10px; font: .95rem var(--sans); }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.linklist a { display: block; background: var(--panel); border-radius: 6px; padding: 8px 12px; }
.linklist a:hover { background: var(--panel-2); }
.tracktable { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.tracktable th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tracktable td { padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--bright); }
.tracktable tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.tracktable tbody tr:hover { background: rgba(255,255,255,.05); }
.trk-n { color: var(--muted) !important; width: 36px; }
.trk-title { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.trk-len { width: 70px; color: var(--text) !important; }
.trk.playing { background: rgba(0,136,255,.18) !important; }
.trk.playing .trk-title span { color: var(--yellow); }
.trk.dead .trk-title span { color: var(--muted); }
.bc-embed iframe { width: 100%; height: 620px; border: 0; border-radius: var(--radius); background: var(--panel); }
.bc-embed p { margin: 8px 0 0; }
.reviews { margin-top: 28px; }
.reviews .lead { display: flex; align-items: center; gap: 10px; color: var(--bright); }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review h4 { margin: 0 0 4px; color: var(--bright); font-weight: 600; }
.review cite { font-style: normal; color: var(--blue-2); }
.review blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--text); }
@media (max-width: 900px) { .showgrid { grid-template-columns: 1fr; } .crumbs-pn { margin-left: 0; } }

.side-tile { font-size: 2rem !important; line-height: 1.1; }
.side-name { color: var(--yellow); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; white-space: nowrap; }
.tab.active-side { background: var(--blue); color: #fff; }

.artist-info { padding: 16px 18px; margin: 18px 0; }
.artist-info p { margin: 0 0 10px; color: var(--text); }
.artist-links { display: flex; flex-wrap: wrap; gap: 8px; }
.spotify-embed { width: 100%; height: 420px; border: 0; border-radius: 12px; margin-top: 6px; }

.videos { margin-top: 10px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vid { margin: 0; }
.vthumb, .vframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; display: block; }
.vthumb { background: #111 center / cover no-repeat; cursor: pointer; position: relative; }
.vthumb .g { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); margin: 0; width: 56px; height: 56px;
  border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 3px; }
.vthumb:hover .g { background: #e62117; }
.vid figcaption { margin-top: 6px; line-height: 1.3; }
.vid figcaption a { color: var(--bright); }
.vid figcaption small { display: block; color: var(--muted); }

/* show page */
.source + .source { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 4px 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: #48484c; color: var(--text);
  padding: 6px 14px; cursor: pointer; font: 600 .95rem var(--cond); }
.chip .g { margin: 0; }
.chip:hover { color: var(--bright); }
.chip.on { background: var(--blue); color: #fff; }
.chip[data-kind="like"].on { background: #d9435f; }
.info { padding: 6px 16px; margin: -18px 0 30px; }
.info summary { cursor: pointer; color: var(--text); padding: 8px 0; }
.desc { white-space: pre-line; }

/* forms + prose + stats */
.form-panel, .prose { padding: 24px; max-width: 640px; }
.prose h2 { margin-top: 24px; } .prose h3 { margin: 12px 0; }
.form { display: grid; gap: 14px; margin: 18px 0; max-width: 360px; }
.form label { display: grid; gap: 6px; color: var(--text); }
.form input { background: #48484c; border: 0; border-radius: 6px; color: var(--bright); padding: 10px 12px; font: 16px var(--sans); }
.form input:focus { outline: 2px solid var(--blue); }
.error { color: #ff7b8f; }
.forgot-link { justify-self: start; margin-top: -6px; font-size: .95rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 16px; display: grid; }
.stat b { color: var(--bright); font-size: 2.2rem; line-height: 1; }

.foot { text-align: center; color: var(--muted); padding: 30px 20px 20px; }

/* bottom player */
.player { position: fixed; inset: auto 0 0; background: #3a3a3c; border-top: 1px solid #4a4a4e; box-shadow: 0 -4px 16px rgba(0,0,0,.4); z-index: 30; }
.player[hidden] { display: none; }
.player-in { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(240px, 1.4fr); align-items: center; gap: 20px; min-height: 78px; }
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dog { height: 40px; width: auto; flex: none; }
.np-text { min-width: 0; }
.np-title { color: var(--bright); font-size: 1.2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-show { font-size: .95rem; }
.ctl { display: flex; gap: 10px; align-items: center; }
.pbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #4d4d52; color: var(--bright); cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.pbtn .g { margin: 0; }
.pbtn:hover { background: #5a5a60; }
.pbtn-main { width: 52px; height: 52px; background: var(--blue); font-size: 18px; }
.pbtn-main:hover { background: var(--blue-2); }
.scrub { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.scrub input { flex: 1; accent-color: var(--blue); }

/* collapsible sidebar filter (open on desktop, closed on phones by app.js) */
.filter-box > summary { list-style: none; cursor: default; }
.filter-box > summary::-webkit-details-marker { display: none; }
.main { min-width: 0; }

/* mid-size screens: keep the whole header on one line */
@media (min-width: 901px) and (max-width: 1560px) {
  .tab .g { display: none; }
  .tab { padding: 8px 9px; }
  .tabs { gap: 5px; }
  .me span { display: none; }
  .me { padding: 4px; }
  .search input { width: 110px; }
  .logo { margin-right: 4px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .logo { font-size: 24px; }
  .tab { font-size: 13px; padding: 7px 7px; }
  .who .signup { display: none; }
}

@media (max-width: 900px) {
  body { font-size: 15px; }
  .wrap { padding: 0 12px; }

  /* header: logo + search + login on one line, nav as a swipeable strip; not sticky so it doesn't eat the screen */
  .topbar { position: static; }
  .topbar-in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-top: 10px; padding-bottom: 0; }
  .logo { font-size: 23px; }
  .side-name { order: 2; font-size: .95rem; }
  .search { order: 3; flex: 1; min-width: 0; margin-left: 0; }
  .search input, .search input:focus { width: 100%; font-size: 16px; padding-top: 8px; padding-bottom: 8px; }
  .search .g { top: 10px; }
  .who { order: 4; }
  .who .signup, .login span, .me span { display: none; }
  .login .g { margin: 0; }
  .me { padding: 3px; }
  .me img { width: 28px; height: 28px; }
  .tabs { order: 5; width: calc(100% + 24px); margin: 0 -12px; padding: 2px 12px 10px; overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  /* phones: the menus flatten into the swipe strip; each page is its own button */
  .tab-drop, .tab-drop:hover .drop-menu, .tab-drop:focus-within .drop-menu, .drop-menu { display: contents; }
  .tab-drop > .tab, .tab-drop::after, .drop-menu .drop-extra { display: none; }
  .drop-menu a { display: inline-flex; align-items: center; padding: 8px 11px; font-size: 14px; border-radius: 6px; background: #48484c; }
  .drop-menu a.on { background: var(--blue); color: #fff; }
  .tab { padding: 8px 11px; font-size: 14px; }

  /* single column; the generic artist card is hidden, page-specific sidebars stay but compact */
  .page { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 12px; }
  .side { position: static; }
  .side:has(> .artist-card:only-child), .side:has(> .song-card) { display: none; }
  .card { padding: 12px 14px; }
  .card-title { font-size: 1.5rem; }
  .card hr { margin: 10px 0; }
  .art, .avatar { max-width: 140px; }
  .filter-box > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
  .filter-box > summary::after { content: "\e114"; font-family: "Glyphicons Halflings"; margin-left: auto; font-size: 12px; transition: transform .15s; }
  .filter-box[open] > summary::after { transform: rotate(180deg); }
  .filter { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .filter label { margin: 8px 0 0; }
  .filter label:nth-of-type(n+5) { grid-column: 1 / -1; }
  .filter-btns, .filter hr, .filter .card-kicker, .filter .side-links { grid-column: 1 / -1; }
  .filter select { font-size: 16px; padding: 8px; }

  h1 { font-size: 1.6rem; }
  .sec-head { margin: 4px 2px 10px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 0 6px 10px; }
  .tile:hover { transform: none; }
  .tile-big { font-size: 2.6rem; } .tile-show .tile-date { font-size: 1.3rem; }
  .tile-sub, .tile-venue { font-size: .92rem; }
  .tile-flags { top: 6px; right: 6px; }

  /* row lists: date + title, city on its own line */
  .rows { padding: 0 12px; }
  .row { gap: 10px; min-height: 50px; padding: 6px 0; font-size: .98rem; }
  .row-title { font-size: 1.08rem; white-space: normal; }
  .row-title small { display: block; margin: 0; font-size: .85rem; }
  .row-date { width: 88px; font-size: .92rem; }
  .row-num, .row-dur { width: auto; }
  .row-sub, .row-tags { display: none; }
  .row .flames.sm { display: none; }

  /* setlists */
  .setlists-top { flex-wrap: wrap; gap: 8px; }
  .quickjump label { font-size: 1.3rem; }
  .quickjump input { font-size: 16px; }
  .pn-date a, .pn-date span { font-size: 1.05rem; }
  .pn-venue { font-size: 1.45rem; }
  .pn-loc { font-size: 1.1rem; margin-bottom: 10px; }
  .pn-body { font-size: 1.05rem; line-height: 1.6; }
  .pn-label { font-size: 1.1rem; }
  .pn-notes, .pn-meta { font-size: .9rem; }
  .pn + .pn { margin-top: 28px; }
  .pager a, .pager span { padding: 7px 11px; }
  .song-h { font-size: 1.7rem; }
  .perf { font-size: .9rem; }
  .perf th, .perf td { padding: 9px 8px; }
  .perf-search { max-width: none; margin: 14px 0 10px; }
  .perf-search input { font-size: 16px; }
  .vgrid { grid-template-columns: 1fr; }
  /* trim stat tables to the columns that matter on a phone (sorting still works on the rest) */
  .t-songs :is(th, td):nth-child(2), .t-songs :is(th, td):nth-child(4) { display: none; }
  .t-perf :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)) { display: none; }
  .t-venues :is(th, td):is(:nth-child(3), :nth-child(4), :nth-child(6), :nth-child(8)) { display: none; }
  .perf td:nth-child(1) { white-space: normal; }
  .perf :is(td, th) { white-space: nowrap; }
  .perf :is(td, th):first-child { white-space: normal; }

  /* show page: art + source picker, then the playable tracks, then the details */
  .showgrid { display: flex; flex-direction: column; }
  .show-left { display: contents; }
  .show-left > * { order: 3; }
  .show-left > .art { order: 0; max-width: 140px; margin: 0 0 4px; }
  .show-left > .src-block { order: 1; margin-bottom: 0; }
  .show-right { order: 2; }
  /* setlist page: the setlist first, listen links after it */
  .side:has(> .listen-card) { order: 2; }
  .show-head h1 { font-size: 1.55rem; line-height: 1.2; }
  .show-head h1 small { display: block; margin: 4px 0 0; font-size: 1rem; }
  .crumbs { margin: 8px 0 14px; padding: 8px 12px; }
  .crumbs-pn { margin-left: 0; width: 100%; justify-content: space-between; }
  .showgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .source-pick select { font-size: 16px; }
  .tracktable td { padding: 6px 8px; }
  .tracktable th { padding: 8px; }
  .trk-n { width: 26px; }
  .trk-title { gap: 10px; font-size: 1rem; }
  .trk-len { width: 52px; }
  .bc-embed iframe { height: 520px; }

  /* bottom player: title + buttons on top, scrubber below */
  body { padding-bottom: 120px; }
  .player-in { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; min-height: 0; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dog { height: 30px; }
  .np-title { font-size: 1rem; }
  .np-show { font-size: .85rem; }
  .ctl { gap: 6px; }
  .pbtn { width: 40px; height: 40px; }
  .pbtn-main { width: 46px; height: 46px; }
  .scrub { grid-column: 1 / -1; font-size: .85rem; }
  .form-panel, .prose { padding: 16px; }
}

/* discography */
.disco-intro { max-width: 80ch; margin: 0 0 8px; }
.disco-h { margin: 34px 0 16px; }
.disco { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 22px; }
.album { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; background: var(--panel); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.2); align-items: start; }
.album-art img, .album-art .art { width: 200px; height: 200px; border-radius: 6px; display: block; object-fit: cover; }
.album h3 { font-size: 1.5rem; }
.album-meta { margin: 2px 0 8px; font-size: .92rem; }
.album-about { font-size: .92rem; color: var(--text); margin: 0 0 8px; white-space: pre-line; }
.album-tracks { margin: 0 0 14px; padding-left: 1.6em; font-size: .95rem; line-height: 1.7; color: var(--muted); }
.album-tracks li { padding-right: 4px; }
.album-tracks a { color: var(--bright); }
.album-tracks a:hover { color: var(--blue-2); }
.album-tracks .t-len { float: right; margin-left: 10px; color: var(--muted); font-variant-numeric: tabular-nums; } /* first in the line so it stays on it */
.album-tracks .lyr-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-2); border: 1px solid #4a6a8a;
  border-radius: 4px; padding: 0 5px; margin-left: 6px; }
@media (max-width: 900px) {
  .disco { grid-template-columns: minmax(0, 1fr); }
  .album { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .album-art img, .album-art .art { width: 110px; height: 110px; }
  .album-tracks { grid-column: 1 / -1; }
}

/* jam charts */
.jam-box { margin: 26px 0 8px; }
.jam-box h2 { margin-bottom: 10px; }
.jam-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.jam-list li { background: var(--panel); border-radius: 6px; padding: 10px 14px; border-left: 4px solid var(--yellow); }
.jam-date { font-weight: 700; margin-right: 6px; }
.jam-note { display: block; color: var(--bright); margin-top: 2px; }
.jam-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 8px; }
.jam-auto h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.jam-auto ol { margin: 0; padding-left: 1.4em; line-height: 1.8; }
.jam-auto li b { float: right; color: var(--bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.jam-auto li span { margin-left: 4px; }
.jam-cell { text-align: center; }
.jam-star, .jam-toggle.on { color: var(--yellow); }
.jam-toggle { border: 0; background: none; color: var(--muted); font-size: 1.15rem; cursor: pointer; padding: 0 4px; }
.jam-toggle:hover { color: var(--yellow); }
.jam-songs { columns: 3 240px; column-gap: 28px; list-style: none; padding: 0; margin: 0 0 24px; }
.jam-songs li { break-inside: avoid; padding: 4px 0; }
.jam-songs small { color: var(--muted); margin-left: 6px; }

/* Listen: random radio */
.radio { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; background: var(--panel);
  border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.radio-art img, .radio-art .art { width: 280px; height: 280px; border-radius: 8px; object-fit: cover; display: block; margin: 0; }
.radio-title { font-size: 2.6rem; line-height: 1.1; margin: 8px 0 6px; }
.radio-show { font-size: 1.15rem; margin: 0 0 18px; }
.radio-ctl { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-go { font-size: 17px; padding: 12px 20px; }
.radio-queue { list-style: none; padding: 0; margin: 0 0 18px; background: var(--panel); border-radius: var(--radius); }
.radio-queue li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.radio-queue li:last-child { border-bottom: 0; }
.radio-queue .play { grid-row: 1 / 3; }
.rq-title { color: var(--bright); font-size: 1.05rem; }
.rq-meta { font-size: .9rem; grid-column: 2; }
.rq-len { grid-row: 1 / 3; grid-column: 3; color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-queue li.playing { background: rgba(0,136,255,.16); }
.radio-queue li.playing .rq-title { color: var(--yellow); }
@media (max-width: 900px) {
  .radio { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .radio-art img, .radio-art .art { width: 110px; height: 110px; }
  .radio-title { font-size: 1.5rem; }
  .radio-show { font-size: .95rem; }
  .radio-ctl { grid-column: 1 / -1; }
}
.radio [hidden] { display: none !important; }

/* Account menu (the username button) */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu .caret { margin: 0 0 0 2px; }
.user-drop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 250px; padding: 10px; display: grid; gap: 4px;
  background: #3a3a3d; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.user-drop a, .user-drop button { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 6px; color: var(--text);
  font: 600 17px var(--cond); letter-spacing: .02em; font-stretch: condensed; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.user-drop .g { width: 20px; margin: 0; text-align: center; font-size: 15px; opacity: .85; }
.user-drop a:hover, .user-drop button:hover, .user-drop a:focus, .user-drop button:focus { background: #4d4d52; color: var(--bright); }
.user-drop hr { margin: 8px 6px; }
.user-drop form { margin: 0; }

/* Account pages */
.me-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 4px 0 16px; }
.me-head h1 { margin: 0; }
.me-head p { flex-basis: 100%; margin: 0; }
.me-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.me-tab { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 6px; background: #48484c; color: var(--text);
  font: 600 15px var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.me-tab span { margin-left: 4px; color: var(--muted); }
.me-tab.on { background: var(--blue); color: #fff; }
.me-tab.on span { color: #dbe9ff; }
.me-empty { font-size: 1.1rem; padding: 12px 4px; }
.plist { margin-bottom: 14px; }
.plist .rq-len, .radio-queue .rq-len { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.addpl, .pl-op { border: 0; background: #48484c; color: var(--text); border-radius: 6px; width: 30px; height: 30px; cursor: pointer;
  display: inline-grid; place-items: center; }
.addpl .g, .pl-op .g { margin: 0; }
.addpl:hover, .pl-op:hover { background: var(--blue); color: #fff; }
.addpl.on { color: var(--yellow); }
.pl-op[disabled] { opacity: .35; cursor: default; background: #48484c; color: var(--text); }
.pl-x:hover { background: #c0394f; }
.pl-ops { display: inline-flex; gap: 4px; margin: 0; }
.trk-acts { white-space: nowrap; }
.trk-acts .addpl { margin-left: 6px; vertical-align: middle; }
.pl-save { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 16px 20px; margin: 0 0 16px; }
.pl-save label { display: grid; gap: 6px; flex: 1 1 280px; max-width: 520px; }
.pl-save input { background: #48484c; border: 0; border-radius: 6px; color: var(--bright); padding: 10px 12px; font: 16px var(--sans); }
.pl-sum { padding-bottom: 10px; }
.pl-danger { display: flex; gap: 10px; margin: 0 0 24px; }
.pl-hero { padding: 24px 28px; margin-bottom: 16px; }
.pl-hero h1 { font-size: 2.4rem; margin: 6px 0; }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.settings .form { margin: 0; max-width: none; }
.settings h2 { margin: 0; }
.settings .avatar { width: 96px; height: 96px; }
.ok-msg { color: #7fd98b; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: #202022; color: var(--bright); padding: 12px 18px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Radio: audio / YouTube picker and the video player */
.radio-mode { display: inline-flex; flex-wrap: wrap; gap: 0; border: 0; padding: 0; margin: 18px 0 0; background: #48484c; border-radius: 8px; }
.radio-mode label { cursor: pointer; }
.radio-mode input { position: absolute; opacity: 0; }
.radio-mode span { display: block; padding: 8px 14px; border-radius: 8px; font: 600 14px var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.radio-mode input:checked + span { background: var(--blue); color: #fff; }
.radio-mode input:focus-visible + span { outline: 2px solid var(--blue-2); }
.radio-video { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 8px; overflow: hidden; }
/* a video starts small, in the cover-art spot; "Enlarge video" makes it full width under the controls */
.radio.has-video { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); }
.radio.has-video .radio-art { display: none; }
.radio.has-video .radio-video { grid-column: 1; grid-row: 1; }
.radio.has-video .radio-main { grid-column: 2; grid-row: 1; }
.radio.has-video.big-video .radio-main { grid-column: 1 / -1; }
.radio.has-video.big-video .radio-video { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(100%, calc((100vh - 500px) * 16 / 9)); min-width: min(100%, 480px); }
.radio { scroll-margin-top: 92px; }
.radio-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.vtag { display: inline-block; font: 700 11px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: #fff;
  background: #6b6b72; border-radius: 4px; padding: 2px 6px; margin-right: 8px; vertical-align: 2px; }
.vtag-off { background: #c4302b; }
.vtag-bc { background: #1d8fa5; }
.vtag-sbd { background: #3b8b4e; }
.vtag-ll { background: var(--blue); }
.src-block h3 .vtag { vertical-align: 3px; margin-left: 6px; }
.vid figcaption .vtag { margin-right: 6px; }
.rq-yt { display: inline-block; font: 700 11px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: #fff;
  background: #c4302b; border-radius: 4px; padding: 2px 6px; margin-right: 8px; vertical-align: 2px; }
@media (max-width: 900px) {
  .user-drop { position: fixed; right: 12px; top: 64px; }
  .radio-mode { grid-column: 1 / -1; margin-top: 4px; }
  .radio-mode span { padding: 7px 10px; font-size: 13px; }
  .plist .rq-len { gap: 6px; }
  .radio.has-video, .radio.has-video.big-video { grid-template-columns: minmax(0, 1fr); }
  .radio.has-video .radio-main { grid-column: 1; grid-row: 1; }
  .radio.has-video .radio-video { grid-column: 1; grid-row: 2; }
  #radio-big { display: none; }
}

/* Setlist page: play each recording on llamamall */
.btn-play { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px; text-align: left; margin-top: 6px; }
.btn-play .vtag { margin: 0; }
.btn-play small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; font: 13px var(--sans); color: var(--text); }
.ext-links { font-size: .9rem; margin: 10px 0 0; color: var(--muted); }

/* Rate a show / I was there */
.show-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 0; }
.show-acts .rate-f { font-size: 20px; padding: 2px 3px; }
.show-acts-big .rate-f { font-size: 26px; padding: 2px 4px; }
.attend-btn.on { background: var(--blue); color: #fff; }
.attend-n { margin-left: 2px; opacity: .85; }
.pn .show-acts { padding-top: 10px; border-top: 1px solid var(--line); }
.acts-h { margin-top: 16px; }

/* Search page */
.search-big { position: relative; display: flex; gap: 10px; max-width: 720px; margin: 0 0 20px; }
.search-big .g { position: absolute; left: 14px; top: 14px; color: var(--muted); margin: 0; }
.search-big input { flex: 1; min-width: 0; background: #48484c; border: 0; border-radius: 8px; color: var(--bright); padding: 12px 14px 12px 40px; font: 17px var(--sans); }
.search-big input:focus { outline: 2px solid var(--blue); }
.sr { margin-bottom: 22px; }
.sr .rows { margin-bottom: 0; }
.sr-lyric { flex-wrap: wrap; gap: 2px 14px; padding: 10px 0; }
.sr-lyric .muted { flex-basis: 100%; font-style: italic; }
@media (min-width: 1281px) { .search input { width: 180px; } .search input:focus { width: 240px; } }

/* Setlist page: phish.net-style boxes at the bottom */
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 26px 34px; margin: 30px 0 24px; align-items: start; }
.xh { display: inline-block; font: 800 1.35rem var(--cond); text-transform: uppercase; letter-spacing: .02em; color: var(--bright);
  background: #48484c; padding: 6px 12px 4px; margin: 0 0 12px; border-top: 3px solid var(--blue); }
.xh small { font: 600 .95rem var(--cond); color: var(--text); margin-left: 4px; }
.xbox { border-top: 3px solid #48484c; }
.xbox .xh { margin-top: -3px; }
.xlist { line-height: 1.7; margin: 0; }
.xsum { margin: 10px 0 0; color: var(--text); }
.debuts { margin: 0; background: var(--panel); border-radius: var(--radius); padding: 12px 14px 8px; }
.debuts figcaption { font-size: .85rem; margin-bottom: 6px; }
.debuts svg { width: 100%; height: auto; max-height: 190px; display: block; overflow: visible; }
.d-base { stroke: #5d5d63; stroke-width: 1; }
.d-fill { fill: var(--blue); }
.d-bar:hover .d-fill { fill: var(--blue-2); }
.d-hit { fill: transparent; }
.d-bar:hover .d-hit { fill: rgba(255,255,255,.04); }
.d-n { fill: var(--bright); font: 600 11px var(--sans); text-anchor: middle; }
.d-y { fill: var(--muted); font: 11px var(--sans); text-anchor: middle; }
.d-table { margin-top: 8px; font-size: .9rem; }
.d-table summary { cursor: pointer; color: var(--blue-2); }
.d-table table { margin-top: 6px; width: 100%; }
.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dist li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; }
.dist img, .dist-art { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; margin: 0; }
.dist-t { line-height: 1.35; }
.dist-t small { display: block; color: var(--muted); }
.dist-n { display: inline-block; min-width: 20px; text-align: center; font: 700 12px var(--sans); color: #fff; background: #6b6b72; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.ondate { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ondate li::before { content: "– "; color: var(--muted); }
.ondate .vtag { margin: 0 0 0 4px; vertical-align: 1px; }

/* Map */
.map-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; }
.map-filters label { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 600 14px var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.map-filters select { background: #48484c; color: var(--bright); border: 0; border-radius: 6px; padding: 7px 10px; font: 15px var(--sans); }
.map-mine input { width: 18px; height: 18px; accent-color: var(--blue); }
.showmap { height: min(70vh, 680px); min-height: 380px; border-radius: var(--radius); background: #1b1b1d; }
.map-note { margin: 10px 2px; font-size: .9rem; }
.map-table summary { cursor: pointer; color: var(--blue-2); }
.map-list { columns: 3 220px; margin: 10px 0 20px; }
.showmap.leaflet-container { font: 14px var(--sans); background: #1b1b1d; }
.showmap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.35); }
.showmap .leaflet-popup-content-wrapper, .showmap .leaflet-popup-tip, .leaflet-tooltip.leaflet-tooltip { background: #2b2b2d; color: var(--text); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.leaflet-tooltip.leaflet-tooltip { border: 0; }
.leaflet-tooltip-top.leaflet-tooltip-top:before { border-top-color: #2b2b2d; }
.leaflet-tooltip b, .showmap .map-pop h3 { color: var(--bright); }
.showmap .map-pop h3 { margin: 0 0 2px; font-size: 1.15rem; }
.showmap .map-pop h4 { margin: 10px 0 4px; font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.showmap .map-pop p { margin: 0; }
.showmap .map-pop ul { margin: 0; padding: 0 0 0 16px; max-height: 160px; overflow: auto; }
.showmap .map-pop small { color: var(--muted); }
.showmap .map-pop a { color: var(--blue-2); }
.showmap .leaflet-popup-close-button { color: var(--muted); }
.showmap .leaflet-control-attribution { background: rgba(32,32,34,.85); color: var(--muted); }
.showmap .leaflet-control-attribution a { color: var(--blue-2); }
.showmap .leaflet-bar a { background: #3a3a3d; color: var(--bright); border-color: #2b2b2d; }

/* Playlists: pick which playlist to add to; find tracks in the editor */
.pl-pick { position: absolute; z-index: 70; min-width: 230px; max-width: 320px; max-height: 320px; overflow: auto; padding: 6px; display: grid; gap: 2px;
  background: #3a3a3d; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.pl-pick-h { padding: 6px 10px 4px; font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pl-pick button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--text); font: 15px var(--sans); text-align: left; cursor: pointer; }
.pl-pick button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pick button small { color: var(--muted); }
.pl-pick button:hover, .pl-pick button:focus { background: #4d4d52; color: var(--bright); outline: 0; }
.pl-pick .g { margin: 0; }
.pl-find { padding: 16px 20px; margin: 0 0 18px; }
.pl-find h2 { margin: 0 0 10px; }
.pl-find .search-big { margin-bottom: 8px; max-width: none; }
.pl-results { max-height: 420px; overflow: auto; background: none; }
.pl-results:empty { display: none; }
.pl-tip { margin: 6px 0 0; font-size: .9rem; }
.pl-none { padding: 10px 4px; }
.show-tools { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.inline-form { display: inline; margin: 0; }
.pl-del:hover { color: #ff7b8f; }
#np-add { margin-left: 6px; }
.showmap.leaflet-grab { cursor: default; }  /* an arrow, not a big hand; the hand shows only while dragging */
.showmap.leaflet-dragging .leaflet-grab, .showmap.leaflet-dragging { cursor: grabbing; }
.showmap .leaflet-interactive { cursor: pointer; }

/* My stats */
.my-tiles { margin-bottom: 6px; }
.ranked { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
.ranked small { margin-left: 4px; }
.my-years { margin-top: 14px; }
.ybars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 4px; overflow-x: auto; }
.ybar-f { box-shadow: 0 1px 0 #5d5d63; }
.ybar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 22px; height: 100%; position: relative; }
.ybar-f { width: 16px; background: var(--blue); border-radius: 4px 4px 0 0; }
.ybar:hover .ybar-f { background: var(--blue-2); }
.ybar-n { font: 600 11px var(--sans); color: var(--bright); margin-bottom: 3px; }
.ybar-y { font: 11px var(--sans); color: var(--muted); margin-top: 4px; height: 14px; }
.my-years figcaption { margin-bottom: 4px; }


/* Top 40 */
.top-rank { display: inline-block; min-width: 28px; color: var(--muted); font: 700 1rem var(--cond); font-variant-numeric: tabular-nums; }
.top-list .row-num { width: auto; min-width: 70px; white-space: nowrap; }
.top-tracks .top-rank { min-width: 24px; }
.top-n { color: var(--text); white-space: nowrap; }
.showmap .map-pop .map-cities { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.showmap .map-pop .map-venues { max-height: 200px; }

/* Phones: phish.net-style menu: logo, then a hamburger at the top right that opens a sidebar */
.burger, .drawer, .drawer-scrim { display: none; }
@media (max-width: 900px) {
  .topbar .tabs, .topbar .search, .topbar .who { display: none !important; }
  .topbar-in { min-height: 58px; flex-wrap: nowrap; }
  .burger { display: grid; gap: 5px; align-content: center; margin-left: auto; width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 8px;
    background: #48484c; cursor: pointer; }
  .burger span { display: block; height: 2px; border-radius: 2px; background: var(--bright); }
  .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; }
  .drawer-scrim.open { opacity: 1; }
  .drawer { display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(86vw, 340px); overflow-y: auto;
    background: var(--bar); box-shadow: -10px 0 30px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .22s ease;
    padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .drawer.open { transform: none; }
  .drawer[hidden], .drawer-scrim[hidden] { display: none; }
  html.drawer-lock { overflow: hidden; }
  .drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .drawer-me { display: flex; align-items: center; gap: 10px; color: var(--bright); font: 600 17px var(--cond); }
  .drawer-me img { border-radius: 6px; }
  .drawer-x { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 8px; background: #48484c; color: var(--bright); font-size: 26px; line-height: 1; cursor: pointer; }
  .drawer-search { position: relative; margin-bottom: 8px; }
  .drawer-search .g { position: absolute; left: 12px; top: 13px; color: var(--muted); margin: 0; }
  .drawer-search input { width: 100%; background: #48484c; border: 0; border-radius: 8px; color: var(--bright); padding: 11px 12px 11px 36px; font: 16px var(--sans); }
  .drawer-nav { display: grid; padding-bottom: 6px; }
  .drawer-nav h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line);
    font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .drawer-nav h3 .g { margin: 0; color: var(--blue-2); }
  .drawer-nav a, .drawer-nav button { display: block; padding: 11px 12px; border-radius: 8px; color: var(--bright); font: 17px var(--sans); text-align: left;
    background: none; border: 0; width: 100%; cursor: pointer; }
  .drawer-nav a:active, .drawer-nav a:hover, .drawer-nav button:hover { background: #3a3a3d; }
  .drawer-nav a.on { background: rgba(0,136,255,.22); color: #fff; }
  .drawer-nav form { margin: 0; }
}
.xbox-wide { grid-column: 1 / -1; }
.stat-table { width: 100%; }
.stat-table th, .stat-table td { text-align: right; padding: 7px 10px; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stats-filter { margin-top: -4px; }
@media (max-width: 900px) { .stat-table { font-size: .9rem; } .stat-table th, .stat-table td { padding: 6px 5px; } }
table.rules { border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
table.rules th { color: var(--muted); font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
table.rules td { border-bottom: 1px solid var(--line); }
table.rules tr:last-child td { border-bottom: 0; }
table.rules td, table.rules th { padding: 7px 10px; }
.vid figcaption .vid-add { float: right; margin: 0 0 4px 8px; }

/* Floating video player (videos outside the Listen page): picture-in-picture style, bottom right */
.vdock { position: fixed; right: 16px; bottom: 96px; z-index: 55; width: 340px; background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.6); transition: width .2s; }
.vdock.big { width: min(640px, calc(100vw - 32px)); }
.vdock[hidden] { display: none; }
.vdock-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; background: #202022; }
.vdock-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bright); font: 600 13px var(--sans); }
.vdock-bar button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: #3a3a3d; color: var(--bright); cursor: pointer; font-size: 16px; line-height: 1; }
.vdock-bar button:hover { background: var(--blue); }
.vdock-v { aspect-ratio: 16 / 9; }
.vdock-v iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .vdock, .vdock.big { width: calc(100vw - 24px); right: 12px; bottom: 84px; } .vdock-size { display: none; } }
/* the shared video box sitting over the radio's video spot (Listen page) */
.vdock.anchored { z-index: 15; border-radius: 8px; box-shadow: none; transition: none; }
.vdock.anchored .vdock-bar { display: none; }
.vdock-bar { cursor: grab; touch-action: none; user-select: none; }
.vdock.dragging .vdock-bar { cursor: grabbing; }
.vdock.dragging iframe { pointer-events: none; } /* the drag doesn't get lost over the video */
.vdock.dragging { transition: none; }
.vdock-bar button { cursor: pointer; }
.ybars-big { height: 170px; gap: 10px; }
.ybars-big .ybar { min-width: 34px; color: inherit; }
.ybars-big .ybar-f { width: 26px; }
.ybars-big .ybar:hover .ybar-y { color: var(--bright); }
