:root {
  color: #1e1a16;
  background: #f3ecdf;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --paper: #f3ecdf;
  --card: #fffdf8;
  --ink: #1e1a16;
  --muted: #6e655c;
  --line: #e0d4c4;
  --red: #8d2e2b;
  --red-dark: #6e221f;
  --ok: #1f6a45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, strong {
  font-family: "Iowan Old Style", Palatino, "Songti SC", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 { font-size: 2rem; line-height: 1.15; margin: 0; }

h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }

p { margin: 0; }

a { color: var(--red-dark); }

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.narrow, .phone { width: min(100%, 440px); }

.panel, .card, .phone {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(62, 42, 28, 0.08);
}

.panel { padding: 28px; }

.phone { padding: 18px 16px 12px; }

.eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta { color: var(--muted); font-size: 0.92rem; }

.stack { display: grid; gap: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field { display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

textarea { resize: vertical; }

.button, .button.secondary, .quiet {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
}

.button { background: var(--red); color: white; }

.button:hover { background: var(--red-dark); }

.button.secondary, .quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.quiet { padding-inline: 12px; }

.actions, .upload-row, .pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8efe8;
}

.notice:empty { display: none; }

.notice.error { color: var(--red-dark); }

.notice.info { color: var(--ok); }

.shell { min-height: 100vh; }

.topbar, .phone-bar, .split-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.topbar {
  padding: 22px 28px 0;
}

.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
}

.sidenav, .tabbar {
  display: flex;
  gap: 8px;
}

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

.sidenav button, .tabbar button {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 999px;
  padding: 10px 14px;
}

.sidenav button.active, .tabbar button.active {
  background: #f6e4dc;
  color: var(--red-dark);
}

.content { padding-bottom: 40px; }

.card { padding: 16px; box-shadow: none; }

.video-card {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

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

.tag, .chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f6e4dc;
  color: var(--red-dark);
  font-size: 0.82rem;
}

.chip.ok { background: #e5f2ea; color: var(--ok); }

.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.check input, .check select { width: auto; }

.participant {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.player {
  width: 100%;
  max-height: 360px;
  background: #211c18;
  border-radius: 14px;
}

.comment {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.comment.is-focus {
  background: #fbf4ee;
  outline: 2px solid var(--red);
  border-radius: 12px;
  padding: 12px;
}

.comment.is-hidden { opacity: 0.55; }

.reply-line { color: var(--red-dark); }

.profile { display: grid; gap: 10px; margin: 0; }

.profile div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

.profile dt { color: var(--muted); }

.profile dd { margin: 0; }

.tabbar {
  position: sticky;
  bottom: 0;
  justify-content: space-around;
  background: var(--card);
  padding-top: 8px;
}

.home-links { display: flex; gap: 12px; margin-top: 18px; }

.home-links a {
  text-decoration: none;
  background: var(--red);
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; padding: 12px; }
  .sidenav { flex-direction: row; }
  .grid, .participant { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
  .topbar { padding: 16px 12px 0; }
}
