/* =================================================================
   Perry Wirth — link page
   Utopia Martial Arts brand system. Tokens from colors_and_type.css.
   Dark surface = Solid Dark #1A1A1A. Teal as accent, Calm Gray for
   text/logos on dark, CTA Gold used exactly once (Subscribe).
   ================================================================= */

:root {
  --page:        var(--solid-dark);      /* #1A1A1A */
  --panel:       rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --hairline:    rgba(219, 219, 211, 0.12);  /* Calm Gray @ 12% */
  --hairline-strong: rgba(219, 219, 211, 0.22);
  --on-dark-h1:  #FFFFFF;
  --on-dark:     var(--calm-gray);            /* #DBDBD3 */
  --on-dark-sub: rgba(219, 219, 211, 0.62);
  --accent:      var(--teal-soft);            /* #5A8688 — readable teal on dark */
  --max:         520px;
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--on-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Atmosphere ---------- */
.glow {
  position: fixed;
  top: -180px; left: 50%;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
              rgba(0, 75, 77, 0.45) 0%,
              rgba(0, 75, 77, 0.16) 38%,
              rgba(0, 75, 77, 0) 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 52px) 20px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Profile ---------- */
.profile { text-align: center; margin-bottom: clamp(26px, 7vw, 40px); }
.profile__avatar {
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  border-radius: var(--r-pill);
  padding: 3px;
  background: linear-gradient(160deg, var(--teal-soft), rgba(219,219,211,0.18));
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 14px 40px rgba(0, 75, 77, 0.28);
}
.profile__avatar img {
  width: 100%; height: 100%;
  border-radius: var(--r-pill);
  object-fit: cover;
  display: block;
  border: 3px solid var(--page);
}
.profile__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 46px);
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--on-dark-h1);
}
.profile__role {
  margin: 12px 0 0;
  font: 700 var(--t-xs)/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent);
}
.profile__loc {
  margin: 8px 0 0;
  font-size: var(--t-sm);
  color: var(--on-dark-sub);
}
.profile__bio {
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: var(--t-sm);
  line-height: var(--lh-normal);
  color: var(--on-dark);
  text-wrap: balance;   /* even out lines so no single word is stranded */
}

/* ---------- Featured: video player (YouTube facade) ---------- */
.vplayer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--hairline-strong);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(0,75,77,0.34) 0%, rgba(0,75,77,0) 58%),
    var(--panel);
  box-shadow: var(--shadow-lg);
}
.vplayer__head { display: flex; flex-direction: column; gap: 6px; }
.player__show {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--on-dark-h1);
}
.player__eyebrow {
  font: 700 10px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent);
}

.vstage {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
/* Plyr theming — teal accent, clean minimal controls on the dark widget */
.vstage .plyr {
  --plyr-color-main: #5A8688;            /* teal-soft — readable accent on dark */
  --plyr-video-background: #000;
  --plyr-control-radius: 8px;
  --plyr-range-thumb-background: var(--calm-gray);
  --plyr-video-control-color: #fff;
  width: 100%;
}

/* ---------- Listen-on platform row ---------- */
.listen { display: flex; flex-direction: column; gap: 10px; }
.listen__label {
  font: 700 10px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--on-dark-sub);
}
.listen__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  color: var(--on-dark);
  font: 700 var(--t-sm)/1 var(--font-body);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.chip:hover { color: var(--teal-soft); border-color: var(--teal-soft); background: rgba(0,75,77,0.14); transform: translateY(-1px); }
.chip__ic { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Primary CTA: Start Training (photo + black overlay + gold pill) ---------- */
.cta {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 104px;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-lg);
  transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.cta:focus-visible { outline: 2px solid var(--cta-gold); outline-offset: 3px; }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* canonical brand black-only overlay (left → right), never teal */
.cta__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.84) 0%, rgba(0,0,0,.58) 55%, rgba(0,0,0,.45) 100%); }
.cta__body { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cta__eyebrow {
  font: 700 10px/1 var(--font-body);
  text-transform: uppercase; letter-spacing: var(--tracking-eyebrow);
  color: rgba(219,219,211,.9);
}
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px; line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; color: #fff;
}
.cta__pill {
  position: relative; flex: 0 0 auto;
  font: 700 12px/1 var(--font-body);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--cta-gold-text);          /* teal text */
  background: var(--cta-gold);           /* #D4A84B — the one gold element */
  padding: 13px 22px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px rgba(212,168,75,.32);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.cta:hover .cta__pill { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 22px rgba(212,168,75,.42); }

/* ---------- Recent episodes ---------- */
.episodes { width: 100%; margin-bottom: 26px; }
.episodes__head {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-dark-sub);
}
.episodes__list { display: flex; flex-direction: column; gap: 10px; }
.ep {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  text-decoration: none; color: var(--on-dark);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s ease, background .2s ease;
}
.ep:hover { transform: translateY(-1px); border-color: var(--teal-soft); background: var(--panel-hover); }
.ep__art { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--r-md); object-fit: cover; background: #000; }
.ep__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ep__text strong {
  font-size: var(--t-sm); font-weight: 700; color: var(--on-dark); letter-spacing: .002em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ep__text small { font-size: var(--t-xs); color: var(--on-dark-sub); letter-spacing: .02em; }
.ep .card__go { stroke: var(--on-dark-sub); }
.ep:hover .card__go { stroke: var(--teal-soft); transform: translate(2px, -2px); }

/* ---------- Link cards ---------- */
.links { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  text-decoration: none;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: var(--panel);
  color: var(--on-dark);
  transition: transform .24s cubic-bezier(.2,.7,.2,1), border-color .24s ease, background .24s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-soft);
  background: var(--panel-hover);
}
.card__thumb {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: #000;
}
.card__icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(0, 75, 77, 0.22);
  color: var(--calm-gray);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.card__text strong { font-size: var(--t-h4); font-weight: 700; color: var(--on-dark); letter-spacing: .002em; }
.card__text small { font-size: var(--t-xs); color: var(--on-dark-sub); letter-spacing: .02em; }
.card__go {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  fill: none; stroke: var(--on-dark-sub); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .24s ease, transform .24s ease;
}
.card:hover .card__go { stroke: var(--teal-soft); transform: translate(2px, -2px); }

/* Split card: link + the one gold CTA */
.card--split { padding-right: 12px; }
.card__main {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 auto; min-width: 0;
  text-decoration: none; color: var(--on-dark);
}
.pill {
  flex: 0 0 auto;
  font: 700 12px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cta-gold-text);            /* teal text */
  background: var(--cta-gold);             /* #D4A84B — gold, used once */
  padding: 12px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(212, 168, 75, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pill:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 22px rgba(212, 168, 75, 0.38); }

/* Secondary pill — calm-gray outline, no gold (e.g. YouTube Subscribe) */
.pill--ghost {
  color: var(--on-dark);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
}
.pill--ghost:hover {
  color: var(--teal-soft); border-color: var(--teal-soft);
  background: rgba(0,75,77,0.14);
  transform: translateY(-1px); filter: none; box-shadow: none;
}

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; margin: 30px 0 4px; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  color: var(--on-dark);
  transition: color .22s ease, border-color .22s ease, transform .22s ease, background .22s ease;
}
.socials a:hover { color: var(--teal-soft); border-color: var(--teal-soft); background: rgba(0,75,77,0.14); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Share ---------- */
.share {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  color: var(--on-dark);
  font: 700 var(--t-sm)/1 var(--font-body);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.share:hover { color: var(--teal-soft); border-color: var(--teal-soft); background: rgba(0,75,77,0.14); transform: translateY(-1px); }
.share.is-copied { color: var(--teal-soft); border-color: var(--teal-soft); }
.share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.foot { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.foot__brand { display: block; opacity: .6; transition: opacity .22s ease; }
.foot__brand:hover { opacity: .9; }
.foot__brand img { height: 17px; width: auto; display: block; }
.foot p { margin: 0; font-size: 11px; letter-spacing: .05em; color: var(--on-dark-sub); }

/* ---------- Entrance ---------- */
.reveal { opacity: 0; transform: translateY(10px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .card, .pill, .socials a, .card__go,
  .cta, .cta__pill, .ep, .share { transition: none; }
}

/* ---------- Small phones ---------- */
@media (max-width: 400px) {
  .pill { padding: 11px 16px; }
  .card--split { flex-wrap: wrap; }
  .cta { flex-wrap: wrap; gap: 12px; }
  .cta__body { flex-basis: 100%; }
  .cta__title { font-size: 23px; }
}
