@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish.woff2") format("woff2-variations"), url("/assets/fonts/mulish.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

/* TradieMate brand: Poppins headings, Mulish body, black on yellow for the main actions */
:root {
  --bg: #f6f6f3;
  --card: #ffffff;
  --ink: #14133b;
  --ink-2: #3b3a58;
  --muted: #6d6c80;
  --line: #e6e5df;
  --yellow: #feda15;
  --yellow-soft: #fff6c4;
  --black: #000000;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 19, 59, 0.05), 0 14px 34px -14px rgba(20, 19, 59, 0.22);
  --head: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.page { max-width: 1240px; margin: 0 auto; padding: 20px 24px 40px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; margin-bottom: 20px; }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; display: block; }
.sender { display: flex; align-items: center; gap: 12px; text-align: right; }
.sender .who b { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.25; }
.sender .who span { color: var(--muted); font-size: 13.5px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--black); color: var(--yellow); font-family: var(--head); font-weight: 700; font-size: 14px;
}

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr; } }

.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0d0e10; box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #0d0e10; display: block; }
.big-play {
  position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity 0.2s ease;
}
.big-play .disc {
  width: 90px; height: 90px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(254, 218, 21, 0.28);
  transition: transform 0.15s ease;
}
.big-play:hover .disc { transform: scale(1.06); }
.big-play svg { width: 38px; height: 38px; fill: var(--black); margin-left: 5px; }
.big-play .len {
  background: var(--black); color: #fff; font-family: var(--head); font-weight: 600; font-size: 13px;
  padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.big-play.gone { opacity: 0; pointer-events: none; }

.under { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 22px; }
h1 { font-family: var(--head); font-size: 30px; line-height: 1.18; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 6px; text-wrap: balance; }
.meta { margin: 0; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.desc { color: var(--ink-2); max-width: 70ch; margin: 14px 0 0; white-space: pre-line; }
.desc:empty { display: none; }
.tools { display: flex; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.pill {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; font-family: var(--head); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pill:hover { border-color: var(--ink); }

.cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--yellow); color: var(--black); text-decoration: none; font-family: var(--head); font-weight: 700;
  padding: 14px 26px; border-radius: 50px;
}
.cta:hover { background: #ffe34d; }

.side { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.card h2 { font-family: var(--head); font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.count { color: var(--muted); font-weight: 600; }

.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li { margin: 0; }
.chapters button {
  width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left;
  border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; line-height: 1.4;
}
.chapters button:hover { background: #f5f4ef; }
.chapters button.on { background: var(--yellow-soft); }
.chapters button.on .t { color: var(--black); }
.t {
  font-family: var(--head); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--muted);
  min-width: 38px; flex-shrink: 0;
}

.comments { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comments:empty { display: none; }
.c { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.c .av { width: 30px; height: 30px; border-radius: 50%; background: #ecebe5; display: grid; place-items: center; font-family: var(--head); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.c.owner .av { background: var(--black); color: var(--yellow); }
.c .hd { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; font-size: 14px; }
.c .hd b { font-weight: 800; }
.c .hd .when { color: var(--muted); font-size: 12.5px; }
.chip {
  border: 0; background: var(--yellow-soft); color: var(--black); font-family: var(--head); font-weight: 600; font-size: 12px;
  padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.chip:hover { background: var(--yellow); }
.c p { margin: 3px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.c.reply { margin-left: 40px; }

.compose textarea {
  width: 100%; resize: vertical; min-height: 80px; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: #fbfbf9; outline: none;
}
.compose textarea:focus, .compose .name:focus { border-color: var(--ink); background: #fff; }
.compose .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); user-select: none; }
.stamp input { accent-color: var(--black); margin: 0; }
.stamp b { color: var(--ink); font-variant-numeric: tabular-nums; }
.compose .name { flex: 1 1 120px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfbf9; outline: none; }
.compose .name[hidden] { display: none; }
.send {
  margin-left: auto; border: 0; background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700;
  padding: 10px 20px; border-radius: 50px;
}
.send:hover { background: #ffe34d; }
.send:disabled { opacity: 0.5; cursor: default; }
.ok { margin: 8px 0 0; font-size: 13.5px; color: #1a7f45; }

.banner { background: var(--yellow-soft); border: 1px solid #f1df7a; color: #4d4100; font-size: 13px; padding: 7px 12px; border-radius: 10px; }

.foot { margin-top: 40px; color: var(--muted); font-size: 13px; text-align: center; }
.foot b { font-family: var(--head); font-weight: 700; color: var(--ink); }

.missing { max-width: 560px; padding-top: 16vh; text-align: center; }
.missing img { height: 56px; width: auto; margin-bottom: 26px; }
.missing p { color: var(--muted); }

@media (max-width: 640px) {
  .page { padding: 14px 14px 32px; }
  .brand img { height: 38px; }
  .sender .who span { display: none; }
  .avatar { width: 36px; height: 36px; font-size: 12.5px; }
  .stage { border-radius: 12px; margin: 0 -2px; }
  h1 { font-size: 23px; }
  .big-play .disc { width: 72px; height: 72px; }
  .big-play svg { width: 30px; height: 30px; }
}
