  :root {
    --bg:        #0D0D0F;   /* base */
    --bg-2:      #16161A;   /* surface */
    --panel:     #16161A;
    --panel-2:   #1d1d22;
    --border:    #2a2a31;
    --text:      #E8E6E3;
    --muted:     #8A8A93;
    --green:     #F2A93B;   /* primary — accent (amber) */
    --green-2:   #d98f22;   /* darker accent for button depth */
    --orange:    #f7c46e;   /* light accent for gradients/kickers */
    --orange-2:  #F2A93B;
    --silver:    #E8E6E3;   /* light tint for grad-text tail */
    --silver-2:  #8A8A93;
    --maxw:      1160px;
    --radius:    16px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
  p { margin: 0; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

  .grad-text {
    background: linear-gradient(100deg, var(--green) 0%, var(--orange) 55%, var(--silver) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px;
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn-primary {
    background: linear-gradient(100deg, var(--green) 0%, var(--green-2) 100%);
    color: #06130c; box-shadow: 0 8px 30px -8px rgba(242,169,59,.5);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px rgba(242,169,59,.65); }
  .btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
  .btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

  /* ---------- Nav ---------- */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(13,13,15,.72);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
  .logo .mark {
    width: 60px; height: 60px; object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(242,169,59,.35));
  }
  .nav-links { display: flex; align-items: center; gap: 8px; }
  .nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s, background .15s; }
  .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .nav-links a.active { color: var(--green); }
  .nav-cta { margin-left: 6px; }
  .nav-links a.nav-cta { color: #0a0d14; }  /* override muted nav-link color */
  .nav-links a.nav-cta:hover { color: #fff; }
  .burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

  /* ---------- Views ---------- */
  .view { display: none; }
  .view.active { display: block; animation: fade .4s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* ---------- Hero ---------- */
  .hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .hero-scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
      radial-gradient(120% 90% at 20% 20%, rgba(13,13,15,.55) 0%, rgba(13,13,15,.9) 70%, var(--bg) 100%),
      linear-gradient(180deg, rgba(13,13,15,.4) 0%, var(--bg) 100%);
  }
  .hero-content { position: relative; z-index: 2; width: 100%; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--green); background: rgba(242,169,59,.1);
    border: 1px solid rgba(242,169,59,.25); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
  }
  .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
  .hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; max-width: 15ch; }
  .hero .sub { margin-top: 24px; font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 56ch; }
  .hero .actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

  /* ---------- Animated Claude Code terminal background ---------- */
  .term-pan {
    position: absolute; top: 50%; left: 50%;
    width: 150%; max-width: 1500px;
    transform: translate(-50%, -50%) scale(1.18);
    opacity: .5;
  }
  .term {
    background: #16161A; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 40px 120px -30px rgba(0,0,0,.7);
    font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.85;
    overflow: hidden;
  }
  .term-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #1d1d22; }
  .term-head .b { width: 12px; height: 12px; border-radius: 50%; }
  .term-head .b.r { background: #ff5f57; } .term-head .b.y { background: #febc2e; } .term-head .b.g { background: #28c840; }
  .term-head .t { margin-left: 10px; color: var(--muted); font-size: 12px; }
  .term-body { padding: 18px 22px; white-space: pre-wrap; }
  .term-scroll { animation: term-scroll 32s linear infinite; }
  @keyframes term-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
  @media (prefers-reduced-motion: reduce) { .term-scroll { animation: none; } }
  .term-body .line { opacity: 1; }
  .c-user  { color: var(--orange); }
  .c-agent { color: var(--green); }
  .c-tool  { color: #7cc4ff; }
  .c-ok    { color: var(--green); }
  .c-dim   { color: var(--muted); }
  .c-warn  { color: var(--orange); }
  .cursor { display: inline-block; width: 8px; height: 15px; background: var(--green); vertical-align: -2px; }

  /* ---------- Sections ---------- */
  section.block { padding: 96px 0; }
  .section-head { max-width: 640px; margin-bottom: 56px; }
  .section-head .kick { color: var(--orange); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
  .section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 12px; font-weight: 800; }
  .section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

  /* metric strip */
  .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .metric { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
  .metric .n { font-size: 44px; font-weight: 800; }
  .metric .l { color: var(--muted); margin-top: 6px; }

  /* offerings grid — two rows of three */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card {
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
    color: inherit; text-decoration: none; display: block;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: block; color: inherit; text-decoration: none;
  }
  .card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 20px 50px -24px rgba(242,169,59,.4); }
  .card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; background: rgba(242,169,59,.12); border: 1px solid rgba(242,169,59,.25); }
  .card:nth-child(even) .ic { background: rgba(242,169,59,.12); border-color: rgba(242,169,59,.25); }
  /* Lucide icons: scale with the element's font-size instead of the fixed 24px attr */
  svg.lucide { width: 1em; height: 1em; }
  .ic svg.lucide { color: var(--orange); }
  .burger svg.lucide { width: 1.4em; height: 1.4em; vertical-align: middle; }
  .card h3 { font-size: 20px; font-weight: 700; }
  .card p { color: var(--muted); margin-top: 10px; font-size: 15px; }

  /* book / approach split */
  .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .book-card {
    background: linear-gradient(150deg, var(--panel-2) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border); border-radius: 20px; padding: 40px;
    position: relative; overflow: hidden;
  }
  .book-card::before { content:""; position:absolute; inset:0;
    background: radial-gradient(120% 100% at 50% 0%, rgba(242,169,59,.16), transparent 70%); }
  .book-card ul { list-style: none; padding: 0; margin: 22px 0 0; position: relative; }
  .book-card li { padding: 10px 0 10px 30px; position: relative; color: var(--text); border-top: 1px solid var(--border); }
  .book-card li:first-child { border-top: 0; }
  .book-card li::before { content: "→"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

  /* CTA */
  .cta {
    text-align: center; padding: 80px 40px; border-radius: 24px; margin: 40px 0;
    background: linear-gradient(120deg, rgba(242,169,59,.14), rgba(242,169,59,.14) 55%, rgba(199,204,212,.12));
    border: 1px solid var(--border);
  }
  .cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
  .cta p { color: var(--muted); margin: 16px auto 32px; max-width: 46ch; font-size: 18px; }

  /* ---------- Events view ---------- */
  .page-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--border); }
  .page-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
  .page-hero p { color: var(--muted); margin-top: 16px; font-size: 19px; max-width: 60ch; }
  .events-wrap { padding: 56px 0 96px; }
  .filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
  .chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; background: transparent; transition: all .15s; }
  .chip.active, .chip:hover { color: var(--green); border-color: var(--green); background: rgba(242,169,59,.08); }
  .event-list { display: flex; flex-direction: column; gap: 18px; }
  .event {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px;
    transition: border-color .2s, transform .2s;
  }
  .event:hover { border-color: var(--orange); transform: translateX(4px); }
  .event .date { text-align: center; border-right: 1px solid var(--border); padding-right: 20px; }
  .event .date .m { color: var(--orange); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
  .event .date .d { font-size: 34px; font-weight: 800; line-height: 1; }
  .event .date .y { color: var(--muted); font-size: 13px; }
  .event .type, .resource .type { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--green); background: rgba(242,169,59,.1); border: 1px solid rgba(242,169,59,.25); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
  .event h3 { font-size: 21px; font-weight: 700; }
  .event .meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
  .event .desc { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 60ch; }

  /* ---------- Resources view ---------- */
  .resource-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .resource { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
  .resource:hover { border-color: var(--orange); }
  .resource-body { padding: 22px 26px 26px; }
  .resource-body h3 { font-size: 20px; font-weight: 700; }
  .resource-body .meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
  .resource-body .desc { color: var(--muted); font-size: 15px; margin-top: 10px; }
  .resource-body .btn { margin-top: 18px; }
  .embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
  .resource .embed { border-radius: 0; }
  .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  .empty {
    text-align: center; padding: 90px 30px; border: 1px dashed var(--border); border-radius: 20px;
    background: var(--bg-2);
  }
  .empty .ic { font-size: 46px; margin-bottom: 18px; }
  .empty h3 { font-size: 24px; font-weight: 700; }
  .empty p { color: var(--muted); margin: 12px auto 28px; max-width: 46ch; font-size: 17px; }

  /* ---------- Workshops view ---------- */
  .ws-bundle {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(242,169,59,.16), rgba(242,169,59,.14) 60%, rgba(199,204,212,.1));
    border: 1px solid var(--border); border-radius: 20px; padding: 32px 36px; margin-bottom: 20px;
  }
  .ws-bundle h3 { font-size: 24px; font-weight: 800; }
  .ws-bundle p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
  .ws-bundle .price { font-size: 40px; font-weight: 800; }
  .ws-bundle .save { color: var(--orange); font-size: 14px; font-weight: 600; margin-top: 4px; }
  .ws-bundle .bundle-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
  .ws-group { margin-top: 44px; }
  .ws-group > .lbl { color: var(--orange); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
  .ws-card { display: flex; flex-direction: column; }
  .ws-card .tier { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--green); background: rgba(242,169,59,.1); border: 1px solid rgba(242,169,59,.25); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
  .ws-card .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
  .ws-card .price-row .p { font-size: 28px; font-weight: 800; }
  .ws-card .price-row .dur { color: var(--muted); font-size: 14px; }
  .ws-card .ws-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
  .ws-card p { flex: 1; }

  /* ---------- Doc / workshop article ---------- */
  .doc { max-width: 880px; margin: 0 auto; padding: 8px 0 40px; }
  .doc .back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 28px; }
  .doc .back:hover { color: var(--green); }
  .doc h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 56px 0 8px; }
  .doc h2:first-of-type { margin-top: 8px; }
  .doc h3 { font-size: 21px; font-weight: 700; margin: 36px 0 6px; }
  .doc p { color: var(--text); margin: 16px 0; font-size: 17px; }
  .doc ul, .doc ol { color: var(--text); margin: 16px 0; padding-left: 22px; font-size: 17px; }
  .doc li { margin: 8px 0; }
  .doc li::marker { color: var(--green); }
  .doc a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
  .doc a:hover { color: var(--orange); }
  .doc a.btn { text-decoration: none; }
  .doc a.btn-primary { color: #06130c; }
  .doc a.btn-primary:hover { color: #06130c; }
  .doc a.btn-ghost { color: var(--text); }
  .doc a.btn-ghost:hover { color: var(--orange); }
  .doc strong { color: var(--text); font-weight: 700; }
  .doc hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
  .doc code { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: var(--orange); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
  .doc pre { background: #16161A; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 20px 0; }
  .doc pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.7; color: var(--orange); white-space: pre; }
  .doc blockquote { margin: 22px 0; padding: 14px 22px; border-left: 3px solid var(--green); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--muted); }
  .doc blockquote p { color: var(--muted); }
  .doc blockquote strong { color: var(--text); }
  .doc .table-scroll { overflow-x: auto; margin: 22px 0; }
  .doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
  .doc th, .doc td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
  .doc th { background: var(--panel-2); font-weight: 700; }
  .doc .flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
  .doc .flow-inputs { display: flex; flex-direction: column; gap: 10px; }
  .doc .flow-arrows { display: flex; flex-direction: column; justify-content: center; gap: 20px; align-self: stretch; color: var(--green); font-size: 20px; font-weight: 700; }
  .doc .flow .node { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-align: center; font-size: 14px; font-weight: 600; }
  .doc .flow .node span { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
  .doc .flow .arrow { color: var(--green); font-size: 20px; font-weight: 700; }
  .doc .flow .band { background: linear-gradient(100deg, rgba(242,169,59,.16), rgba(242,169,59,.14)); border-color: var(--green); }

  /* ---------- Footer ---------- */
  footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 40px; }
  .foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 14px; }
  .foot-links { display: flex; gap: 22px; }
  .foot-links a:hover { color: var(--green); }

  /* ---------- Responsive ---------- */
  @media (max-width: 820px) {
    .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
      background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; display: none; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    .burger { display: block; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .metrics { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .card:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
    .event { grid-template-columns: 90px 1fr; }
    .event .cta-col { grid-column: 1 / -1; }
    .event .date { padding-right: 14px; }
    .resource-list { grid-template-columns: 1fr; }
  }

/* ---- Auth forms + flash (Rails rebuild) ---- */
.auth-wrap { max-width: 460px; }
.auth-wrap .field { margin-bottom: 18px; }
.auth-wrap .field-inline { display: flex; align-items: center; gap: 8px; }
.auth-wrap label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.auth-wrap input[type="text"],
.auth-wrap input[type="email"],
.auth-wrap input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  font-size: 16px;
}
.auth-wrap .actions { margin-top: 24px; }
.auth-wrap hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.auth-wrap a { color: var(--orange); }
.flash { max-width: 900px; margin: 90px auto 0; padding: 0 24px; }
.flash > div { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--border); }
.flash .notice { background: rgba(60,180,120,.12); color: #7fe0ac; }
.flash .alert  { background: rgba(220,80,80,.12);  color: #f2a1a1; }
.nav-links .cta-link { color: var(--orange); font-weight: 600; }

/* ============ Course catalog (Laracasts-inspired, Fulcorum palette) ============ */
.catalog .page-hero { padding-bottom: 8px; }

.track-row { padding: 26px 0; }
.track-head { margin-bottom: 16px; }
.track-head h2 { font-size: 24px; font-weight: 800; }
.track-head p { color: var(--muted); margin-top: 4px; max-width: 720px; }

.series-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 280px);
  gap: 20px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory;
}
.series-scroll::-webkit-scrollbar { height: 8px; }
.series-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.series-card {
  display: block; text-decoration: none; color: inherit; scroll-snap-align: start;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--panel, var(--bg-2)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.series-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 14px 40px rgba(0,0,0,.35); }

.series-poster {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden;
}
.series-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-mono { font-size: 44px; font-weight: 900; letter-spacing: 2px; color: rgba(255,255,255,.92); }
.poster-grad-0 { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.poster-grad-1 { background: linear-gradient(135deg, var(--green), var(--green-2)); }
.poster-grad-2 { background: linear-gradient(135deg, var(--silver), var(--silver-2)); }
.poster-grad-3 { background: linear-gradient(135deg, var(--orange-2), var(--green)); }

.series-card-body { padding: 14px 16px 18px; }
.series-card-body h3 { font-size: 17px; font-weight: 800; }
.series-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 6px; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; }
.badge-free { background: rgba(60,180,120,.18); color: var(--green); }
.badge-level { background: rgba(255,255,255,.08); color: var(--muted); }
.series-poster .badge { position: absolute; top: 10px; }
.series-poster .badge-free { left: 10px; }
.series-poster .badge-level { right: 10px; }

/* Series detail */
.series-hero { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.series-hero-inner { display: grid; grid-template-columns: 320px 1fr; gap: 32px; padding: 40px 0; align-items: center; }
.series-hero-poster { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.series-hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.series-hero-body h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 8px 0; }
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--orange); }
.series-desc { color: var(--muted); font-size: 17px; margin: 14px 0 20px; max-width: 680px; }

/* Episode list */
.episode-list { list-style: none; counter-reset: none; max-width: 860px; }
.episode { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--panel, var(--bg-2)); }
.episode-link { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none; color: inherit; }
.episode:hover { border-color: var(--orange); }
.episode-num { flex: 0 0 28px; text-align: center; font-weight: 800; color: var(--muted); }
.episode-title { flex: 1; font-weight: 700; }
.episode-title small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.episode-tags { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.episode.locked .episode-title { color: var(--muted); }

/* Watch / player */
.watch-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 24px; }
.player { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; display: grid; place-items: center; }
.player-placeholder, .paywall { text-align: center; padding: 24px; }
.pp-icon { font-size: 46px; }
.pp-title { font-size: 20px; font-weight: 800; margin-top: 8px; }
.pp-note { color: var(--muted); margin-top: 6px; }
.paywall .actions { justify-content: center; margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.watch-info { padding-top: 22px; }
.watch-info h1 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.watch-sidebar { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; align-self: start; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--panel, var(--bg-2)); }
.ws-head { margin-bottom: 12px; }
.ws-head a { font-weight: 800; }
.ws-head small { display: block; color: var(--muted); margin-top: 2px; }
.episode-list.compact .episode { margin-bottom: 6px; border-radius: 10px; }
.episode-list.compact .episode-link { padding: 10px 12px; gap: 10px; font-size: 14px; }
.episode-list.compact .episode-title small { display: none; }
.episode.current { border-color: var(--orange); background: rgba(242,169,59,.08); }

@media (max-width: 900px) {
  .watch-grid { grid-template-columns: 1fr; }
  .watch-sidebar { position: static; max-height: none; }
  .series-hero-inner { grid-template-columns: 1fr; }
}

/* ============ Admin ============ */
.admin-body { padding-top: 0; }
.admin-wrap { padding: 110px 24px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { font-size: 28px; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.admin-table tr:hover td { background: var(--bg-2); }
.row-actions { display: flex; gap: 14px; white-space: nowrap; }
.row-actions a { color: var(--orange); }
.linklike { background: none; border: none; color: #f2a1a1; cursor: pointer; padding: 0; font: inherit; }
.admin-wrap form { max-width: 620px; }
.admin-wrap .field { margin-bottom: 16px; }
.admin-wrap .field-inline { display: flex; align-items: center; gap: 8px; }
.admin-wrap label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.admin-wrap .field-inline label { margin-bottom: 0; }
.admin-wrap input[type="text"], .admin-wrap input[type="number"], .admin-wrap textarea, .admin-wrap select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font-size: 15px; font-family: inherit;
}
.admin-wrap .actions { display: flex; gap: 12px; margin-top: 24px; }
.admin-errors { background: rgba(220,80,80,.12); color: #f2a1a1; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.mux-fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.mux-fieldset legend { padding: 0 8px; color: var(--muted); font-weight: 700; }

/* ============ Pricing ============ */
.pricing-grid { grid-template-columns: repeat(2, minmax(260px, 380px)); justify-content: center; align-items: stretch; }
.plan { display: flex; flex-direction: column; text-align: left; position: relative; }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .price { font-size: 40px; font-weight: 900; margin: 8px 0 2px; }
.plan .price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .plan-sub { color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.plan ul li { padding: 7px 0 7px 24px; position: relative; color: var(--muted); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan .btn { width: 100%; justify-content: center; text-align: center; }
.plan .btn + .btn { margin-top: 8px; }
.plan form { width: 100%; }
.plan-featured { border-color: var(--orange); box-shadow: 0 12px 40px rgba(242,169,59,.12); }
.plan-featured .tier { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--orange); color: #1a1205; }
[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.account-sub { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; background: var(--bg-2); }
.account-sub .status-on { color: var(--green); font-weight: 700; }
.account-sub .status-off { color: var(--muted); }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---- Admin Mux upload widget ---- */
.mux-upload { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; background: var(--bg-2); max-width: 620px; }
.mux-upload-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mux-upload-note { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.mux-progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.mux-progress-bar { height: 100%; width: 0; background: var(--orange); transition: width .2s ease; }
.mux-upload-status { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 18px; }
