/* engfeelfan.com v1 — design tokens carried over from the prototype template */
:root {
  --bg: #080d18;
  --panel: #101a2b;
  --panel2: #14223a;
  --line: #263b5d;
  --text: #eef4ff;
  --muted: #9aacc8;
  --blue: #78aaff;
  --pink: #ff7897;
  --mint: #83e2c2;
  --gold: #ffd27a;

  --font-head: Kanit, Prompt, system-ui, sans-serif;
  --font-body: Prompt, system-ui, sans-serif;
  --gutter: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* fixed-height glow, so it does not stretch down very long pages (the novel) */
  background: radial-gradient(ellipse at 15% -15%, #1b3761 0, transparent 60%) top / 100% 900px no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; }
a { color: var(--blue); }
img, video, iframe { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.shell {
  max-width: 1200px;
  min-height: 100vh;
  margin: auto;
  padding: 0 var(--gutter) 40px;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 34px; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 20;
}
.skip:focus { left: 16px; top: 12px; }

/* ---------- header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 82px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff14;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: auto; height: 32px; }
.nav { display: flex; gap: 7px; margin-left: auto; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] { background: #172844; color: #fff; border-color: #29466f; }
.youtube {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #12213a;
  color: #fff;
}
.youtube:hover { border-color: var(--pink); color: var(--pink); }
.youtube svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- page content */
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.lead { color: #b4c3dc; line-height: 1.9; max-width: 590px; }
.placeholder {
  margin-top: 24px;
  padding: 40px 24px;
  border: 1px dashed #344b6d;
  border-radius: 18px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

[hidden] { display: none !important; }
section { margin-top: 34px; }
h2 { font-size: 23px; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #35517a;
  border-radius: 13px;
  background: #182943;
  color: #e8f1ff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { border: 0; background: linear-gradient(120deg, #8bb8ff, #a7a1ff); color: #081225; }

/* ---------- gallery */
.stars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .stars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .stars { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.star {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--panel2), #0f1929);
  color: var(--text);
  text-decoration: none;
}
a.star { position: relative; border: 2px solid var(--accent); transition: transform .2s; }
a.star:hover { transform: translateY(-4px); }
.star img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.star img { object-fit: cover; object-position: 50% 30%; }
.star-body { display: flex; flex-direction: column; padding: 10px 12px 14px; line-height: 1.55; }
.star-body strong { font-family: var(--font-head); font-size: 18px; }
.star-body strong span { font-weight: 500; font-size: 14px; color: var(--muted); }
.star-no { align-self: flex-start; margin-bottom: 4px; padding: 0 9px; border-radius: 99px; background: var(--accent, #1d2c47); color: #fff; font-size: 12px; }
.star-home { font-size: 12px; color: var(--muted); }
.star-tagline {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 4px;
  font-size: 13px;
  color: #c6d3ea;
}
.badge { position: absolute; top: 10px; right: 10px; padding: 2px 10px; border-radius: 99px; background: var(--pink); color: #200810; font-size: 12px; font-weight: 600; }
.upcoming img { object-position: center 20%; filter: saturate(.85) brightness(.9); }
.upcoming .star-tagline { -webkit-line-clamp: 3; }
.soon-label { align-self: flex-start; margin-top: 8px; padding: 1px 10px; border: 1px solid var(--accent); border-radius: 99px; font-size: 12px; }

/* ---------- coming soon page */
.coming { max-width: 400px; margin-inline: auto; text-align: center; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 2px solid var(--accent); border-radius: 22px; }
.tagline { margin: 18px 0 0; font-size: 17px; }
.coming .actions { flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- character page */
.character { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.clip-col { width: 100%; max-width: 400px; margin-inline: auto; }
@media (min-width: 860px) {
  .character { grid-template-columns: 380px minmax(0, 1fr); gap: 44px; align-items: start; }
  .clip-col { position: sticky; top: 24px; margin: 0; }
}
.info-col > section:first-child { margin-top: 0; }
.player {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 22px;
  background: #080e1b;
}
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.play {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  padding-left: 6px;
  border: 2px solid #ffffffcc;
  border-radius: 50%;
  background: #081326b8;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.player-note {
  position: absolute;
  inset: auto 14px 18px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 13px;
  background: #081326d9;
  text-align: center;
  font-size: 14px;
}
.ai-note, .watch-link { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.profile h1 { margin-top: 4px; }
.profile h1 span { font-size: .55em; font-weight: 500; color: var(--muted); }
.meta { margin: 0; color: #c6d3ea; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.traits li { padding: 4px 14px; border: 1px solid var(--accent); border-radius: 99px; font-size: 13px; }
blockquote { margin: 18px 0 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent); }
blockquote strong { display: block; font-family: var(--font-head); font-size: 22px; }
blockquote span { color: var(--gold); }
.phrases { margin: 0; padding: 0; list-style: none; }
.phrase {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #2d456b;
  border-radius: 15px;
  background: #14243c;
}
.phrase strong { font-size: 19px; line-height: 1.5; }
.th { margin-top: 4px; color: #c6d3ea; font-size: 14px; }
.speak {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #35517a;
  border-radius: 50%;
  background: #182943;
  cursor: pointer;
  font-size: 18px;
}
.speak:hover { border-color: var(--gold); }
.choices { display: grid; gap: 10px; }
.choice {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #35517a;
  border-radius: 13px;
  background: #182943;
  color: #e8f1ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--pink); background: #2a2442; }
.feedback { margin-top: 14px; padding: 16px; border: 1px dashed var(--pink); border-radius: 15px; background: var(--panel); }
.reaction { margin: 10px 0 0; color: #f8cdda; }
.share-status { min-height: 1.7em; margin: 8px 0 0; color: var(--mint); font-size: 13px; }
.placeholder p { margin: 0; }

/* ---------- home */
.hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero .clip-col { position: static; max-width: 340px; margin-inline: auto; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1.2fr) 340px; gap: 44px; } }
.from { display: inline-block; margin-top: 8px; font-size: 13px; }
.two { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { padding: 18px; border: 1px solid #2d456b; border-radius: 18px; background: linear-gradient(155deg, var(--panel2), #0f1929); }
.panel h3 { margin-bottom: 8px; font-size: 18px; }
.panel p { margin: 0; color: var(--muted); font-size: 14px; }
.novel { display: flex; flex-direction: column; gap: 8px; color: #c6d3ea; text-decoration: none; }
.novel strong { font-family: var(--font-head); font-size: 26px; color: var(--text); }
.novel .go { margin-top: auto; color: var(--blue); font-weight: 600; }
.novel:hover { border-color: var(--pink); }
.lines { margin: 0 0 12px; padding: 0; list-style: none; }
.lines li { padding: 8px 0; border-top: 1px solid #ffffff14; }
.lines span { display: block; }
.lines .th { margin: 0; }
.steps { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-no { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 2px; }

@media (prefers-reduced-motion: reduce) { a.star { transition: none; } a.star:hover { transform: none; } }

/* ---------- footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid #ffffff14;
  color: var(--muted);
  font-size: 13px;
}
.foot p { margin: 0; }

/* ---------- mobile */
@media (max-width: 640px) {
  :root { --gutter: 17px; }
  .brand img { height: 28px; }
  .youtube { order: 1; margin-left: auto; }
  .nav { order: 2; width: 100%; margin-left: 0; }
  .nav a { flex: 1; padding-inline: 8px; }
  main { padding-top: 26px; }
}
