/* 1. Base */
:root {
  --bg: #000;
  --wrap: rgba(5, 5, 5, .9);
  --row: #0b0b0b;
  --row2: #121212;
  --line: #2c2c2c;
  --line-soft: #1e1e1e;
  --text: #c6c6c6;
  --dim: #8e8e8e;
  --off: #474747;
  --pink: #e87fb4;
  --pink-visited: #b7849f;
  --pink-light: #f2c4dc;
  --head-bg: #2a0f1d;
  --head-line: #5a2440;
  --font: Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif;
  --size: 14px;
  --small: 12px;
  --tiny: 11px;
  --gap: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font: var(--size)/1.5 var(--font);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--pink-visited); }
a:hover { color: #fff; background: var(--head-bg); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--pink); color: #000; padding: 10px 14px; font-weight: bold;
}
.skip:focus { left: 8px; }

/* 2. Noise screen */
#noise {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none; opacity: .11;
  image-rendering: pixelated;
}

.wrap {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
  background: var(--wrap);
  border-left: 1px solid #1c1c1c; border-right: 1px solid #1c1c1c;
  padding: 10px var(--gap) 18px;
  min-height: 100vh;
}

/* 3. Header */
.top { text-align: center; }
.logo { display: inline-block; }
.logo:hover { background: none; }
.logo img { width: min(520px, 90vw); margin: 4px auto 0; }
.logo.small img { width: 260px; }
.tagline { color: var(--dim); font-size: var(--small); font-weight: normal; line-height: inherit; margin: 2px 0 8px; }

.menu {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2px 0;
}
.menu a, .menu .linkbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  text-decoration: none; font-size: var(--small); font-weight: bold; white-space: nowrap;
}
.menu a:visited { color: var(--pink); }
.menu a[aria-current] { color: #fff; }

/* 4. Status and headings */
.status {
  text-align: center; color: var(--dim); font-size: var(--tiny);
  padding: 6px 0; border-bottom: 1px solid var(--line-soft);
}
.intro { margin: 10px 0; font-size: var(--small); }

h2, main h1 {
  font-size: 14px; font-weight: bold; line-height: 1.4;
  color: var(--pink-light); background: var(--head-bg);
  border: 1px solid var(--head-line);
  padding: 4px 8px; margin: 22px 0 8px;
}
h2 small, main h1 small { color: var(--dim); font-weight: normal; font-size: var(--tiny); }

section { scroll-margin-top: 8px; }

/* 5. Genre filter and A-Z */
.genres {
  display: flex; flex-wrap: wrap; font-size: var(--small);
  border: 1px solid var(--line); overflow: hidden;
  margin: 0 0 8px;
}
.genres a {
  flex: 1 1 170px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 36px; padding: 2px 6px;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  margin: 0 -1px -1px 0;
}
.genres a:visited { color: var(--pink); }
.genres a[aria-current] { color: #fff; font-weight: bold; text-decoration: none; background: var(--head-bg); }

.az {
  display: grid; grid-template-columns: repeat(9, 1fr);
  border: 1px solid var(--line); margin: 0 0 10px;
}
.az a, .az span {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; font-weight: bold; font-size: 13px;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.az a:visited { color: var(--pink); }
.az span { color: var(--off); }

.showing { font-size: var(--small); color: var(--dim); margin: 0 0 8px; }

/* 6. Lists */
.list { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 13px; }
.list thead { display: none; }
.list tbody tr:nth-child(even) { background: var(--row2); }
.list tbody tr:nth-child(odd) { background: var(--row); }
.list tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 0 8px; border-bottom: 1px solid var(--line-soft); }
.list td { display: block; }
.list td.name { flex: 1 1 55%; min-width: 0; }
.list td.name a { display: inline-block; padding: 10px 0; }
.list td.name .desc { margin: -6px 0 8px; }
.list td.genre, .list td.country, .list td.state { color: var(--dim); font-size: var(--tiny); text-align: right; }
.list td:empty { display: none; }
.list td.about { flex-basis: 100%; color: var(--dim); font-size: var(--small); margin-top: -6px; padding-bottom: 8px; }
.list .desc { display: block; color: var(--dim); font-size: var(--tiny); }

.list tr.letter, .list tr.letter:nth-child(odd) {
  background: #160810; padding: 0; border-bottom: 1px solid var(--head-line);
}
.list tr.letter th {
  display: flex; justify-content: space-between; align-items: center;
  flex: 1; text-align: left; color: var(--pink); font-size: 15px; padding: 2px 8px;
  scroll-margin-top: 8px;
}
.list tr.letter .up {
  font-size: var(--tiny); font-weight: normal; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 36px;
}
.list tr.letter .up:visited { color: var(--pink); }

.new {
  display: inline-block; vertical-align: 2px;
  background: var(--pink); color: #000;
  font-size: 9px; font-weight: bold; line-height: 13px; text-transform: uppercase;
  padding: 0 3px;
}

.report { font-size: var(--tiny); color: var(--dim); text-decoration: none; margin-left: 4px; white-space: nowrap; }
.report:visited { color: var(--dim); }
.report:hover { color: var(--pink); background: none; text-decoration: underline; }
.list td.name a.report { padding: 10px 0 10px 4px; }

.empty { color: var(--dim); font-size: var(--small); padding: 4px 0; }

/* 7. Forms */
.hint { color: var(--dim); font-size: var(--small); margin: 0 0 10px; }
.form { margin: 6px 0 0; }
.formtable { width: 100%; border-collapse: collapse; }
.formtable tr { display: block; margin: 0 0 10px; }
.formtable th, .formtable td { display: block; text-align: left; }
.formtable th { color: var(--dim); font-weight: normal; font-size: var(--small); padding: 0 0 3px; }

input[type=text], input[type=url], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; max-width: 440px;
  background: #000; color: #e2e2e2;
  border: 1px solid #4a4a4a; border-radius: 0;
  font: inherit; font-size: 16px; padding: 8px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); }
.small { display: block; color: var(--dim); font-size: var(--tiny); margin-top: 3px; }

button {
  font: inherit; font-size: 13px; font-weight: bold;
  background: var(--head-bg); color: var(--pink-light);
  border: 1px solid #7a3558; border-radius: 0;
  min-height: 44px; padding: 0 16px; cursor: pointer;
}
button:hover { background: #3a1528; color: #fff; border-color: var(--pink); }
button:active { background: #160810; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.errors { border: 1px solid #a0304a; background: #1a0508; color: #ffb8c6; padding: 6px 10px; margin: 0 0 10px; font-size: var(--small); }
.ok { border: 1px solid #3c6a3c; background: #071207; color: #bfe3bf; padding: 6px 10px; margin: 8px 0 10px; font-size: var(--small); }

/* 8. Footer */
.bottom {
  text-align: center; color: var(--dim); font-size: var(--tiny);
  border-top: 1px solid var(--line); margin-top: 24px; padding-top: 6px;
}
.bottom a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; text-decoration: none; }
.bottom a:visited { color: var(--pink); }

/* 9. Copy protection */
body:not(.admin) main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body:not(.admin) main input, body:not(.admin) main textarea { -webkit-user-select: text; user-select: text; }

/* 10. Wider screens */
@media (min-width: 600px) {
  :root { --size: 13px; --gap: 18px; }
  .menu a, .menu .linkbtn { min-height: 30px; }
  .genres a { min-height: 26px; }
  .az { display: flex; flex-wrap: nowrap; }
  .az a, .az span { flex: 1; min-height: 28px; border-bottom: 0; }
  .az > :last-child { border-right: 0; }

  .list thead { display: table-header-group; }
  .list tr { display: table-row; padding: 0; border: 0; }
  .list td, .list td.name { display: table-cell; padding: 3px 8px; border: 1px solid var(--line-soft); vertical-align: top; }
  .list td.name a { display: inline; padding: 0; }
  .list td.name .desc { margin: 0; }
  .list td.name a.report { padding: 0 0 0 4px; }
  .list td:empty { display: table-cell; }
  .list td.genre, .list td.country, .list td.state { white-space: nowrap; width: 1%; font-size: var(--small); text-align: left; }
  .list td.about { display: table-cell; padding: 3px 8px; margin: 0; }
  .list th[scope=col] {
    background: #161616; color: var(--dim); font-size: var(--tiny); font-weight: bold;
    text-align: left; padding: 3px 8px; border: 1px solid var(--line);
  }
  .list tr.letter, .list tr.letter:nth-child(odd) { display: table-row; }
  .list tr.letter th { display: table-cell; padding: 2px 8px; border: 1px solid var(--head-line); }
  .list tr.letter .up { float: right; min-height: 0; margin-top: 2px; }

  .formtable tr { display: table-row; margin: 0; }
  .formtable th, .formtable td { display: table-cell; padding: 5px 0; vertical-align: top; }
  .formtable th { width: 140px; padding: 10px 10px 5px 0; }
  input[type=text], input[type=url], input[type=password], input[type=search], input[type=date], select, textarea { font-size: 13px; padding: 5px 6px; }
  button { min-height: 30px; }
  .bottom a { min-height: 0; }
}

/* Link to us */
.linkus textarea { font-family: "Courier New", monospace; font-size: var(--tiny); }
.linkus img { image-rendering: pixelated; vertical-align: middle; }

@media print {
  body:not(.admin) main { display: none; }
}
