/* 유튜브 재생목록 — 평강 블루 스킨 (목업 video.html 기반) */
.pk-yt {
  --ink:#16212E; --ink-mid:#47566B; --ink-lt:#8697AC; --cream:#F7F9FC; --cream-dim:#EEF2F8; --cream-dark:#DCE4EE;
  --point:#2F5FD9; --point-lt:#4A78E8; --point-dim:rgba(47,95,217,.12); --live:#E0562E; --rule:rgba(22,33,46,.1);
  --pad: 48px;
  font-family: 'Noto Sans KR', sans-serif; color: var(--ink);
}
.pk-yt *, .pk-yt *::before, .pk-yt *::after { box-sizing: border-box; }
.pk-yt a { text-decoration: none; color: inherit; }
.pk-yt-header, .pk-yt-footer { padding: 20px var(--pad); }

/* 플레이어 */
.pk-yt-player { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; padding: 32px var(--pad); background: var(--ink); color: #fff; }
.pk-yt-player[hidden] { display: none; }
.pk-yt-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; }
.pk-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pk-yt-now { min-width: 0; }
.pk-yt-now-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; color: #fff; }
.pk-yt-now-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 14px; flex-wrap: wrap; }
.pk-yt-now-link { display: inline-flex; align-items: center; gap: 4px; color: #fff !important; background: rgba(255,255,255,.12); padding: 5px 10px; border-radius: 3px; }
.pk-yt-now-link:hover { background: var(--live); }
.pk-yt-now-desc { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,.7); margin: 0; max-height: 15em; overflow: auto; overflow-wrap: break-word; }

/* 툴바 */
.pk-yt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px var(--pad); border-bottom: 1px solid var(--rule); background: #fff; }
.pk-yt-count { font-size: 13px; color: var(--ink-mid); display: flex; align-items: center; gap: 6px; }
.pk-yt-count i { color: var(--point); font-size: 17px; }
.pk-yt-count b { color: var(--ink); }
.pk-yt-tools { display: flex; align-items: center; gap: 8px; }
.pk-yt-search { display: flex; align-items: center; border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; margin: 0; }
.pk-yt-search input { border: none; padding: 8px 10px; font-size: 12px; width: 180px; height: 34px; font-family: inherit; color: var(--ink); background: #fff; }
.pk-yt-search input:focus { outline: none; }
.pk-yt-search button { height: 34px; padding: 0 12px; background: #fff; border: none; border-left: 1px solid var(--cream-dark); color: var(--ink-lt); cursor: pointer; }
.pk-yt-import { margin: 0; }
.pk-yt-import button { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; font-size: 12px; font-weight: 700; color: #fff; background: var(--point); border: none; border-radius: 4px; cursor: pointer; font-family: inherit; }
.pk-yt-import button:hover { background: var(--point-lt); }
.pk-yt-notice { margin: 16px var(--pad) 0; padding: 10px 14px; font-size: 12px; color: #8a4b00; background: #FFF6E5; border: 1px solid #F5D9A8; border-radius: 4px; }

/* 그리드 */
.pk-yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; padding: 32px var(--pad); }
.pk-yt-card { display: block; min-width: 0; cursor: pointer; }
.pk-yt-thumb { display: flex; align-items: center; justify-content: center; position: relative; aspect-ratio: 16/9; background: var(--ink); border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; margin-bottom: 10px; transition: border-color .15s; }
.pk-yt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pk-yt-card:hover .pk-yt-thumb { border-color: var(--point); }
.pk-yt-card:hover .pk-yt-thumb img { transform: scale(1.04); }
.pk-yt-card.on .pk-yt-thumb { border: 2px solid var(--point); }
.pk-yt-play { position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .15s; }
.pk-yt-play i { font-size: 20px; color: var(--ink); margin-left: 3px; }
.pk-yt-card:hover .pk-yt-play { transform: scale(1.1); }
.pk-yt-badge { position: absolute; top: 8px; right: 8px; z-index: 3; color: #fff; opacity: .8; font-size: 16px; display: flex; }
.pk-yt-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; color: var(--ink); transition: color .15s; }
.pk-yt-card:hover .pk-yt-title { color: var(--point); }
.pk-yt-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-lt); flex-wrap: wrap; }
.pk-yt-meta span { display: inline-flex; align-items: center; gap: 3px; }
.pk-yt-posted { color: var(--point); cursor: pointer; }
.pk-yt-posted:hover { text-decoration: underline; }
.pk-yt-empty { padding: 72px 20px; text-align: center; color: var(--ink-lt); font-size: 13px; }
.pk-yt-empty i { display: block; font-size: 34px; margin-bottom: 10px; }

/* 페이지네이션 */
.pk-yt-pagination { display: flex; justify-content: center; gap: 4px; padding: 8px var(--pad) 40px; flex-wrap: wrap; }
.pk-yt-page { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-mid); border: 1px solid var(--cream-dark); border-radius: 4px; transition: all .15s; }
a.pk-yt-page:hover { border-color: var(--ink); color: var(--ink); }
.pk-yt-page.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

@media (max-width: 1100px) {
  .pk-yt-player { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .pk-yt { --pad: 20px; }
  .pk-yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 20px var(--pad); }
  .pk-yt-toolbar { flex-direction: column; align-items: stretch; }
  .pk-yt-tools { flex-wrap: wrap; }
  .pk-yt-search { flex: 1; }
  .pk-yt-search input { flex: 1; width: auto; min-width: 0; }
  .pk-yt-player { padding: 0 0 20px; gap: 16px; }
  .pk-yt-frame { border-radius: 0; }
  .pk-yt-now { padding: 0 var(--pad); }
  .pk-yt-now-title { font-size: 17px; }
}
@media (max-width: 600px) {
  .pk-yt { --pad: 16px; }
  .pk-yt-grid { gap: 14px 10px; }
  .pk-yt-play { width: 38px; height: 38px; }
  .pk-yt-title { font-size: 13px; }
}
