* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#screen {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 70fr 30fr;
  background: #000;
  position: relative;
}

.zone {
  position: relative;
  overflow: hidden;
  background: #030712;
}

.left-zone { border-right: 1px solid rgba(255,255,255,0.08); }
.right-zone { background: #07101f; }

.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.media.contain { object-fit: contain; }

/* Dedicated muted signage playback: keep platform transport overlays off-screen. */
video.media::-webkit-media-controls { display: none !important; }
video.media::-webkit-media-controls-overlay-play-button { display: none !important; }
video.media::-webkit-media-controls-start-playback-button { display: none !important; }

.empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  gap: 12px;
  padding: 40px;
  background: #020617;
}

.empty.loading {
  background: #000 url("./loading.jpg") center center / contain no-repeat;
  color: transparent;
}

.empty strong {
  font-size: 58px;
  letter-spacing: -0.05em;
}

.empty span {
  font-size: 24px;
  color: rgba(255,255,255,0.72);
}

.empty.small strong { font-size: 34px; }
.empty.small span { font-size: 18px; }

#statusPill {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

#statusPill.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
}

#debugPanel {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 430px;
  max-width: calc(100vw - 40px);
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  z-index: 50;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.14);
}

.debug-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.debug-head h2 { margin: 0; font-size: 20px; }

.debug-head span {
  background: #0352fb;
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

#debugPanel dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

#debugPanel dt {
  color: #93c5fd;
  font-weight: 800;
}

#debugPanel dd {
  margin: 0;
  word-break: break-all;
  color: #e5e7eb;
}

.debug-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.debug-actions button {
  border: 0;
  border-radius: 14px;
  padding: 13px;
  font-weight: 900;
  background: #0352fb;
  color: #fff;
}

.debug-actions button:nth-child(2) { background: #475569; }
.debug-actions button:last-child {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.15);
}

.fade-in { animation: fadeIn 0.25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#playerErrorOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 40px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 64, 175, 0.38), rgba(2, 6, 23, 0.98) 52%, #000 100%);
  color: #fff;
}

#playerErrorOverlay[hidden] { display: none; }

.player-error-card {
  width: min(760px, 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  padding: 42px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 36px 120px rgba(0,0,0,0.55);
  text-align: left;
}

.player-error-kicker {
  margin: 0 0 12px;
  color: #93c5fd;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-error-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.06em;
}

.player-error-card p {
  margin: 0 0 22px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
  color: rgba(255,255,255,0.8);
}

.player-error-card pre {
  white-space: pre-wrap;
  word-break: break-all;
  padding: 16px;
  margin: 0 0 22px;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.player-error-card strong {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 28px);
}

.player-error-card span {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,0.58);
  font-size: 16px;
}

#noticeOverlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  background: #000;
  color: #fff;
}

#noticeOverlay.is-active {
  display: block;
}

.notice-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(2, 101, 247, 0.32), rgba(2, 6, 23, 0.98) 52%, #000 100%);
}

.notice-stage img.notice-media,
.notice-stage video.notice-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.notice-stage img.notice-media.contain,
.notice-stage video.notice-media.contain {
  object-fit: contain;
}

.notice-text-card {
  width: min(980px, calc(100% - 96px));
  border-radius: 36px;
  padding: 54px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 32px 120px rgba(0,0,0,0.52);
  text-align: center;
}

.notice-kicker {
  margin: 0 0 16px;
  color: #93c5fd;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.notice-text-card h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 86px);
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.notice-text-card p {
  margin: 0 auto 24px;
  max-width: 800px;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.35;
  color: rgba(255,255,255,0.86);
  white-space: pre-wrap;
}

.notice-link-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 22px 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
}

.notice-link-block img {
  width: min(260px, 28vw);
  height: min(260px, 28vw);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

.notice-link-block code {
  max-width: 760px;
  color: #fff;
  font-size: clamp(18px, 1.8vw, 28px);
  word-break: break-all;
}

.notice-badge {
  position: fixed;
  left: 26px;
  top: 26px;
  z-index: 910;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 101, 247, 0.8);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

/* Preserve the supplied artwork without cropping in either lane. */
.media.lv-video-waiting { object-fit: contain; background: #fff; }
.left-zone .empty.loading { background: #fff url("./waiting-left.jpg?v=1.9.5") center / contain no-repeat; }
.right-zone .empty.loading { background: #fff url("./waiting-right.jpg?v=1.9.5") center / contain no-repeat; }
