/* www.SUICIDECAM.com — archive stylesheet */

:root {
  --font: "Special Elite", "Courier New", Courier, monospace;
  --red: #d9262c;
  --red-dim: #5e1517;
  --line: #474747;
  --line2: #6b6b6b;
  --text: #ececec;
  --meta: #8b8b8b;
  --dim: #555;
}

* { box-sizing: border-box; }

html { background: #000; }

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-text-size-adjust: 100%;
}

/* faint film grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

#wrap { max-width: 1100px; margin: 0 auto; padding: 18px 20px 48px; }

/* ---------- top navigation ---------- */
#nav {
  display: flex;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  padding: 8px 14px 6px;
}
#nav a { font-size: 19px; letter-spacing: .5px; color: #eee; margin-right: 54px; }
#nav a:last-child { margin-right: 0; }
#nav a:hover { color: var(--red); text-decoration: none; }
#nav a.on { color: var(--red); }

/* ---------- banner ---------- */
#banner { padding: 18px 0 30px; }
#banner a { display: block; }
#banner img { display: block; width: 100%; height: auto; }

/* ---------- columns ---------- */
.cols { display: flex; gap: 16px; align-items: flex-start; }
.side { width: 206px; flex: none; }
.main { flex: 1; min-width: 0; }

/* ---------- sidebar ---------- */
.sbox { border: 1px solid var(--line); padding: 14px 14px 16px; margin-bottom: 22px; }
.sbox h2 {
  margin: 0 0 12px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #7a7a7a;
  font: normal 19px var(--font);
  letter-spacing: .5px;
  color: #eee;
}
.years { list-style: none; margin: 0; padding: 0; }
.years li { padding: 4px 0; font-size: 15px; }
.years li::before { content: ">>"; color: var(--red); margin: 0 16px 0 6px; }
.years a:hover { color: var(--red); text-decoration: none; }

.rthumb { display: block; }
.rthumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(.72);
}
.rthumb:hover img { filter: grayscale(.3) contrast(1.05) brightness(.92); }
.watchnow { display: inline-block; margin: 12px 0 0 8px; color: var(--red); font-size: 15px; letter-spacing: .5px; }
.watchnow:hover { color: #ff4a4f; text-decoration: none; }

/* grungy "video archive" plate */
.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  position: relative;
  overflow: hidden;
  background-color: #0a1236;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='turbulence' baseFrequency='.5' numOctaves='1' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 .02 0 0 0 -3.2 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='170'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .06' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .72 0 0 0 0 .52 0 0 0 0 1 0 0 0 2.8 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='170'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .045' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .5 0 0 0 0 1 0 0 0 2.6 -.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 20px 10px #000;
  text-decoration: none !important;
}
.badge span {
  position: relative;
  display: block;
  color: #f1f1f1;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 2px;
  text-shadow: 0 0 6px #000, 0 0 2px #000;
  transform: rotate(-5deg);
}
.badge span + span { margin-left: 26px; }
.badge:hover span { color: #fff; }

/* ---------- main panels ---------- */
.panel { border: 1px solid var(--line); margin-bottom: 22px; }
.phead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 12px 12px; }
.phead h1 { margin: 0; font: normal 20px var(--font); letter-spacing: .5px; color: var(--red); }
.phead .pr { color: var(--red); font-size: 14px; white-space: nowrap; }
.phead .pr:hover { color: #ff4a4f; text-decoration: none; }
.pbody { padding: 4px 12px 22px; }
.pfoot { border-top: 1px solid var(--line); padding: 20px 12px 22px; }

/* ---------- video grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 34px; }
.card { min-width: 0; }
.card .thumb { display: block; position: relative; border: 1px solid var(--line2); padding: 3px; background: #000; }
.card .thumb:hover { border-color: #b5b5b5; }
.card img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  filter: grayscale(.55) contrast(1.12) brightness(.74);
}
.card .thumb:hover img { filter: grayscale(.15) contrast(1.05) brightness(.95); }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  opacity: .72; pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.8));
}
.card .thumb:hover .play { opacity: .95; }
.card .ttl { display: block; margin-top: 9px; font-size: 16px; color: #f2f2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { color: var(--meta); font-size: 14px; margin-top: 3px; }

/* ---------- pager ---------- */
.pager { text-align: center; font-size: 15px; }
.pager .pn { color: var(--red); margin: 0 14px; }
.pager a.pn:hover { color: #ff4a4f; text-decoration: none; }
.pager .off { color: var(--red-dim); }
.pager .nums { margin: 0 10px; }
.pager .nums > * { margin: 0 7px; }
.pager .cur { color: var(--red); }
.pager .num { color: #eee; }

/* ---------- player ---------- */
.player { max-width: 720px; margin: 0 auto; border: 1px solid var(--line2); padding: 3px; background: #000; }
.player:focus { outline: 1px dashed #666; outline-offset: 2px; }
.screen { position: relative; background: #000; aspect-ratio: 4/3; }
.screen video { display: block; width: 100%; height: 100%; background: #000; cursor: pointer; }
.bigplay {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  cursor: pointer; opacity: .75;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.9));
}
.bigplay svg { width: 100%; height: 100%; display: block; }
.bigplay:hover { opacity: 1; }
.player.playing .bigplay { display: none; }
.ctrl {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 4px 3px; background: #000; border-top: 1px solid var(--line);
}
.ctrl button {
  flex: none; width: 24px; height: 20px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #555; background: #0b0b0b; color: #ddd; cursor: pointer;
}
.ctrl button:hover { color: #fff; border-color: #999; }
.seek { flex: 1; height: 8px; position: relative; background: #141414; border: 1px solid #4a4a4a; cursor: pointer; touch-action: none; }
.seek .buf, .seek .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.seek .buf { background: #2a2a2a; }
.seek .fill { background: var(--red); }
.time { flex: none; font: 13px var(--font); color: var(--meta); min-width: 84px; text-align: center; }
.vol { flex: none; width: 60px; height: 14px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vol::-webkit-slider-runnable-track { height: 4px; background: #2a2a2a; border: 1px solid #4a4a4a; }
.vol::-moz-range-track { height: 4px; background: #2a2a2a; border: 1px solid #4a4a4a; }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 12px; margin-top: -5px; background: #bbb; border: 1px solid #000; border-radius: 0; }
.vol::-moz-range-thumb { width: 6px; height: 12px; background: #bbb; border: 1px solid #000; border-radius: 0; }

.winfo { max-width: 720px; margin: 14px auto 0; }
.winfo .wt { font-size: 22px; color: #f2f2f2; }
.winfo .meta { color: var(--meta); font-size: 14px; margin-top: 2px; }
.winfo .desc { color: #777; font-size: 14px; margin-top: 10px; }

/* ---------- archive index ---------- */
table.ix { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ix th { text-align: left; font-weight: normal; color: var(--meta); padding: 4px 8px 6px; border-bottom: 1px dashed #5a5a5a; }
table.ix td { padding: 5px 8px; color: #ddd; }
table.ix tr.yr td { color: var(--red); font-size: 20px; padding-top: 16px; }
table.ix tr.mo td { color: var(--meta); padding-top: 6px; }
table.ix tr.f td:first-child::before { content: ">>"; color: var(--red); margin-right: 12px; }
table.ix tr.f a:hover { color: var(--red); text-decoration: none; }
table.ix tr.f:hover td { background: #0c0c0c; }
table.ix tr.lost td { color: #262626; padding-top: 20px; }
table.ix tr.lost:hover td { color: #555; }

/* ---------- 404 / empty ---------- */
.void { text-align: center; padding: 34px 10px 20px; }
.void .code { color: var(--red); font-size: 22px; letter-spacing: 3px; margin: 0 0 10px; }
.void p { color: var(--meta); margin: 6px 0; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  #wrap { padding: 12px 14px 32px; }
  #nav { justify-content: space-between; padding: 8px 4px 6px; }
  #nav a { margin: 0; font-size: 17px; }
  #banner { padding: 16px 0 20px; }
  .cols { flex-direction: column; }
  .main { order: 1; width: 100%; }
  .side { order: 2; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sbox { margin: 0; }
  .badge { grid-column: 1 / -1; height: 110px; flex-direction: row; gap: 14px; }
  .badge span + span { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .card .ttl { font-size: 15px; }
  .card .meta { font-size: 12px; }
  .phead h1 { font-size: 18px; }
  table.ix .sz { display: none; }
  .ctrl button { width: 30px; height: 26px; }
  .seek { height: 12px; }
}
@media (max-width: 420px) {
  #nav a { font-size: 15px; }
  .side { gap: 10px; }
  .sbox { padding: 12px 10px 12px; }
  .sbox h2 { font-size: 17px; }
  .watchnow { margin-left: 2px; font-size: 14px; }
  table.ix .mod { display: none; }
  .vol { display: none; }
  .phead .pr { font-size: 12px; }
}
