/* ==========================================================================
   Tech Video Hub — cinematic stage, rich cards, shorts rail, live wall
   ========================================================================== */
.tvh { margin-block: 56px; --tvh-card: var(--surface); }
.tvh button { font-family: inherit; }

/* Header + tabs */
.tvh__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tvh__head h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.tvh__sub { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.tvh__tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; }
.tvh__tab { appearance: none; background: none; border: 0; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.tvh__tab:hover { color: var(--ink); }
.tvh__tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tvh__count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; line-height: 18px; }
.tvh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); display: inline-block; flex: none; }
.tvh__tab--live.has-live .tvh__dot, .tvh__livelabel .tvh__dot { background: var(--accent); animation: tvh-pulse 1.6s ease-in-out infinite; }
.tvh__livelabel .tvh__dot { background: #fff; }
@keyframes tvh-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .tvh__dot { animation: none !important; } .tvh__card, .tvh__playicon { transition: none !important; } }

/* Cinematic stage */
.tvh__stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding: 18px; background: var(--bg-dark); color: #eceef2; border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 28px; }
.tvh__player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.tvh__player iframe, .tvh__shortplayer iframe, .tvh__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tvh__play { appearance: none; padding: 0; background: none; border: 0; cursor: pointer; display: block; color: inherit; }
.tvh__play img, .tvh__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvh__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.tvh__playicon { position: absolute; inset: 0; margin: auto; z-index: 1; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.5rem; padding-left: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .18s; }
.tvh__playicon--sm { width: 46px; height: 46px; font-size: 1rem; opacity: 0; transform: scale(.85); }
.tvh__thumb:hover .tvh__playicon--sm, .tvh__thumb:focus-visible .tvh__playicon--sm, .tvh__short .tvh__play:hover .tvh__playicon--sm { opacity: 1; transform: scale(1); }
.tvh__play:hover .tvh__playicon:not(.tvh__playicon--sm) { transform: scale(1.08); }
.tvh__play:focus-visible, .tvh__thumb:focus-visible, .tvh__filter:focus-visible, .tvh__tab:focus-visible, .tvh__nextitem:focus-visible, .tvh__morebtn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.tvh__now { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 4px 2px; }
.tvh__now h3 { margin: 8px 0 0; font: 700 1.2rem/1.35 var(--font-head); color: #fff; }
.tvh__chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #d0d3db; font: 600 .74rem var(--font); letter-spacing: .02em; }
.tvh__yt { flex: none; color: #fff; font-weight: 600; font-size: .85rem; text-decoration: none; padding: 7px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; white-space: nowrap; }
.tvh__yt:hover { background: rgba(255,255,255,.1); }

/* Up next rail */
.tvh__next { display: flex; flex-direction: column; min-height: 0; }
.tvh__nexthead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tvh__nexthead h3 { margin: 0; font: 700 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: #a1a6b3; }
.tvh__switch { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: #d0d3db; cursor: pointer; }
.tvh__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tvh__track { width: 34px; height: 20px; border-radius: 999px; background: #3a3f4b; position: relative; transition: background .15s; }
.tvh__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tvh__switch input:checked + .tvh__track { background: var(--accent); }
.tvh__switch input:checked + .tvh__track::after { transform: translateX(14px); }
.tvh__switch input:focus-visible + .tvh__track { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.tvh__nextlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 470px; scrollbar-width: thin; }
.tvh__nextitem { appearance: none; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; width: 100%; text-align: left; padding: 8px; background: rgba(255,255,255,.04); border: 0; border-radius: 12px; color: #eceef2; cursor: pointer; transition: background .15s; }
.tvh__nextitem:hover { background: rgba(255,255,255,.1); }
.tvh__nextitem img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.tvh__nextitem strong { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 .86rem/1.35 var(--font-head); }
.tvh__nextitem small { display: block; margin-top: 4px; color: #a1a6b3; font-size: .75rem; }

/* Toolbar */
.tvh__toolbar { display: grid; grid-template-columns: minmax(200px, 300px) 1fr auto; gap: 14px; align-items: center; margin-bottom: 22px; }
.tvh__search input { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a8f9c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center; color: var(--ink); font: .9rem var(--font); }
.tvh__search input:focus { outline: 3px solid var(--glow); border-color: var(--accent); }
.tvh__filters { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px; scrollbar-width: none; }
.tvh__filters::-webkit-scrollbar { display: none; }
.tvh__filter { appearance: none; flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .15s, border-color .15s; }
.tvh__filter:hover { border-color: var(--accent); }
.tvh__filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tvh__selects { display: flex; gap: 8px; }
.tvh__select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: .85rem var(--font); max-width: 180px; }

/* Cards */
.tvh__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.tvh__card { background: var(--tvh-card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tvh__card[hidden] { display: none; }
.tvh__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tvh__card.is-playing { border-color: var(--accent); box-shadow: 0 0 0 2px var(--glow); }
.tvh__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--bg-dark); cursor: pointer; overflow: hidden; }
.tvh__thumb img { transition: transform .35s; }
.tvh__thumb:hover img { transform: scale(1.04); }
.tvh__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); opacity: 0; transition: opacity .18s; }
.tvh__thumb:hover::after { opacity: 1; }
.tvh__thumb .tvh__playicon { z-index: 2; }
.tvh__badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--accent); color: #fff; font: 700 .68rem var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tvh__body { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; }
.tvh__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h) 62% 44%); color: #fff; font: 700 .85rem var(--font-head); }
.tvh__meta h3 { margin: 0 0 4px; font: 600 .93rem/1.35 var(--font-head); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tvh__meta p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.tvh__ch { font-weight: 600; }
.tvh__none, .tvh__note { color: var(--ink-soft); }
.tvh__more { display: flex; justify-content: center; margin-top: 28px; }
.tvh__morebtn { appearance: none; padding: 12px 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.tvh__morebtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.tvh__morebtn[hidden] { display: none; }

/* Shorts rail */
.tvh__shorts { list-style: none; margin: 0; padding: 4px 2px 14px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tvh__short { flex: none; width: 190px; scroll-snap-align: start; }
.tvh__shortplayer { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.tvh__shortinfo { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; text-align: left; display: grid; gap: 3px; }
.tvh__shorttitle { font: 600 .82rem/1.3 var(--font-head); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tvh__shortch { font-size: .72rem; color: #c4c8d2; }
.tvh__shortplayer .tvh__play::after { display: none; }

/* Live wall */
.tvh__live { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tvh__livecard .tvh__player { border-radius: 16px; box-shadow: var(--shadow-sm); }
.tvh__player--live .tvh__play, .tvh__offline { background: linear-gradient(135deg, #14161c, #2a2e37); }
.tvh__livelabel { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 4px 11px; border-radius: 6px; font: 700 .72rem var(--font); letter-spacing: .08em; }
.tvh__livelabel--off { background: #4b5060; }
.tvh__livename { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; font: 700 1.1rem var(--font-head); color: #fff; text-align: left; display: grid; gap: 2px; }
.tvh__livename small { font: 500 .8rem var(--font); color: #d0d3db; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tvh__offline { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; filter: saturate(.6); }
.tvh__offtext { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: #a1a6b3; font-size: .9rem; transform: translateY(-50%); }
.tvh__livecard.is-live .tvh__player { outline: 2px solid var(--accent); outline-offset: 2px; }

.tvh--compact { margin-block: 44px; }
.tvh--compact .tvh__sub { display: none; }
.tvh-empty { padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1100px) {
	.tvh__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tvh__stage { grid-template-columns: minmax(0, 1fr); }
	.tvh__nextlist { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: 6px; }
	.tvh__nextlist > li { flex: none; width: 260px; }
	.tvh__toolbar { grid-template-columns: minmax(0, 1fr) auto; }
	.tvh__filters { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
	.tvh { margin-block: 40px; }
	.tvh__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.tvh__stage { padding: 10px; border-radius: 16px; }
	.tvh__now { flex-direction: column; }
	.tvh__live { grid-template-columns: 1fr; }
	.tvh__toolbar { grid-template-columns: minmax(0, 1fr); }
	.tvh__selects .tvh__select { flex: 1; max-width: none; }
	.tvh__tabs { width: 100%; }
	.tvh__tab { flex: 1; justify-content: center; padding-inline: 8px; }
	.tvh__body { grid-template-columns: 1fr; }
	.tvh__avatar { display: none; }
	.tvh__short { width: 150px; }
}
@media (max-width: 440px) { .tvh__grid { grid-template-columns: 1fr; } .tvh__body { grid-template-columns: 34px 1fr; } .tvh__avatar { display: grid; } }

.tvh__stage > *, .tvh__main, .tvh__next, .tvh__toolbar > * { min-width: 0; }
.tvh__live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .tvh__live { grid-template-columns: minmax(0, 1fr); } }

/* Your ads (pre-roll with skip) */
.tvh__player, .tvh__shortplayer { isolation: isolate; }
.tvh__ad { position: absolute; inset: 0; z-index: 6; background: #000; display: grid; place-items: center; overflow: hidden; }
.tvh__admedia { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tvh__ad.has-link .tvh__admedia { cursor: pointer; }
.tvh__adbadge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.65); color: #fff; font: 700 .75rem var(--font); letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--accent-2); }
.tvh__adlink { position: absolute; left: 12px; bottom: 18px; background: rgba(0,0,0,.65); color: #fff; font: 600 .8rem var(--font); padding: 7px 12px; border-radius: 8px; text-decoration: none; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvh__adlink:hover { background: rgba(0,0,0,.85); text-decoration: underline; }
.tvh__adskip { position: absolute; right: 0; bottom: 18px; background: rgba(20,20,20,.8); color: #d0d3db; border: 1px solid rgba(255,255,255,.4); border-right: 0; padding: 9px 16px 9px 14px; font: 600 .85rem var(--font); cursor: not-allowed; border-radius: 6px 0 0 6px; }
.tvh__adskip.is-ready { background: rgba(255,255,255,.92); color: #111; border-color: #fff; cursor: pointer; }
.tvh__adskip.is-ready:hover { background: #fff; }
.tvh__adskip:focus-visible, .tvh__adlink:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.tvh__adbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.tvh__adbar > span { display: block; height: 100%; width: 0; background: var(--accent-2); }
.tvh__shortplayer .tvh__adlink { max-width: 70%; font-size: .72rem; bottom: 46px; }
.tvh__shortplayer .tvh__adskip { bottom: 10px; font-size: .75rem; padding: 7px 10px; }

/* Hindi section */
.tvh--hi { padding-top: 8px; border-top: 1px solid var(--line); }
.tvh--hi .eyebrow, .tvh--hi h2, .tvh--hi .tvh__sub { font-family: var(--font); }
.tvh--hi h2 { font-family: var(--font-head); }
