/* Picklio 固有：メイン画面の再現（疑似スクリーンショット）。色は k386.css の変数を使う。 */

.pk-win {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 0.72rem;
  line-height: 1.45;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.pk-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #ececee; border-bottom: 1px solid #d9d9de; }
.pk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d5; flex: none; }
.pk-bar b { flex: 1; text-align: center; font-weight: 600; color: #55555c; margin-right: 46px; }

.pk-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f0f0f3; border-bottom: 1px solid #dcdce1; }
.pk-logo { width: 26px; height: 26px; border-radius: 6px; flex: none; background: url(/shared/img/apps/picklio.webp) center / cover; }
.pk-name { font-weight: 600; font-size: 0.8rem; margin-right: auto; display: flex; flex-direction: column; line-height: 1.2; }
.pk-name small { font-weight: 400; font-size: 0.6rem; color: #8a8a92; }
.pk-nav { padding: 3px 8px; border-radius: 6px; color: #55555c; white-space: nowrap; }
.pk-nav.is-on { background: #fff; color: #b8472f; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

.pk-sites { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid #e2e2e6; white-space: nowrap; overflow: hidden; }
.pk-chip { padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.05); }
.pk-chip.is-on { color: #b8472f; background: rgba(184, 71, 47, 0.10); }
.pk-link { color: #b8472f; margin-left: auto; }
.pk-muted { color: #8a8a92; }

.pk-body { padding: 10px 12px 12px; background: #fbfbfd; }
.pk-album { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pk-album p { margin: 0; }
.pk-cover {
  width: 54px; height: 54px; border-radius: 8px; flex: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 230, 190, 0.9), transparent 45%),
    linear-gradient(150deg, #f2876b 0%, #b8472f 55%, #452945 100%);
}
.pk-album__title { font-weight: 700; font-size: 0.85rem; }
.pk-count { color: #8a8a92; font-size: 0.64rem; }
.pk-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pk-select, .pk-toggle { padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid #dcdce1; }
.pk-select b { color: #b8472f; }
.pk-toggle::before { content: "✓"; display: inline-block; width: 13px; height: 13px; margin-right: 4px; border-radius: 3px; background: #b8472f; color: #fff; font-size: 0.55rem; text-align: center; line-height: 13px; vertical-align: -1px; }
.pk-tracks { list-style: none; margin: 0; padding: 0; border-radius: 8px; background: #fff; border: 1px solid #e3e3e8; }
.pk-tracks li { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-top: 1px solid #efeff2; }
.pk-tracks li:first-child { border-top: 0; }
.pk-cb { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #b9b9c0; flex: none; }
.pk-tracks li.is-on .pk-cb { background: #b8472f; border-color: #b8472f; box-shadow: inset 0 0 0 2px #fff; }
.pk-dur { margin-left: auto; color: #8a8a92; font-variant-numeric: tabular-nums; }
.pk-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.pk-btn { padding: 4px 10px; border-radius: 6px; background: #b8472f; color: #fff; font-weight: 600; }

/* ヒーロー：ほかのアプリの上に重なる PiP の小窓 */
.pk-desk {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 214, 170, 0.55), transparent 42%),
    linear-gradient(140deg, #f3b49c 0%, #c8644a 48%, #5a3550 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-size: 0.72rem;
}
.pk-doc {
  position: absolute; left: 5%; top: 22%; width: 70%; height: 74%;
  border-radius: 10px; overflow: hidden; background: #fbfbfd; color: #1d1d1f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.pk-doc__body { padding: 14px 16px; }
.pk-doc__body p { height: 7px; margin: 0 0 11px; border-radius: 4px; background: #e4e4ea; }
.pk-doc__body p.pk-doc__h { width: 46%; height: 11px; background: #cfcfd8; margin-bottom: 16px; }
.pk-doc__body p.is-short { width: 62%; }
.pk-pip {
  position: absolute; right: 6%; top: 7%; width: 38%; aspect-ratio: 1 / 1.08;
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column;
}
.pk-pip__bar { height: 7.5%; min-height: 14px; background: #c4c6c9; display: flex; align-items: center; padding: 0 5%; flex: none; }
.pk-pip__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.pk-pip__art { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: #000; }
/* YouTube Music の曲の画像（16:9）を、黒い正方形の中央に表示する */
.pk-pip__frame {
  position: relative; width: 82%; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(ellipse at 52% 45%, rgba(150, 92, 70, 0.55), transparent 62%),
    linear-gradient(180deg, #1a1210 0%, #0b0807 100%);
}
.pk-pip__cover {
  position: absolute; left: 0; top: 18%; height: 64%; aspect-ratio: 1; z-index: 2;
  background:
    radial-gradient(circle at 38% 40%, rgba(255, 214, 180, 0.9), transparent 34%),
    linear-gradient(150deg, #f2876b 0%, #b8472f 55%, #2a1714 100%);
}
.pk-pip__disc {
  position: absolute; left: 17%; top: 18%; height: 64%; aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, #111 0 15%, #3fa3c6 16% 100%);
}
.pk-pip__text { position: absolute; right: 7%; top: 24%; width: 28%; display: flex; flex-direction: column; gap: 9%; height: 52%; }
.pk-pip__text i { display: block; height: 7%; min-height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.pk-pip__text i:nth-child(2) { width: 82%; }
.pk-pip__text i.is-sign { margin-top: 12%; width: 70%; opacity: 0.7; }
.pk-pip__ctl {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.7rem; white-space: nowrap;
  opacity: 0; transition: opacity .2s;
}
.pk-pip:hover .pk-pip__ctl, .pk-desk:focus-within .pk-pip__ctl { opacity: 1; }
.pk-pip__ctl b { font-weight: 400; }
.pk-pip__ctl b.is-main { font-size: 0.85rem; }

/* できること：プレイヤー画面 */
.pk-subhead { margin: clamp(28px, 4vw, 40px) 0 16px; font-size: 1.15rem; }
.pk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.pk-split__cards { display: grid; gap: clamp(12px, 1.6vw, 16px); }
.pk-split__cards .k-card { padding: clamp(16px, 2vw, 20px); }
.pk-split__cards .k-card h3 { margin-top: 0; }
.pk-split--rev .pk-split__shot { order: 2; }
.pk-split .k-shot { margin: 0; }
.pk-tool { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #f0f0f3; border-bottom: 1px solid #dcdce1; white-space: nowrap; overflow: hidden; }
.pk-tool .pk-logo { width: 20px; height: 20px; border-radius: 5px; }
.pk-tool__name { font-size: 0.74rem; margin-right: 2px; }
.pk-tool__nav { color: #8a8a92; letter-spacing: 0.1em; }
.pk-tool__sp { flex: 1; }
.pk-tb { padding: 2px 6px; border-radius: 5px; background: #fff; border: 1px solid #dcdce1; font-size: 0.64rem; }
.pk-tb--more { border-radius: 50%; padding: 1px 5px; }
.pk-page { display: flex; gap: 12px; align-items: center; padding: 16px 14px; background: #030303; color: #fff; min-height: 150px; }
.pk-page .pk-muted { color: #aaa; margin: 0; }
.pk-page p { margin: 0; }
.pk-page__art {
  width: 40%; aspect-ratio: 1; border-radius: 6px; flex: none;
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 232, 196, 0.95), transparent 38%),
    linear-gradient(150deg, #f2876b 0%, #b8472f 55%, #452945 100%);
}
.pk-page__info { flex: 1; min-width: 0; }
.pk-page__prog { display: block; height: 3px; margin: 12px 0 8px; border-radius: 2px; background: #3a3a3c; }
.pk-page__prog i { display: block; width: 38%; height: 100%; border-radius: 2px; background: #ff0033; }
.pk-page__ctl { color: #ddd; letter-spacing: 0.05em; }

/* できること：タイムライン */
.pk-seg { display: inline-flex; align-items: center; gap: 7px; padding: 2px 8px 2px 2px; border-radius: 6px; background: rgba(0, 0, 0, 0.06); color: #55555c; white-space: nowrap; }
.pk-seg b { font-weight: 600; padding: 1px 7px; border-radius: 5px; background: #fff; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.pk-tl__svc { margin-left: auto; }
.pk-tl { position: relative; padding-left: 18px; }
.pk-tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: rgba(184, 71, 47, 0.25); }
.pk-tl__day { position: relative; margin: 2px 0 6px; font-weight: 700; font-size: 0.78rem; display: flex; gap: 8px; align-items: baseline; }
.pk-tl__day::before { content: ""; position: absolute; left: -18px; top: 0.3em; width: 10px; height: 10px; border-radius: 50%; background: #b8472f; }
.pk-tl__day .pk-muted { font-weight: 400; font-size: 0.64rem; }
.pk-tl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-tl__list li { position: relative; display: flex; gap: 9px; align-items: center; padding: 5px 7px; border-radius: 8px; background: #fff; border: 1px solid #e3e3e8; }
.pk-tl__list li::before { content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #b8472f; }
.pk-tl__list li > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.pk-tl__list b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tl__thumb {
  width: 64px; aspect-ratio: 16 / 9; border-radius: 5px; flex: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 230, 190, 0.9), transparent 45%),
    linear-gradient(150deg, #f2876b 0%, #b8472f 55%, #452945 100%);
}
.pk-tl__thumb.is-alt { background: radial-gradient(circle at 30% 60%, rgba(190, 225, 255, 0.85), transparent 45%), linear-gradient(150deg, #8fb7d6 0%, #3f6f96 55%, #2a2f4a 100%); }

@media (min-width: 1100px) {
  .pk-split__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pk-split { grid-template-columns: 1fr; }
  .pk-split__cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .pk-split--rev .pk-split__shot { order: 0; }
}
@media (max-width: 560px) {
  .pk-hide-sm, .pk-name small { display: none; }
  .pk-tracks li:nth-child(n+5) { display: none; }
}
