* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #fff; }
body {
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; }
#app { position: relative; height: 100%; }
#lobby {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4vh 5vw 8vh;
  background: linear-gradient(#14080a, #000 42%, #000);
}
.featured { display: flex; align-items: center; margin-bottom: 4vh; }
.featured .poster { width: 280px; height: 420px; margin-right: 48px; flex: 0 0 auto; }
.kicker {
  margin: 0 0 0.6rem;
  color: #dbb86a;
  font: 600 0.95rem/1 sans-serif;
  letter-spacing: 0.38em;
}
.featured h1 { margin: 0; font-size: 3.4rem; line-height: 1.05; font-weight: 700; }
.meta { margin: 0.8rem 0; color: #c8c8c8; font: 1.45rem/1.3 sans-serif; }
.summary { max-width: 46rem; margin: 0; font-size: 1.45rem; line-height: 1.35; color: rgba(255,255,255,0.92); }
.note { max-width: 46rem; margin: 0.8rem 0 0; color: #bdbdbd; font: 1.15rem/1.4 sans-serif; }
.play {
  display: inline-block;
  margin-top: 1.4rem;
  min-width: 220px;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  background: #9e1f24;
  color: #fff;
  font: 600 1.6rem/1 sans-serif;
  text-align: center;
}
.shelf { margin-top: 1.5rem; }
.shelf h2 { margin: 0 0 0.2rem; font-size: 2.1rem; font-weight: 600; }
.shelf h2 span { color: #bdbdbd; font: 1.3rem/1 sans-serif; margin-left: 0.7rem; }
.row {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 22px 8px 28px;
}
.card { width: 180px; margin-right: 28px; flex: 0 0 auto; }
.poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(237, 204, 122, 0.45);
  background: #111;
}
.card .poster { width: 180px; height: 270px; }
.poster img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #0c0c0c; }
.art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.art .year { color: #edcc7a; font: 700 0.8rem/1 sans-serif; letter-spacing: 0.14em; }
.art .rule { width: 42px; height: 2px; margin: 10px 0; background: #edcc7a; }
.art .name { font-size: 1.45rem; line-height: 1.15; font-weight: 700; }
.art .by { margin-top: 6px; color: rgba(255,255,255,0.8); font: 0.85rem/1.2 sans-serif; }
.card p { width: 180px; margin: 10px 0 0; font: 600 1.05rem/1.25 sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .when { white-space: normal; }
.card .when { color: #edcc7a; font: 600 0.95rem/1.2 sans-serif; }
.play.focus, .card.focus, .play:focus, .card.focus .poster {
  outline: 4px solid #edcc7a;
  outline-offset: 6px;
}
.card.focus { transform: scale(1.05); }
#detail, #stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #000; }
#detail { display: flex; align-items: center; padding: 6vh 6vw; }
#detail .poster { margin-right: 4vw; }
#detail[hidden], #stage[hidden], #stage-lock[hidden], #hud-error[hidden] { display: none; }
#detail .poster { width: 26vw; height: 39vw; max-width: 460px; max-height: 690px; flex: 0 0 auto; }
#detail h1 { margin: 0; font-size: 3.6rem; line-height: 1.05; }
#stage-lock {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem;
}
#stage-lock h1 { margin: 0 0 1rem; font-size: 3rem; }
#stage-lock p { margin: 0; color: #c8c8c8; font: 1.6rem/1.4 sans-serif; }
#video { width: 100%; height: 100%; background: #000; }
#hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 4rem 2.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
#hud.quiet { opacity: 0; }
#hud-title { margin: 0; font-size: 2rem; }
#hud-time, #hud-help, #hud-error { margin: 0.4rem 0 0; font: 1.2rem/1.4 sans-serif; color: #ddd; }
#hud-error { color: #edcc7a; }
