:root {
  --deepest: #04282b;
  --deep: #07383b;
  --deep-soft: #0a4a4b;
  --teal: #0b6866;
  --teal-light: #2b8a83;
  --paper: #e6e2d4;
  --paper-soft: #d7d3c5;
  --gold: #d1b47b;
  --gold-light: #ecd49c;
  --wood: #746143;
  --wood-dark: #4b3e2e;
  --ink: #143b3b;
  --muted: #a8c0b7;
  --line: rgba(207, 191, 143, 0.28);
  --shadow: rgba(0, 20, 21, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -12%, rgba(51, 136, 126, 0.27), transparent 34rem),
    repeating-linear-gradient(126deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9px),
    linear-gradient(145deg, #021f22 0%, #073a3b 48%, #03292d 100%);
  font-family: "Noto Sans Thai", "Kanit", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 15% 35%, rgba(181, 155, 94, 0.2) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.11) 0 1px, transparent 1.5px);
  background-size: 19px 23px, 27px 31px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ปุ่มที่ใช้ได้ทั้ง <a> และ <button> — กันเคสความสูง/พื้นหลังหายเมื่อเป็นลิงก์ */
.top-action,
.list-create-button,
.create-thread,
.hero-button,
.composer-submit,
.all-members-button,
.author-profile-button,
.post-actions a,
.post-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -60px;
  left: 16px;
  padding: 8px 14px;
  color: var(--deepest);
  background: var(--gold-light);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-frame {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 35, 37, 0.25), rgba(2, 30, 32, 0.38)),
    rgba(6, 51, 53, 0.68);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.3);
}

.topbar {
  position: relative;
  z-index: 20;
  height: 39px;
  border-bottom: 1px solid rgba(209, 180, 123, 0.34);
  background:
    linear-gradient(90deg, rgba(4, 46, 47, 0.96), rgba(6, 57, 58, 0.94) 52%, rgba(3, 39, 42, 0.97)),
    repeating-linear-gradient(4deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.topbar-inner {
  display: flex;
  align-items: center;
  width: min(100% - 28px, 986px);
  height: 100%;
  margin: 0 auto;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  color: #f1e8d1;
  text-shadow: none;
  line-height: 0;
}

.wordmark-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: min(42vw, 160px);
  object-fit: contain;
  object-position: left center;
}

.wordmark-main {
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.wordmark-sub {
  color: rgba(221, 204, 161, 0.76);
  font-family: "Kanit", sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 3px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(228, 229, 214, 0.78);
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  content: "";
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff6dc;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
  gap: 7px;
}

.search-form {
  position: relative;
  display: flex;
  width: 174px;
  height: 27px;
  overflow: hidden;
  border: 1px solid rgba(163, 192, 179, 0.22);
  border-radius: 4px;
  background: rgba(5, 27, 30, 0.36);
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 0 31px 0 10px;
  color: var(--paper);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.search-form input::placeholder {
  color: rgba(221, 228, 212, 0.58);
}

.search-form button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 30px;
  height: 100%;
  place-items: center;
  color: #b5cec4;
  border: 0;
  background: transparent;
}

.search-form button svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  padding: 0 11px;
  color: #e8e5d4;
  border: 1px solid rgba(187, 201, 177, 0.36);
  border-radius: 4px;
  background: rgba(14, 81, 79, 0.56);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.top-action,
button.top-action,
span.top-action {
  box-sizing: border-box;
}

.top-action svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.top-action:hover {
  color: #fff8e4;
  border-color: var(--gold);
  background: rgba(22, 111, 105, 0.85);
}

.login-action {
  color: #e9e6d6;
  border-color: rgba(196, 214, 186, 0.42);
  background:
    linear-gradient(180deg, rgba(28, 112, 108, 0.72), rgba(10, 70, 72, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.login-action:hover {
  color: #fff8e4;
  border-color: rgba(232, 204, 138, 0.72);
  background:
    linear-gradient(180deg, rgba(36, 132, 126, 0.88), rgba(14, 88, 90, 0.92));
}

.signup-action {
  color: #163c3b;
  border-color: #95bc8b;
  background: linear-gradient(180deg, #c5dd9f, #78ad72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.signup-action:hover {
  color: #123635;
  border-color: #e4e9b6;
  background: linear-gradient(180deg, #e0eba9, #8bc37b);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 30px;
  padding: 6px;
  border: 1px solid rgba(221, 226, 204, 0.3);
  border-radius: 4px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: var(--paper);
}

.hero {
  position: relative;
  height: 282px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(65, 93, 77, 0.62);
  background-color: #1b5e60;
}

.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 35, 37, 0.28), transparent 22%, transparent 78%, rgba(2, 33, 35, 0.3)),
    linear-gradient(180deg, rgba(2, 37, 39, 0.05), transparent 30%, rgba(3, 41, 42, 0.18));
}

.hero-accessible-copy {
  position: absolute;
  z-index: 2;
  top: 49%;
  left: 50%;
  display: none;
  width: min(90%, 540px);
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-kicker {
  margin: 0 0 4px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.hero-accessible-copy h1 {
  margin: 0;
  color: #f5e7bf;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: clamp(46px, 10vw, 86px);
  line-height: 1.05;
  text-shadow: 0 3px 0 #0b4747, 0 6px 16px rgba(0, 0, 0, 0.34);
}

.hero-accessible-copy p:not(.hero-kicker) {
  margin: 3px 0 18px;
  color: #f2e8cc;
  font-size: 15px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 42px;
  padding: 0 16px;
  color: #f7ead0;
  border: 1px solid rgba(227, 210, 160, 0.75);
  border-radius: 3px;
  background: rgba(6, 83, 81, 0.88);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.hero-reference-link {
  position: absolute;
  z-index: 3;
  top: 78%;
  left: 50%;
  width: 196px;
  height: 51px;
  border-radius: 4px;
  transform: translateX(-50%);
}

.hero-reference-link:focus-visible {
  outline-color: #fff2bb;
  background: rgba(255, 255, 255, 0.14);
}

.stats-strip {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 48px;
  color: #e8e6d4;
  border-top: 1px solid rgba(70, 53, 31, 0.85);
  border-bottom: 1px solid rgba(26, 44, 35, 0.8);
  background:
    linear-gradient(90deg, rgba(107, 83, 51, 0.92), rgba(153, 122, 79, 0.94) 42%, rgba(101, 77, 48, 0.92)),
    repeating-linear-gradient(174deg, rgba(255, 245, 205, 0.09) 0 2px, transparent 2px 8px);
  box-shadow: inset 0 1px rgba(255, 232, 171, 0.2), 0 4px 9px rgba(0, 0, 0, 0.18);
}

.stat-item {
  display: flex;
  align-items: center;
  min-width: 144px;
  padding-right: 22px;
  color: rgba(244, 238, 212, 0.8);
  font-size: 9px;
  gap: 5px;
}

.stat-item + .stat-item {
  padding-left: 20px;
  border-left: 1px solid rgba(45, 34, 23, 0.25);
}

.stat-item strong {
  color: #fff1be;
  font-family: "Kanit", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.stat-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #15595a;
}

.stat-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.stat-message {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
  padding-left: 20px;
  color: rgba(246, 239, 216, 0.8);
  font-size: 9px;
  line-height: 1.3;
  gap: 10px;
}

.stat-message strong {
  color: #fff2c8;
  font-weight: 500;
}

.boat-mark {
  color: #15585a;
  font-size: 24px;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  align-items: start;
  gap: 12px;
  padding: 13px 60px 0;
}

.forum-column,
.sidebar {
  min-width: 0;
}

.section-title,
.side-title {
  display: flex;
  align-items: center;
  min-height: 29px;
  padding: 3px 10px;
  color: #f4e9cf;
  border: 1px solid rgba(44, 32, 22, 0.55);
  background:
    linear-gradient(90deg, rgba(99, 80, 53, 0.98), rgba(126, 103, 69, 0.96) 50%, rgba(75, 58, 38, 0.98)),
    repeating-linear-gradient(2deg, rgba(255, 239, 186, 0.11) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 1px rgba(255, 237, 185, 0.19), 0 2px 5px rgba(0, 0, 0, 0.25);
}

.section-title h2,
.side-title h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.title-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  place-items: center;
  color: #f0e0ba;
  font-size: 15px;
}

.title-line {
  flex: 1;
  height: 1px;
  margin-left: 11px;
  background: linear-gradient(90deg, rgba(243, 221, 170, 0.38), transparent);
}

.board-table {
  overflow: hidden;
  border: 1px solid rgba(84, 157, 145, 0.42);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: rgba(8, 89, 88, 0.55);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.17);
}

.table-head,
.board-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 54px 54px minmax(212px, 1.15fr);
}

.table-head {
  min-height: 24px;
  align-items: center;
  color: rgba(236, 230, 206, 0.75);
  border-bottom: 1px solid rgba(74, 48, 28, 0.55);
  background: linear-gradient(180deg, rgba(74, 74, 59, 0.95), rgba(49, 65, 55, 0.94));
  font-size: 9px;
}

.table-head span:first-child {
  grid-column: 1 / span 2;
  padding-left: 10px;
}

.table-head span:nth-child(2),
.table-head span:nth-child(3),
.table-head span:nth-child(4) {
  text-align: center;
}

.board-row {
  min-height: 56px;
  align-items: center;
  color: var(--paper-soft);
  border-bottom: 1px solid rgba(119, 177, 159, 0.19);
  background: linear-gradient(90deg, rgba(5, 74, 75, 0.74), rgba(9, 97, 94, 0.48));
  transition: background 0.2s ease;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row:hover {
  background: linear-gradient(90deg, rgba(12, 103, 100, 0.86), rgba(25, 119, 111, 0.58));
}

.board-section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 12px 8px;
  color: #f1e2bd;
  border-bottom: 1px solid rgba(196, 171, 112, 0.28);
  background:
    linear-gradient(90deg, rgba(58, 42, 22, 0.55), rgba(12, 70, 68, 0.35)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 8px);
}

.board-section-label strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.board-section-label em {
  color: rgba(236, 230, 206, 0.72);
  font-style: normal;
  font-size: 11px;
}

.board-row-child {
  background: linear-gradient(90deg, rgba(5, 64, 65, 0.62), rgba(9, 86, 84, 0.4));
}

.board-row-child .board-summary {
  padding-left: 6px;
}

.board-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  place-items: center;
  color: #f1edda;
  border: 1px solid rgba(217, 219, 180, 0.38);
  border-radius: 50%;
  background: rgba(112, 153, 138, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.board-icon:hover {
  background: rgba(207, 177, 111, 0.72);
  transform: translateY(-1px);
}

.icon-news {
  font-size: 16px;
}

.icon-market {
  font-size: 20px;
}

.icon-life {
  font-size: 21px;
}

.icon-food {
  font-size: 15px;
}

.icon-help {
  font-family: "Kanit", sans-serif;
  font-size: 17px;
}

.board-summary {
  min-width: 0;
  padding: 7px 7px 7px 8px;
}

.board-name {
  display: block;
  overflow: hidden;
  color: #f4e5bd;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-name:hover,
.latest-post a:hover,
.notice-row:hover strong,
.subforum-list a:hover {
  color: #fff2b9;
}

.board-summary p {
  max-width: 260px;
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(222, 229, 209, 0.62);
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(218, 232, 215, 0.6);
  font-family: "Kanit", sans-serif;
  font-size: 8px;
  line-height: 1.2;
}

.board-number strong {
  color: rgba(242, 235, 205, 0.83);
  font-size: 10px;
  font-weight: 400;
}

.latest-post {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 5px 8px 5px 8px;
  gap: 7px;
}

.latest-post > div {
  min-width: 0;
}

.latest-post a {
  display: block;
  overflow: hidden;
  color: rgba(240, 230, 198, 0.88);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-post small {
  display: block;
  overflow: hidden;
  color: rgba(212, 225, 203, 0.58);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-post small b {
  color: rgba(239, 213, 161, 0.83);
  font-weight: 400;
}

.avatar {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 248, 219, 0.94);
  border: 1px solid rgba(234, 225, 191, 0.54);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-family: "Kanit", sans-serif;
  font-size: 12px;
}

.avatar-blue {
  background: linear-gradient(145deg, #708b86, #31575d);
}

.avatar-gold {
  background: linear-gradient(145deg, #ad8d52, #685536);
}

.avatar-teal {
  background: linear-gradient(145deg, #5da29a, #17585a);
}

.avatar-coral {
  background: linear-gradient(145deg, #a77f67, #654447);
}

.avatar-purple {
  background: linear-gradient(145deg, #816d82, #394456);
}

.empty-search {
  margin: 0;
  padding: 25px 15px;
  color: rgba(236, 230, 204, 0.78);
  text-align: center;
  font-size: 11px;
}

.subforum-section {
  margin-top: 13px;
}

.compact-title {
  min-height: 27px;
}

.subforum-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 40px;
  overflow: hidden;
  border: 1px solid rgba(84, 157, 145, 0.42);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: rgba(5, 77, 77, 0.62);
}

.subforum-list a {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 5px 7px;
  color: rgba(223, 232, 211, 0.75);
  border-right: 1px solid rgba(116, 182, 158, 0.16);
  font-size: 9px;
  gap: 5px;
  transition: color 0.2s ease, background 0.2s ease;
}

.subforum-list a:last-child {
  border-right: 0;
}

.subforum-list a:hover {
  background: rgba(28, 123, 116, 0.45);
}

.subforum-list span {
  color: rgba(217, 190, 128, 0.85);
  font-size: 15px;
}

.side-panel {
  overflow: hidden;
  border: 1px solid rgba(84, 157, 145, 0.44);
  border-radius: 4px;
  background: rgba(5, 76, 76, 0.62);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.17);
}

.side-panel + .side-panel {
  margin-top: 14px;
}

.side-title {
  min-height: 28px;
  padding: 3px 9px;
  gap: 6px;
}

.side-title > span {
  color: #f1dfb6;
  font-size: 13px;
}

.side-title h2 {
  font-size: 11px;
}

.notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(122, 177, 157, 0.18);
  gap: 7px;
  transition: background 0.2s ease;
}

.notice-row:last-child {
  border-bottom: 0;
}

.notice-row:hover {
  background: rgba(29, 126, 117, 0.35);
}

.notice-row span {
  min-width: 0;
}

.notice-row strong,
.notice-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-row strong {
  color: #eee3c7;
  font-size: 10px;
  font-weight: 500;
}

.notice-row small {
  margin-top: 2px;
  color: rgba(215, 228, 207, 0.62);
  font-size: 8px;
}

.notice-row > b {
  color: #e4d09a;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.members-panel {
  padding-bottom: 11px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 11px 12px 5px;
  gap: 6px;
}

.member-avatar {
  display: grid;
  width: 25px;
  height: 25px;
  margin: auto;
  place-items: center;
  color: #fff3d3;
  border: 1px solid rgba(226, 225, 188, 0.6);
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  font-family: "Kanit", sans-serif;
  font-size: 10px;
}

.m1 { background: linear-gradient(135deg, #8c7652, #345d5d); }
.m2 { background: linear-gradient(135deg, #ba8870, #57444c); }
.m3 { background: linear-gradient(135deg, #679a91, #21545a); }
.m4 { background: linear-gradient(135deg, #c1a16a, #596451); }
.m5 { background: linear-gradient(135deg, #887e9d, #3e5364); }
.m6 { background: linear-gradient(135deg, #bd715f, #56474b); }
.m7 { background: linear-gradient(135deg, #aa8d70, #4b6260); }
.m8 { background: linear-gradient(135deg, #9aa264, #375e55); }
.m9 { background: linear-gradient(135deg, #758da0, #3d5361); }
.m10 { background: linear-gradient(135deg, #b69c62, #58644c); }
.m11 { background: linear-gradient(135deg, #9e6f7f, #51465a); }
.m12 { background: linear-gradient(135deg, #5b958e, #284b55); }

.online-total {
  margin: 2px 0 8px;
  color: rgba(224, 231, 205, 0.64);
  text-align: center;
  font-size: 9px;
}

.online-total strong {
  color: #f0d998;
  font-weight: 500;
}

.all-members-button {
  display: block;
  min-width: 119px;
  height: 28px;
  margin: auto;
  padding: 0 10px;
  color: #e9e6d1;
  border: 1px solid rgba(201, 207, 165, 0.42);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(39, 139, 128, 0.96), rgba(17, 93, 91, 0.96));
  font-size: 9px;
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.all-members-button:hover {
  border-color: var(--gold-light);
  filter: brightness(1.15);
}

.lower-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 60px 0;
  padding: 11px 13px;
  border-top: 1px solid rgba(109, 178, 158, 0.25);
  border-bottom: 1px solid rgba(109, 178, 158, 0.25);
  gap: 12px;
}

.info-card {
  display: flex;
  align-items: center;
  min-width: 0;
  color: rgba(225, 232, 211, 0.8);
  gap: 9px;
}

.info-icon {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #e8c981;
  border: 1px solid rgba(225, 201, 135, 0.43);
  border-radius: 50%;
  background: rgba(138, 111, 62, 0.32);
}

.info-card strong {
  color: #f0dfb8;
  font-size: 10px;
  font-weight: 500;
}

.info-card p {
  margin: 1px 0 0;
  color: rgba(211, 228, 205, 0.58);
  font-size: 9px;
}

.create-thread {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  color: #173c3a;
  border: 1px solid #9ac285;
  border-radius: 3px;
  background: linear-gradient(180deg, #c7dc9c, #7daf70);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  gap: 4px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.create-thread:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.create-thread span {
  font-size: 17px;
  line-height: 1;
}

.site-footer {
  padding: 23px 20px 28px;
  color: rgba(196, 217, 198, 0.58);
  text-align: center;
  font-size: 9px;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer span {
  margin: 0 7px;
  color: rgba(213, 186, 123, 0.58);
}

.site-footer p {
  margin: 7px 0 0;
  color: rgba(196, 217, 198, 0.38);
  font-family: "Kanit", sans-serif;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(1, 17, 19, 0.72);
  backdrop-filter: blur(5px);
}

.modal {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  color: var(--paper);
  border: 1px solid rgba(221, 192, 128, 0.5);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(9, 81, 80, 0.98), rgba(4, 47, 50, 0.98)),
    repeating-linear-gradient(4deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 7px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 29px;
  height: 29px;
  color: rgba(236, 229, 202, 0.75);
  border: 1px solid rgba(222, 206, 163, 0.32);
  border-radius: 50%;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: #fff2c0;
  border-color: var(--gold-light);
}

.modal-kicker {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.modal h2 {
  margin: 3px 0 0;
  color: #f5e7c2;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: 26px;
  font-weight: 400;
}

.modal > p {
  margin: 5px 0 20px;
  color: rgba(223, 231, 211, 0.67);
  font-size: 11px;
}

.modal form {
  display: grid;
  gap: 7px;
}

.modal label {
  margin-top: 5px;
  color: rgba(242, 227, 185, 0.84);
  font-size: 10px;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 9px 10px;
  color: var(--paper);
  border: 1px solid rgba(177, 205, 184, 0.31);
  border-radius: 3px;
  outline: 0;
  background: rgba(2, 34, 36, 0.5);
  font-size: 11px;
  resize: vertical;
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: rgba(193, 217, 203, 0.42);
}

.modal input:focus,
.modal textarea:focus {
  border-color: var(--gold-light);
}

.modal-submit {
  height: 38px;
  margin-top: 10px;
  color: #163b39;
  border: 1px solid #a6c88f;
  border-radius: 3px;
  background: linear-gradient(180deg, #d5e6a9, #83b875);
  font-size: 11px;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 10px 14px;
  color: #f4eacd;
  border: 1px solid rgba(224, 195, 132, 0.55);
  border-radius: 4px;
  background: rgba(4, 47, 49, 0.96);
  box-shadow: 0 7px 26px rgba(0, 0, 0, 0.42);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar-inner {
    gap: 13px;
  }

  .nav-link {
    padding: 0 7px;
    font-size: 10px;
  }

  .search-form {
    width: 145px;
  }

  .content-grid {
    padding-right: 32px;
    padding-left: 32px;
  }

  .lower-info {
    margin-right: 32px;
    margin-left: 32px;
  }
}

@media (max-width: 830px) {
  .topbar-inner {
    width: calc(100% - 22px);
  }

  .wordmark-logo {
    height: 28px;
  }

  .wordmark-sub {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 39px;
    right: 11px;
    left: 11px;
    display: none;
    height: auto;
    padding: 8px;
    border: 1px solid rgba(208, 184, 128, 0.36);
    background: rgba(3, 40, 42, 0.98);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-link {
    min-height: 34px;
    justify-content: center;
  }

  .nav-link::after {
    right: 17%;
    left: 17%;
  }

  .menu-toggle {
    display: block;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .lower-info {
    margin-right: 20px;
    margin-left: 20px;
  }

  .stats-strip {
    padding-right: 25px;
    padding-left: 25px;
  }

  .stat-item {
    min-width: auto;
    padding-right: 13px;
  }

  .stat-item + .stat-item {
    padding-left: 13px;
  }

  .stat-message {
    padding-left: 13px;
  }
}

@media (max-width: 700px) {
  .topbar {
    height: 48px;
  }

  .topbar-inner {
    width: calc(100% - 20px);
  }

  .main-nav {
    top: 48px;
  }

  .search-form {
    width: 128px;
  }

  .top-action {
    padding: 0 8px;
    font-size: 9px;
  }

  .hero {
    height: 265px;
    background-position: center -31px;
    background-size: auto 385px;
  }

  .hero-accessible-copy {
    display: block;
    top: 53%;
    padding: 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }

  .hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(4, 42, 43, 0.05), rgba(4, 42, 43, 0.78));
  }

  .hero-reference-link {
    display: none;
  }

  .stats-strip {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 15px;
    gap: 5px 0;
  }

  .stat-item {
    flex: 1 1 33%;
    justify-content: center;
    min-width: 0;
    padding: 0 7px;
  }

  .stat-item + .stat-item {
    padding-left: 7px;
  }

  .stat-message {
    flex: 1 1 100%;
    justify-content: center;
    padding: 5px 0 0;
    border-top: 1px solid rgba(48, 37, 24, 0.23);
    text-align: center;
  }

  .content-grid {
    display: block;
    padding: 14px 14px 0;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: 14px;
    gap: 10px;
  }

  .side-panel + .side-panel {
    margin-top: 0;
  }

  .lower-info {
    margin-right: 14px;
    margin-left: 14px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .search-form {
    width: 103px;
  }

  .login-action {
    display: none;
  }

  .hero {
    height: 250px;
    background-image: linear-gradient(180deg, rgba(4, 43, 44, 0.1), rgba(4, 43, 44, 0.72));
    background-color: #0a5758;
  }

  .hero-image {
    display: none;
  }

  .hero-accessible-copy h1 {
    font-size: 57px;
  }

  .hero-accessible-copy p:not(.hero-kicker) {
    font-size: 12px;
  }

  .table-head {
    display: none;
  }

  .board-row {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    padding: 7px 0 0;
  }

  .board-icon {
    margin-top: 3px;
  }

  .board-summary {
    padding: 3px 8px 2px;
  }

  .board-summary p {
    max-width: none;
  }

  .board-number {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    width: auto;
    margin: 0 0 5px 8px;
    padding: 0 8px 0 0;
    color: rgba(218, 232, 215, 0.62);
    gap: 4px;
  }

  .board-number strong {
    font-size: 9px;
  }

  .board-number span::before {
    content: " ";
  }

  .latest-post {
    grid-column: 1 / -1;
    padding: 4px 8px 8px 45px;
    border-top: 1px solid rgba(119, 177, 159, 0.12);
  }

  .subforum-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subforum-list a:nth-child(3) {
    border-right: 0;
  }

  .subforum-list a:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(116, 182, 158, 0.16);
  }

  .sidebar {
    display: block;
  }

  .side-panel + .side-panel {
    margin-top: 10px;
  }

  .lower-info {
    display: block;
    margin-top: 13px;
  }

  .create-thread {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.inner-site {
  background:
    linear-gradient(180deg, rgba(4, 35, 37, 0.18), rgba(2, 30, 32, 0.46)),
    rgba(5, 47, 49, 0.76);
}

.inner-page {
  padding: 0 44px 20px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 14px 2px 10px;
  color: rgba(211, 224, 205, 0.62);
  font-size: 10px;
  gap: 9px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 9px;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  min-width: 0;
}

.breadcrumb-sep {
  color: rgba(218, 188, 124, 0.72);
  font-size: 15px;
  line-height: 1;
}

.static-page-panel {
  max-width: 720px;
  margin: 0 0 28px;
  padding: 18px 18px 20px;
  color: rgba(240, 226, 186, 0.9);
  border: 1px solid rgba(91, 163, 149, 0.35);
  border-radius: 4px;
  background: rgba(5, 72, 73, 0.55);
  line-height: 1.7;
}

.static-page-panel h2 {
  margin: 18px 0 8px;
  color: #f0e1b9;
  font-size: 16px;
  font-weight: 600;
}

.static-page-panel ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.static-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.post-author-name {
  display: block;
  color: #f0e1b9;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.breadcrumbs span {
  color: rgba(218, 188, 124, 0.72);
  font-size: 15px;
  line-height: 1;
}

.breadcrumbs strong {
  overflow: hidden;
  color: rgba(240, 226, 186, 0.84);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-page-header {
  display: flex;
  align-items: center;
  min-height: 102px;
  padding: 7px 12px 15px;
  border-bottom: 1px solid rgba(196, 171, 112, 0.32);
  gap: 14px;
}

.board-page-icon {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #f2e4bd;
  border: 1px solid rgba(231, 204, 142, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(208, 188, 139, 0.42), transparent 34%),
    linear-gradient(145deg, #35736d, #16474c);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 3px 10px rgba(0, 0, 0, 0.34);
  font-size: 29px;
}

.board-page-copy {
  min-width: 0;
}

.board-page-copy h1 {
  margin: 0;
  color: #f1e2bd;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.board-page-copy p {
  max-width: 620px;
  margin: 4px 0 6px;
  overflow: hidden;
  color: rgba(219, 231, 209, 0.66);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-page-meta {
  display: flex;
  color: rgba(228, 210, 165, 0.7);
  font-family: "Kanit", sans-serif;
  font-size: 9px;
  gap: 14px;
}

.board-page-meta span + span {
  position: relative;
  padding-left: 14px;
}

.board-page-meta span + span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: rgba(216, 185, 122, 0.65);
  transform: translateY(-50%);
}

.list-create-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 36px;
  margin-left: auto;
  padding: 0 13px;
  color: #f5e9c9;
  border: 1px solid rgba(219, 193, 131, 0.66);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(25, 130, 122, 0.98), rgba(7, 80, 79, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 3px 8px rgba(0, 0, 0, 0.22);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  gap: 6px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.list-create-button:hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
}

.list-create-button span {
  color: #f0d79e;
  font-size: 17px;
  line-height: 1;
}

.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  align-items: start;
  gap: 12px;
  margin-top: 10px;
}

.thread-list-main,
.inner-sidebar,
.thread-detail-main {
  min-width: 0;
}

.thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(86, 158, 146, 0.45);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, rgba(8, 83, 82, 0.82), rgba(5, 66, 68, 0.66));
  gap: 10px;
}

.thread-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  gap: 3px;
}

.thread-tab {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 0 12px;
  color: rgba(222, 228, 208, 0.7);
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-size: 10px;
  gap: 6px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.thread-tab:hover,
.thread-tab.is-active {
  color: #f4e7c1;
  border-color: rgba(230, 202, 139, 0.39);
  background: rgba(20, 133, 124, 0.76);
}

.thread-tab span {
  color: #e2c88c;
  font-size: 12px;
}

.thread-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
}

.sort-control {
  position: relative;
}

.sort-control select {
  width: 103px;
  height: 28px;
  padding: 0 24px 0 9px;
  color: rgba(235, 228, 203, 0.78);
  border: 1px solid rgba(188, 202, 174, 0.28);
  border-radius: 3px;
  outline: 0;
  background: rgba(3, 48, 50, 0.64);
  font-size: 9px;
  appearance: none;
}

.sort-control::after {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #dfc991;
  content: "⌄";
  pointer-events: none;
}

.board-search-form {
  position: relative;
  display: flex;
  width: 145px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(188, 202, 174, 0.28);
  border-radius: 3px;
  background: rgba(3, 48, 50, 0.64);
}

.board-search-form input {
  width: 100%;
  min-width: 0;
  padding: 0 26px 0 9px;
  color: #e8e4ce;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
}

.board-search-form input::placeholder {
  color: rgba(205, 220, 201, 0.53);
}

.board-search-form button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 27px;
  height: 100%;
  place-items: center;
  color: #b9cbb9;
  border: 0;
  background: transparent;
}

.board-search-form svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.thread-table {
  overflow: hidden;
  border: 1px solid rgba(86, 158, 146, 0.45);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: rgba(5, 76, 76, 0.62);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.17);
}

.thread-table-head,
.thread-list-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 91px 49px 56px 143px;
}

.thread-table-head-recent,
.thread-list-row-recent {
  grid-template-columns: 34px minmax(0, 1.2fr) 88px 91px 49px 56px 143px;
}

.thread-board-chip {
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}

.thread-board-chip a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 6px;
  color: #163c3b;
  border: 1px solid rgba(154, 194, 133, 0.55);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(199, 220, 156, 0.92), rgba(125, 175, 112, 0.88));
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-board-chip a:hover {
  filter: brightness(1.06);
}

.recent-board-links a {
  color: #efe2b8;
  text-decoration: none;
}

.recent-board-links a:hover {
  color: #fff3bd;
}

.thread-table-head {
  min-height: 26px;
  align-items: center;
  color: rgba(239, 229, 201, 0.78);
  border-bottom: 1px solid rgba(77, 52, 32, 0.65);
  background:
    linear-gradient(180deg, rgba(90, 77, 58, 0.98), rgba(53, 66, 57, 0.98)),
    repeating-linear-gradient(2deg, rgba(255, 239, 186, 0.1) 0 1px, transparent 1px 5px);
  font-size: 9px;
}

.thread-table-head span:first-child {
  grid-column: 1 / span 2;
  padding-left: 10px;
}

.thread-table-head span:not(:first-child) {
  text-align: center;
}

.thread-list-row {
  min-height: 58px;
  align-items: center;
  color: rgba(226, 231, 211, 0.78);
  border-bottom: 1px solid rgba(113, 179, 157, 0.18);
  background: linear-gradient(90deg, rgba(4, 74, 75, 0.78), rgba(7, 91, 89, 0.46));
  transition: background 0.2s ease;
}

.thread-list-row:last-child {
  border-bottom: 0;
}

.thread-list-row:hover,
.thread-list-row.is-pinned {
  background: linear-gradient(90deg, rgba(11, 106, 101, 0.79), rgba(7, 91, 89, 0.6));
}

.thread-status-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  place-items: center;
  color: #e9e3c8;
  border: 1px solid rgba(220, 201, 142, 0.58);
  border-radius: 50%;
  background: rgba(72, 132, 123, 0.5);
  font-size: 16px;
}

.thread-status-icon.is-pinned {
  color: #183e3e;
  background: linear-gradient(145deg, #d0b471, #8b7549);
}

.thread-status-icon.is-new {
  color: #ecdfbc;
}

.thread-status-icon.is-locked {
  color: #f0d39d;
  background: rgba(84, 76, 65, 0.65);
}

.thread-list-title {
  min-width: 0;
  padding: 7px 7px 6px 8px;
}

.thread-list-title > a {
  display: block;
  overflow: hidden;
  color: #f0e1b9;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-list-title > a:hover {
  color: #fff3bd;
}

.thread-tags {
  display: flex;
  overflow: hidden;
  margin-top: 3px;
  color: rgba(196, 220, 199, 0.56);
  font-family: "Kanit", sans-serif;
  font-size: 8px;
  gap: 8px;
  white-space: nowrap;
}

.thread-tags span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-author,
.thread-number,
.thread-last {
  min-width: 0;
  font-family: "Kanit", sans-serif;
  font-size: 8px;
}

.thread-author {
  display: flex;
  flex-direction: column;
  padding: 5px 4px;
  color: rgba(234, 223, 191, 0.73);
  line-height: 1.35;
}

.thread-author strong,
.thread-last strong {
  overflow: hidden;
  color: rgba(240, 226, 191, 0.84);
  font-size: 9px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-author small,
.thread-last small {
  color: rgba(202, 224, 201, 0.58);
  font-size: 8px;
}

.thread-number {
  color: rgba(235, 224, 191, 0.83);
  text-align: center;
}

.thread-last {
  display: flex;
  align-items: center;
  padding: 4px 7px 4px 4px;
  gap: 6px;
}

.mini-avatar {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #f6e9c7;
  border: 1px solid rgba(231, 216, 175, 0.52);
  border-radius: 50%;
  background: linear-gradient(145deg, #5d958c, #244f55);
  font-family: "Kanit", sans-serif;
  font-size: 11px;
}

.mini-avatar.avatar-green {
  background: linear-gradient(145deg, #789765, #35564d);
}

.thread-last > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pagination {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(91, 164, 149, 0.4);
  border-radius: 4px;
  background: rgba(5, 72, 73, 0.58);
  gap: 5px;
}

.page-number,
.page-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 8px;
  color: rgba(224, 230, 208, 0.7);
  border: 1px solid rgba(177, 196, 165, 0.25);
  border-radius: 3px;
  background: rgba(6, 54, 57, 0.58);
  font-family: "Kanit", sans-serif;
  font-size: 10px;
}

.page-number:hover,
.page-number.is-current,
.page-next:hover {
  color: #193d3d;
  border-color: #d5bd82;
  background: linear-gradient(180deg, #dfca91, #987f4c);
}

.page-gap {
  color: rgba(222, 199, 145, 0.7);
  padding: 0 3px;
}

.page-next {
  min-width: 65px;
  gap: 7px;
}

.inner-side-panel {
  overflow: hidden;
  border: 1px solid rgba(88, 160, 147, 0.45);
  border-radius: 4px;
  background: rgba(5, 75, 75, 0.62);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.inner-side-panel + .inner-side-panel {
  margin-top: 12px;
}

.inner-panel-title {
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 9px;
  color: #f1e4c4;
  border-bottom: 1px solid rgba(65, 45, 28, 0.72);
  background:
    linear-gradient(90deg, rgba(101, 81, 51, 0.98), rgba(128, 105, 68, 0.96) 55%, rgba(76, 59, 39, 0.98)),
    repeating-linear-gradient(2deg, rgba(255, 239, 186, 0.11) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 1px rgba(255, 237, 185, 0.19);
  gap: 7px;
}

.inner-panel-title > span {
  color: #f0d89e;
  font-size: 14px;
}

.inner-panel-title h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
}

.filter-list {
  padding: 4px 0;
}

.filter-list a {
  display: flex;
  align-items: center;
  min-height: 35px;
  padding: 0 10px;
  color: rgba(222, 230, 210, 0.71);
  border-bottom: 1px solid rgba(111, 176, 155, 0.16);
  font-size: 10px;
  gap: 8px;
}

.filter-list a:last-child {
  border-bottom: 0;
}

.filter-list a:hover,
.filter-list a.is-active {
  color: #f3e6ba;
  background: rgba(23, 125, 117, 0.45);
}

.filter-list a span {
  width: 14px;
  color: #dfc689;
  text-align: center;
  font-size: 13px;
}

.board-stat-list {
  padding: 4px 10px 7px;
}

.board-stat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  color: rgba(214, 227, 207, 0.64);
  border-bottom: 1px solid rgba(111, 176, 155, 0.16);
  font-family: "Kanit", sans-serif;
  font-size: 9px;
  gap: 5px;
}

.board-stat-list div:last-child {
  border-bottom: 0;
}

.board-stat-list strong {
  max-width: 94px;
  overflow: hidden;
  color: rgba(239, 220, 173, 0.84);
  font-weight: 400;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inner-members-panel {
  margin-top: 12px;
}

.thread-detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 96px;
  padding: 8px 2px 13px;
  border-bottom: 1px solid rgba(196, 171, 112, 0.32);
  gap: 15px;
}

.thread-title-copy {
  min-width: 0;
}

.thread-label {
  display: inline-flex;
  align-items: center;
  color: #e2c98e;
  font-family: "Kanit", sans-serif;
  font-size: 10px;
  gap: 5px;
}

.thread-label span {
  color: #6fb09e;
  font-size: 12px;
}

.thread-detail-heading h1 {
  margin: 2px 0 6px;
  overflow: hidden;
  color: #f1e2bd;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);
}

.thread-detail-meta {
  display: flex;
  align-items: center;
  color: rgba(206, 225, 204, 0.62);
  font-family: "Kanit", sans-serif;
  font-size: 9px;
  gap: 7px;
}

.thread-detail-meta strong {
  color: #ecd39e;
  font-weight: 400;
}

.thread-detail-meta span:not(:first-child) {
  margin-left: 7px;
  color: #e4ca8b;
}

.thread-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.back-to-list {
  color: rgba(218, 228, 208, 0.7);
  font-size: 9px;
}

.back-to-list:hover {
  color: #f0d79f;
}

.thread-detail-layout {
  margin-top: 12px;
}

.post-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(91, 163, 149, 0.47);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(4, 71, 73, 0.8), rgba(6, 82, 82, 0.62));
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.17);
}

.post-author {
  display: flex;
  align-items: center;
  padding: 17px 10px 13px;
  flex-direction: column;
  border-right: 1px solid rgba(111, 179, 155, 0.24);
  background: rgba(3, 58, 60, 0.52);
}

.post-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 7px;
  place-items: center;
  color: #f8ebc7;
  border: 2px solid rgba(221, 192, 128, 0.75);
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 35%, rgba(230, 206, 154, 0.35), transparent 40%),
    linear-gradient(145deg, #5b978b, #224d54);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-family: "Kanit", sans-serif;
  font-size: 32px;
}

.post-author-name {
  color: #f1dfb4;
  font-size: 13px;
  font-weight: 500;
}

.post-author-name:hover {
  color: #fff0b6;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-top: 4px;
  padding: 0 12px;
  color: #e8dbb6;
  border: 1px solid rgba(206, 193, 139, 0.42);
  border-radius: 3px;
  background: rgba(12, 122, 115, 0.68);
  font-family: "Kanit", sans-serif;
  font-size: 8px;
}

.author-stats {
  width: 100%;
  margin: 13px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(127, 181, 155, 0.18);
}

.author-stats div {
  display: flex;
  justify-content: space-between;
  padding: 2px 1px;
  color: rgba(200, 222, 199, 0.61);
  font-family: "Kanit", sans-serif;
  font-size: 8px;
  gap: 5px;
}

.author-stats dt,
.author-stats dd {
  margin: 0;
}

.author-stats dd {
  color: rgba(238, 215, 164, 0.82);
  text-align: right;
}

.author-profile-button {
  min-height: 25px;
  margin-top: auto;
  padding: 0 8px;
  color: rgba(231, 224, 197, 0.78);
  border: 1px solid rgba(188, 200, 166, 0.3);
  border-radius: 3px;
  background: rgba(14, 111, 106, 0.58);
  font-size: 9px;
}

.author-profile-button:hover {
  color: #f7e8b8;
  border-color: rgba(229, 198, 128, 0.65);
}

.post-body {
  position: relative;
  min-width: 0;
  padding: 21px 17px 12px;
  color: rgba(232, 234, 214, 0.82);
  font-size: 13px;
  line-height: 1.8;
}

.post-number {
  position: absolute;
  top: 9px;
  right: 13px;
  color: rgba(223, 196, 135, 0.63);
  font-family: "Kanit", sans-serif;
  font-size: 9px;
}

.post-body p {
  max-width: 650px;
  margin: 0 0 11px;
}

.post-content {
  max-width: 720px;
}

.post-content .post-paragraph {
  margin: 0 0 12px;
  line-height: 1.7;
  color: rgba(244, 232, 205, 0.92);
}

.post-content .post-image-wrap {
  margin: 8px 0 14px;
}

.post-content .post-media-link {
  margin: 4px 0;
  word-break: break-all;
  font-size: 12px;
  color: rgba(200, 220, 180, 0.55);
}

.post-content .series-nav {
  margin: 0 0 14px;
}

.post-content .series-nav-btn,
a.series-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(196, 171, 112, 0.55);
  border-radius: 4px;
  color: #163c3b !important;
  background: linear-gradient(180deg, #e8d7a8, #c4ab70);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.post-content .series-nav-btn:hover,
a.series-nav-btn:hover {
  filter: brightness(1.06);
}

.post-content .series-list {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 171, 112, 0.35);
  border-radius: 6px;
  background: rgba(4, 40, 42, 0.55);
}

.post-content .series-list-title {
  margin: 0 0 6px;
  color: #f1e2bd;
  font-size: 15px;
  font-weight: 600;
}

.post-content .series-list-group {
  margin: 0 0 8px;
  color: #8ec5ff;
  font-size: 13px;
  font-weight: 600;
}

.post-content .series-list-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.post-content .series-item {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(154, 194, 133, 0.35);
  border-radius: 4px;
  color: #e8f5d8 !important;
  background: rgba(12, 90, 70, 0.35);
  text-decoration: none !important;
  font-size: 13px;
}

.post-content .series-item:hover {
  background: rgba(20, 120, 90, 0.55);
}

.post-content .series-item-missing {
  opacity: 0.55;
}

.post-content .series-item-current {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(196, 171, 112, 0.55);
  border-radius: 4px;
  color: #163c3b;
  background: linear-gradient(180deg, #e8d7a8, #c4ab70);
  font-size: 13px;
  font-weight: 600;
}

.post-content a.series-item {
  display: inline-block;
  margin: 2px 0;
}

.post-content .series-caption {
  color: rgba(244, 160, 160, 0.9);
  font-style: italic;
}

.post-content img,
.post-body img {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  max-height: 420px;
  margin: 10px 0 12px;
  border: 1px solid rgba(220, 195, 139, 0.48);
  border-radius: 4px;
  background: rgba(2, 28, 30, 0.55);
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.search-result-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  color: rgba(241, 226, 189, 0.82);
  border: 1px solid rgba(196, 171, 112, 0.28);
  border-radius: 4px;
  background: rgba(8, 62, 64, 0.55);
  font-size: 12px;
}

.auth-panel {
  width: min(100%, 420px);
  margin: 36px auto 24px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(91, 163, 149, 0.45);
  border-radius: 4px;
  background: rgba(5, 75, 76, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.auth-panel h1 {
  margin: 0 0 6px;
  color: #f1e2bd;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: 28px;
  font-weight: 400;
}

.auth-panel > p {
  margin: 0 0 16px;
  color: rgba(223, 231, 211, 0.7);
  font-size: 12px;
}

.auth-panel form {
  display: grid;
  gap: 10px;
}

.auth-panel label {
  display: grid;
  gap: 5px;
  color: rgba(232, 228, 206, 0.86);
  font-size: 12px;
}

.auth-panel input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #e8e4ce;
  border: 1px solid rgba(177, 205, 184, 0.31);
  border-radius: 3px;
  background: rgba(2, 34, 36, 0.55);
  font: inherit;
}

.auth-panel input:focus {
  border-color: rgba(222, 194, 131, 0.65);
  outline: 0;
}

.auth-panel .list-create-button {
  width: 100%;
  margin: 4px 0 0;
  justify-content: center;
}

.auth-error {
  margin: 0 0 8px;
  color: #ffd0a8;
  font-size: 12px;
}

.auth-panel .auth-foot {
  margin-top: 14px;
  color: rgba(223, 231, 211, 0.65);
  font-size: 11px;
}

.auth-panel .auth-foot a {
  color: #f0d79f;
}

.post-figure {
  width: min(100%, 390px);
  margin: 13px 0 10px;
}

.post-figure img {
  display: block;
  width: 100%;
  max-height: 222px;
  border: 1px solid rgba(220, 195, 139, 0.48);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.post-figure figcaption {
  margin-top: 3px;
  color: rgba(199, 220, 199, 0.47);
  font-size: 8px;
  line-height: 1.3;
}

.post-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 9px;
  border-top: 1px solid rgba(110, 176, 154, 0.18);
  gap: 6px;
}

.post-actions button,
.post-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: rgba(226, 229, 207, 0.74);
  border: 1px solid rgba(178, 197, 165, 0.29);
  border-radius: 3px;
  background: rgba(6, 57, 60, 0.6);
  font-size: 9px;
}

.post-actions button:hover,
.post-actions a:hover {
  color: #f1d89f;
  border-color: rgba(222, 194, 131, 0.58);
}

.post-actions strong {
  color: #e7ca8c;
  font-weight: 400;
}

.reply-post {
  margin-top: 12px;
}

.reply-post .post-body {
  padding-top: 19px;
}

.reply-composer {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(88, 160, 146, 0.45);
  border-radius: 4px;
  background: rgba(5, 75, 76, 0.65);
}

.reply-composer-title {
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 12px;
  color: #f1e2c1;
  border-bottom: 1px solid rgba(62, 44, 28, 0.68);
  background:
    linear-gradient(90deg, rgba(102, 82, 52, 0.98), rgba(127, 102, 65, 0.95) 55%, rgba(75, 57, 37, 0.98)),
    repeating-linear-gradient(2deg, rgba(255, 239, 186, 0.11) 0 1px, transparent 1px 5px);
  gap: 7px;
}

.reply-composer-title span {
  color: #ebcf92;
  font-size: 14px;
}

.reply-composer-title h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
}

.reply-composer textarea {
  display: block;
  width: calc(100% - 20px);
  min-height: 112px;
  margin: 10px;
  padding: 10px;
  color: #e9e6cf;
  border: 1px solid rgba(175, 201, 176, 0.29);
  border-radius: 3px;
  outline: 0;
  background: rgba(2, 42, 44, 0.62);
  font-size: 11px;
  resize: vertical;
}

.reply-composer textarea::placeholder {
  color: rgba(198, 218, 198, 0.46);
}

.reply-composer textarea:focus {
  border-color: rgba(221, 193, 129, 0.68);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 10px;
  border-top: 1px solid rgba(113, 178, 155, 0.18);
  gap: 8px;
}

.composer-toolbar button {
  min-width: 20px;
  height: 25px;
  padding: 0 4px;
  color: rgba(225, 227, 207, 0.7);
  border: 0;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 14px;
}

.composer-toolbar button:hover {
  color: #f0d59b;
}

.composer-toolbar .composer-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 87px;
  height: 28px;
  margin-left: auto;
  padding: 0 12px;
  color: #173e3c;
  border: 1px solid #9dc488;
  border-radius: 3px;
  background: linear-gradient(180deg, #c9df9f, #76ad70);
  font-family: "Noto Sans Thai", "Kanit", sans-serif;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}

.thread-info-list {
  padding: 3px 10px 7px;
}

.thread-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  color: rgba(215, 228, 207, 0.65);
  border-bottom: 1px solid rgba(111, 176, 155, 0.16);
  font-family: "Kanit", sans-serif;
  font-size: 9px;
  gap: 5px;
}

.thread-info-list div:last-child {
  border-bottom: 0;
}

.thread-info-list strong {
  max-width: 91px;
  overflow: hidden;
  color: rgba(239, 220, 173, 0.85);
  font-weight: 400;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-list {
  padding: 3px 9px 6px;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 47px;
  padding: 4px 0;
  color: rgba(222, 228, 208, 0.72);
  border-bottom: 1px solid rgba(111, 176, 155, 0.16);
  gap: 7px;
}

.related-list a:last-child {
  border-bottom: 0;
}

.related-list a:hover strong {
  color: #fff0b5;
}

.related-icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #e6cf93;
  border: 1px solid rgba(215, 191, 130, 0.48);
  border-radius: 50%;
  font-size: 12px;
}

.related-list a > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.related-list strong {
  overflow: hidden;
  color: rgba(235, 223, 190, 0.81);
  font-size: 9px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-list small {
  margin-top: 1px;
  overflow: hidden;
  color: rgba(201, 222, 199, 0.55);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .inner-page {
    padding-right: 28px;
    padding-left: 28px;
  }

  .inner-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
  }

  .thread-table-head,
  .thread-list-row {
    grid-template-columns: 32px minmax(0, 1fr) 76px 45px 48px 122px;
  }

  .thread-table-head-recent,
  .thread-list-row-recent {
    grid-template-columns: 32px minmax(0, 1fr) 72px 76px 45px 48px 122px;
  }

  .post-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (max-width: 830px) {
  .inner-page {
    padding-right: 20px;
    padding-left: 20px;
  }

  .board-page-header {
    padding-right: 4px;
    padding-left: 4px;
  }

  .board-page-copy p {
    max-width: 470px;
  }

  .thread-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-tabs {
    min-height: 35px;
    overflow-x: auto;
  }

  .thread-tools {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .inner-layout {
    display: block;
  }

  .inner-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: 12px;
    gap: 10px;
  }

  .inner-side-panel + .inner-side-panel,
  .inner-members-panel {
    margin-top: 0;
  }

  .thread-detail-heading {
    align-items: start;
    flex-direction: column;
  }

  .thread-heading-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .inner-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .breadcrumbs {
    overflow-x: auto;
    padding-top: 12px;
    white-space: nowrap;
  }

  .board-page-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 5px;
    padding-bottom: 13px;
  }

  .board-page-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .board-page-copy {
    flex: 1 1 calc(100% - 65px);
  }

  .board-page-copy h1 {
    font-size: 25px;
  }

  .board-page-copy p {
    margin-top: 3px;
    font-size: 9px;
  }

  .board-page-meta {
    flex-wrap: wrap;
    font-size: 8px;
    gap: 3px 9px;
  }

  .list-create-button {
    width: 100%;
    margin: 7px 0 0;
  }

  .thread-toolbar {
    padding: 5px;
  }

  .thread-tabs {
    margin-right: -5px;
    padding-right: 5px;
  }

  .thread-tab {
    padding: 0 9px;
    font-size: 9px;
  }

  .thread-tools {
    display: grid;
    grid-template-columns: 103px minmax(0, 1fr);
  }

  .board-search-form {
    width: 100%;
  }

  .thread-table-head {
    display: none;
  }

  .thread-list-row {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    padding-top: 7px;
  }

  .thread-board-chip {
    grid-column: 2;
    justify-self: start;
    padding: 0 4px 6px;
    text-align: left;
  }

  .thread-status-icon {
    margin-top: 2px;
  }

  .thread-list-title {
    padding: 3px 8px 6px 4px;
  }

  .thread-list-title > a {
    font-size: 11px;
  }

  .thread-tags {
    gap: 6px;
  }

  .thread-author {
    grid-column: 2;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    padding: 0 6px 6px 4px;
    gap: 6px;
  }

  .thread-author small::before {
    content: "· ";
  }

  .thread-number {
    display: inline-flex;
    grid-column: 2;
    justify-content: flex-start;
    margin: 0 0 5px 4px;
    color: rgba(226, 218, 187, 0.66);
    text-align: left;
    gap: 4px;
  }

  .thread-list-row .thread-number:nth-of-type(3)::before {
    content: "ตอบกลับ ";
  }

  .thread-list-row .thread-number:nth-of-type(4)::before {
    content: "เข้าชม ";
  }

  .thread-last {
    grid-column: 1 / -1;
    padding: 5px 8px 8px 40px;
    border-top: 1px solid rgba(113, 179, 157, 0.14);
  }

  .pagination {
    overflow-x: auto;
  }

  .inner-sidebar {
    display: block;
  }

  .inner-side-panel + .inner-side-panel,
  .inner-members-panel {
    margin-top: 10px;
  }

  .thread-detail-heading h1 {
    font-size: 25px;
  }

  .thread-detail-meta {
    flex-wrap: wrap;
    font-size: 8px;
  }

  .thread-heading-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 7px;
  }

  .back-to-list {
    align-self: flex-start;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-author {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 66px;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(111, 179, 155, 0.24);
    text-align: left;
    gap: 2px 8px;
  }

  .post-avatar {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 22px;
  }

  .post-author-name {
    align-self: end;
    font-size: 11px;
  }

  .member-badge {
    align-self: end;
    justify-self: start;
    min-height: 16px;
    padding: 0 8px;
  }

  .author-stats {
    display: flex;
    grid-column: 2 / -1;
    grid-row: 2;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 10px;
  }

  .author-stats div {
    display: flex;
    gap: 3px;
  }

  .author-profile-button {
    display: none;
  }

  .post-body {
    padding: 17px 12px 10px;
    font-size: 12px;
    line-height: 1.7;
  }

  .post-figure {
    width: 100%;
  }

  .post-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .reply-composer textarea {
    min-height: 95px;
  }

  .composer-toolbar {
    gap: 3px;
  }
}

/* ปกหนัง = รูปปกในโพสต์ + ปุ่มดู/ดาวน์โหลด (ไม่ใช่กรอบตัวเล่น) */
.clip-card {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  max-width: min(100%, 560px);
}

.clip-poster {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(196, 171, 112, 0.35);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(2, 28, 30, 0.55);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.clip-poster-img,
.clip-card .clip-poster-img.post-gallery-image {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #041c1e;
  box-shadow: none;
  cursor: zoom-in;
}

.clip-poster-img[hidden] {
  display: none !important;
}

.clip-poster-empty {
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 20%, rgba(240, 215, 159, 0.18), transparent 42%),
    linear-gradient(145deg, #0b3d3c 0%, #062826 48%, #0a4a45 100%);
}

.clip-poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 16px;
  color: #f3e6c2;
}

.clip-poster:not(.clip-poster-empty) .clip-poster-fallback {
  display: none;
}

.clip-cover-mark {
  font-family: "Chonburi", serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.clip-cover-label {
  font-size: 12px;
  opacity: 0.86;
}

.clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

@media (max-width: 720px) {
  .clip-card {
    max-width: 100%;
  }

  .clip-actions .clip-btn {
    min-height: 44px;
  }
}

.clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.clip-btn span {
  font-size: 13px;
  line-height: 1;
}

.clip-btn-play {
  color: #163c3b;
  border: 1px solid #9ac285;
  background: linear-gradient(180deg, #c7dc9c, #7daf70);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32), 0 2px 8px rgba(0, 0, 0, 0.22);
}

.clip-btn-download {
  color: #f5e9c9;
  border: 1px solid rgba(219, 193, 131, 0.66);
  background: linear-gradient(180deg, rgba(25, 130, 122, 0.98), rgba(7, 80, 79, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 2px 8px rgba(0, 0, 0, 0.22);
}

.clip-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.clip-modal[hidden] {
  display: none !important;
}

.clip-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.clip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 18, 20, 0.78);
  backdrop-filter: blur(3px);
}

.clip-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid rgba(196, 171, 112, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 62, 64, 0.96), rgba(4, 40, 42, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.clip-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(110, 176, 154, 0.22);
}

.clip-modal-kicker {
  margin: 0 0 3px;
  color: rgba(240, 215, 159, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.clip-modal-head h2 {
  margin: 0;
  color: #f1e2bd;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.25;
}

.clip-modal-close {
  width: 34px;
  height: 34px;
  color: #f1e2bd;
  border: 1px solid rgba(187, 201, 177, 0.36);
  border-radius: 4px;
  background: rgba(14, 81, 79, 0.56);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.clip-modal-stage {
  position: relative;
  background: #02191b;
}

.clip-modal-stage video,
.clip-embed {
  display: block;
  width: 100%;
  max-height: min(70vh, 520px);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
}

.clip-embed[hidden],
.clip-modal-stage video[hidden] {
  display: none !important;
}

.clip-modal-status {
  position: absolute;
  inset: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  color: #f1e2bd;
  border: 1px solid rgba(196, 171, 112, 0.35);
  border-radius: 4px;
  background: rgba(4, 40, 42, 0.92);
  font-size: 14px;
  line-height: 1.45;
  pointer-events: none;
}

.clip-modal-status[hidden] {
  display: none !important;
}

.clip-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px 14px;
}

@media (max-width: 720px) {
  .clip-modal {
    padding: 8px;
    align-items: end;
  }

  .clip-modal-panel {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .clip-modal-stage video,
  .clip-embed {
    max-height: 48vh;
  }

  .clip-modal-foot {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .clip-modal-foot .clip-btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
  }

  .clip-actions .clip-btn {
    min-height: 44px;
  }
}

.clip-btn-close {
  color: #e8e5d4;
  border: 1px solid rgba(187, 201, 177, 0.36);
  background: rgba(14, 81, 79, 0.56);
}

/* รูปในกระทู้ + ไลท์บ็อกซ์อัลบั้ม */
.post-content img,
.post-gallery-image {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  max-height: 420px;
  margin: 10px 0 12px;
  border: 1px solid rgba(220, 195, 139, 0.48);
  border-radius: 4px;
  background: rgba(2, 28, 30, 0.55);
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
}

.photo-lightbox[hidden],
.member-gate[hidden] {
  display: none !important;
}

.photo-lightbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 14, 16, 0.88);
  backdrop-filter: blur(4px);
}

.photo-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(960px, 100%);
  text-align: center;
}

.photo-lightbox-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(82vh, 860px);
  margin: 0 auto;
  border: 1px solid rgba(220, 195, 139, 0.4);
  border-radius: 6px;
  background: #02191b;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.photo-lightbox-figure figcaption {
  margin-top: 10px;
  color: rgba(241, 226, 189, 0.82);
  font-size: 12px;
}

.photo-lightbox-nav,
.photo-lightbox-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #f1e2bd;
  border: 1px solid rgba(187, 201, 177, 0.36);
  border-radius: 999px;
  background: rgba(8, 62, 64, 0.88);
  cursor: pointer;
}

.photo-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  transform: translateY(-50%);
}

.photo-lightbox-nav.is-prev { left: 16px; }
.photo-lightbox-nav.is-next { right: 16px; }

.photo-lightbox-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.member-gate {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.member-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 18, 20, 0.78);
  backdrop-filter: blur(3px);
}

.member-gate-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 22px 20px;
  border: 1px solid rgba(196, 171, 112, 0.45);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 173, 114, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(8, 70, 72, 0.98), rgba(4, 40, 42, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.member-gate-x {
  position: absolute;
  top: 10px;
  right: 10px;
}

.member-gate-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  place-items: center;
  color: #f1e2bd;
  border: 1px solid rgba(231, 204, 142, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, #35736d, #16474c);
  font-size: 24px;
}

.member-gate-kicker {
  margin: 0 0 6px;
  color: rgba(240, 215, 159, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.member-gate-panel h2 {
  margin: 0 0 10px;
  color: #f1e2bd;
  font-family: "Chonburi", "Noto Sans Thai", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.member-gate-copy {
  margin: 0 0 18px;
  color: rgba(223, 231, 211, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.member-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.member-gate-actions .clip-btn {
  min-width: 148px;
}

.member-gate-note {
  margin: 14px 0 0;
  color: rgba(199, 220, 199, 0.55);
  font-size: 11px;
}

@media (max-width: 720px) {
  .photo-lightbox {
    padding: 8px;
  }

  .photo-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .photo-lightbox-nav.is-prev { left: 8px; }
  .photo-lightbox-nav.is-next { right: 8px; }

  .photo-lightbox-figure img {
    max-height: 74vh;
  }
}

/* —— หน้ารายการหนัง AV (กริดปกแนวนอน) —— */
.board-page-header-av {
  margin-bottom: 8px;
}

.av-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.av-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  color: rgba(200, 214, 196, 0.78);
  border: 1px solid rgba(207, 191, 143, 0.28);
  border-radius: 999px;
  background: rgba(4, 40, 43, 0.35);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.av-chip:hover {
  color: #f0e6c8;
  border-color: rgba(209, 180, 123, 0.55);
}

.av-chip.is-on {
  color: #04282b;
  border-color: #d1b47b;
  background: linear-gradient(120deg, #d1b47b, #ecd49c);
  font-weight: 600;
}

.av-catalog {
  margin-bottom: 28px;
}

.av-poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
}

.av-poster-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.av-poster-card:hover {
  transform: translateY(-3px);
}

.av-poster-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(209, 180, 123, 0.2);
  border-radius: 5px;
  background: #0a3033;
}

.av-poster-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.av-poster-cover.is-empty {
  display: grid;
  place-items: center;
}

.av-poster-fallback {
  color: rgba(209, 180, 123, 0.55);
  font-family: Chonburi, serif;
  font-size: 15px;
}

.av-poster-code {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 2px 7px;
  color: #ecd49c;
  border-radius: 3px;
  background: rgba(4, 40, 43, 0.84);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.av-poster-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 6px;
  color: #fff;
  border-radius: 2px;
  background: #0b6866;
  font-size: 10px;
  font-weight: 700;
}

.av-poster-meta {
  margin-top: 8px;
}

.av-poster-title {
  display: -webkit-box;
  overflow: hidden;
  color: #e8e2d0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.av-poster-card:hover .av-poster-title {
  color: #f0d79e;
}

.av-poster-sub {
  display: block;
  margin-top: 4px;
  color: rgba(168, 192, 183, 0.75);
  font-size: 11px;
}

.av-catalog .pagination {
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .av-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .av-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .av-poster-title {
    font-size: 12px;
  }
}

/* กริดหนังฝรั่ง — ปก DVD แนวตั้ง (5:7) */
.western-poster-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
}

.western-poster-cover {
  aspect-ratio: 5 / 7;
}

.western-poster-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center top !important;
}

.board-page-header-western .board-page-copy p {
  max-width: 42rem;
}

@media (max-width: 1100px) {
  .western-poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .western-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .western-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
}

/* บล็อกข้อมูลหนัง AV ในโพสต์ — มืออาชีพ อ่านเร็ว */
.movie-dossier {
  margin: 16px 0 18px;
  padding: 14px 16px 16px;
  max-width: min(100%, 560px);
  border: 1px solid rgba(196, 171, 112, 0.38);
  border-radius: 6px;
  background:
    linear-gradient(155deg, rgba(11, 72, 74, 0.92) 0%, rgba(4, 36, 38, 0.96) 55%, rgba(6, 48, 50, 0.94) 100%);
  box-shadow:
    0 1px 0 rgba(240, 215, 159, 0.12) inset,
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.movie-dossier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(207, 191, 143, 0.22);
}

.movie-dossier-code {
  font-family: "Kanit", "Noto Sans Thai", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.movie-dossier-code-muted {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.movie-dossier-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(196, 171, 112, 0.28);
  border-radius: 999px;
  background: rgba(2, 28, 30, 0.45);
  color: var(--paper-soft);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.movie-badge-leak {
  border-color: rgba(220, 120, 100, 0.45);
  background: rgba(90, 28, 22, 0.45);
  color: #f3c4b8;
}

.movie-dossier-grid {
  display: grid;
  gap: 8px 0;
  margin: 0 0 12px;
}

.movie-meta-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
}

.movie-meta-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.movie-meta-row dd {
  margin: 0;
  color: var(--paper);
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.movie-meta-row-ja dd {
  font-size: 12.5px;
  opacity: 0.88;
  line-height: 1.5;
}

.movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.movie-genre {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(43, 138, 131, 0.45);
  border-radius: 4px;
  background: rgba(11, 104, 102, 0.28);
  color: #d8efe8;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .movie-dossier {
    padding: 12px 12px 14px;
    margin: 12px 0 14px;
  }

  .movie-dossier-code {
    font-size: 18px;
  }

  .movie-meta-row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 4px 10px;
  }

  .movie-meta-row dt {
    font-size: 11px;
  }

  .movie-meta-row dd {
    font-size: 13px;
  }
}

