:root {
  --rpt-live-bg: #070a0d;
  --rpt-live-bg-2: #0f1419;
  --rpt-live-border: rgba(255,255,255,.12);
  --rpt-live-text: #fff;
  --rpt-live-muted: #aeb8c2;
  --rpt-live-brand: #d7ff00;
  --rpt-live-red: #ff1744;
}

.rpt-live-root,
.rpt-live-root * {
  box-sizing: border-box;
}

.rpt-live-root {
  position: fixed;
  z-index: 2147482000;
  font-family: inherit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rpt-live-text);
}

.rpt-live-card.is-desktop {
  top: 72px;
  right: 18px;
  width: 420px;
  overflow: hidden;
  background: var(--rpt-live-bg);
  border: 1px solid var(--rpt-live-border);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.48);
  animation: rptLiveIn .22s ease-out;
}

.rpt-live-card.is-desktop.is-large {
  width: min(760px, calc(100vw - 36px));
}

.rpt-live-header {
  min-height: 46px;
  padding: 8px 9px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(180deg, #11171d, #0a0e12);
  border-bottom: 1px solid var(--rpt-live-border);
}

.rpt-live-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.rpt-live-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,23,68,.14);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}

.rpt-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rpt-live-red);
  box-shadow: 0 0 0 0 rgba(255,23,68,.65);
  animation: rptLivePulse 1.6s infinite;
}

.rpt-live-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .01em;
}

.rpt-live-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rpt-live-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #dfe6ed;
  font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.rpt-live-icon:hover,
.rpt-live-icon:focus-visible {
  background: rgba(255,255,255,.10);
  color: #fff;
  outline: none;
}

.rpt-live-close:hover,
.rpt-live-close:focus-visible {
  background: rgba(255,23,68,.18);
}

.rpt-live-count {
  min-width: 28px;
  text-align: center;
  color: var(--rpt-live-muted);
  font-size: 11px;
  font-weight: 700;
}

.rpt-live-player-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #000;
}

.rpt-live-iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: #000;
  transform-origin: top left;
}

.rpt-live-card.is-desktop.is-large .rpt-live-player-wrap,
.rpt-live-card.is-desktop.is-large .rpt-live-iframe {
  height: min(52vw, 500px);
  min-height: 300px;
}

.rpt-live-meta {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px 10px 13px;
  background: var(--rpt-live-bg-2);
  border-top: 1px solid rgba(255,255,255,.06);
}

.rpt-live-meta-text {
  min-width: 0;
}

.rpt-live-stream-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.rpt-live-stream-sub {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rpt-live-muted);
  font-size: 11px;
}

.rpt-live-twitch-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--rpt-live-brand);
  color: #0b0d0f !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .01em;
}

.rpt-live-twitch-link:hover,
.rpt-live-twitch-link:focus-visible {
  filter: brightness(.92);
  outline: none;
}

.rpt-live-desktop-mini {
  top: 72px;
  right: 18px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--rpt-live-border);
  border-radius: 12px;
  background: var(--rpt-live-bg);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.rpt-live-mini-button {
  min-width: 180px;
  height: 48px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.rpt-live-mini-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.rpt-live-mini-copy strong {
  font-size: 10px;
  letter-spacing: .08em;
}

.rpt-live-mini-copy small {
  margin-top: 4px;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rpt-live-muted);
  font-size: 10px;
}

.rpt-live-mini-close {
  width: 34px;
  height: 48px;
  border-radius: 0;
  border-left: 1px solid rgba(255,255,255,.08);
}

.rpt-live-play {
  color: var(--rpt-live-brand);
  font-size: 12px;
}

.rpt-live-mobile-pill {
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  animation: rptLivePillIn .22s ease-out;
}

.rpt-live-pill {
  height: 40px;
  min-width: 88px;
  padding: 0 10px 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(7,10,13,.96);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rpt-live-card.is-mobile {
  top: 50%;
  left: 50%;
  width: calc(100vw - 24px);
  max-width: 420px;
  max-height: calc(100vh - 24px);
  transform: translate(-50%, -50%);
  overflow: auto;
  background: var(--rpt-live-bg);
  border: 1px solid var(--rpt-live-border);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0,0,0,.58);
  animation: rptLiveMobileOpen .2s ease-out;
}

.rpt-live-card.is-mobile .rpt-live-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.rpt-live-card.is-mobile .rpt-live-player-wrap {
  width: 100%;
  min-height: 210px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

.rpt-live-card.is-mobile .rpt-live-iframe {
  flex: 0 0 400px;
  width: 400px;
  height: 300px;
  max-width: none;
  transform-origin: top left;
}

.rpt-live-card.is-mobile .rpt-live-meta {
  align-items: flex-start;
}

.rpt-live-card.is-mobile .rpt-live-twitch-link {
  min-height: 36px;
}

.rpt-live-collapse-mobile {
  width: 100%;
  height: 40px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0b1014;
  color: #c9d0d7;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
}

@media (min-width: 783px) {
  body.admin-bar .rpt-live-card.is-desktop,
  body.admin-bar .rpt-live-desktop-mini {
    top: 104px;
  }
}

@media (max-width: 782px) {
  .rpt-live-card.is-desktop,
  .rpt-live-desktop-mini {
    display: none !important;
  }

  .rpt-live-name {
    max-width: 112px;
  }

  .rpt-live-meta {
    padding-left: 10px;
    padding-right: 10px;
  }

  .rpt-live-stream-title {
    max-width: 180px;
  }
}

@media (max-width: 360px) {
  .rpt-live-card.is-mobile {
    width: calc(100vw - 12px);
  }

  .rpt-live-stream-title {
    max-width: 145px;
  }

  .rpt-live-twitch-link {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 10px;
  }
}

@keyframes rptLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,23,68,.62); }
  70% { box-shadow: 0 0 0 7px rgba(255,23,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,23,68,0); }
}

@keyframes rptLiveIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rptLivePillIn {
  from { opacity: 0; transform: translate(16px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

@keyframes rptLiveMobileOpen {
  from { opacity: 0; transform: translate(-50%, -48%) scale(.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .rpt-live-root,
  .rpt-live-root * {
    animation: none !important;
    transition: none !important;
  }
}
