/* Heron Video by Kestrel Labs. Builds on ../quill/quill.css. */
:root { --heron: #c2185b; }
@media (prefers-color-scheme: dark) { :root { --heron: #f06292; } }
body { min-height: 100%; }
.btn.heron { background: var(--heron); color: #fff; }
.hbar { position: sticky; top: 0; z-index: 20; }
.hsearch { flex: 1; display: flex; justify-content: center; min-width: 0; }
.hsearch input { width: min(560px, 100%); border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; }
@media (max-width: 640px) { .hide-narrow { display: none !important; } }
.hmain { max-width: 1280px; margin: 0 auto; padding: 16px 16px 60px; }
.chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 500; }
.chip-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
.vcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #3a1530, #7a1240); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { width: 44px; height: 44px; opacity: .7; color: #fff; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.vcard:hover .thumb img { transform: scale(1.03); transition: transform .3s; }
.vmeta { display: flex; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-style: normal; text-transform: uppercase; }
.vmeta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; line-height: 1.3; }
.vmeta span { display: block; color: var(--soft); font-size: .82rem; }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
@media (max-width: 1000px) { .watch { grid-template-columns: 1fr; } }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.watch h1 { font-size: 1.3rem; margin: 14px 0 10px; }
.watch-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.watch-bar .who { display: flex; gap: 10px; align-items: center; margin-right: auto; text-decoration: none; color: inherit; }
.watch-bar .who span { color: var(--soft); font-size: .82rem; display: block; }
.pill-btn { border: 0; background: var(--surface-2); border-radius: 999px; padding: 8px 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.pill-btn.on { background: var(--heron); color: #fff; }
.pill-btn svg { width: 18px; height: 18px; }
.desc { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-top: 14px; white-space: pre-wrap; font-size: .92rem; }
.desc b { display: block; margin-bottom: 4px; }
.upnext { display: grid; gap: 12px; align-content: start; }
.upnext .vcard { flex-direction: row; }
.upnext .thumb { width: 168px; flex: none; }
.upnext .vmeta .avatar { display: none; }

.channel-head { display: flex; gap: 16px; align-items: center; margin: 8px 0 24px; }
.channel-head .avatar { width: 72px; height: 72px; font-size: 1.8rem; }
.channel-head h1 { margin: 0; font-size: 1.6rem; }
.channel-head span { color: var(--soft); }

.mine-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mine-row .thumb { border-radius: 8px; }
.mine-row b { display: block; }
.mine-row span { color: var(--soft); font-size: .85rem; }
@media (max-width: 560px) { .mine-row { grid-template-columns: 110px 1fr; } .mine-row .acts { grid-column: 1 / -1; } }

.upload-bar { position: sticky; top: 56px; z-index: 19; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px; font-size: .85rem; }
.upload-bar .track { height: 4px; background: var(--surface-2); border-radius: 9px; margin-top: 6px; overflow: hidden; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--heron); transition: width .2s; }
.pub-form { display: grid; gap: 10px; }
.pub-form input, .pub-form textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; width: 100%; }
.pub-form textarea { min-height: 90px; resize: vertical; }
.pub-form .preview { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.pub-form .preview img { width: 100%; height: 100%; object-fit: cover; }
.pub-form .note { font-size: .8rem; color: var(--soft); }
.pick-list { max-height: 50vh; overflow-y: auto; display: grid; gap: 6px; }
.pick-list button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.pick-list button:hover { background: var(--brand-soft); }
