/* VOD Archive: one stylesheet for every page.
   Plain CSS that old browsers can read; grid layouts are an upgrade over a flexbox fallback. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *:before, *:after { box-sizing: border-box; }
body {
  margin: 0;
  background: #111;
  color: #e8e8e8;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: #8cc4ff; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus, button:focus, input:focus { outline: 2px solid #8cc4ff; outline-offset: 2px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
img { border: 0; }

.wrap { max-width: 2560px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 900px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.hide { display: none !important; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.sub, .meta, .date, .counts, .m, .empty, .search-count { color: #9b9b9b; }

/* header and footer */
.top { background: #161616; border-bottom: 1px solid #262626; }
.top .wrap { padding-top: 12px; padding-bottom: 12px; }
.site { margin: 0; font-size: 22px; line-height: 1.2; }
.sub { margin: 4px 0 0; font-size: 14px; }
.back { display: inline-block; padding: 6px 10px 6px 0; font-weight: 600; }
.foot { border-top: 1px solid #222; color: #777; font-size: 13px; }
.foot .wrap { padding-top: 16px; padding-bottom: 32px; }

main { display: block; padding-bottom: 40px; }
h1 { margin: 18px 0 4px; font-size: 26px; line-height: 1.2; word-wrap: break-word; overflow-wrap: anywhere; }
h2 { margin: 28px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9b9b9b; }
.meta { margin: 0; }
.empty { margin: 8px 0; }

/* search */
.search { display: none; margin: 18px 0 0; }
.js .search { display: block; }
.search input[type="search"] {
  display: block; width: 100%; max-width: 520px; margin: 0; padding: 10px 12px;
  font: inherit; font-size: 16px; color: #e8e8e8; background: #1c1c1c;
  border: 1px solid #363636; border-radius: 6px; -webkit-appearance: none; appearance: none;
}
.search input[type="search"]:focus { border-color: #8cc4ff; outline: none; }
/* "Hide events with no videos" switch (on by default; site.js sets .show-nov on <html> when off) */
.js:not(.show-nov) .card.nov { display: none; }
.opt { display: inline-block; margin-top: 10px; font-size: 14px; color: #c8c8c8; cursor: pointer; -webkit-user-select: none; user-select: none; }
.opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sw { position: relative; display: inline-block; width: 34px; height: 20px; margin-right: 8px; vertical-align: -5px;
      background: #3a3a3a; border-radius: 10px; -webkit-transition: background .15s; transition: background .15s; }
.sw:after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #e8e8e8;
            border-radius: 50%; -webkit-transition: left .15s; transition: left .15s; }
.opt input:checked + .sw { background: #2f6fb0; }
.opt input:checked + .sw:after { left: 16px; }
.opt input:focus + .sw { outline: 2px solid #8cc4ff; outline-offset: 2px; }
.opt input:focus:not(:focus-visible) + .sw { outline: none; }
.search-count { display: block; min-height: 20px; margin-top: 6px; font-size: 13px; }

/* event grid */
.year h2 { margin-top: 22px; }
.grid { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -6px; }
.card { width: 46%; width: calc(50% - 12px); margin: 0 6px 12px; }
@media (min-width: 900px) { .card { width: calc(33.333% - 12px); } }
@media (min-width: 1800px) { .card { width: calc(16.666% - 12px); } }
@supports (display: grid) {
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 12px; gap: 12px; margin: 0; }
  .card { width: auto; margin: 0; }
}
/* phones: two cards per row; bigger screens: cards at least 300px, then 400px wide */
@media (min-width: 600px) {
  @supports (display: grid) { .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
}
@media (min-width: 1200px) {
  @supports (display: grid) { .grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); grid-gap: 16px; gap: 16px; } }
  .info { padding: 10px 14px 14px; }
  .date, .counts { font-size: 13px; }
  .name { font-size: 17px; }
  .thumb .np { font-size: 20px; }
}
.card { background: #1a1a1a; border: 1px solid #262626; border-radius: 8px; overflow: hidden; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; background: #1f1f1f; }
.card-link:hover .name { text-decoration: underline; }
.thumb { display: block; position: relative; height: 0; padding-top: 100%; background: #0b0b0b; overflow: hidden; }
.thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb .np {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: -webkit-box; display: -ms-flexbox; display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center; font-weight: 700; color: #4f4f4f; word-wrap: break-word; overflow-wrap: anywhere;
}
.info { display: block; padding: 8px 10px 10px; }
.date { display: block; font-size: 12px; }
.name { display: block; margin: 2px 0 3px; font-weight: 600; line-height: 1.25; word-wrap: break-word; overflow-wrap: anywhere; }
.counts { display: block; font-size: 12px; }
.hits { padding: 0 10px 10px; font-size: 13px; line-height: 1.35; }
.hits:empty { display: none; }
.hits a { display: block; padding: 3px 0; word-wrap: break-word; overflow-wrap: anywhere; }
.hits .more { color: #9b9b9b; }

/* event page posters */
.posters { display: -webkit-box; display: -ms-flexbox; display: flex; flex-wrap: wrap; align-items: flex-start; margin: 18px -6px 0; }
.poster { display: block; max-width: 100%; max-width: calc(100% - 12px); margin: 0 6px 12px; }
.poster img { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; border-radius: 6px; background: #0b0b0b; }
.multi .poster img { max-height: 45vh; }
.poster picture { display: block; }

/* loose images from the top of the vods folder (shark.gif) */
.tail { margin: 40px 0 0; text-align: center; }
.tail img { display: inline-block; max-width: 100%; height: auto; margin: 0 6px; vertical-align: bottom; }

/* lists: folders, videos, audio, other files */
.list { list-style: none; margin: 0; padding: 0; background: #171717; border: 1px solid #262626; border-radius: 8px; overflow: hidden; }
.list > li { border-top: 1px solid #262626; }
.list > li:first-child { border-top: 0; }
.row { display: -webkit-box; display: -ms-flexbox; display: flex; align-items: stretch; }
.play, .folder { display: -webkit-box; display: -ms-flexbox; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; padding: 11px 14px; color: inherit; }
.play:hover, .folder:hover { background: #1e1e1e; text-decoration: none; }
.play:hover .t, .folder:hover .t { text-decoration: underline; }
.tx { display: block; flex: 1 1 auto; min-width: 0; }
.t { display: block; font-weight: 600; word-wrap: break-word; overflow-wrap: anywhere; }
.m { display: block; margin-top: 1px; font-size: 13px; }
.ico {
  flex: none; width: 0; height: 0; margin-right: 14px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #8cc4ff;
}
.open .ico { width: 13px; height: 16px; border-width: 0 4px; border-color: #8cc4ff; }
.dl { flex: none; display: -webkit-box; display: -ms-flexbox; display: flex; align-items: center; padding: 0 14px; font-size: 13px; border-left: 1px solid #262626; }
.dl:hover { background: #1e1e1e; }
.chev { flex: none; margin-left: 12px; font-size: 22px; line-height: 1; color: #666; }
.item:target { box-shadow: inset 3px 0 0 #8cc4ff; }
.item:target .t { color: #8cc4ff; }
.player { background: #000; border-top: 1px solid #262626; }
.player video { display: block; width: 100%; max-height: 80vh; background: #000; }
.player audio { display: block; width: 100%; margin: 8px 0; }
.player .err { margin: 0; padding: 12px 14px; color: #f2a7a7; background: #171717; }
.files li { display: -webkit-box; display: -ms-flexbox; display: flex; align-items: baseline; padding: 10px 14px; }
.files li a { flex: 1 1 auto; min-width: 0; word-wrap: break-word; overflow-wrap: anywhere; }
.files .m { flex: none; margin: 0 0 0 12px; }

/* text files (lineups, readmes) */
.note pre {
  margin: 0; padding: 12px 14px; max-height: 340px; overflow: auto;
  background: #171717; border: 1px solid #262626; border-radius: 8px; color: #d6d6d6;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
  font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* photo listing: justified rows. Each photo keeps its own shape, except that shapes taller than
   0.65:1 or wider than 3:2 are clamped (and cropped a little; 16:9 loses ~8% each side). Photos
   start at --h tall and each row then stretches to fill the width; the :after filler stops the
   last row stretching. build.py gives every photo the class .aNN for its shape
   (NN = width/height x 100, steps of 5, see ASPECT_MIN/MAX). */
.photos { display: -webkit-box; display: -ms-flexbox; display: flex; flex-wrap: wrap; margin: -3px; --h: 260px; }
.photos:after { content: ""; flex-grow: 1000000; }
.ph {
  position: relative; display: block; margin: 3px; overflow: hidden; background: #0b0b0b; border-radius: 4px;
  width: 200px; flex-grow: 1;                                   /* browsers without CSS variables */
  width: calc(var(--a) * var(--h)); flex-grow: var(--a);
}
.ph .sp { display: block; padding-bottom: 56.25%; padding-bottom: calc(100% / var(--a)); }
.ph img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:hover img { opacity: .85; }
@media (min-width: 1800px) { .photos { --h: 320px; } }
@media (max-width: 1199px) { .photos { --h: 200px; } }
@media (max-width: 599px) { .photos { --h: calc((100vw - 40px) * .32); } }  /* two landscape photos per row */
.a65 { --a: 0.65; } .a70 { --a: 0.7; } .a75 { --a: 0.75; } .a80 { --a: 0.8; } .a85 { --a: 0.85; } .a90 { --a: 0.9; }
.a95 { --a: 0.95; } .a100 { --a: 1; } .a105 { --a: 1.05; } .a110 { --a: 1.1; } .a115 { --a: 1.15; } .a120 { --a: 1.2; }
.a125 { --a: 1.25; } .a130 { --a: 1.3; } .a135 { --a: 1.35; } .a140 { --a: 1.4; } .a145 { --a: 1.45; } .a150 { --a: 1.5; }

/* photo viewer */
.lb-on, .lb-on body { overflow: hidden; }
.lbx { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background: #000; background: rgba(0, 0, 0, .95); color: #ddd; }
.lbx-stage { position: absolute; top: 0; left: 0; right: 0; bottom: 56px; overflow: hidden; }
/* While the original downloads, the thumbnail fills its place and a badge says so. */
.lbx-stage.loading:after {
  content: "Loading original\2026"; position: absolute; top: 12px; left: 50%; z-index: 1;
  width: 160px; margin-left: -80px; padding: 4px 0; text-align: center; font-size: 13px;
  color: #ddd; background: rgba(0, 0, 0, .6); border-radius: 4px;
}
.lbx-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.lbx-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; padding: 0 10px;
  display: -webkit-box; display: -ms-flexbox; display: flex; align-items: center;
  background: #111; border-top: 1px solid #222; font-size: 14px;
}
.lbx-count { flex: none; color: #9b9b9b; }
.lbx-name { flex: 1 1 auto; min-width: 0; margin: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lbx-orig { flex: none; margin-right: 12px; }
.lbx button { font: inherit; color: #eee; background: #222; border: 1px solid #3a3a3a; border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.lbx button:hover { background: #2c2c2c; }
.lbx .lbx-nav {
  position: absolute; top: 50%; width: 48px; height: 64px; margin-top: -60px; padding: 0;
  font-size: 30px; line-height: 1; background: rgba(17, 17, 17, .6); border-color: rgba(255, 255, 255, .12);
}
.lbx-prev { left: 8px; }
.lbx-next { right: 8px; }
.lbx.single .lbx-nav { display: none; }
