:root {
  --navy: #0b1c33;
  --navy-mid: #10243f;
  --navy-deep: #071018;
  --gold: #c9a227;
  --gold-hot: #e0b93a;
  --cream: #f4efe4;
  --paper: #f7f4ee;
  --muted: #8b97a8;
  --line: rgba(201, 162, 39, 0.28);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.watch-body {
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: #4d5d73;
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.wordmark span { color: var(--gold); font-style: italic; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  align-items: center;
}
.nav a {
  color: #e8edf3;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a.active { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav a.donate {
  background: var(--gold);
  color: #1a1406;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

.kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.2rem 0 0.4rem;
  letter-spacing: -0.02em;
}
.lede { color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--navy);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #163056, #0b1c33 55%, #1a1406);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-body { padding: 0.9rem 1rem 1.1rem; }
.card-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.meta { color: var(--muted); font-size: 0.8rem; }

.player-shell {
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  margin: 1.25rem 0 1.25rem;
}
.player-shell iframe, .player-shell video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.episode-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .episode-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}

.email-card {
  background: var(--navy);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.2rem;
}
.email-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  font-weight: 500;
}
.email-card p { color: var(--muted); margin: 0 0 0.9rem; font-size: 0.92rem; }
.email-card label { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.email-card input[type="email"],
.email-card input[type="text"] {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid #2a3d58;
  color: var(--cream);
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #d5dbe3;
  margin: 0.2rem 0 0.9rem;
}
.consent input { margin-top: 0.2rem; }
button.gold {
  background: var(--gold);
  color: #1a1406;
  border: 0;
  font-weight: 700;
  padding: 0.75rem 1rem;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.04em;
}
button.gold:hover { background: var(--gold-hot); }
.fine { font-size: 0.75rem; color: var(--muted); margin-top: 0.7rem; }
.success { display: none; color: var(--gold); font-family: var(--font-serif); font-size: 1.2rem; }

.side-actions a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
}
.side-actions a strong { color: var(--gold); }

.related h3 { font-family: var(--font-serif); font-weight: 500; }
.related a { color: var(--cream); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.4rem 1.5rem 2rem;
  font-size: 0.8rem;
}
.site-footer a { color: var(--gold); }

/* owned file player */
.player-shell video.watch-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
.outlinks a { color: #d4a84b; text-decoration: underline; text-underline-offset: 2px; }
.outlinks a:hover { color: #f0c96a; }

.thumb {
  position: relative;
  overflow: hidden;
  background: #0b1c33;
  aspect-ratio: 9/16;
  max-height: 280px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,.55), transparent 45%);
  pointer-events: none;
}

/* likes + comments */
.jt-engage {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201,162,39,.22);
}
.jt-engage-bar { margin-bottom: 1.1rem; }
.jt-like-btn {
  appearance: none;
  border: 1px solid rgba(201,162,39,.45);
  background: #0b1f3a;
  color: #f3e6c0;
  border-radius: 999px;
  padding: .45rem .95rem;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.jt-like-btn:hover { border-color: #c9a227; }
.jt-like-btn.liked, .jt-like-btn[aria-pressed="true"] {
  background: rgba(201,162,39,.18);
  color: #f0c96a;
}
.jt-like-heart { color: #e2557c; }
.jt-like-count { opacity: .85; font-variant-numeric: tabular-nums; }
.jt-comments h4 {
  margin: 0 0 .75rem;
  font-family: Georgia, serif;
  font-weight: 600;
  color: #f3e6c0;
}
.jt-comment {
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.jt-comment-meta { font-size: .8rem; color: #8b97a8; margin-bottom: .25rem; }
.jt-comment-text { margin: 0; color: #e8eef7; white-space: pre-wrap; }
.jt-comment-empty { color: #8b97a8; font-size: .92rem; }
.jt-comment-form {
  display: grid;
  gap: .55rem;
  margin-top: .9rem;
}
.jt-comment-form input,
.jt-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #071526;
  border: 1px solid rgba(201,162,39,.28);
  color: #e8eef7;
  border-radius: 8px;
  padding: .55rem .7rem;
  font: inherit;
}
.jt-comment-form button[type="submit"] {
  justify-self: start;
  appearance: none;
  border: 0;
  background: #c9a227;
  color: #0b1f3a;
  font-weight: 700;
  border-radius: 8px;
  padding: .55rem 1rem;
  cursor: pointer;
}
.jt-comment-status { color: #f0c96a; font-size: .85rem; margin: 0; }
.jt-sr { display: grid; gap: .25rem; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #8b97a8; }

/* Instagram-style heart like */
.jt-like-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f3e6c0;
  padding: .2rem .15rem;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  line-height: 1;
}
.jt-like-btn:hover { background: transparent; border: 0; }
.jt-ig-heart { display: block; overflow: visible; }
.jt-ig-heart-path {
  fill: none;
  stroke: #f3e6c0;
  stroke-width: 1.7;
  stroke-linejoin: round;
  transition: fill .15s ease, stroke .15s ease, transform .15s ease;
}
.jt-like-btn.liked .jt-ig-heart-path,
.jt-like-btn[aria-pressed="true"] .jt-ig-heart-path {
  fill: #ff3040;
  stroke: #ff3040;
}
.jt-like-btn.jt-pop .jt-ig-heart {
  animation: jt-heart-pop .35s ease;
}
@keyframes jt-heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.jt-like-count { opacity: .9; font-size: 1rem; font-variant-numeric: tabular-nums; color: #e8eef7; }

.jt-engage-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.jt-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f3e6c0;
  padding: .15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1;
}
.jt-icon-btn .jt-icon-stroke {
  stroke: #f3e6c0;
  fill: none;
}
.jt-icon-btn:hover .jt-icon-stroke { stroke: #fff; }
.jt-icon-btn.jt-shared .jt-icon-stroke { stroke: #c9a227; }
.jt-comment-count {
  font-size: .95rem;
  color: #e8eef7;
  font-variant-numeric: tabular-nums;
  min-width: .5rem;
}
.jt-comments h4 { display: none; }

/* Visible engage block under posts */
.jt-engage {
  margin-top: 1.25rem;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: #0b1f3a;
}
.jt-likes-line {
  margin: 0 0 .85rem;
  font-weight: 700;
  font-size: .95rem;
  color: #0b1f3a;
}
.jt-engage-bar .jt-like-btn,
.jt-engage-bar .jt-icon-btn {
  color: #0b1f3a;
}
.jt-ig-heart-path {
  stroke: #0b1f3a !important;
}
.jt-like-btn.liked .jt-ig-heart-path,
.jt-like-btn[aria-pressed="true"] .jt-ig-heart-path {
  fill: #ff3040 !important;
  stroke: #ff3040 !important;
}
.jt-icon-btn .jt-icon-stroke {
  stroke: #0b1f3a !important;
}
.jt-icon-btn:hover .jt-icon-stroke { stroke: #163056 !important; }
.jt-like-count, .jt-comment-count { color: #0b1f3a !important; }
.jt-comment-meta { color: #5c6b7a !important; }
.jt-comment-text { color: #0b1f3a !important; }
.jt-comment-empty { color: #5c6b7a !important; }
.jt-comment {
  border-bottom: 1px solid rgba(11,31,58,.1);
}
.jt-comment-form input,
.jt-comment-form textarea {
  background: #fff !important;
  border: 1px solid rgba(11,31,58,.22) !important;
  color: #0b1f3a !important;
}
.jt-sr { color: #5c6b7a !important; }
.jt-comments { display: block !important; }

/* Dark Watch pages */
.episode .jt-engage,
.player-shell ~ .jt-engage,
[class*="episode"] .jt-engage {
  background: rgba(7,21,37,.92);
  border-color: rgba(201,162,39,.28);
  color: #e8eef7;
}
.episode .jt-likes-line,
.watch .jt-likes-line {
  color: #f3e6c0;
}
.episode .jt-ig-heart-path,
.watch .jt-ig-heart-path { stroke: #f3e6c0 !important; }
.episode .jt-icon-btn .jt-icon-stroke,
.watch .jt-icon-btn .jt-icon-stroke { stroke: #f3e6c0 !important; }
.episode .jt-like-count,
.episode .jt-comment-count,
.episode .jt-comment-text,
.watch .jt-like-count,
.watch .jt-comment-count,
.watch .jt-comment-text { color: #e8eef7 !important; }
.episode .jt-comment-meta,
.episode .jt-comment-empty,
.watch .jt-comment-meta,
.watch .jt-comment-empty { color: #8b97a8 !important; }
.episode .jt-comment-form input,
.episode .jt-comment-form textarea,
.watch .jt-comment-form input,
.watch .jt-comment-form textarea {
  background: #071526 !important;
  border-color: rgba(201,162,39,.28) !important;
  color: #e8eef7 !important;
}
