/* ===========================================================
   AureFire Academy — video lock
   The article is never hidden. Only the player locks.
   =========================================================== */

.af-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.18);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(212,175,55,.12), transparent 70%),
    linear-gradient(145deg, #12121d, #09090f);
}
.af-player > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.af-player::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,6,10,.5), rgba(6,6,10,.14) 42%, rgba(6,6,10,.76));
  pointer-events: none;
}

/* the play button is the only interactive target on the poster */
.af-playbtn {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.af-playbtn .af-disc {
  width: 86px; height: 86px; border-radius: 50%;
  border: 1px solid rgba(191,162,74,.55);
  background: rgba(6,6,10,.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, transform .3s;
}
.af-playbtn .af-disc svg { width: 26px; height: 26px; fill: #f0d98c; margin-left: 4px; }
.af-playbtn:hover .af-disc { border-color: #f0d98c; background: rgba(12,12,22,.8); transform: scale(1.05); }
.af-playbtn:focus-visible { outline: 2px solid #f0d98c; outline-offset: -4px; }
.af-playbtn .af-cap {
  font: 400 10.5px 'Inter', -apple-system, sans-serif;
  letter-spacing: .3em; text-transform: uppercase; color: #9b968a;
  text-shadow: 0 1px 12px #06060a;
  display: flex; align-items: center; gap: 9px;
}
.af-playbtn .af-cap svg { width: 11px; height: 11px; stroke: #bfa24a; fill: none; stroke-width: 1.8; }
.af-player .af-dur {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: 500 10.5px 'Inter', sans-serif; letter-spacing: .14em; color: #ece8dc;
  background: rgba(6,6,10,.8); border: 1px solid rgba(212,175,55,.18);
  padding: 4px 8px;
}

/* ---- the denial ---- */
.af-lockbox {
  position: absolute; inset: 0; z-index: 4;
  display: none;
  align-items: center; justify-content: center;
  padding: 28px 24px;
  background: rgba(4,4,8,.93);
  backdrop-filter: blur(6px);
  text-align: center;
  overflow-y: auto;
}
.af-player.af-locked .af-lockbox { display: flex; animation: afRise .4s cubic-bezier(.2,.7,.3,1) both; }
@keyframes afRise { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.af-lockinner { max-width: 440px; margin: auto; }

.af-lockbox .af-lockmark {
  width: 46px; height: 46px; margin: 0 auto 20px;
  border: 1px solid rgba(212,175,55,.45); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,10,.6);
}
.af-lockbox .af-lockmark svg { width: 17px; height: 17px; stroke: #f0d98c; fill: none; stroke-width: 1.5; }
.af-lockbox .af-kicker {
  font: 500 10.5px 'Inter', -apple-system, sans-serif;
  letter-spacing: .3em; text-transform: uppercase; color: #d4af37;
  margin: 0 0 14px;
}
.af-lockbox h3 {
  font: 300 clamp(22px,2.8vw,30px)/1.22 'Cormorant Garamond', Georgia, serif;
  color: #ece8dc; margin: 0 0 14px; letter-spacing: .01em;
}
.af-lockbox h3 em { font-style: italic; color: #f0d98c; }
.af-lockbox .af-sub {
  font: 300 14px/1.75 'Inter', -apple-system, sans-serif;
  color: #9b968a; margin: 0 auto 24px; max-width: 390px;
}
.af-lockbox .af-join {
  display: inline-block;
  font: 500 11px 'Inter', -apple-system, sans-serif;
  letter-spacing: .26em; text-transform: uppercase;
  color: #06060a; background: linear-gradient(180deg, #e7c75c, #c9a233);
  padding: 15px 30px; border: 1px solid #d4af37;
  transition: filter .3s, transform .3s;
}
.af-lockbox .af-join:hover { filter: brightness(1.12); transform: translateY(-1px); }
.af-lockbox .af-join:focus-visible { outline: 2px solid #f0d98c; outline-offset: 3px; }
.af-lockbox .af-fine {
  font: 300 12px/1.7 'Inter', sans-serif; color: #6f6a60; margin: 16px 0 0;
}
.af-lockbox .af-dismiss {
  margin-top: 18px; background: none; border: 0; cursor: pointer;
  font: 400 11px 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase;
  color: #6f6a60; border-bottom: 1px solid rgba(155,150,138,.3); padding-bottom: 3px;
}
.af-lockbox .af-dismiss:hover { color: #9b968a; }

@media (max-width: 560px) {
  .af-lockbox { padding: 18px 16px; }
  .af-lockbox .af-lockmark { width: 38px; height: 38px; margin-bottom: 14px; }
  .af-lockbox .af-sub { display: none; }
  .af-lockbox .af-fine { display: none; }
  .af-playbtn .af-disc { width: 64px; height: 64px; }
}

/* the members chip used on cards and in the episode meta row */
.af-locktag {
  display: inline-flex; align-items: center; gap: 6px;
  left: 12px; bottom: 12px;
  font: 500 9.5px 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase;
  color: #bfa24a; background: rgba(6,6,10,.82);
  border: 1px solid rgba(212,175,55,.3); padding: 5px 9px;
}
.af-locktag svg { width: 10px; height: 10px; stroke: #bfa24a; fill: none; stroke-width: 1.8; }

@media (prefers-reduced-motion: reduce) {
  .af-player.af-locked .af-lockbox { animation: none; }
  .af-playbtn:hover .af-disc { transform: none; }
}

/* ===========================================================
   The join form
   Used on academy-access.html. These rules were previously
   nested under the old .af-gate panel; they are scoped to the
   form itself now so the form works wherever it is mounted.
   =========================================================== */

.af-form { max-width: 420px; margin: 0 auto; text-align: left; }
.af-form label {
  display: block;
  font: 500 10px 'Inter', -apple-system, sans-serif;
  letter-spacing: .26em; text-transform: uppercase; color: #8a857a;
  margin: 0 0 8px;
}
.af-form input[type=text],
.af-form input[type=email] {
  display: block;
  width: 100%; box-sizing: border-box;
  background: rgba(6,6,10,.7);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 0;
  color: #ece8dc;
  font: 300 16px 'Inter', -apple-system, sans-serif;
  padding: 14px 16px; margin: 0 0 20px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.af-form input[type=text]:focus,
.af-form input[type=email]:focus { border-color: rgba(212,175,55,.62); }
.af-form input::placeholder { color: #5d594f; }
.af-form input[aria-invalid="true"] { border-color: #c96f2b; }

.af-form .af-consent {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 4px 0 24px;
  text-transform: none; letter-spacing: normal;
}
.af-form .af-consent input[type=checkbox] {
  margin: 2px 0 0; flex: none;
  width: 16px; height: 16px;
  accent-color: #d4af37;
}
.af-form .af-consent span {
  font: 300 12.5px/1.65 'Inter', -apple-system, sans-serif;
  color: #8a857a; text-transform: none; letter-spacing: normal;
}

.af-form .af-submit {
  display: block; width: 100%;
  background: linear-gradient(180deg, #e7c75c, #c9a233);
  color: #06060a; border: 1px solid #d4af37; border-radius: 0;
  font: 500 11.5px 'Inter', -apple-system, sans-serif;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 17px 0; cursor: pointer;
  transition: filter .2s;
  -webkit-appearance: none; appearance: none;
}
.af-form .af-submit:hover { filter: brightness(1.1); }
.af-form .af-submit:focus-visible { outline: 2px solid #f0d98c; outline-offset: 3px; }
.af-form .af-submit[disabled] { opacity: .5; cursor: default; }

.af-form .af-err {
  font: 400 12.5px/1.6 'Inter', -apple-system, sans-serif;
  color: #e08a4a; margin: -12px 0 14px;
}
.af-form .af-err:empty { margin: -12px 0 0; }

@media (max-width: 560px) { .af-form { max-width: 100%; } }


/* An open episode swaps the poster for the player. The overlay, the button
   and the duration chip all have to clear out or they sit over the video. */
.af-player .af-frame {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; border: 0;
}
.af-player.af-playing::after { display: none; }
.af-player.af-playing .af-playbtn,
.af-player.af-playing .af-dur { display: none; }
