/* Videolar and the player page (video.js, videos.js). Classes start with gkv-; the cards build on .vcard/.vthumb of app.css. */

/* list screen */
.gkv-search { display: flex; gap: 8px; align-items: center; flex: 0 1 380px; min-width: 0; }
.gkv-search input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: var(--surface-raised); font: 500 15px/22px var(--font); }
.gkv-tabs { align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.gkv-tabs::-webkit-scrollbar { display: none; }
.gkv-tabs button { padding: 8px 16px; white-space: nowrap; }
.gkv-body { gap: 24px; }
.gkv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.gkv-card { min-width: 0; color: var(--ink); }
.gkv-card .vtitle { padding: 0 2px; }
.gkv-card:hover .vtitle { text-decoration: underline; }
.vthumb .watch { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--level-accent); }
.vthumb .gkv-live { background: var(--danger); color: var(--on-coach); }
.gkv-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start; }
.gkv-cell .gkv-card { align-self: stretch; }
.gkv-cell .link { margin-left: 12px; }
.gkv-more-row { justify-content: center; }
.gkv-list-head { gap: 8px; align-items: flex-start; }
.gkv-live-tab { gap: 24px; }

/* player page */
.gkv-extra { gap: 20px; }
.gkv-actions { gap: 8px; }
.gkv-toggle { min-height: 40px; }
.gkv-toggle:disabled, .gkv-tools .link:disabled { opacity: .5; cursor: default; }
.gkv-error { font: 500 13px/20px var(--font); }
.gkv-desc { padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface-raised); font: 400 15px/23px var(--font); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 8px; }
.gkv-desc .link { font-weight: 500; }
.gkv-quote { font: 500 15px/23px var(--font); }
.gkv-side-head { margin-top: 12px; }
.gkv-related .thumb { width: 112px; }
.gkv-related .plan-title { font: 500 14px/20px var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.gkv-comments { gap: 16px; margin-top: 8px; }
.gkv-comments .seg button { padding: 8px 16px; }
.gkv-write { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gkv-write textarea { width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: var(--r-lg); background: var(--surface-raised); font: 500 15px/22px var(--font); resize: vertical; }
.gkv-comment-list { gap: 12px; }
.gkv-comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-raised); }
.gkv-comment.is-answer { padding: 12px 0 0; background: none; border-radius: 0; }
.gkv-comment > .stack { gap: 6px; }
.gkv-comment-head { gap: 4px 8px; font: 500 14px/20px var(--font); }
.gkv-comment-head .muted { font-size: 12px; line-height: 18px; }
.gkv-comment-text { font: 400 15px/23px var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.gkv-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; font: 500 14px/1 var(--font); object-fit: cover; }
.gkv-tools { gap: 4px 16px; }
.gkv-tools .link { font-weight: 800; text-decoration: none; color: var(--ink-muted); }
.gkv-tools .link:hover { color: var(--ink); text-decoration: underline; }
.gkv-tools .link.is-on { color: var(--ink); }
.gkv-sure { gap: 12px; }
.gkv-answers { gap: 0; }

.gkv-chat { gap: 12px; }
.gkv-chat-list { max-height: 380px; overflow-y: auto; gap: 8px; }
.gkv-msg { font: 400 14px/21px var(--font); overflow-wrap: anywhere; }
.gkv-msg b { font-weight: 800; }
.player { background-position: center; background-size: cover; }

@media (max-width: 900px) {
  .gkv-search { flex: 1 1 100%; }
  .gkv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gkv-card { padding: 8px; }
  .video-view { gap: 20px; }
  .video-view aside { max-width: none; }
}
.gkv-comments > .btn { align-self: center; }
