.player-channel-page {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.player-channel-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.player-channel-stream {
  background: #05070b;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

/* Feeds are stacked and cross-faded rather than swapped, so switching to the
   other player is instant instead of tearing down and re-buffering a stream. */
.pc-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.pc-feed {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
}

.pc-feed.is-active {
  opacity: 1;
  visibility: visible;
}

.pc-feed iframe,
.player-channel-stream > iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Which player's camera you're looking at. */
.pc-feed-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(5, 7, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.pc-shooting {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #052b12;
  background: #2eff73;
  box-shadow: 0 6px 20px rgba(46, 255, 115, 0.35);
  pointer-events: none;
}

.pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #052b12;
  animation: pc-pulse 1.4s ease-in-out infinite;
}

@keyframes pc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-feed { transition: none; }
  .pc-dot { animation: none; }
}

.pc-coverage {
  color: rgba(255, 255, 255, 0.68);
  margin: 6px 0 14px;
}

.pc-round {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.pc-score {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.pc-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
}

.pc-score-row.is-shooting {
  border-color: rgba(46, 255, 115, 0.55);
  background: rgba(46, 255, 115, 0.1);
}

.pc-score-name {
  font-weight: 700;
  color: #fff;
}

.pc-score-value {
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #2eff73;
}

.player-channel-no-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: rgba(255, 255, 255, 0.6);
}

.player-channel-panel {
  background: rgba(8, 13, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
}

.player-channel-empty,
.player-channel-error {
  padding: 48px 24px;
  text-align: center;
  background: rgba(8, 13, 20, 0.9);
  border-radius: 18px;
}
.player-channel-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(13, 20, 32, 0.96),
    rgba(20, 36, 52, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.player-channel-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.player-channel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.player-channel-stats div {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.player-channel-status {
  margin: 12px 0 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(90deg, #ef5c23, #ff7a3d);
  box-shadow: 0 8px 24px rgba(239, 92, 35, 0.35);
}

@media (max-width: 900px) {
  .player-channel-hero {
    grid-template-columns: 1fr;
  }
}
