/*
 * The Impakt Live design, over the working watch page.
 *
 * The stream is the whole viewport. Everything else floats on it: the header
 * fades in over the top edge, the felt sits centre stage, the action dock is
 * pinned bottom-left, chat is a transparent rail on the right, and the channel
 * row lives below the fold. Nothing here changes an id or a behaviour; it is
 * the same page wearing the design.
 *
 * Scoped to .watch-page and, where layout genuinely differs, to desktop
 * widths; phones keep the stacked shapes that already work there.
 */

/* ---------------- the page becomes the player ---------------- */

.watch-page .shell { padding: 0; max-width: none; }
.watch-page .shell-body { display: block; }
.watch-page .stage { padding: 0; gap: 0; }

.watch-page .player-frame {
  height: 100svh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: radial-gradient(900px 500px at 50% 30%, #0d1f14, #050506 75%);
}
.watch-page .player-frame video { object-fit: cover; }

/* The faint scanlines the design lays over the picture. */
.watch-page .player-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .012) 3px 4px);
  pointer-events: none;
}

/* ---------------- the offline channel, same full surface ----------------
   The offline view is a bordered card with a max width of its own, which read
   as a panel floating on the page while the live view fills the window. On
   this page it is the same surface: edge to edge, no card, the stage as tall
   as the window so the channel row sits below the fold exactly as it does
   when the stream is running. */

.watch-page .off {
  max-width: none;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.watch-page .off-stage {
  min-height: 100svh;
  /* Clear of the overlay header, which floats above this too. */
  padding-top: 120px;
}

.watch-page .off-bar,
.watch-page .off-body {
  padding-left: 26px;
  padding-right: 26px;
}

/* ---------------- overlay header ---------------- */

.watch-page .ar-top.lv-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent);
  border-bottom: 0;
}

.watch-page .lv-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.watch-page .lv-mark img {
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .85));
}
.watch-page .lv-head .ar-nav { display: flex; gap: 14px; margin: 0; }
.watch-page .lv-head .ar-nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(231, 231, 231, .75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.watch-page .lv-head .ar-nav a:hover { color: #fff; }
.watch-page .lv-head .ar-nav a.is-on { color: var(--signal); }

.watch-page .lv-head #clock { display: none; }

/* LIVE // uptime, red and blinking, and the gold now-playing chip. */
.watch-page .lv-status { display: flex; align-items: center; gap: 8px; }
.watch-page .lv-status .pill {
  border: 0;
  border-radius: 4px;
  background: rgba(6, 6, 9, .55);
  color: #e7e7e7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 6px 12px;
  font-family: 'Archivo', sans-serif;
}
.watch-page .lv-status .pill.live {
  background: #c92a30;
  color: #fff;
}
.watch-page .lv-status .pill.live svg {
  width: 7px; height: 7px;
  animation: lvBlink 1.2s infinite;
}
.watch-page .lv-nowplaying {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 6, 9, .55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 214, 110, .4);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #ffd66e;
  text-transform: uppercase;
}
.watch-page .lv-nowplaying::before {
  content: 'NOW PLAYING';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(231, 231, 231, .5);
}

/* The balance, said big. */
.watch-page .lv-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.watch-page .lv-right::before {
  content: 'YOUR BALANCE';
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(231, 231, 231, .55);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.watch-page .lv-right .ar-bal {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1;
  color: var(--signal);
  text-shadow: 0 0 40px rgba(63, 220, 111, .55);
}
.watch-page .lv-right .ar-bal .ar-coin { width: .38em; height: .38em; }
.watch-page .lv-watching {
  border: 0;
  background: transparent;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(231, 231, 231, .85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  padding: 0;
}
.watch-page .lv-right .ar-tag { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

@keyframes lvBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------------- the crowd layer: felt centre, dock bottom-left ------- */

.watch-page .crowd {
  position: absolute;
  inset: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  max-width: none;
  max-height: none;
  z-index: 5;
  display: block;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}
.watch-page .crowd > * { pointer-events: auto; }

/* Centre stage. The felt floats on the stream with no box around it. */
.watch-page .crowd .crowd-table {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(560px, 60vw);
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
}
.watch-page .pt-row { justify-content: center; }
.watch-page .pt-who {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(231, 231, 231, .55);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.watch-page .pt-head { justify-content: center; gap: 14px; }
.watch-page .pt-cards { justify-content: center; flex: none; }

/* The cards, at the design's size: white, 58 by 82, dealt in. */
.watch-page .pc {
  width: 58px;
  height: 82px;
  border-radius: 9px;
  font-size: 19px;
  font-weight: 700;
  background: #f4f4f6;
  color: #0a0a0b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  animation: lvDealIn .4s cubic-bezier(.2, 1.2, .4, 1) both;
}
.watch-page .pc.red { color: #c92a30; }
.watch-page .pc.back {
  background: rgba(26, 26, 32, .85);
  border: 1px dashed #3a3a42;
  box-shadow: none;
}
.watch-page .pc:nth-child(2) { animation-delay: .12s; }
.watch-page .pc:nth-child(3) { animation-delay: .24s; }
.watch-page .pc:nth-child(4) { animation-delay: .36s; }
.watch-page .pc:nth-child(5) { animation-delay: .48s; }
@keyframes lvDealIn {
  0% { transform: translateY(-46px) rotate(-14deg); opacity: 0; }
  60% { transform: translateY(4px) rotate(2deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .watch-page .pc { animation: none; } }

/* The action dock: everything a viewer taps, bottom-left over the stream. */
.watch-page .crowd-dock {
  position: absolute;
  left: 22px;
  bottom: 74px;
  width: 560px;
  max-width: calc(100% - 320px);
  max-height: 62vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(6, 6, 9, .55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 16px;
  animation: lvHudIn .4s ease;
  scrollbar-width: thin;
}
@keyframes lvHudIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Cards inside the dock lose their own chrome; the dock is the chrome. */
.watch-page .crowd-dock > div,
.watch-page .crowd-dock .crowd-shares,
.watch-page .crowd-dock .crowd-book,
.watch-page .crowd-dock .crowd-bets,
.watch-page .crowd-dock .crowd-poll,
.watch-page .crowd-dock .crowd-bank {
  background: transparent;
  border: 0;
  padding: 0;
}
.watch-page .crowd-head { padding: 0; }

/* ---------------- chat: the transparent right rail ---------------- */

.watch-page .chat-panel {
  top: 132px;
  right: 0;
  bottom: 0;
  width: 270px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.watch-page .chat-head { border: 0; background: transparent; padding: 10px 16px; }
.watch-page .chat-log { padding: 12px 16px; }
.watch-page .msg { background: transparent; border: 0; padding: 2px 0; }
.watch-page .msg .who { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 700; }
.watch-page .msg .text {
  font-size: 14px;
  color: #e5e5ec;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.watch-page .chat-compose { padding: 12px 16px; border: 0; background: transparent; }
.watch-page .chat-compose input {
  background: rgba(16, 16, 19, .8);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
}
.watch-page .btn-send { border-radius: 8px; }

/* ---------------- below the fold: the channel row ---------------- */

.watch-page .channel-head,
.watch-page .support-panel,
.watch-page .title-bar,
.watch-page .vod-strip {
  margin: 0 22px;
}
.watch-page .channel-head {
  padding: 18px 0 6px;
  border-top: 1px solid #1d1d21;
}
.watch-page .channel-name b {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
}
.watch-page .title-bar { padding: 4px 0 16px; }
.watch-page .title-bar h1 {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #9a9aa3;
  text-transform: uppercase;
}

.watch-page .lv-buycoins {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #04120a;
  background: var(--signal);
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(63, 220, 111, .3);
  text-decoration: none;
}
.watch-page .lv-buycoins:hover { filter: brightness(1.12); color: #04120a; }

/* ---------------- footer strip ---------------- */

.lv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 26px;
  border-top: 1px solid #1d1d21;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  color: #5d5d66;
}

/* ---------------- phones keep the stacked page ---------------- */

@media (max-width: 900px) {
  .watch-page .player-frame { height: auto; aspect-ratio: 16 / 9; }
  .watch-page .player-frame video { object-fit: contain; }

  /*
   * A phone has no room for the two-column overlay: the nav and the balance
   * were landing on top of each other and NOW PLAYING ran off the edge. The
   * header becomes a plain stacked bar that wraps, and the balance shrinks to
   * a line of it rather than a headline.
   */
  .watch-page .ar-top.lv-head {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: #000;
    padding: 10px 14px;
  }
  .watch-page .lv-mark img { height: 34px; }
  .watch-page .lv-head .ar-nav { flex-wrap: wrap; gap: 12px; }
  .watch-page .lv-status { flex-wrap: wrap; }
  .watch-page .lv-nowplaying { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .watch-page .lv-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .watch-page .lv-right .ar-bal { font-size: 22px; }
  .watch-page .lv-right::before { display: none; }
  .watch-page .lv-watching { font-size: 11px; }

  /*
   * The panel is moved out of the player frame by watch.js on a narrow screen,
   * because the frame clips. Here it is simply a block under the video.
   */
  .watch-page .crowd { position: static; pointer-events: auto; margin: 0; }
  .watch-page .crowd .crowd-table {
    position: static;
    transform: none;
    width: auto;
    margin: 10px 14px 0;
  }
  .watch-page .crowd-dock {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 10px 14px;
  }
  .watch-page .pc { width: 40px; height: 58px; font-size: 15px; }
  .watch-page .chat-panel { position: static; width: auto; background: #0b0b0d; }
}

/*
 * The signed-out guide strip has no seat on a full-bleed player: prepended to
 * the shell it lands under the overlay header and the two fight. The home page
 * still carries it; here the header's SIGN IN does that job.
 */
.watch-page .gd-bar { display: none; }
