.tpm-live-auth {
  --live-accent: #ff853c;
  container: tpm-live-auth / inline-size;
  min-inline-size: 0;
  color: #f7f7f7;
  background: #111;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  overflow: hidden;
}
.tpm-live-auth [hidden], .tpm-live-auth__timer[hidden] { display: none !important; }
.tpm-live-auth iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; background: #090909; }
.tpm-live-auth__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.tpm-live-auth__stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  isolation: isolate;
  background: radial-gradient(ellipse at 10% 105%, #412214 0, transparent 58%), #0b0b0b;
  border-right: 1px solid #2d2d2d;
  position: relative;
}
.tpm-live-auth__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 24px, #ffffff0b 24px 25px);
  mask-image: linear-gradient(to top right, transparent 15%, #000 85%);
  pointer-events: none;
  z-index: -1;
}
.tpm-live-auth__signal, .tpm-live-auth__lock {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
}
.tpm-live-auth__signal { text-transform: uppercase; letter-spacing: .12em; }
.tpm-live-auth__signal span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--live-accent); }
.tpm-live-auth__wordmark { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; font-weight: 900; letter-spacing: -.07em; }
.tpm-live-auth__wordmark span { color: var(--live-accent); }
.tpm-live-auth__channel { display: block; margin-top: .8rem; color: #ccc; font-size: .9rem; }
.tpm-live-auth__access {
  min-width: 0;
  padding: clamp(1.25rem, 3.5cqi, 2.5rem);
  background: #141414;
}
.tpm-live-auth__access h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.15; margin: 0 0 .55rem; letter-spacing: -.025em; }
.tpm-live-auth__access p { margin: 0; font-size: .91rem; line-height: 1.45; color: #c9c9c9; }
.tpm-live-auth form { display: grid; gap: .7rem; margin-top: 1.2rem; }
.tpm-live-auth label { display: grid; gap: .35rem; font-size: .86rem; font-weight: 700; }
.tpm-live-auth input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: .6rem .8rem;
  font-size: 1rem;
  color: #fff;
  background: #181818;
  border: 1px solid #626262;
  border-radius: 6px;
}
.tpm-live-auth__password {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #626262;
  border-radius: 6px;
  background: #181818;
}
.tpm-live-auth__password input { border: 0; border-radius: 5px 0 0 5px; }
.tpm-live-auth__password [data-live-password] {
  align-self: stretch;
  min-width: 4rem;
  border: 0;
  border-inline-start: 1px solid #414141;
  border-radius: 0 5px 5px 0;
  background: transparent;
}
.tpm-live-auth button {
  max-inline-size: 100%;
  min-height: 44px;
  overflow-wrap: anywhere;
  padding: .45rem .85rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid #555;
  border-radius: 6px;
  background: #1d1d1d;
  color: #fff;
  cursor: pointer;
}
.tpm-live-auth button:hover { border-color: var(--live-accent); }
.tpm-live-auth .tpm-live-auth__primary, .tpm-live-auth .tpm-live-auth__preview { background: var(--live-accent); border-color: var(--live-accent); color: #16100c; }
.tpm-live-auth .tpm-live-auth__primary { margin-top: .25rem; min-height: 48px; }
.tpm-live-auth button:focus-visible, .tpm-live-auth input:focus-visible { outline: 2px solid var(--live-accent); outline-offset: 2px; }
.tpm-live-auth button:disabled { opacity: .65; cursor: wait; }
.tpm-live-auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; }
.tpm-live-auth__links button { background: transparent; border-color: transparent; padding-inline: .15rem; font-size: .81rem; }
.tpm-live-auth__links [data-live-action="register"] { color: var(--live-accent); }
.tpm-live-auth__providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .55rem; padding-top: .85rem; border-top: 1px solid #353535; }
.tpm-live-auth__providers i { margin-inline-end: .35rem; }
.tpm-live-auth [data-live-retry] { margin-top: .9rem; }
.tpm-live-auth__bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .55rem .85rem; border-top: 1px solid #2d2d2d; }
.tpm-live-auth__picture { position: relative; }
.tpm-live-auth__viewer { min-inline-size: 0; flex: 1 1 8rem; font-size: .85rem; overflow-wrap: anywhere; }
.tpm-live-auth__timer {
  position: absolute;
  z-index: 5;
  inset-block-start: max(.5rem, env(safe-area-inset-top));
  inset-inline-end: max(.5rem, env(safe-area-inset-right));
  max-inline-size: calc(100% - 1rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: .35rem .65rem;
  padding: .5rem .65rem;
  border: 1px solid #666;
  border-radius: 7px;
  color: #fff;
  background: #080808ee;
  font-size: clamp(.72rem, 2vw, .87rem);
  line-height: 1.2;
  pointer-events: none;
}
.tpm-live-auth__timer progress { grid-column: 1 / -1; width: 100%; height: .25rem; accent-color: var(--live-accent, #ff853c); }
.tpm-live-auth__timer [data-live-clock] { color: #ff9c62; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .tpm-live-auth__panel { grid-template-columns: minmax(0, 1fr); }
  .tpm-live-auth__stage { border-right: 0; border-bottom: 1px solid #2d2d2d; gap: 1rem; }
}
@container tpm-live-auth (max-width: 640px) {
  .tpm-live-auth__panel { grid-template-columns: minmax(0, 1fr); }
  .tpm-live-auth__stage {
    border-right: 0;
    border-bottom: 1px solid #2d2d2d;
    gap: .75rem;
    padding: 1rem;
  }
  .tpm-live-auth__wordmark { font-size: clamp(2rem, 8cqi, 3rem); }
  .tpm-live-auth__channel { margin-top: .4rem; }
  .tpm-live-auth__access { padding: 1rem; }
}
@container tpm-live-auth (max-width: 360px) {
  .tpm-live-auth__bar { gap: .35rem .65rem; padding-inline: .65rem; }
  .tpm-live-auth__bar [data-live-account] { flex: 1 1 auto; }
  .tpm-live-auth__links { column-gap: .65rem; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .tpm-live-auth__timer { font-size: .72rem; padding: .35rem .5rem; }
}

.tpm-live-auth[data-live-playing] .tpm-live-auth__panel {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  background: #141414;
  border-top: 1px solid #2d2d2d;
}
.tpm-live-auth[data-live-playing] .tpm-live-auth__panel .tpm-live-auth__stage {
  display: none;
}

.tpm-live-auth__timer .tpm-live-auth__watch {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: .3rem .55rem;
  border: 1px solid #ff853c;
  border-radius: 4px;
  background: #ff853c;
  color: #1b100b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}
.tpm-live-auth__timer .tpm-live-auth__watch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.tpm-live-auth[data-live-locked] .tpm-live-auth__stage {
  background: radial-gradient(ellipse at 15% 90%, #3e1e12, transparent 65%), #090909;
}
.tpm-live-auth__lock {
  padding: .45rem .6rem;
  border: 1px solid #785039;
  border-radius: 5px;
  color: #ffb68d;
  background: #21140f;
}
.tpm-live-auth__zero {
  padding-inline-start: .55rem;
  border-inline-start: 1px solid #785039;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 380px), (orientation: landscape) and (max-height: 480px) {
  .tpm-live-auth__timer .tpm-live-auth__watch { display: none; }
}

@container tpm-live-auth (max-width: 640px) {
  .tpm-live-auth[data-live-locked] .tpm-live-auth__stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .tpm-live-auth[data-live-locked] .tpm-live-auth__station { display: none; }
  .tpm-live-auth__providers { grid-template-columns: minmax(0, 1fr); }
}
