.pf {
  --pw:300px;
  position: relative;
  width: var(--pw);
  padding: 14px 12px 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--px);
  box-shadow: 0 0 0 6px var(--ink), 12px 12px 0 6px var(--shadow);
  outline: none;
}
.pf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  margin: 0 2px 10px;
}
.pf-top .spk {
  width: 44px;
  height: 8px;
  background: var(--ink);
  box-shadow: inset 0 2px 0 #56497F;
}
.pf-top .cam {
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.pf-chap {
  margin-left: auto;
  padding: 3px 8px 2px;
  background: var(--ink);
  color: var(--lcd);
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-screen {
  position: relative;
  aspect-ratio: 9/16;
  background: #1d1636;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--ink);
}
.pf-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1d1636;
}
.pf-cc {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, calc(var(--pw) * .062), 24px);
  line-height: 1.18;
  color: #fff;
  text-shadow:
    2px 2px 0 var(--ink),
    -2px 2px 0 var(--ink),
    2px -2px 0 var(--ink),
    -2px -2px 0 var(--ink),
    0 2px 0 var(--ink),
    0 -2px 0 var(--ink);
  pointer-events: none;
  transition: opacity .15s;
}
.pf-cc:empty {
  opacity: 0;
}
.pf.nocc .pf-cc {
  display: none;
}
.pf-big {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 2px;
  width: min(52%, 150px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--ginger);
  color: var(--paper);
  font-family: var(--px);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow:
    inset -8px -8px 0 rgba(0, 0, 0, .2),
    0 0 0 6px var(--ink),
    0 10px 0 6px rgba(29, 22, 54, .6);
  cursor: pointer;
  transition: transform .12s steps(2), background .12s;
}
.pf-big:hover {
  background: #F48B44;
  transform: translate(-50%, -50%) scale(1.04);
}
.pf-big:active {
  transform: translate(-50%, -46%);
}
.pf-big svg {
  width: 42%;
  height: auto;
  fill: currentColor;
  shape-rendering: crispEdges;
  margin-left: 8%;
}
.pf.playing .pf-big,
.pf.mini .pf-big {
  display: none;
}
.pf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.pf-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .3);
  cursor: pointer;
}
.pf-btn:hover {
  background: var(--ink-2);
}
.pf-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  shape-rendering: crispEdges;
}
.pf-btn[aria-pressed=true] {
  background: var(--ginger);
}
.pf-time {
  flex: none;
  min-width: 46px;
  padding: 4px 5px 3px;
  background: var(--ink);
  color: var(--lcd);
  font-family: var(--num);
  font-size: 12px;
  text-align: center;
}
.pf-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 36px;
  cursor: pointer;
  touch-action: none;
}
.pf-track .steps {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pf-track .steps i {
  width: 7px;
  height: 10px;
  background: #CFC3EA;
  border-radius: 45% 45% 40% 40%;
  transition: background .1s;
}
.pf-track .steps i:nth-child(2n) {
  transform: translateY(6px);
}
.pf-track .steps i:nth-child(2n+1) {
  transform: translateY(-3px);
}
.pf-track .steps i.on {
  background: var(--ink);
}
.pf-track .steps i.at {
  background: var(--ginger);
}
.pf-track .pf-pin {
  position: absolute;
  top: 0;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  background: var(--ginger);
}
.pf-track .pf-pin::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 7px;
  height: 5px;
  background: var(--ginger);
}
.pf-track:focus-visible {
  outline: 3px solid var(--ginger);
  outline-offset: 2px;
}
.pf-keys {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pf-keys .pf-btn {
  flex: 1;
  width: auto;
}
.pf-x {
  display: none;
}
.pf.mini {
  --pw:92px;
  padding: 6px 5px 5px;
  box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px var(--shadow);
  cursor: pointer;
}
.pf.mini .pf-top {
  height: 6px;
  margin: 0 0 5px;
}
.pf.mini .pf-top .spk {
  width: 22px;
  height: 4px;
}
.pf.mini .pf-top .cam,
.pf.mini .pf-chap,
.pf.mini .pf-bar,
.pf.mini .pf-keys,
.pf.mini .pf-cc {
  display: none;
}
.pf.mini .pf-screen {
  box-shadow: 0 0 0 2px var(--ink);
}
.pf.mini::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 0;
  height: 0;
  margin: -12px 0 0 -7px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--paper);
  filter: drop-shadow(2px 2px 0 var(--ink));
}
.pf-veil {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: rgba(36, 27, 64, .94);
  padding: 12px;
}
.pf-veil[hidden] {
  display: none;
}
.pf.max {
  --pw:min(calc((100svh - 190px) * 9 / 16),calc(100vw - 48px),460px);
}
.pf.max .pf-x {
  display: grid;
}
.pf:fullscreen {
  --pw:min(calc((100vh - 190px) * 9 / 16),460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: #241B40;
  box-shadow: none;
}
.pf:fullscreen > * {
  width: var(--pw);
}
@media (max-width: 760px) {
  .pf.max {
    --pw:min(calc((100svh - 170px) * 9 / 16),calc(100vw - 40px));
    padding: 10px 9px 9px;
  }
  .pf.max .pf-btn {
    width: 44px;
    height: 44px;
  }
  .pf.max .pf-keys .pf-btn {
    width: auto;
  }
  .pf.max .pf-track {
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-big {
    transition: none;
  }
}
