/* ============================================================
   forum.css,  Camping de Achteringang
   ============================================================ */

:root {
  --green-dark:  #2d5016;
  --green-mid:   #4a7c28;
  --green-light: #7db84a;
  --cream:       #f5f0e8;
  --cream-dark:  #e8e0d0;
  --brown:       #6b4226;
  --brown-light: #a0673a;
  --orange:      #e8782a;
  --light-orange:#ffe6d3;
  --text:        #2a2018;
  --text-muted:  #7a6a58;
  --border:      #c8b898;
  --red:         #c0392b;
}

/* ─── Silk Icons & Smileys ──────────────────────────────── */
.silk-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  display: inline-block;
  image-rendering: pixelated;
}
.forum-smiley {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  display: inline-block;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Body ───────────────────────────────────────────────── */
body {
  font-family: 'PT Sans', Georgia, sans-serif;
  font-size: 14px;
  background-color: #d4cfc7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23000' fill-opacity='.04'/%3E%3C/svg%3E");
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }

/* ─── Gesloten banner ────────────────────────────────────── */
.closed-banner {
  background: #0e0404;
  color: #994444;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: .5px;
  border-bottom: 2px solid #3a0000;
  line-height: 1.6;
}
.closed-banner strong { color: #cc2222; }
.closed-banner a { color: #885555; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(to bottom, #4a8020 0%, #2d5016 60%, #1e3a0a 100%);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mascot {
  flex-shrink: 0;
}
.mascot img {
  height: 64px;
  width: auto;
  display: block;
}
.header-text { flex: 1; }
.site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
}
.site-tagline { color: rgba(255,255,255,.6); font-size: 12px; font-style: italic; margin-top: 3px; }
.mascot-name  { color: var(--green-light); font-size: 11px; font-family: 'Oswald', sans-serif; margin-top: 4px; letter-spacing: 1px; }

/* ─── Nav ────────────────────────────────────────────────── */
.main-nav {
  background: linear-gradient(to bottom, #5c9432 0%, #3e6e1e 100%);
  border-bottom: 2px solid #1e3a0a;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.main-nav > ul {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0 8px;
  overflow: visible;
}
.nav-login-item { margin-left: auto; }
.main-nav li a {
  display: block;
  padding: 9px 13px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .5px;
}
.main-nav li a:hover,
.main-nav li a.active {
  background: linear-gradient(to bottom, #2a4e10 0%, #1e3a0a 100%);
  color: var(--orange);
  text-decoration: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
}

/* Dropdown */
.nav-dropdown-menu {
  display: none;
  position: fixed;
  list-style: none;
  background: linear-gradient(to bottom, #4a7c28, #2d5016);
  border: 1px solid #1e3a0a;
  border-top: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
  min-width: 160px;
  z-index: 1000;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.88);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(0,0,0,.25);
}
.nav-dropdown-menu li:last-child a { border-bottom: none; }
.nav-dropdown-menu li a:hover {
  background: rgba(0,0,0,.35);
  color: var(--orange);
  text-decoration: none;
}

/* Unread badge on Forum link */
.unread-badge {
  display: inline-block;
  background: linear-gradient(to bottom, #e84040 0%, #b81818 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid #880000;
  vertical-align: middle;
  margin-left: 4px;
  text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  box-shadow: 0 1px 2px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

/* ─── Page wrapper ───────────────────────────────────────── */
.page-wrapper {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 6px 10px;
  background: var(--cream-dark);
  border-radius: 3px;
  border: 1px solid var(--border);
}
.breadcrumb a { color: var(--green-mid); }

/* ─── Notice boxes ───────────────────────────────────────── */
.notice {
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  border-left: 4px solid;
  line-height: 1.5;
}
.notice-warning { background: #fff8e8; border-color: var(--orange); color: #6b4000; }
.notice-closed  { background: #110303; border-color: var(--red);    color: #cc6666; }
.notice-closed strong { color: #ff4444; }
.notice-info    { background: #eef5e8; border-color: var(--green-mid); color: var(--green-dark); }
.notice-new     { background: #fff3cc; border-color: #cc9900; color: #664400; display: none; }
.notice-new.show { display: block; }

/* ─── Forum section title ────────────────────────────────── */
.forum-section-title {
  background: linear-gradient(to bottom, #4a7c28 0%, #2d5016 100%);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px 4px 0 0;
  border: 1px solid #1e3a0a;
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.forum-section-title span { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.55); }

/* ─── Posts table ────────────────────────────────────────── */
.posts-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.posts-table th {
  background: linear-gradient(to bottom, #f0ead8 0%, #ddd5c0 100%);
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.posts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee8d8;
  vertical-align: middle;
}
.posts-table tr:last-child td { border-bottom: none; }
.posts-table tr[onclick]      { cursor: pointer; }
.posts-table tr:hover td      { background: #f0ead8; }
.posts-table tr.even td       { background: #fcf9f4; }
.posts-table tr.even:hover td { background: #f0ead8; }

.post-icon  { font-size: 16px; width: 36px; text-align: center; color: var(--text-muted); }
.post-icon-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.post-title-link {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  display: block;
  line-height: 1.3;
}
.post-title-link:hover { color: var(--orange); }

/* ─── Unread count badge (replaces comment icon) ──────────── */
.unread-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #ffaa44 0%, #dd4400 55%, #bb3300 100%);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #882200;
  box-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  line-height: 1;
}

/* ─── Unread row indicators ───────────────────────────────── */
.unread-new-post  td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.unread-new-reply td:first-child { box-shadow: inset 4px 0 0 var(--green-mid); }
.unread-badge {
  display: inline-block;
  font-size: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid;
  vertical-align: middle;
  margin-left: 4px;
  text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.2);
}
.unread-badge-post {
  background: linear-gradient(to bottom, #f5a020 0%, #c06800 100%);
  border-color: #885000;
  color: #fff;
}
.unread-badge-reply {
  background: linear-gradient(to bottom, #60aa30 0%, #3a7010 100%);
  border-color: #285008;
  color: #fff;
}

/* ─── Pinned / Locked row backgrounds ────────────────────── */
.row-pinned td         { background: #fffbe8 !important; }
.row-locked td         { background: #f0eeec !important; }
.row-pinned-locked td  { background: #fef0ee !important; }

.row-pinned .post-icon .unread-count-badge        { background: linear-gradient(180deg, #f5a93a 0%, #d98010 100%); }
.row-locked .post-icon .unread-count-badge        { background: linear-gradient(180deg, #9a8a88 0%, #6e5e5c 100%); border-color: #6e5e5c;}
.row-pinned-locked .post-icon .unread-count-badge { background: linear-gradient(180deg, #d44a3a 0%, #a02020 100%); }

.post-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.post-meta strong { color: var(--brown); }

.stat-cell { text-align: center; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.stat-cell .num { display: block; font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--green-dark); line-height: 1; }

.last-reply { font-size: 11px; color: var(--text-muted); }
.last-reply strong { color: var(--text); display: block; }

.closed-post .post-title-link { color: #888; }
.unread-badge-closed {
  background: linear-gradient(to bottom, #e84040 0%, #b81818 100%);
  border-color: #880000;
  color: #fff;
}

/* ─── Two-column layout ──────────────────────────────────── */
.page-with-side { display: flex; gap: 16px; align-items: flex-start; }
.main-col       { flex: 1; min-width: 0; }
.side-col       { width: 200px; flex-shrink: 0; }

/* ─── Widgets ────────────────────────────────────────────── */
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
}
.widget-title {
  background: linear-gradient(to bottom, #3e6e1e 0%, #2d5016 100%);
  color: #fff;
  padding: 7px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.widget-body { padding: 10px 12px; font-size: 12px; }
.widget-body p { margin-bottom: 6px; color: var(--text-muted); line-height: 1.5; }
.widget-body strong { color: var(--text); }

.widget-online-user { display: flex; align-items: center; gap: 5px; padding: 3px 0; border-bottom: 1px dotted var(--border); }
.widget-online-user .user-avatar-img { width: 16px; height: 16px; max-width: 16px; border-radius: 2px; flex-shrink: 0; }
.widget-online-user:last-of-type { border-bottom: none; }

.widget-recent-item { padding: 4px 0; border-bottom: 1px dotted var(--border); }
.widget-recent-item:last-child { border-bottom: none; }

.rim-widget { text-align: center; padding: 14px 12px; }
.rim-widget .rim-emoji  { display: flex; justify-content: center; }
.rim-widget .rim-emoji img  { height: 82px; display: block; }

.rim-widget .rim-name   { font-family: 'Oswald', sans-serif; font-size: 16px; color: var(--green-dark); }
.rim-widget .rim-title  { font-size: 11px; color: var(--text-muted); font-style: italic; }
.rim-widget .rim-quote  { margin-top: 8px; font-size: 12px; font-style: italic; color: var(--brown); border-top: 1px dashed var(--border); padding-top: 8px; }
.rim-widget .rim-status { margin-top: 8px; font-size: 11px; color: #cc0000; font-weight: bold; }

/* ─── Thread / post detail ───────────────────────────────── */
.btn-back {
  display: inline-block;
  background: linear-gradient(to bottom, #f5f0e8 0%, #ddd5c0 100%);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 12px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.8);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.btn-back:hover { background: linear-gradient(to bottom, #fff 0%, #e8e0d0 100%); text-decoration: none; }

.thread-post {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.thread-post-header {
  background: linear-gradient(to bottom, #4a7c28 0%, #2d5016 100%);
  color: rgba(255,255,255,.75);
  padding: 5px 12px;
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.post-num { color: var(--green-light); font-family: 'Oswald', sans-serif; }
.post-actions a { color: rgba(255,255,255,.45); font-size: 11px; margin-left: 10px; }
.post-actions a:hover { color: #fff; text-decoration: none; }

.thread-post-body { display: flex; }

/* Avatar */
.user-sidebar {
  width: 120px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #f0ead8 0%, #e4dcc8 100%);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  text-align: center;
}
.user-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 2px solid var(--border);
  margin: 0 auto 6px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-avatar-fallback {
  font-size: 30px;
  line-height: 1;
}
.user-name  { font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--green-dark); font-weight: 600; word-break: break-word; }
.user-rank  { font-size: 10px; color: var(--text-muted); font-style: italic; margin-top: 2px; }
.user-posts { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.post-body {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
}
.post-body p { margin-bottom: 8px; }
.post-body p:last-child { margin-bottom: 0; }
.post-sig {
  border-top: 1px dashed var(--border);
  margin-top: 10px;
  padding-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Emoji reactions */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--cream);
  border: 1px solid var(--border);
  /* border-radius: 12px; */
  padding: 2px 8px 2px 6px;
  font-size: 13px;
  cursor: default;
  user-select: none;
  line-height: 1.4;
  gap: 4px;
}
.reaction-count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

/* Quote block for replies */
.quote-block {
  background: var(--cream);
  border-left: 3px solid var(--green-dark);
  border-radius: 0 3px 3px 0;
  margin-bottom: 10px;
  padding: 6px 10px 7px;
  font-size: 13px;
}
.quote-author {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.quote-author strong { color: var(--green-dark); }
.quote-author a { color: var(--green-dark); text-decoration: none; }
.quote-author a:hover { text-decoration: underline; }
.quote-text {
  color: #555;
  font-style: italic;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes commentHighlight {
  0%   { box-shadow: 0 0 0 3px var(--orange), 0 2px 5px rgba(0,0,0,.1); background: #fff9e6; }
  100% { box-shadow: 0 2px 5px rgba(0,0,0,.1); background: #fff; }
}
.thread-post.comment-highlight {
  animation: commentHighlight 1.8s ease-out forwards;
}

/* Reply form */
.reply-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  margin-top: 10px;
}
.reply-form label {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: var(--green-dark);
  display: block;
  margin-bottom: 6px;
}
.reply-form textarea {
  width: 100%;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  background: var(--cream);
  resize: vertical;
  color: #aaa;
}
.reply-form .btn {
  margin-top: 8px;
  background: linear-gradient(to bottom, #6aaa34 0%, #4a7c28 50%, #3a6010 100%);
  color: #fff;
  border: 1px solid #2a5010;
  padding: 8px 18px;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: .5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.reply-form .btn:hover { background: linear-gradient(to bottom, #78bb3e 0%, #5a8c30 50%, #456e18 100%); }

/* ─── Login ──────────────────────────────────────────────── */
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.login-card-header {
  background: linear-gradient(to bottom, #4a7c28 0%, #2d5016 100%);
  color: #fff;
  padding: 14px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.login-tabs { display: flex; background: var(--cream-dark); border-bottom: 1px solid var(--border); }
.login-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.login-tab:last-child { border-right: none; }
.login-tab.active { color: var(--green-dark); background: #fff; border-bottom-color: #fff; font-weight: bold; }
.login-card-body  { padding: 18px; }
.login-card label {
  display: block;
  font-size: 11px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 10px 0 4px;
}
.login-card label:first-child { margin-top: 0; }
.login-card input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: 'PT Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
}
.login-card input:focus { border-color: var(--green-mid); background: #fff; outline: 1px dotted var(--green-mid); }
.form-btn {
  width: 100%;
  background: linear-gradient(to bottom, #6aaa34 0%, #4a7c28 50%, #3a6010 100%);
  color: #fff;
  border: 1px solid #2a5010;
  padding: 10px;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  cursor: pointer;
  margin-top: 14px;
  letter-spacing: .5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.form-btn:hover { background: linear-gradient(to bottom, #78bb3e 0%, #5a8c30 50%, #456e18 100%); }

.login-form         { display: none; }
.login-form.active  { display: block; }

.error-box { display: none; background: #0e0202; border: 1px solid #550000; border-radius: 3px; padding: 10px 12px; margin-top: 12px; }
.error-box.show    { display: block; }
.error-box .err-code { font-family: 'Courier New', monospace; color: #ff4444; font-size: 10px; font-weight: bold; margin-bottom: 4px; white-space: pre-wrap; word-break: break-all; }
.error-box .err-msg  { color: #cc8888; line-height: 1.5; font-size: 12px; }

/* ─── Info pages ─────────────────────────────────────────── */
.info-header {
  border-bottom: 3px solid var(--orange);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.info-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  color: var(--green-dark);
}
.info-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.info-body { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px 24px; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.info-body h2 { font-family: 'Oswald', sans-serif; font-size: 17px; color: var(--green-dark); margin: 18px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.info-body h2:first-child { margin-top: 0; }
.info-body p  { margin-bottom: 10px; line-height: 1.7; }
.info-body ul { margin: 0 0 12px 20px; line-height: 1.8; }
.info-body em { color: var(--brown); }

.info-notice-closed  { background: #110303; border-left: 4px solid var(--red);    color: #cc6666; padding: 10px 14px; border-radius: 3px; margin-bottom: 16px; font-size: 13px; }
.info-notice-warning { background: #fff8e8; border-left: 4px solid var(--orange); color: #6b4000; padding: 10px 14px; border-radius: 3px; margin-bottom: 16px; font-size: 13px; }

/* Muzieknummers,  2012-style custom player */
.muziek-item {
  border: 1px solid #555;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.muziek-item-header {
  background: linear-gradient(to bottom, #4e6e44, #2d4229);
  color: #fff;
  padding: 9px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #1a2e18;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.muziek-item-header .silk-icon { filter: brightness(0) invert(1); }
.muziek-meta { margin-left: auto; font-size: 11px; opacity: .7; font-style: italic; }

/* Player shell */
.muziek-player-ui {
  background: linear-gradient(to bottom, #3c3c3c 0%, #1e1e1e 100%);
  padding: 10px 12px 12px;
  border-bottom: 2px solid #111;
}

/* Album cover + controls side by side */
.muziek-player-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.muziek-cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #555;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.6), 2px 2px 0 rgba(255,255,255,.05) inset;
  flex-shrink: 0;
}
.muziek-player-right {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.muziek-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Play/pause button,  gradient pill */
.muziek-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px 5px 10px;
  min-width: 108px;
  background: linear-gradient(to bottom, #80c060 0%, #4a8c30 50%, #3a7020 51%, #5aa040 100%);
  border: 1px solid #2a5018;
  border-bottom-color: #1a3a0a;
  border-radius: 3px;
  color: #fff;
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 2px 4px rgba(0,0,0,.5);
}
.muziek-play-btn:hover {
  background: linear-gradient(to bottom, #92d070 0%, #5aa040 50%, #4a9030 51%, #6ab850 100%);
}
.muziek-play-btn:active {
  background: linear-gradient(to bottom, #3a7020 0%, #5aa040 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.5) inset;
}
.muziek-play-btn.playing {
  background: linear-gradient(to bottom, #d09040 0%, #a06010 50%, #904800 51%, #c07828 100%);
  border-color: #6e3800;
}
.muziek-play-btn.playing:hover {
  background: linear-gradient(to bottom, #e0a050 0%, #b07020 50%, #a05800 51%, #d08838 100%);
}

/* LCD time display */
.muziek-lcd {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #7eff6e;
  background: #0a0a0a;
  border: 1px solid #383838;
  border-radius: 2px;
  padding: 4px 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #4f4, 0 0 2px #4f4;
  min-width: 100px;
  text-align: center;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.8);
}

/* Progress bar */
.muziek-progress-wrap {
  height: 10px;
  background: #0d0d0d;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.7);
}
.muziek-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to bottom, #aaee88 0%, #66bb33 50%, #44991a 51%, #88cc55 100%);
  transition: width .15s linear;
}

/* Lyrics toggle button */
.muziek-lyrics-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--green-dark);
  cursor: pointer;
  background: linear-gradient(to bottom, #f2f2f2, #e4e4e4);
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.muziek-lyrics-toggle:hover {
  background: linear-gradient(to bottom, #e8eedf, #d8e8c8);
  color: #2a5015;
}

/* Lyrics panel */
.muziek-lyrics {
  display: none;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.85;
  background: #fafef8;
  border-top: 1px solid #dde8d0;
  font-family: 'PT Sans', sans-serif;
  column-count: 2;
  column-gap: 32px;
}
.muziek-lyrics.open { display: block; }
.muziek-verse {
  break-inside: avoid;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cde0c0;
}
.muziek-verse:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }


/* ─── Foto grid in berichten ─────────────────────────────── */
.post-photo-grid {
  display: block;
  margin: 10px 0;
  overflow: hidden;
}
.post-photo-grid::after { content: ''; display: table; clear: both; }

.post-photo-count-1 .post-photo,
.post-photo-count-2 .post-photo,
.post-photo-count-3 .post-photo,
.post-photo-count-4 .post-photo {
  float: left;
  margin: 0 6px 6px 0;
}

.post-photo-count-1 .post-photo-img { width: 280px; height: 200px; }
.post-photo-count-2 .post-photo-img { width: 160px; height: 130px; }
.post-photo-count-3 .post-photo-img { width: 140px; height: 115px; }
.post-photo-count-4 .post-photo-img { width: 130px; height: 105px; }

.post-photo {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid #bbb;
  background: #e8e4dc;
  cursor: pointer;
  display: inline-block;
  max-width: 100%;
  box-shadow: 1px 1px 3px rgba(0,0,0,.2);
}
.post-photo a { display: block; line-height: 0; }

.post-photo-img {
  display: block;
  object-fit: cover;
  filter: contrast(0.95) saturate(0.9);
  max-width: 100%;
}
.post-photo:hover .post-photo-img { transform: none; }

.post-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: Arial, sans-serif;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 2px 0;
  opacity: 0;
  transition: none;
  white-space: nowrap;
}
.post-photo:hover .post-photo-overlay { opacity: 1; }

.post-photo-caption {
  padding: 3px 5px;
  font-size: 11px;
  font-family: Arial, sans-serif;
  color: #555;
  font-style: italic;
  line-height: 1.3;
  background: #ddd8cc;
  border-top: 1px solid #bbb;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gebroken afbeelding */
.post-photo-broken .post-photo-img { display: none; }
.post-photo-broken::after {
  content: "Afbeelding niet beschikbaar";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Lightbox ───────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .08s linear;
  pointer-events: none;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  cursor: default;
}

#lightbox-box {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #1a1a1a;
  border: 1px solid #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,.8);
}

#lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 3px solid #fff;
  margin: 10px;
}

#lightbox-caption {
  background: #2a2a2a;
  border-top: 1px solid #444;
  color: #ccc;
  font-size: 12px;
  font-style: italic;
  padding: 6px 10px;
  text-align: center;
}

#lightbox-close {
  position: absolute;
  top: -22px;
  right: 0;
  background: #333;
  border: 1px solid #666;
  color: #ddd;
  font-size: 11px;
  font-family: 'PT Sans', Arial, sans-serif;
  cursor: pointer;
  line-height: 1;
  padding: 3px 8px;
  letter-spacing: 0.5px;
}
#lightbox-close:hover {
  background: #555;
  color: #fff;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 16px;
  font-size: 11px;
  border-top: 4px solid var(--orange);
  margin-top: 20px;
  line-height: 1.8;
}
.site-footer a           { color: rgba(255,255,255,.6); }
.site-footer .footer-rim { height: 22px; width: auto; display: block; margin: 0 auto 6px; opacity: .6; }

/* ─── Responsive ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 820px) {
  .side-col { width: 170px; }
}

/* Mid-tablet: hide stat columns, collapse music lyrics */
@media (max-width: 720px) {
  .side-col { width: 150px; }

  .posts-table th.hide-mobile,
  .posts-table td.hide-mobile { display: none; }
  .posts-table th:last-child   { display: none; }
  .posts-table td.last-reply   { display: none; }

  .muziek-lyrics { column-count: 1; }
}

/* Mobile */
@media (max-width: 640px) {
  .page-wrapper { padding: 8px 8px 28px; }

  /* Header */
  .header-inner  { padding: 12px 12px 10px; gap: 10px; }
  .site-title    { font-size: 20px; }
  .site-tagline  { display: none; }
  .mascot img    { height: 40px; }

  /* Nav,  horizontal scroll instead of wrapping */
  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav > ul {
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0;
    min-width: max-content;
  }
  .main-nav li a { white-space: nowrap; }

  /* Forum layout,  main content above sidebar */
  .page-with-side { flex-direction: column; }
  .main-col       { order: 1; width: 100%; }
  .side-col       { order: 2; width: 100%; }

  /* Posts table,  hide last-reply column too */
  .posts-table th.hide-mobile,
  .posts-table td.hide-mobile { display: none; }
  .posts-table th:last-child  { display: none; }
  .posts-table td.last-reply  { display: none; }

  /* Remove arrow shape on small screens */
  .row-pinned .post-icon,
  .row-locked .post-icon,
  .row-pinned-locked .post-icon { clip-path: none; }

  /* Thread */
  .thread-post-body { flex-direction: column; }
  .user-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 8px 12px;

    display: grid;
    grid-template-columns: repeat(2, auto) 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 8px;
    grid-row-gap: 0px;
  }
  .user-avatar-wrap { 
    margin: 0; 
    flex-shrink: 0; 
    width: 40px; 
    height: 40px;
    grid-area: 1 / 1 / 3 / 2;
  }

  .user-name {
    grid-area: 1 / 2 / 2 / 4;
    margin: 0;
  }
  .user-rank {
    grid-area: 2 / 2 / 3 / 3;
    margin: 0;
  }
  .user-posts {
    grid-area: 2 / 3 / 3 / 4;
    margin: 0;
  }


  .post-body { padding: 10px 12px; }

  /* Photo grids */
  .post-photo-count-1 .post-photo-img { width: 200px; height: 150px; }
  .post-photo-count-2 .post-photo-img { width: 120px; height: 95px; }
  .post-photo-count-3 .post-photo-img,
  .post-photo-count-4 .post-photo-img { width: 100px; height: 80px; }

  /* Info pages */
  .info-body    { padding: 14px; }
  .info-header h1 { font-size: 20px; }

  /* Music player,  mobile */
  .muziek-cover  { width: 56px; height: 56px; }
  .muziek-lcd    { min-width: 0; flex: 1; font-size: 11px; letter-spacing: 1px; padding: 4px 6px; }

  /* Mini player,  tablet: hide progress bar */
  .mini-progress-outer { display: none; }
}

/* Small phones */
@media (max-width: 400px) {
  .site-title    { font-size: 17px; }
  .mascot img    { height: 32px; }
  .header-inner  { gap: 8px; padding: 10px 10px 8px; }
  .main-nav li a { padding: 9px 10px; font-size: 12px; }
  .post-body     { padding: 8px 10px; }

  /* Music player,  phone: stack cover above controls */
  .muziek-player-ui   { padding: 8px; }
  .muziek-player-inner { flex-direction: column; gap: 8px; }
  .muziek-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 140px;
    align-self: center;
  }
  .muziek-controls  { flex-wrap: wrap; }
  .muziek-play-btn  { flex: 1; justify-content: center; min-width: 0; }
  .muziek-lcd       { flex: 1; text-align: center; }
  .muziek-item-header { flex-wrap: wrap; gap: 4px; }
  .muziek-meta      { margin-left: 0; }

  /* Mini player,  phone: cover stays, just shrink play button */
  .mini-play-btn   { min-width: 0; padding: 4px 8px; }

  /* Rim story title text,  smaller on tiny phones */
  .rs-text-xlarge  { font-size: 22px; }
}

/* ─── Mini speler (persistent floating bar) ──────────────── */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(to bottom, #3c3c3c 0%, #181818 100%);
  border-top: 2px solid #555;
  box-shadow: 0 -4px 14px rgba(0,0,0,.55);
}
body.mini-player-open .page-wrapper { padding-bottom: 72px; }

.mini-cover-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid #555;
  border-radius: 2px;
  box-shadow: 0 1px 5px rgba(0,0,0,.6);
  flex-shrink: 0;
}
.mini-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.mini-song-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.mini-timedisp {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #7eff6e;
  text-shadow: 0 0 5px #4f4;
  margin-top: 1px;
  letter-spacing: 1px;
}
.mini-play-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  min-width: 96px;
  font-size: 11px;
}
.mini-progress-outer {
  flex: 2;
  height: 10px;
  background: #0d0d0d;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.7);
}



/* ─── Forum online bar (phpBB-style bottom status) ──────── */
.forum-online-bar {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green-mid);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  border-radius: 0 0 4px 4px;
}
.forum-online-bar strong { color: var(--text); }

/* ─── Gebruikersprofiel overlay ─────────────────────────── */
#profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.profile-card {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 6px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.profile-close-btn {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.profile-close-btn:hover { color: var(--text); }
.profile-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.profile-header .user-avatar { width: 64px; height: 64px; border-radius: 4px; }
.profile-meta { flex: 1; }
.profile-username { font-size: 17px; font-weight: bold; color: var(--text); }
.profile-rank { font-size: 12px; margin: 2px 0 6px; }
.profile-stats { font-size: 11px; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; }
.profile-sig {
  border-top: 1px solid var(--border);
  padding: 8px 0;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.profile-posts-title { font-size: 12px; font-weight: bold; color: var(--text); margin-bottom: 4px; }
.profile-posts-list { margin: 0; padding-left: 18px; font-size: 12px; }
.profile-posts-list li { margin-bottom: 3px; }
.profile-posts-list a { color: var(--brown); }
.profile-posts-list a:hover { color: var(--orange); }
.user-name-link { color: var(--text); text-decoration: none; font-weight: bold; }
.user-name-link:hover { color: var(--green-mid); text-decoration: underline; }

/* ─── Admin / beheer log ────────────────────────────────── */
#admin-log-view {
  background: #111;
  min-height: 100vh;
  padding: 0;
}
.alog-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: 'Courier New', monospace;
}
.alog-header {
  background: #8b0000;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: bold;
  border-bottom: 2px solid #ff4444;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alog-restricted {
  margin-left: auto;
  background: #ff4444;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.alog-sub {
  background: #1a1a1a;
  color: #aaa;
  font-size: 11px;
  padding: 5px 14px;
  border-bottom: 1px solid #333;
}
.alog-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}
.alog-table th {
  background: #1e1e1e;
  color: #ccc;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #444;
}
.alog-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #222;
  vertical-align: top;
}
.alog-table tr:hover td { background: #1a1a1a; }
.alog-ts   { color: #888; white-space: nowrap; width: 140px; }
.alog-user { color: #6fa; width: 130px; }
.alog-action { color: #ddd; }
.alog-table tr:last-child .alog-action { color: #ff9; font-style: italic; }
.alog-table tr:nth-last-child(2) .alog-action { color: #f88; }
.alog-footer {
  margin-top: 14px;
  color: #555;
  font-size: 11px;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 10px;
}
.alog-footer a { color: #6fa; }

/* ─── Widget online link ────────────────────────────────── */
.widget-online-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border-radius: 3px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: background .15s;
}
.widget-online-link:hover { background: rgba(0,0,0,.06); }

/* ─── Gebruikersprofiel pagina ──────────────────────────── */
.profile-page {
  max-width: 680px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.profile-page-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 22px 18px;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 100%);
}
.profile-page-avatar .user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}
.profile-page-info { flex: 1; min-width: 0; }
.profile-page-name {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.profile-page-rank {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
  opacity: .9;
}
.profile-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.profile-page-stats .silk-icon { opacity: .7; }
.profile-page-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.profile-page-section:last-child { border-bottom: none; }
.profile-page-section-title {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.profile-page-bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}
.profile-page-sig-row {
  font-size: 12px;
  color: var(--text-muted);
  background: #f8f4ed;
  padding: 10px 20px;
}
.profile-page-posts {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}
.profile-page-posts li { margin-bottom: 4px; }
.profile-page-posts a { color: var(--brown); }
.profile-page-posts a:hover { color: var(--orange); }
