/* css/clips.css: the clips page, the whole-episode action, the preview player.
   Part 3 of 10 of the app's stylesheet (app.css until Phase 3). Every page loads all the parts, in the
   order of CSS in lib/views/parts.js, so a later part still wins a tie, as further down the one file did. */
/* clips (F3) */
main.wide {
  max-width: 1200px;
}
.btn.sm {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--edge);
}
.freebar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 15px;
}
.boxes {
  display: inline-flex;
  gap: 6px;
}
.boxes span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--edge);
  border-radius: 6px;
  background: #fff;
}
.boxes span.on {
  background: var(--tomato);
}
.clipgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 22px;
}
.clip {
  background: #fff;
  border: 3px solid var(--edge);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--edge);
  overflow: hidden;
  display: flex;
  min-width: 0;
}
.clip[hidden] {
  display: none;
}
.thumb {
  position: relative;
  width: 132px;
  flex: none;
  aspect-ratio: 9 / 16;
  background: var(--screen);
  border: 0;
  border-right: 3px solid var(--edge);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.thumb .face {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 999px;
  background: var(--screen-3);
}
.thumb .body {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 110px;
  height: 110px;
  margin-left: -55px;
  border-radius: 55px 55px 0 0;
  background: var(--screen-3);
}
.thumb .pbtn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: var(--mustard);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb .len {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--edge);
  color: var(--bg);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
}
.clip .info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.clip .hook {
  font: 400 22px/1.05 var(--display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.clip .who {
  font: 700 13px var(--body);
  color: var(--muted);
}
.clip .acts {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.clip .acts .btn {
  padding: 10px 12px;
  font-size: 13px;
}
.clip .acts .btn.red {
  flex: 1;
}
.lockstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 3px dashed var(--edge);
  border-radius: 14px;
  padding: 14px 18px;
  font: 600 15px var(--body);
}
/* something the page offers to do for the whole episode (the clips page's "Line up the shots") */
.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  background: var(--card);
  border: 3px solid var(--edge);
  border-radius: 14px;
  padding: 12px 16px;
  font: 600 15px var(--body);
}
.notice > span {
  flex: 1 1 320px;
}

/* preview player */
dialog#player {
  border: 3px solid var(--edge);
  border-radius: 20px;
  padding: 14px;
  background: var(--card);
  box-shadow: 8px 8px 0 var(--edge);
}
dialog#player::backdrop {
  background: rgba(23, 19, 15, 0.6);
}
.stage {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 16;
  background: #000;
  border: 3px solid var(--edge);
  border-radius: 16px;
  overflow: hidden;
}
.stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hookline {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 18px;
  text-align: center;
  font: 400 26px/1.02 var(--display);
  text-transform: uppercase;
  color: var(--bg);
  text-shadow:
    0 2px 0 var(--edge),
    0 0 8px rgba(0, 0, 0, 0.6);
}
.capline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 64%;
  display: flex;
  justify-content: center;
  text-align: center;
  font: 400 28px/1.15 var(--display);
}
.capline span.box {
  background: var(--edge);
  color: var(--bg);
  border: 2px solid var(--bg);
  border-radius: 12px;
  padding: 4px 12px;
}
.capline b {
  color: var(--mustard);
  font-weight: 400;
}
.pctl {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
