.ht-wrap{margin:14px 0}
.ht-head{color:var(--gold,#d4af37);margin:0 0 10px}
.ht-list{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.ht-card{background:#1a0f2a;border:1px solid #3b2560;border-radius:12px;overflow:visible;position:relative}
/* v43: the card used to clip (overflow:hidden) the "+ Playlist" pop-up, so the button looked dead. Round the media instead. */
.ht-actions{flex-wrap:wrap}
.ht-actions .pl-add .pl-pop{left:auto;right:0;z-index:80;max-width:calc(100vw - 24px)}
/* One fixed 16:9 media box: thumbnail, player and play icon are stacked inside it (v20 layout fix). */
.ht-card .ht-media{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#000;border-radius:11px 11px 0 0}
@supports not (aspect-ratio:16/9){.ht-card .ht-media{height:0;padding-top:56.25%}}
.ht-card .ht-media .ht-thumb{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;display:block;margin:0;padding:0;aspect-ratio:auto;background:transparent}
.ht-card .ht-media .ht-thumb img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block;margin:0;z-index:1;transition:opacity .35s ease}
.ht-card .ht-media .ht-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;background:rgba(0,0,0,.6);border:2px solid #d4af37;color:#d4af37;display:flex;align-items:center;justify-content:center;font-size:22px;z-index:3;transition:opacity .35s ease}
.ht-card .ht-media .ht-player{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;z-index:2;pointer-events:none;margin:0;padding:0}
.ht-card .ht-media .ht-player iframe,.ht-card .ht-media .ht-player video{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;border:0;margin:0;padding:0;object-fit:cover;background:#000;display:block}
.ht-card.ht-playing .ht-media .ht-thumb img,.ht-card.ht-playing .ht-media .ht-play{opacity:0}
.ht-card .ht-media .ht-mute{position:absolute;right:8px;bottom:8px;left:auto;top:auto;margin:0;width:40px;height:40px;border-radius:50%;border:1px solid #d4af37;background:rgba(10,0,20,.7);color:#d4af37;font-size:18px;line-height:1;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;padding:0}
.ht-no-autoplay .ht-card .ht-media .ht-mute{display:none}
.ht-meta{padding:10px 12px}
.ht-title{display:block;color:#fff;font-weight:700;text-decoration:none;margin-bottom:4px}
.ht-sub{font-size:.9em;color:#bbb}.ht-sub a{color:#d4af37}
.ht-pill{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:10px;background:#3b2560;color:#e8d9ff;font-size:.8em}
.ht-credits{font-size:.85em;color:#bbb;margin-top:2px}.ht-credits a{color:#d4af37}
.ht-stats{font-size:.85em;color:#aaa;margin-top:4px}
.ht-actions{margin-top:8px;display:flex;gap:10px;align-items:center}
.ht-like{color:#e07090;text-decoration:none}
.ht-comment{color:#d4af37;text-decoration:none}
.ht-share{background:none;border:1px solid #d4af37;color:#d4af37;border-radius:8px;padding:3px 10px;cursor:pointer}
.ht-more-row{text-align:center;margin-top:12px}
.ht-card .ht-media .ht-fs{position:absolute;right:56px;bottom:8px;margin:0;width:40px;height:40px;border-radius:50%;border:1px solid #d4af37;background:rgba(10,0,20,.7);color:#d4af37;font-size:18px;line-height:1;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;padding:0}
.ht-no-autoplay .ht-card .ht-media .ht-fs{right:8px}
.ht-card .ht-media:fullscreen{aspect-ratio:auto;width:100%;height:100%;background:#000}
.ht-card .ht-media:-webkit-full-screen{aspect-ratio:auto;width:100%;height:100%;background:#000}
.ht-card .ht-media:fullscreen .ht-player{pointer-events:auto}
.ht-card .ht-media:-webkit-full-screen .ht-player{pointer-events:auto}
.ht-card .ht-media:fullscreen .ht-player video,.ht-card .ht-media:fullscreen .ht-player iframe{object-fit:contain}
/* v22: portrait full screen - video fits the screen width, centered, black around it */
.ht-card .ht-media:fullscreen,.ht-card .ht-media:-webkit-full-screen{display:flex;align-items:center;justify-content:center;background:#000}
.ht-card .ht-media:fullscreen .ht-player,.ht-card .ht-media:-webkit-full-screen .ht-player{position:absolute;left:0;right:0;top:50%;bottom:auto;width:100%;height:auto;aspect-ratio:16/9;transform:translateY(-50%);max-height:100%}
.ht-card .ht-media:fullscreen .ht-thumb img,.ht-card .ht-media:-webkit-full-screen .ht-thumb img{object-fit:contain;background:#000}
/* v22: owner ⋯ menu on profile timeline cards */
.ht-owner{position:relative;margin-left:auto}
.ht-owner summary{list-style:none;cursor:pointer;color:#d4af37;padding:2px 8px;border:1px solid rgba(212,175,55,.5);border-radius:8px}
.ht-owner summary::-webkit-details-marker{display:none}
.ht-owner[open] .dv-delete{position:absolute;right:0;top:110%;white-space:nowrap;background:#1d002e;padding:6px 10px;border-radius:8px;z-index:5}

/* v159: fullscreen timeline controls match watch-page size, screen-filling box */
.ht-card .ht-media:fullscreen .ht-mute,.ht-card .ht-media:fullscreen .ht-fs,
.ht-card .ht-media:-webkit-full-screen .ht-mute,.ht-card .ht-media:-webkit-full-screen .ht-fs{width:56px;height:56px;min-width:44px;min-height:44px;font-size:1.25rem;bottom:calc(10px + env(safe-area-inset-bottom))}
.ht-card .ht-media:fullscreen .ht-fs,.ht-card .ht-media:-webkit-full-screen .ht-fs{right:72px}
.ht-card .ht-media:fullscreen,.ht-card .ht-media:-webkit-full-screen{width:100vw;height:100vh;height:100dvh}
