:root {
  --bg: #faf7f2; --card: #ffffff; --ink: #1c1b1f; --muted: #6b6760; --line: #e7e1d7;
  --accent: #0f7b4f; --accent-ink: #ffffff; --accent-soft: #e3f2ea; --warm: #f29b1d;
  --danger: #b3261e; --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .2em 0 .4em; }
h2 { font-size: 1.25rem; margin: 1.4em 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 18px 40px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand::before { content: "●"; color: var(--warm); margin-right: 6px; }
.topbar nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.topbar nav a.btn { color: var(--accent-ink); }
.demo-banner { background: #fff4dc; color: #7a4b00; text-align: center; font-size: .85rem; padding: 6px; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 0; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent);
  color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 18px; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { background: #b9b4ab; cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: .875rem; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.full { width: 100%; }
button.link { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: .95rem; padding: 0; }
button.link.danger { color: var(--danger); }
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 10px 12px 0; }
legend { font-weight: 700; font-size: .85rem; color: var(--muted); padding: 0 4px; }

/* cards + layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.narrow, .auth { max-width: 520px; margin: 24px auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head h2, .section-head h3 { margin: 0 0 .5em; }
.flash { background: var(--accent-soft); border: 1px solid #bfe3cf; padding: 12px 14px; border-radius: 10px; margin: 16px 0; }
.error { color: var(--danger); font-weight: 600; }
.errbox { background: #fff4f3; color: var(--danger); text-align: left; white-space: pre-wrap; padding: 12px; border-radius: 10px; font-size: .8rem; }

/* landing */
.hero { background: linear-gradient(160deg, #10372a 0%, #0f7b4f 70%, #3d9a5f 100%); color: #fff; padding: 56px 0 48px; }
.hero h1 { font-size: 2.3rem; max-width: 760px; }
.hero .lead { font-size: 1.1rem; max-width: 680px; opacity: .92; }
.hero .btn { background: var(--warm); color: #1c1b1f; }
.hero .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; opacity: .85; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.steps { padding-left: 1.2em; } .steps li { margin-bottom: 8px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 8px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan .badge { position: absolute; top: -11px; left: 16px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.plan .price { font-size: 1.6rem; font-weight: 800; margin: .2em 0; }
.plan .price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: 10px 0 16px; flex: 1; font-size: .93rem; }
.plan-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-now strong, .stats strong { display: block; font-size: 1.3rem; }

/* dashboard */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0; }
.hello h1 { margin: 0; }
.credits { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; text-align: center; display: grid; }
.credits .big { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent); }
.series-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.series-row > div:first-child { display: grid; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status-dot { font-size: .78rem; font-weight: 700; }
.status-dot::before { content: "● "; }
.status-dot.on { color: var(--accent); } .status-dot.off { color: var(--muted); }

/* video cards */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.thumb { aspect-ratio: 9 / 16; background: #23302b; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-status { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.thumb-status.failed { background: #5a2420; }
.lang-pill { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 99px; }
.vmeta { padding: 10px 12px; display: grid; gap: 2px; font-size: .9rem; }

/* video page */
.video-layout { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 22px; align-items: start; }
.player video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); display: block; margin-bottom: 10px; }
.editor summary { cursor: pointer; }
.editor form { margin-top: 14px; }
.danger-zone { margin-top: 18px; text-align: right; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; }
.spinner.big { width: 46px; height: 46px; border-color: var(--accent-soft); border-top-color: var(--accent); margin: 10px auto; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tables + admin */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eee9e0; }
.tag.success { background: var(--accent-soft); color: var(--accent); } .tag.failed { background: #fbe3e1; color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stats .card { margin: 0; }
.admin-actions form { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.admin-actions .tiny, input.tiny, select.tiny { width: 120px; margin: 0; padding: 6px 8px; font-size: .85rem; }

@media (max-width: 860px) {
  .grid2, .grid3, .video-layout { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .player { max-width: 380px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 1.75rem; }
  .plans, .row2, .plan-now { grid-template-columns: 1fr; }
  .hello { flex-direction: column; align-items: flex-start; }
  .topbar nav { gap: 10px; }
}

/* ---------- platforms ---------- */
.plat { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; color: #fff; margin-right: 4px; vertical-align: middle; }
.plat.youtube { background: #e62117; } .plat.tiktok { background: #111; } .plat.facebook { background: #1877f2; }
.plat.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.plat-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 3px 0; }
.tag.scheduled { background: #fff4dc; color: #7a4b00; } .tag.posting { background: #e4efff; color: #1a4fa0; }
.tag.posted { background: var(--accent-soft); color: var(--accent); } .tag.cancelled { background: #eee; color: #777; }
.hint { margin: 14px 0 0; }
.narrow-left { max-width: 520px; }

/* ---------- wizard ---------- */
.wizard-head { margin-top: 18px; }
.wizard-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; overflow-x: auto; }
.wizard-steps li { counter-increment: step; flex: 1; min-width: 74px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: 8px 4px; border-bottom: 3px solid var(--line); cursor: pointer; white-space: nowrap; }
.wizard-steps li::before { content: counter(step) ". "; }
.wizard-steps li.active { color: var(--accent); border-color: var(--accent); }
.wizard-steps li.done { color: var(--ink); border-color: #9fd1b6; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step h2 { margin-top: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0; }
.wizard-nav .btn { min-width: 130px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice, .style-card, .pill { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.choice input, .style-card input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; height: 100%; }
.choice-body .emoji { font-size: 1.6rem; }
.choice input:checked + .choice-body, .style-card input:checked ~ .style-img { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill span { display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 99px; font-weight: 600; font-size: .92rem; }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.voice-list, .music-list, .account-list { display: grid; gap: 8px; }
.voice-row, .music-row, .account-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; margin: 0; font-weight: 400; cursor: pointer; }
.voice-row input, .music-row input, .account-row input { width: auto; margin: 0; }
.voice-row .voice-name, .music-row span { flex: 1; }
.account-row.expired { opacity: .55; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.style-card { display: grid; gap: 6px; text-align: center; font-size: .9rem; }
.style-img { display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #e9e3d8; }
.style-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.time-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.time-row input { width: 150px; margin: 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; background: #fbfaf7; }
.summary div { display: grid; }

/* ---------- accounts ---------- */
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.connect-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.connect-card p { flex: 1; margin: 0 0 8px; }
.acct { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

/* ---------- calendar ---------- */
.cal-head { margin-top: 18px; flex-wrap: wrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 160px; }
.cal-day.today { border: 2px solid var(--accent); }
.cal-date { font-size: .85rem; margin-bottom: 8px; }
.cal-item { display: flex; gap: 8px; padding: 8px; border-radius: 10px; background: #f6f3ed; margin-bottom: 8px; font-size: .85rem; }
.cal-item.planned { background: transparent; border: 1.5px dashed #cfc7b8; }
.cal-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-item > div { display: grid; gap: 2px; min-width: 0; }
.cal-item a strong { color: var(--ink); overflow-wrap: anywhere; }
.post-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); }
.post-menu summary { cursor: pointer; color: var(--accent); }
.post-menu form { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.post-menu input { margin: 0; padding: 6px; font-size: .8rem; }
.when-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.inline-label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.inline-label input { width: auto; margin: 0; }
.when-at { width: auto; margin: 0; }
.manual { margin-top: 12px; } .manual summary { cursor: pointer; color: var(--muted); }
.legal { max-width: 780px; margin: 20px auto; } .legal h2 { font-size: 1.1rem; }

@media (max-width: 1000px) { .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .connect-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .calendar { grid-template-columns: 1fr; } .cal-day { min-height: 0; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

[hidden] { display: none !important; }
@media (max-width: 520px) {
  .wizard-steps li { min-width: 0; font-size: 0; }
  .wizard-steps li::before { content: counter(step); font-size: .85rem; }
  .wizard-steps li.active { font-size: .8rem; flex: 2.5; }
  .wizard-steps li.active::before { content: counter(step) ". "; }
  .topbar nav a, .topbar nav button.link { font-size: .85rem; }
  .wizard-nav .btn { min-width: 0; flex: 1; }
}

/* calendar: wider page, stacked items */
.container.wide { max-width: 1440px; }
.cal-item { flex-direction: column; gap: 2px; }
.cal-item .cal-time { font-size: .8rem; color: var(--accent); }
.post-line { gap: 4px; }
.post-line .post-menu { width: 100%; }
.post-menu form { flex-wrap: wrap; }
.post-menu input[type=datetime-local] { width: 100%; }
.side, .player, .cal-body { min-width: 0; }
.error, .errbox, .post-line { overflow-wrap: anywhere; }

/* ---------- short films ---------- */
.film-card { margin-top: 4px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start;
  background: linear-gradient(160deg, #1b1420 0%, #3a2030 60%, #6b2f2a 100%); color: #fff; border: 0; }
.film-card h2 { margin: .1em 0 .4em; }
.film-card label { color: #fff; }
.film-card .btn { background: var(--warm); color: #1c1b1f; }
.film-card .btn:disabled { background: #8d8790; color: #eee; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cast-head { margin: 10px 0 16px; }
.cast-head h1 { margin-bottom: .2em; }
.lead-small { font-size: 1.02rem; margin: 0 0 4px; }
.cast-card h2 { margin: 0; }
.cast-card .look { margin: 4px 0 12px; color: var(--muted); }
.cast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.voice-pick { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.voice-pick select { width: auto; margin: 0 0 0 8px; display: inline-block; }
.shot-list { padding-left: 1.3em; display: grid; gap: 10px; margin: 12px 0; }
.talk-tag { color: var(--accent); font-weight: 700; }
.script-peek summary { cursor: pointer; }
.cast-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 8px; }
.cast-actions .btn { min-width: 220px; }
.cast-strip { display: flex; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.cast-strip figure { margin: 0; width: 64px; text-align: center; }
.cast-strip img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 50%; display: block; border: 2px solid var(--line); }
.cast-strip figcaption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-status.cast { background: #3a2030; }
@media (max-width: 860px) { .film-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr; } .cast-grid { grid-template-columns: repeat(2, 1fr); } }

.alert-bad { background: #fbe3e1; color: #8a1f17; border: 1px solid #f0b8b2; padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; font-weight: 600; }
.alert-warn { background: #fff4dc; color: #7a4b00; border: 1px solid #f1d9a6; padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; }
.stats .card span { display: block; }

.addresses { display: flex; gap: 32px; flex-wrap: wrap; margin: 6px 0 0; }
.addresses address { font-style: normal; line-height: 1.5; }

/* password eye */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: calc(50% + 3px); transform: translateY(-50%); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
  color: var(--muted); padding: 0; }
.pw-eye:hover { color: var(--ink, #222); }

/* make-a-video: AI story vs own script */
.seg { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.seg-opt { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; min-height: 44px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg-opt input { width: auto; margin: 0; }
.seg-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.make-form .own-only { display: none; }
.make-form:has(input[name="script_mode"][value="own"]:checked) .own-only { display: block; }
.make-form:has(input[name="script_mode"][value="own"]:checked) .ai-only { display: none; }
.make-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.make-form label.check input { width: auto; margin: 3px 0 0; }
.make-form label .muted { font-weight: 400; }
.make-form label .muted.small { display: block; margin-top: 4px; }
.make-form:has(input[name="script_mode"][value="own"]:checked) label:has(select[name="seconds"]) { display: none; }

/* caption style picker */
.caption-pick { border: 0; padding: 0; margin: 4px 0 16px; }
.caption-pick legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 8px; }
.caption-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.caption-card { display: flex; flex-direction: column; gap: 6px; margin: 0; cursor: pointer; font-weight: 600; font-size: .82rem; text-align: center; }
.caption-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.caption-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); display: block; }
.caption-card input:checked + img { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.caption-card input:focus-visible + img { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .caption-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* skit / film picker on the dark card */
.seg-dark .seg-opt { border-color: rgba(255,255,255,.35); color: #fff; }
.seg-dark .seg-opt:has(input:checked) { border-color: var(--warm); background: rgba(242,155,29,.18); }
.seg-dark legend { color: #fff; }
.film-form .film-only, .fmt-form .film-only { display: none; }
.film-form:has(input[name="format"][value="film"]:checked) .film-only,
.fmt-form:has(input[name="format"][value="film"]:checked) .film-only { display: block; }
.film-form:has(input[name="format"][value="film"]:checked) .skit-only,
.fmt-form:has(input[name="format"][value="film"]:checked) .skit-only { display: none; }
.make-form:has(input[name="script_mode"][value="own"]:checked) label.ai-only { display: none; }
select[data-priced] optgroup { font-style: normal; color: #b45309; }
.price-live { opacity: .85; font-weight: 600; }
.film-card .muted { color: #e6dbe2; }
.film-note { color: #e6dbe2; margin: 0 0 12px; }

/* my characters */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.char-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; text-decoration: none; color: inherit; }
.char-card img, .char-empty { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.inline-design { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.design-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.design-row select { width: auto; margin: 0; }
.star-pick { border: 0; padding: 0; margin: 0 0 12px; }
.star-pick legend { color: #fff; font-weight: 600; margin-bottom: 8px; padding: 0; }
.star-row { display: flex; gap: 10px; flex-wrap: wrap; }
.star-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; margin: 0; cursor: pointer; color: #fff; font-size: .8rem; text-align: center; }
.star-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-opt img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid rgba(255,255,255,.3); }
.star-opt input:checked + img { border-color: var(--warm); box-shadow: 0 0 0 2px var(--warm); }
.star-opt input:focus-visible + img { outline: 3px solid #fff; outline-offset: 2px; }

/* seasons */
.season-list { display: grid; gap: 10px; margin: 0 0 18px; }
.season-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.season-row span { display: block; }
.season-progress { font-weight: 700; color: var(--accent); white-space: nowrap; }
.episode-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.episode-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.episode-list p { margin: 4px 0 0; }
.season-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 18px; }
.star-pick.light legend { color: var(--ink); }
.star-pick.light .star-opt { color: var(--ink); }
.star-pick.light .star-opt img { border-color: var(--line); }
form .daily-only { display: none; }
form:has(input[name="schedule"][value="daily"]:checked) .daily-only { display: block; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
label.check input { width: auto; margin: 0; }

/* home page showcase */
.showcase-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.showcase-item { margin: 0; position: relative; }
.showcase-item video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; display: block; background: #1b1420; }
.showcase-item figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; color: #fff; font-weight: 700; font-size: .8rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature h3 { margin: 6px 0 4px; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }
.feature-icon { font-size: 1.6rem; }
.showcase-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.showcase-admin .card { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.showcase-admin img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; }
.admin-showcase { margin-top: 10px; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature-grid { gap: 8px; } .feature { padding: 12px; } .feature h3 { font-size: .98rem; } .feature p { font-size: .84rem; } }
.btn:has(.price-live) { flex-wrap: wrap; gap: 0 .35em; }

.expired-cover { width: 100%; border-radius: 14px; opacity: .55; filter: grayscale(.4); }
.center { text-align: center; }

.quality-pick { border: 0; padding: 0; margin: 4px 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.quality-pick legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.quality-pick .seg-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 200px; }
.quality-pick small { font-weight: 400; opacity: .75; font-size: .78rem; line-height: 1.3; }
.quality-pick .cin:has(input:checked) { border-color: #f29b1d; box-shadow: 0 0 0 2px rgba(242,155,29,.35); }
