:root { --pv-red: #C02026; --pv-amber: #F0860C; --pv-blue: #8FC1E3; --pv-violet: #9B7FD4; --pv-green: #7FA97A; }
body.pv-hidecursor { cursor: none; }

html { color-scheme: dark; }
.pv-btn:focus-visible, .pv-seg button:focus-visible, .pv-run:focus-visible, .pv-tap-btn:focus-visible, .pv-row-it:focus-visible { outline: 3px solid var(--pv-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pv-notice { animation: none; transition: none; } .pv-sub, .pv-now, .pv-next, .pv-bar { transition: none; } }

.pv-badge { z-index: 4; }

.pv-notices { position: absolute; right: 4vw; top: 4vh; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; z-index: 4; max-width: min(46vw, 560px); }
.pv-notice {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 10px;
  background: rgba(10,13,12,.84); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--pv-blue);
  box-shadow: 0 8px 30px rgba(0,0,0,.5); color: #f2f2f2; font-size: 24px; line-height: 1.3;
  animation: pvin .28s ease-out; transition: opacity .5s ease, transform .5s ease;
}
.pv-notice.out { opacity: 0; transform: translateX(16px); }
.pv-notice.skip { border-left-color: var(--pv-red); }
.pv-notice.mute { border-left-color: var(--pv-amber); }
.pv-notice.blur, .pv-notice.blurmute { border-left-color: var(--pv-blue); }
.pv-notice.fill, .pv-notice.fillmute { border-left-color: var(--pv-violet); }
.pv-notice.info { border-left-color: var(--pv-green); }
.pv-notice.flag { border-left-color: #fff; background: rgba(28,32,30,.9); }
.pv-notice.notice { border-left-color: #cfd8d4; } .pv-notice.notice .pv-act { color: #cfd8d4; }
.pv-notice.soften { border-left-color: var(--pv-violet); } .pv-notice.soften .pv-act { color: #c3b2f0; }
.pv-notice.flag .pv-act { color: #fff; }

.pv-flagmarks { position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; pointer-events: none; }
.pv-flag { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 3px #000; }
.pv-btn.on { border-color: var(--pv-green); color: #cfe8cb; }
.pv-tap-phone { font-family: var(--mono); font-size: 18px; color: #cfe8cb; background: rgba(0,0,0,.5); padding: 6px 12px; border-radius: 6px; max-width: 90vw; text-align: center; }
.pv-notice .ico { width: 20px; height: 20px; flex: 0 0 auto; color: #ddd; }
.pv-notice .pv-act { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 12px; border: 1px solid currentColor; flex: 0 0 auto; }
.pv-notice.skip .pv-act { color: #ff8a8e; } .pv-notice.mute .pv-act { color: #ffb45c; }
.pv-notice.blur .pv-act, .pv-notice.blurmute .pv-act { color: var(--pv-blue); } .pv-notice.fill .pv-act, .pv-notice.fillmute .pv-act { color: #c3b2f0; }
.pv-notice.info .pv-act { color: var(--pv-green); }
.pv-notice .pv-what { display: flex; flex-direction: column; min-width: 0; }
.pv-notice .pv-what b { font-weight: 600; color: #fff; }
.pv-notice .pv-what small { font-family: var(--mono); font-size: 17px; color: #A9B3AE; margin-top: 3px; }
@keyframes pvin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.pv-sub { position: absolute; left: 10%; right: 10%; bottom: 150px; text-align: center; font-family: var(--font-body); font-weight: 600; font-size: 42px; line-height: 1.25; color: #fff; text-shadow: 0 2px 4px #000, 0 0 12px rgba(0,0,0,.9); pointer-events: none; z-index: 3; transition: bottom .3s ease; }
body.pv-idle .pv-sub { bottom: 70px; }
.pv-sub span { background: rgba(0,0,0,.45); padding: 2px 10px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pv-sub .pv-masked { color: #ffb45c; font-family: var(--mono); letter-spacing: .04em; }
.pv-sub .pv-wasmasked { color: #ffb45c; text-decoration: underline dotted; }

.pv-now, .pv-next {
  position: absolute; bottom: 150px; font-family: var(--mono); font-size: 20px; color: #E5E5E7; pointer-events: none; z-index: 3;
  background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; transition: opacity .3s ease;
}
.pv-now { left: 4vw; border-left: 3px solid var(--pv-amber); }
.pv-now.soften { border-left-color: var(--pv-violet); }
.pv-now.blur, .pv-now.blurmute { border-left-color: var(--pv-blue); } .pv-now.fill, .pv-now.fillmute { border-left-color: var(--pv-violet); }
.pv-now .ico { width: 15px; height: 15px; }
.pv-next { right: 4vw; color: #A9B3AE; }
.pv-next b { color: #ddd; font-weight: 600; }
body.pv-idle .pv-now, body.pv-idle .pv-next { bottom: 4vh; }

.pv-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4vw 14px; z-index: 5;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.82) 45%); transition: opacity .45s ease; opacity: 0;
}
.pv-bar.show { opacity: 1; }
.pv-progress { position: relative; height: 10px; margin: 6px 0 10px; border-radius: 5px; background: rgba(255,255,255,.14); cursor: pointer; overflow: visible; }
.pv-progress:hover { height: 14px; margin: 4px 0 8px; }
.pv-marks { position: absolute; inset: 0; border-radius: 5px; overflow: hidden; }
.pv-mark { position: absolute; top: 0; bottom: 0; min-width: 2px; opacity: .9; }
.pv-mark.skip { background: var(--pv-red); } .pv-mark.mute { background: var(--pv-amber); }
.pv-mark.blur, .pv-mark.blurmute { background: var(--pv-blue); } .pv-mark.fill, .pv-mark.fillmute { background: var(--pv-violet); }
.pv-mark.notice { background: #cfd8d4; opacity: .55; } .pv-mark.soften { background: var(--pv-violet); opacity: .55; }
.pv-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.35); border-radius: 5px 0 0 5px; pointer-events: none; }
.pv-head { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); pointer-events: none; }
.pv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-sp { flex: 1 1 auto; }
.pv-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #eee; border-radius: 6px;
  padding: 8px 14px; font-family: var(--font-body); font-size: 16px; cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 36px;
}
.pv-btn:hover { background: rgba(255,255,255,.16); }
.pv-play { font-size: 22px; padding: 4px 16px; min-width: 60px; }
.pv-time { font-family: var(--mono); font-size: 16px; color: #E5E5E7; min-width: 150px; font-variant-numeric: tabular-nums; cursor: text; border-bottom: 1px dotted rgba(255,255,255,.35); }
.pv-time:hover { color: #fff; border-bottom-color: #fff; }
.pv-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; overflow: hidden; }
.pv-seg button { background: transparent; border: 0; color: #bbb; padding: 8px 14px; font-family: var(--font-body); font-size: 16px; cursor: pointer; min-height: 36px; }
.pv-seg button + button { border-left: 1px solid rgba(255,255,255,.18); }
.pv-seg button.on { color: #fff; background: rgba(255,255,255,.16); }
.pv-seg button.on[data-profile="strict"] { color: #ff9a9e; } .pv-seg button.on[data-profile="moderate"] { color: #ffb45c; } .pv-seg button.on[data-profile="original"] { color: var(--pv-blue); }
.pv-chk { font-size: 15px; color: #bbb; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pv-chk input { accent-color: var(--pv-blue); }
.pv-run { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #ddd; border-radius: 6px; padding: 6px 8px; font-family: var(--font-body); font-size: 15px; max-width: 260px; background-color: #1a1f1d; }
.pv-link { color: #bbb; }
.pv-sel { max-width: 150px; }
.pv-goto { width: 150px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #eee; border-radius: 6px; padding: 6px 10px; font-family: var(--mono); font-size: 16px; }
.pv-goto:focus { outline: 2px solid var(--pv-blue); }

.pv-log { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 46vw); background: rgba(10,13,12,.92); border-left: 1px solid rgba(255,255,255,.12); z-index: 6; display: flex; flex-direction: column; }
.pv-log-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-family: var(--font-display); font-size: 24px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.pv-log-rows { overflow: auto; padding: 8px 0 20px; }
.pv-row-it { display: grid; grid-template-columns: 22px 76px 1fr 72px; gap: 8px; align-items: center; padding: 8px 16px; cursor: pointer; color: #ccc; font-size: 17px; border-left: 3px solid transparent; }
.pv-row-it:hover { background: rgba(255,255,255,.06); }
.pv-row-it.done { color: #7c8782; }
.pv-row-it.now { background: rgba(255,255,255,.08); border-left-color: #fff; color: #fff; }
.pv-row-it .ico { width: 16px; height: 16px; }
.pv-row-it .tc { font-family: var(--mono); font-size: 15px; }
.pv-row-it .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-row-it .lbl small { color: #A1A1AA; font-family: var(--mono); font-size: 13px; margin-left: 6px; }
.pv-row-it .ac { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.pv-row-it .ac.skip { color: #ff8a8e; } .pv-row-it .ac.mute { color: #ffb45c; } .pv-row-it .ac.blur, .pv-row-it .ac.blurmute { color: var(--pv-blue); } .pv-row-it .ac.fill, .pv-row-it .ac.fillmute { color: #c3b2f0; } .pv-row-it .ac.notice { color: #cfd8d4; } .pv-row-it .ac.soften { color: #c3b2f0; }
.pv-log-empty { padding: 20px 16px; color: #A1A1AA; font-size: 18px; }

.pv-tap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,.55); z-index: 7; }
.pv-tap-btn { background: rgba(74,144,184,.92); border: 0; color: #fff; border-radius: 14px; padding: 20px 38px; font-family: var(--font-body); font-size: 28px; cursor: pointer; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.pv-tap-btn:hover { background: #4A90B8; }
.pv-tap-tri { font-size: 26px; }
.pv-tap-sub { font-family: var(--mono); font-size: 18px; color: #b9c4bf; }
.pv-end { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); z-index: 7; }
.pv-end-box { max-width: 720px; padding: 36px 44px; text-align: center; background: rgba(12,16,15,.9); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.pv-end h1 { font-family: var(--font-display); font-weight: 400; font-size: 40px; color: #fff; margin: 0 0 14px; }
.pv-end p { color: #cfd8d4; font-size: 22px; line-height: 1.45; margin: 0 0 8px; }
.pv-end .pv-end-row { display: flex; justify-content: center; gap: 30px; margin: 16px 0 22px; font-family: var(--mono); font-size: 18px; color: #ddd; }
.pv-end .pv-end-row b { display: block; font-size: 40px; font-family: var(--font-display); font-weight: 400; }
.pv-end .skip b { color: #ff8a8e; } .pv-end .mute b { color: #ffb45c; } .pv-end .blur b { color: var(--pv-blue); }

.pv-notices.small { max-width: min(34vw, 380px); gap: 5px; }
.pv-notices.small .pv-notice { font-size: 15px; padding: 5px 10px 5px 8px; gap: 8px; border-radius: 7px; border-left-width: 3px; box-shadow: 0 3px 12px rgba(0,0,0,.4); background: rgba(10,13,12,.7); }
.pv-notices.small .pv-notice .ico { width: 14px; height: 14px; }
.pv-notices.small .pv-notice .pv-act { font-size: 11px; padding: 1px 6px; }
.pv-notices.small .pv-notice .pv-what { flex-direction: row; gap: 8px; align-items: baseline; }
.pv-notices.small .pv-notice .pv-what b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.pv-notices.small .pv-notice .pv-what small { display: none; }

.pv-menu { position: relative; display: inline-block; }
.pv-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; user-select: none; }
.pv-menu > summary::-webkit-details-marker { display: none; }
.pv-menu > summary::after { content: '▴'; font-size: 11px; color: #A9B3AE; }
.pv-menu[open] > summary { background: rgba(255,255,255,.2); }
.pv-pop {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: 380px; padding: 14px 16px 12px; z-index: 8;
  background: rgba(16,20,18,.96); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.6);
  display: grid; gap: 10px; font-family: var(--font-body); font-size: 16px; color: #ddd;
}
.pv-pop-h { font-weight: 600; color: #fff; font-size: 17px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.pv-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pv-pop-row > span:first-child { color: #A9B3AE; }
.pv-pop-row .pv-sel { max-width: 190px; width: 190px; }
.pv-pop-foot { font-size: 13px; color: #8a948f; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); }
.pv-sub.top { bottom: auto; top: 9vh; }
body.pv-idle .pv-sub.top { bottom: auto; }
.pv-sub.plain span { background: transparent; padding: 0; }

.pv-sub { bottom: 200px; }
body.pv-idle .pv-sub { bottom: calc(4vh + 52px); }
.pv-sub.top, body.pv-idle .pv-sub.top { bottom: auto; }
.pv-pop.left { right: auto; left: 0; }

.pv-notice { pointer-events: auto; cursor: pointer; }
@media (max-width: 900px), (max-height: 520px) {
  .pv-notices, .pv-notices.small { right: 10px; top: 10px; gap: 5px; max-width: min(74vw, 340px); }
  .pv-notice { font-size: 15px; line-height: 1.25; padding: 6px 10px 6px 8px; gap: 8px; border-radius: 8px; border-left-width: 3px; box-shadow: 0 3px 12px rgba(0,0,0,.4); }
  .pv-notice .ico { width: 14px; height: 14px; }
  .pv-notice .pv-act { font-size: 10.5px; padding: 1px 6px; }
  .pv-notice .pv-what small { font-size: 12px; margin-top: 1px; }
  .pv-notices.small .pv-notice { font-size: 13.5px; padding: 4px 8px 4px 6px; }
  .pv-notices.small .pv-notice .pv-what b { max-width: 44vw; }
  .pv-now, .pv-next { display: block; bottom: calc(var(--pv-bar-h, 150px) + 6px); font-size: 12.5px; padding: 3px 8px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-now { left: 10px; } .pv-next { right: 10px; }
  .pv-now .ico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
  body.pv-idle .pv-now, body.pv-idle .pv-next { bottom: 10px; }
  .pv-sub { bottom: calc(var(--pv-bar-h, 150px) + 36px); }
  body.pv-idle .pv-sub { bottom: 40px; }
  .pv-bar { padding: 4px 10px 8px; }
  .pv-progress { margin: 6px 0 8px; }
  .pv-row { gap: 6px; }
  .pv-sp { display: none; }
  .pv-btn, .pv-seg button { font-size: 13px; padding: 6px 9px; min-height: 34px; }
  .pv-play { font-size: 17px; padding: 4px 12px; min-width: 44px; }
  a.pv-btn { display: inline-flex; align-items: center; box-sizing: border-box; }
  .pv-time { font-size: 13px; min-width: 0; }
  .pv-chk { font-size: 13px; }
  .pv-run { font-size: 13px; padding: 5px 6px; max-width: 170px; }
  .pv-bar .fv-vol { width: 90px; }
  .pv-tap { gap: 10px; padding: 0 16px; text-align: center; }
  .pv-tap-btn { font-size: 20px; padding: 14px 24px; border-radius: 12px; }
  .pv-tap-tri { font-size: 18px; }
  .pv-tap-sub { font-size: 12.5px; line-height: 1.4; max-width: 92vw; }
  .pv-tap-phone { display: none; }
  .pv-menu { position: static; }
  .pv-pop { left: 10px; right: 10px; bottom: 8px; width: auto; max-width: 400px; margin: 0 auto; max-height: calc(100vh - 16px); overflow: auto; box-sizing: border-box; }
  .pv-log { width: min(440px, 92vw); }
  .pv-log-h { font-size: 19px; padding: 10px 14px; }
  .pv-row-it { font-size: 14px; padding: 7px 12px; }
  .pv-end-box { padding: 20px 18px; margin: 0 12px; }
  .pv-end h1 { font-size: 26px; } .pv-end p { font-size: 16px; }
  .pv-end .pv-end-row { gap: 18px; font-size: 13px; } .pv-end .pv-end-row b { font-size: 28px; }
}

.pv-credit { margin: 0; font-size: 15px; line-height: 1.45; color: #b9c4bf; max-width: min(960px, 92vw); text-align: center; }
.pv-credit a { color: var(--pv-blue); margin-left: 4px; text-underline-offset: 2px; white-space: nowrap; }
.pv-end p.pv-credit { font-size: 15px; color: #A9B3AE; margin: 4px auto 18px; }
.pv-log-credit { margin-top: auto; padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; text-align: left; max-width: none; }
.pv-pair { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 4vh 4vw; box-sizing: border-box; }
.pv-pair-box { width: min(760px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; background: rgba(12,16,15,.96); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.6); padding: 18px 26px 24px; color: #e8ecea; }
.pv-pair-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pv-pair-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: #fff; }
.pv-pair-body { display: flex; align-items: center; gap: 28px; }
.pv-pair-body > p { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.pv-pair-qr { flex: 0 0 auto; width: 240px; height: 240px; background: #fff; border-radius: 8px; padding: 6px; box-sizing: border-box; image-rendering: pixelated; }
.pv-pair-text { min-width: 0; flex: 1 1 auto; }
.pv-pair-text p { margin: 0 0 10px; font-size: 20px; line-height: 1.4; }
.pv-pair-text b { color: #fff; }
.pv-pair-code { font-family: var(--mono); font-size: 60px !important; line-height: 1.1 !important; letter-spacing: .08em; color: #fff; margin: 6px 0 10px !important; font-variant-numeric: tabular-nums; }
.pv-pair-link { font-family: var(--mono); font-size: 13px !important; color: #8a948f; word-break: break-all; }
.pv-pair-count { color: var(--pv-green); }
.pv-pair-wait { color: #b9c4bf; }
.pv-pair-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pv-tap-pair { font-size: 18px; padding: 10px 20px; background: rgba(0,0,0,.45); }
@media (max-width: 900px), (max-height: 520px) {
  .pv-credit { font-size: 12.5px; }
  .pv-tap-pair { display: none; }
  .pv-public .pv-badge .fv-note { display: none; }
  .pv-pair { padding: 10px; align-items: flex-start; }
  .pv-pair-box { padding: 12px 14px 16px; }
  .pv-pair-head { margin-bottom: 8px; }
  .pv-pair-head h2 { font-size: 22px; }
  .pv-pair-body { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .pv-pair-qr { width: 168px; height: 168px; }
  .pv-pair-text p, .pv-pair-body > p { font-size: 15px; margin-bottom: 6px; }
  .pv-pair-code { font-size: 40px !important; margin: 2px 0 6px !important; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .pv-pair-body { flex-wrap: nowrap; }
  .pv-pair-qr { width: 150px; height: 150px; }
  .pv-pair-code { font-size: 34px !important; }
}
