:root {
  --ink: #141b2d;          /* night sky header */
  --ink-2: #1f2942;
  --gold: #c9a45c;
  --gold-soft: #e9d7a8;
  --paper: #f7f2e8;        /* parchment page */
  --card: #ffffff;
  --text: #2a2622;
  --muted: #6b6258;
  --line: #e4d9c4;
  --zebra: #fbf7ef;
  --accent: #8c2f2f;       /* seal red for small accents */
  --radius: 10px;
  --font-head: "Philosopher", "Noto Sans Thai", "Noto Sans SC", serif;
  --font-body: "Barlow", "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); border-bottom: 2px solid var(--gold); }
.top__inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.top__brand img { height: 52px; width: auto; display: block; }
.top__title { font-family: var(--font-head); color: var(--gold-soft); font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang { display: flex; gap: 4px; flex-shrink: 0; }
.lang button {
  font: 600 13px/1 var(--font-body); letter-spacing: .04em;
  color: var(--gold-soft); background: transparent; border: 1px solid rgba(201,164,92,.45);
  border-radius: 6px; padding: 7px 9px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lang button:hover { border-color: var(--gold); }

/* Breadcrumb */
.crumb { margin: 20px 0 6px; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* Headings */
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; }
h1 { font-size: 32px; margin: 8px 0 18px; }
h2 { font-size: 22px; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h2::before { content: ""; display: inline-block; width: 6px; height: 18px; background: var(--gold); margin-right: 10px; vertical-align: -2px; border-radius: 2px; }

/* Home */
.hero { padding: 28px 0 8px; }
.hero p { color: var(--muted); max-width: 680px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0 32px; }
.card {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--gold); transform: translateY(-1px); }
.card__kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card__title { font-family: var(--font-head); font-size: 20px; color: var(--ink); margin: 4px 0 2px; }
.card__meta { font-size: 14px; color: var(--muted); }
.card--soon { opacity: .6; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th { background: var(--ink); color: var(--gold-soft); font-weight: 600; font-size: 14px; text-align: center; padding: 10px 8px; }
.tbl td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: middle; }
.tbl tbody tr:nth-child(even) td { background: var(--zebra); }
.tbl .c-icon { width: 12%; text-align: center; }
.tbl .c-name { width: 22%; text-align: center; }
.tbl .c-lv   { width: 14%; text-align: center; white-space: nowrap; }
.tbl .c-name2 { width: 34%; text-align: center; }
.tbl td.c-name, .tbl td.c-name2 { font-weight: 600; color: var(--ink); }
.tbl td.c-lv { color: var(--muted); }
.tbl .c-desc { width: 52%; }
.tbl img { width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; }

.note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.empty { padding: 40px 0; color: var(--muted); }

/* Footer */
.foot { margin-top: 48px; background: var(--ink); color: rgba(233,215,168,.8); font-size: 13px; }
.foot__inner { padding: 18px 16px; }

/* Phone: table rows become cards */
@media (max-width: 640px) {
  .top__brand img { height: 40px; }
  .top__title { font-size: 17px; }
  .lang button { padding: 6px 7px; font-size: 12px; }
  h1 { font-size: 26px; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl { border: 0; background: transparent; }
  .tbl thead { display: none; }
  .tbl tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 10px 12px; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
  .tbl tbody tr:nth-child(even) td { background: transparent; }
  .tbl td { border: 0; padding: 2px 0; width: auto !important; text-align: left !important; }
  .tbl .c-icon { grid-row: span 2; }
  .tbl .c-lv { font-size: 14px; }
  .tbl .c-desc { grid-column: 1 / -1; padding-top: 6px; }
  .tbl--talent tr { grid-template-columns: 1fr auto; }
  .tbl--talent .c-name2 { text-align: left; }
}
@media (max-width: 380px) {
  .top__title { display: none; }
}
