:root {
  color-scheme: dark;
  --bg: #000000;
  --row-1: #000000;
  --row-2: #131b21;
  --row-3: #262c2d;
  --cat: #27272b;
  --head: #3a3a3a;
  --line: #3a3a3a;
  --text: #aab6bd;
  --muted: #8e9aa1;
  --title: #ffffff;
  --green: #0ec470;
  --blue: #79afe2;
  --amber: #d7c978;
  --danger: #e27979;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 11px/1.45 Verdana, Arial, Helvetica, sans-serif;
}

img {
  border: 0;
}

a {
  color: #fdfdfd;
  text-decoration: underline;
}

a:hover {
  color: var(--green);
}

.site-header {
  background: #000;
}

.archive-strip {
  display: grid;
  grid-template-columns: max-content max-content minmax(260px, 560px);
  gap: 16px;
  align-items: center;
  min-height: 31px;
  padding: 4px 10px;
  border-bottom: 1px solid #3e3e44;
  background: #050505;
}

.brand {
  color: var(--title);
  font-weight: 700;
  text-decoration: none;
}

.archive-strip span {
  color: var(--muted);
  font-size: 10px;
}

.search,
.media-search {
  display: flex;
  gap: 6px;
  justify-self: end;
  width: min(100%, 560px);
}

.search input,
.media-search input {
  width: 100%;
  min-height: 22px;
  padding: 2px 5px;
  color: #000;
  background: #d5d5d5;
  border: 1px solid #2f4253;
  font: 11px Verdana, Arial, Helvetica, sans-serif;
}

.search button,
.media-search button {
  min-height: 22px;
  padding: 2px 9px;
  color: #d2d2d2;
  background: #333;
  border: 1px solid #6c767c;
  cursor: pointer;
  font: 700 11px Verdana, Arial, Helvetica, sans-serif;
}

.mainmenu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 9px 10px 7px;
  color: #ffffff;
  font-size: 11px;
}

.mainmenu a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.mainmenu a:hover {
  text-decoration: underline;
}

.mxo-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 129px;
  padding: 0 10px;
  overflow: hidden;
}

.mxo-banner img {
  display: block;
  height: 129px;
  max-width: 100%;
  object-fit: cover;
}

.mxo-banner > div {
  min-width: 20px;
  background: url("/mirror/mxo/styles/MXO/mxo/images/top_stretch.jpg") repeat-x top left;
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
}

.summary,
.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #000;
  background: var(--row-1);
}

.summary {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  align-items: end;
  border: 2px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  color: var(--title);
  font-size: 22px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 7px;
  color: var(--title);
  font-size: 12px;
  letter-spacing: 1px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 2px solid var(--line);
  background: var(--line);
}

.stat {
  min-height: 46px;
  padding: 7px;
  background: var(--row-2);
  text-align: center;
}

.stat b {
  display: block;
  color: var(--title);
  font-size: 16px;
}

.stat span,
small,
footer {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 10px;
}

.breadcrumbs {
  display: inline;
}

.breadcrumbs a,
.breadcrumbs span {
  color: var(--green);
}

.forum-list,
.category-list,
.category-tree,
.topic-list,
.topic-table,
.results,
.posts {
  display: grid;
  gap: 1px;
  border: 2px solid var(--line);
  background: var(--line);
}

.forum-list::before,
.category-list::before,
.topic-table::before,
.results::before,
.posts::before {
  display: block;
  padding: 6px 8px;
  color: var(--title);
  background: var(--head);
  font-weight: 700;
}

.forum-list::before {
  content: "Forums";
}

.category-list::before {
  content: "Subcategories";
}

.category-tree {
  align-content: start;
}

.category-tree.nested {
  margin-bottom: 10px;
}

.category-node {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.category-node + .category-node {
  margin-top: 1px;
}

.category-node.depth-1,
.category-node.depth-2,
.category-node.depth-3 {
  margin-left: 18px;
}

.category-node.depth-2 {
  margin-left: 36px;
}

.category-node.depth-3 {
  margin-left: 54px;
}

.topic-table::before {
  content: "Topics";
}

.results::before {
  content: "Results";
}

.posts::before {
  content: "Author / Message";
}

.category-head,
.category-row,
.forum-row,
.topic-row,
.topic-link,
.result,
.post {
  color: var(--text);
  background: var(--row-1);
  border: 0;
  border-radius: 0;
}

.category-head,
.category-row,
.forum-row,
.topic-row,
.topic-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) max-content;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px 7px 8px;
  text-decoration: none;
}

.category-head,
.category-row {
  min-height: 38px;
  color: var(--text);
  background: var(--cat);
}

.topic-link {
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 40px;
  background: var(--row-2);
}

.category-head::before,
.category-row::before,
.forum-row::before,
.topic-row::before,
.topic-link::before {
  content: "";
  width: 25px;
  height: 25px;
  background: url("/mirror/mxo/styles/MXO/mxo/images/common/folder_big.gif") center / contain no-repeat;
}

.category-head::before,
.category-row::before {
  background-image: url("/mirror/mxo/styles/MXO/mxo/images/common/folder.gif");
}

.topic-link::before {
  grid-row: 1 / span 2;
  width: 18px;
  height: 9px;
  background-image: url("/mirror/mxo/styles/MXO/mxo/images/common/icon_latest_reply.gif");
}

.topic-link strong,
.topic-link span {
  grid-column: 2;
}

.category-head:nth-child(even),
.category-row:nth-child(even),
.forum-row:nth-child(even),
.topic-row:nth-child(even),
.result:nth-child(even),
.post:nth-child(even) {
  background: var(--row-2);
}

.forum-row.active {
  background: #263a32;
  outline: 1px solid var(--green);
  outline-offset: -1px;
}

.category-head strong,
.category-row strong,
.forum-row strong,
.topic-row strong,
.topic-link strong,
.result h2 {
  color: #c8d1d7;
  font-size: 12px;
}

.category-head small,
.category-row small,
.forum-row small,
.topic-row small,
.topic-link span {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 11px;
}

.sibling-forums {
  margin-bottom: 10px;
}

.forum-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.forum-list.compact::before {
  display: none;
}

.forum-list.compact .forum-row {
  grid-template-columns: 28px minmax(0, 1fr);
}

.forum-list.compact .forum-row > span:last-child {
  grid-column: 2;
  color: var(--muted);
}

.result {
  padding: 8px;
}

.result h2 {
  margin: 0 0 6px;
}

mark {
  color: #000;
  background: var(--amber);
  padding: 0 2px;
}

.post {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
}

.post aside {
  padding: 8px;
  background: inherit;
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.post aside strong,
.post aside span,
.post aside small {
  display: block;
}

.post aside strong {
  color: var(--green);
  font-size: 11px;
}

.post aside small {
  margin-top: 12px;
  white-space: pre-line;
}

.post-main {
  min-width: 0;
}

.post-main header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 27px;
  padding: 5px 7px;
  border-bottom: 1px solid var(--line);
  color: #d2d2d2;
  background: var(--cat);
  font-size: 10px;
}

.post-main header::before {
  content: "";
  width: 12px;
  height: 9px;
  background: url("/mirror/mxo/styles/MXO/mxo/images/common/icon_minipost_new.gif") center / contain no-repeat;
}

.post-main header b {
  color: var(--title);
}

.post-body {
  padding: 8px;
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.post-body img {
  max-width: min(100%, 900px);
  height: auto;
}

.signature {
  margin: 0 8px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.signature h2 {
  color: var(--title);
}

.signature img {
  max-width: min(100%, 560px);
  max-height: 180px;
  height: auto;
  object-fit: contain;
}

.missing-media {
  display: inline-block;
  margin: 2px 0;
  padding: 4px 6px;
  color: var(--amber);
  background: #211d12;
  border: 1px solid #4e4223;
  font-size: 10px;
}

.missing-body {
  color: var(--amber);
  font-style: italic;
}

.media-tray {
  margin: 0 8px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.media-tray h3 {
  margin: 0 0 7px;
  color: var(--title);
  font-size: 11px;
}

.media-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-thumb,
.media-file,
.media-video {
  display: grid;
  gap: 5px;
  width: 176px;
  min-height: 64px;
  padding: 5px;
  color: var(--text);
  background: #050505;
  border: 1px solid var(--line);
}

.media-thumb img,
.media-video video {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  background: #000;
}

.media-thumb span,
.media-file span,
.media-video a {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.media-search {
  justify-self: start;
  max-width: 720px;
}

.media-tabs,
.image-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.media-tabs a,
.image-filters a {
  padding: 5px 8px;
  color: #fdfdfd;
  background: var(--row-2);
  border: 1px solid var(--line);
}

.image-filters {
  margin-top: 2px;
}

.image-filters a {
  background: #080d0a;
}

.media-tabs a span,
.image-filters a span {
  color: var(--muted);
  font-size: 10px;
}

.media-tabs a.active,
.image-filters a.active {
  color: #000;
  background: var(--green);
  border-color: var(--green);
}

.media-tabs a.active span,
.image-filters a.active span {
  color: #1d2c21;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.media-card {
  display: grid;
  grid-template-rows: 160px minmax(74px, auto);
  overflow: hidden;
  background: var(--row-2);
  border: 2px solid var(--line);
}

.media-preview {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 100%;
  height: 160px;
  color: var(--text);
  background: #000;
}

.media-preview img,
img.media-preview,
video.media-preview {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.media-video-preview {
  position: relative;
  align-content: stretch;
  padding: 0;
}

.media-video-preview video {
  width: 100%;
  height: 160px;
  background: #000;
  object-fit: contain;
}

.media-flash-preview {
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.media-flash-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.media-flash-preview span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid var(--line);
}

.media-preview-link {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid var(--line);
  text-decoration: none;
}

.media-download {
  padding: 12px;
  overflow-wrap: anywhere;
}

.media-kind {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.media-kind b {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.media-kind span,
.media-download span,
.media-detail,
.media-badge {
  color: var(--muted);
  font-size: 10px;
}

.media-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 5px;
  color: #000;
  background: var(--amber);
}

.media-audio {
  padding: 12px;
}

.media-audio audio {
  width: 100%;
}

.media-card > div:last-child {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 8px;
}

.media-name,
.media-context {
  overflow-wrap: anywhere;
}

.media-context {
  color: var(--muted);
  font-size: 10px;
}

.media-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.media-card-actions a,
.media-card-actions span {
  padding: 4px 6px;
  color: #fff;
  background: #121713;
  border: 1px solid var(--line);
  font-size: 10px;
}

.media-card-actions a span {
  color: var(--muted);
}

.media-list {
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 64px 92px 130px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: var(--row-2);
  border: 1px solid var(--line);
}

.audio-row {
  grid-template-columns: minmax(220px, 1fr) 64px 92px minmax(260px, 420px) minmax(160px, 1fr) auto;
}

.audio-row audio {
  width: 100%;
}

.media-row > * {
  min-width: 0;
}

.media-row span,
.media-row a {
  overflow-wrap: anywhere;
}

.media-row-name {
  color: var(--title);
  font-weight: bold;
}

.media-action,
.media-actions a,
.media-actions span {
  display: inline-block;
  padding: 5px 8px;
  color: #fff;
  background: #121713;
  border: 1px solid var(--line);
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.viewer-stage {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 55vh;
  padding: 14px;
  background: #000;
  border: 2px solid var(--line);
}

.viewer-image,
.viewer-video {
  width: 100%;
  max-width: 1180px;
  max-height: 76vh;
  object-fit: contain;
}

.viewer-swf {
  width: min(100%, 1180px);
  height: min(76vh, 760px);
  background: #050505;
  border: 1px solid var(--line);
}

.viewer-swf ruffle-player,
.viewer-swf object,
.viewer-swf embed {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-audio,
.viewer-download {
  min-height: 220px;
}

.viewer-audio audio {
  width: min(100%, 720px);
}

.viewer-download a {
  padding: 10px 14px;
  color: #000;
  background: var(--green);
}

.viewer-note {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.post-body blockquote {
  margin: 8px 0;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid #d2d2d2;
  background: #050505;
}

.profile-meta {
  padding: 8px;
  white-space: pre-wrap;
  color: var(--muted);
  background: var(--row-1);
  border: 2px solid var(--line);
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.pager a,
.pager span,
.pager b {
  padding: 5px 8px;
  color: var(--text);
  background: var(--row-2);
  border: 1px solid var(--line);
}

.pager span {
  color: #66706b;
}

.empty {
  color: var(--muted);
}

@media (max-width: 860px) {
  .archive-strip,
  .summary,
  .split,
  .post {
    grid-template-columns: 1fr;
  }

  .archive-strip {
    justify-items: stretch;
  }

  .search,
  .media-search {
    justify-self: stretch;
  }

  .mxo-banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
  }

  .mxo-banner img:first-child {
    width: 100%;
    height: auto;
  }

  .mxo-banner > div,
  .mxo-banner img:last-child {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-row {
    grid-template-columns: 1fr 64px;
  }

  .category-head,
  .category-row,
  .forum-row,
  .topic-row,
  .topic-link {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .category-head > span:last-child,
  .category-row > span:last-child,
  .forum-row > span:last-child,
  .topic-row > span:last-child {
    grid-column: 2;
  }

  .category-node.depth-1,
  .category-node.depth-2,
  .category-node.depth-3 {
    margin-left: 10px;
  }

  .post aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
