/* ==========================================================================
   fwg-channel.css — the site's one main broadcast player
   --------------------------------------------------------------------------
   The homepage hero holds a single player: the live signal when the channel is
   on air, otherwise the video the admin panel marks as "Video principal".
   Everything here is namespaced `fp` (Freedom Player) so it can never collide
   with styles.css or with the channel's own player.css at /tv/.

   Palette follows the site: cinematic near-black glass, warm gold accents,
   Playfair for titles, Inter for the rest.
   ========================================================================== */

.fp {
  --fp-ink:    #06070b;
  --fp-cream:  #f4f1ea;
  --fp-dim:    #cfcabf;
  --fp-faint:  #8f8a81;
  --fp-line:   rgba(255, 255, 255, 0.10);
  --fp-line-2: rgba(191, 155, 63, 0.26);
  --fp-glass:  linear-gradient(180deg, rgba(26, 30, 40, 0.72), rgba(9, 11, 16, 0.90));

  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(255px, 23vw, 330px);
  align-items: start;
  gap: clamp(14px, 1.6vw, 20px);
  width: 100%;
  text-align: left;
  color: var(--fp-cream);
  font-family: var(--sans);
}
.fp__main { min-width: 0; }
@media (max-width: 1000px) {
  .fp { grid-template-columns: 1fr; }
}

/* ---- The stage -------------------------------------------------------- */
.fp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(191, 155, 63, 0.16), transparent 62%),
    var(--fp-ink);
  border: 1px solid var(--fp-line);
  box-shadow:
    0 40px 90px -42px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(191, 155, 63, 0.14),
    inset 0 0 70px rgba(0, 0, 0, 0.55);
  user-select: none;
}
.fp-stage__video {
  width: 100%; height: 100%;
  display: block;
  background: var(--fp-ink);
  object-fit: contain;
}
.fp-stage.is-live-mode .fp-stage__video { object-fit: cover; }

/* Identity strip — logo, channel, what is on now, live badge */
.fp-ident {
  position: absolute; inset: 0 0 auto 0; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.78), transparent);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.fp-ident img {
  width: 30px; height: 30px; border-radius: 50%;
  padding: 3px; background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--fp-line-2);
}
.fp-ident__txt { display: grid; min-width: 0; }
.fp-ident__name {
  font-family: var(--serif);
  font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.01em;
}
.fp-ident__now {
  font-size: 0.74rem; color: var(--fp-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 46ch;
}
.fp-live {
  margin-left: auto;
  display: none; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(216, 40, 40, 0.16);
  border: 1px solid rgba(255, 92, 92, 0.5);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #ffd9d9;
}
.fp-stage.is-live .fp-live { display: inline-flex; }
.fp-live__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff4242;
  animation: fp-pulse 2s infinite;
}
@keyframes fp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 66, 66, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 66, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 66, 66, 0); }
}
.fp-mark {
  position: absolute; z-index: 3; right: 15px; bottom: 62px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(244, 241, 234, 0.42);
  pointer-events: none;
}

/* Poster / tap-to-start cover */
.fp-cover {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background-color: var(--fp-ink);
  background-size: cover; background-position: center;
  transition: opacity .45s var(--ease), visibility .45s;
}
.fp-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.35), rgba(6, 7, 11, 0.78));
}
.fp-stage.is-started .fp-cover { opacity: 0; visibility: hidden; }
.fp-cover__play {
  position: relative; z-index: 2;
  width: clamp(62px, 7vw, 82px); aspect-ratio: 1;
  border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: #241b06;
  box-shadow: 0 18px 42px -14px rgba(191, 155, 63, 0.65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fp-cover__play:hover { transform: scale(1.06); }
.fp-cover__play svg { width: 40%; height: 40%; fill: currentColor; margin-left: 6%; }

/* Buffering + notices */
.fp-spin {
  position: absolute; inset: 0; z-index: 6;
  display: none; place-items: center;
  background: rgba(6, 7, 11, 0.35);
}
.fp-stage.is-buffering .fp-spin { display: grid; }
.fp-spin i {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(244, 241, 234, 0.2);
  border-top-color: var(--gold-2);
  animation: fp-spin 0.9s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

.fp-notice {
  position: absolute; inset: 0; z-index: 7;
  display: none; place-items: center; text-align: center;
  padding: 22px;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.88), rgba(6, 7, 11, 0.96));
}
.fp-notice.is-on { display: grid; }
.fp-notice img {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  padding: 5px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--fp-line-2);
}
.fp-notice h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 6px; }
.fp-notice p { color: var(--fp-dim); font-size: 0.92rem; margin: 0 auto; max-width: 46ch; }
.fp-notice button { margin-top: 14px; }

/* Muted-autoplay nudge */
.fp-unmute {
  position: absolute; z-index: 6; left: 50%; bottom: 74px;
  transform: translateX(-50%);
  display: none; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(6, 7, 11, 0.82); color: var(--fp-cream);
  border: 1px solid var(--fp-line-2);
  font: inherit; font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.fp-stage.is-muted-hint .fp-unmute { display: inline-flex; }
.fp-unmute:hover { border-color: var(--gold-2); color: var(--gold-2); }
.fp-unmute svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- Controls --------------------------------------------------------- */
.fp-ctrl {
  position: absolute; inset: auto 0 0 0; z-index: 8;
  padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(6, 7, 11, 0.92), rgba(6, 7, 11, 0.55) 55%, transparent);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.fp-stage.is-hidden-ui .fp-ctrl,
.fp-stage.is-hidden-ui .fp-ident {
  opacity: 0; pointer-events: none;
}
.fp-stage.is-hidden-ui .fp-ctrl { transform: translateY(8px); }

.fp-bar { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.fp-bar__track {
  position: absolute; top: 7px; left: 0; right: 0; height: 4px;
  border-radius: 999px; background: rgba(244, 241, 234, 0.18); overflow: hidden;
}
.fp-bar__buf  { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(244, 241, 234, 0.26); }
.fp-bar__fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.fp-bar__knob {
  position: absolute; top: 4px; left: 0; width: 11px; height: 11px; margin-left: -5px;
  border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(191, 155, 63, 0.25);
  opacity: 0; transition: opacity .2s;
}
.fp-bar:hover .fp-bar__knob, .fp-bar.is-drag .fp-bar__knob { opacity: 1; }
.fp-stage.is-live-mode .fp-bar { pointer-events: none; }
.fp-stage.is-live-mode .fp-bar__knob { display: none; }

.fp-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.fp-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--fp-cream);
  transition: background .2s, color .2s, transform .2s;
}
.fp-btn:hover { background: rgba(244, 241, 234, 0.1); color: var(--gold-2); }
.fp-btn:active { transform: scale(0.94); }
.fp-btn svg { width: 21px; height: 21px; fill: currentColor; }
.fp-btn--lg { width: 44px; height: 44px; }
.fp-btn--lg svg { width: 25px; height: 25px; }
.fp-btn:focus-visible, .fp-cover__play:focus-visible, .fp-unmute:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 2px;
}

.fp-vol { display: inline-flex; align-items: center; }
.fp-vol__range {
  width: 0; opacity: 0; margin: 0;
  transition: width .25s var(--ease), opacity .25s;
  accent-color: var(--gold-2);
}
.fp-vol:hover .fp-vol__range, .fp-vol__range:focus { width: 80px; opacity: 1; margin-left: 4px; }

.fp-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem; color: var(--fp-dim); padding: 0 8px; white-space: nowrap;
}
.fp-time b { color: var(--fp-cream); font-weight: 600; }
.fp-gap { flex: 1 1 auto; }

.fp-rate { position: relative; }
.fp-rate__btn {
  min-width: 42px; height: 32px; padding: 0 9px;
  border: 1px solid var(--fp-line); border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fp-cream);
  font: inherit; font-size: 0.76rem; font-weight: 700;
}
.fp-rate__btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.fp-rate__menu {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  display: none; flex-direction: column; gap: 2px; padding: 6px;
  background: rgba(9, 11, 16, 0.96); border: 1px solid var(--fp-line);
  border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.fp-rate.is-open .fp-rate__menu { display: flex; }
.fp-rate__menu button {
  border: 0; background: transparent; color: var(--fp-cream); cursor: pointer;
  font: inherit; font-size: 0.8rem; padding: 5px 14px; border-radius: 8px; text-align: left;
}
.fp-rate__menu button:hover { background: rgba(244, 241, 234, 0.1); }
.fp-rate__menu button[aria-checked="true"] { color: var(--gold-2); font-weight: 700; }

@media (max-width: 640px) {
  .fp-btn { width: 34px; height: 34px; }
  .fp-btn svg { width: 19px; height: 19px; }
  .fp-vol:hover .fp-vol__range, .fp-vol__range:focus { width: 54px; }
  .fp-ident__now { max-width: 22ch; }
  .fp-mark { display: none; }
}

/* ---- Under-player meta ----------------------------------------------- */
.fp-meta {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px 22px; padding: 15px 4px 0;
}
.fp-meta__txt { max-width: 62ch; }
.fp-meta__title { font-family: var(--serif); font-size: clamp(1.12rem, 0.9rem + 0.8vw, 1.5rem); }
.fp-meta__desc { color: var(--fp-dim); font-size: 0.92rem; margin: 6px 0 0; }
.fp-socials { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-socials__label {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fp-faint);
}
.fp-social {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--fp-line); color: var(--fp-cream);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.fp-social:hover {
  border-color: var(--gold-2); color: var(--gold-2);
  background: rgba(191, 155, 63, 0.12); transform: translateY(-2px);
}
.fp-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- Side rail ------------------------------------------------------- */
.fp__rail { display: grid; gap: 14px; }
.fp-card {
  background: var(--fp-glass);
  border: 1px solid var(--fp-line);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fp-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.fp-card__head h3 { font-family: var(--serif); font-size: 1.02rem; }
.fp-card__head svg { width: 17px; height: 17px; fill: var(--gold-2); flex: none; }
.fp-card p { color: var(--fp-dim); font-size: 0.88rem; margin: 0; }
/* The site's .btn is sized for section CTAs; trim it for the rail card. Its
   ghost variant is only re-tinted for dark inside .hero, and these cards sit
   outside it, so state the light-on-dark colours here. */
.fp-card .btn {
  margin-top: 12px; padding: 0.6rem 1.1rem; font-size: 0.85rem;
}

.fp-slot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 11px;
  padding: 9px 0; border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.fp-slot:first-child { border-top: 0; padding-top: 2px; }
.fp-slot__time {
  font-size: 0.78rem; font-weight: 700; color: var(--gold-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fp-slot__t { font-size: 0.9rem; font-weight: 600; }
.fp-slot__d { display: block; font-size: 0.78rem; color: var(--fp-faint); }
.fp-slot.is-now .fp-slot__t { color: var(--gold-2); }
.fp-now {
  display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px;
  background: rgba(191, 155, 63, 0.18); border: 1px solid var(--fp-line-2);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-2); vertical-align: 1px;
}
.fp-empty { color: var(--fp-faint); font-size: 0.86rem; }
.fp-empty a { color: var(--gold-2); }

/* Skeletons keep the rail from jumping while the channel loads */
.fp-skel {
  height: 12px; border-radius: 999px; margin: 9px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: fp-shine 1.5s linear infinite;
}
@keyframes fp-shine { to { background-position: -200% 0; } }

/* ---- "The live signal plays above" card (Live section) --------------- */
.fp-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.2rem, 2.4vw, 1.9rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
  border: 1px solid rgba(191, 155, 63, 0.22);
  box-shadow: var(--shadow-sm);
  color: #f4f1ea;
}
.fp-callout h3 { font-family: var(--serif); font-size: 1.3rem; }
.fp-callout p { color: #cfcabf; font-size: 0.94rem; margin: 6px 0 0; max-width: 58ch; }
.fp-callout__badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2);
}
.fp-callout__badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2);
  animation: fp-pulse 2s infinite;
}
/* .btn--ghost is only re-tinted for dark backgrounds inside .hero, and this
   card lives in a normal section — so give it the light-on-dark treatment. */
.fp-callout .btn--ghost {
  color: #f4f1ea; border-color: rgba(255, 255, 255, 0.28);
}
.fp-callout .btn--ghost:hover { color: var(--gold-2); border-color: var(--gold-2); }
