.ptvh-scope { --ptvh-accent: #996699; --ptvh-text: #1d2327; --ptvh-card: #fff; --ptvh-radius: 8px; --ptvh-cols: 3; color: var(--ptvh-text); box-sizing: border-box; }
.ptvh-scope *, .ptvh-scope *::before, .ptvh-scope *::after { box-sizing: inherit; }
.ptvh-single, .ptvh-archive { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.ptvh-h1 { margin: 16px 0 8px; line-height: 1.25; }
.ptvh-meta { font-size: 14px; opacity: .75; margin: 0 0 12px; }
.ptvh-meta a { color: var(--ptvh-accent); }
.ptvh-desc { margin: 16px 0 32px; line-height: 1.7; overflow-wrap: anywhere; }
.ptvh-desc a { color: var(--ptvh-accent); }

/* Player: fixed frame so the page never jumps. */
.ptvh-player { position: relative; width: 100%; background: #111; border-radius: var(--ptvh-radius); overflow: hidden; }
.ptvh-ratio-16x9 { aspect-ratio: 16 / 9; }
.ptvh-ratio-9x16 { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.ptvh-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ptvh-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptvh-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.ptvh-play-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--ptvh-accent); position: relative; box-shadow: 0 4px 18px rgba(0,0,0,.4); transition: transform .15s ease; }
.ptvh-play-icon::after { content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; }
.ptvh-play:hover .ptvh-play-icon, .ptvh-play:focus-visible .ptvh-play-icon { transform: scale(1.08); }
.ptvh-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.ptvh-nothumb { background: linear-gradient(135deg, #2b2b33, #111); }
.ptvh-consent, .ptvh-blocked-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: rgba(0,0,0,.78); color: #fff; }
.ptvh-consent[hidden] { display: none; }
.ptvh-blocked .ptvh-poster { filter: brightness(.5); }
.ptvh-blocked-card { background: transparent; }
.ptvh-btn { display: inline-block; padding: 10px 18px; border: 2px solid var(--ptvh-accent); background: var(--ptvh-accent); color: #fff; border-radius: var(--ptvh-radius); text-decoration: none; cursor: pointer; font: inherit; line-height: 1.2; }
.ptvh-btn:hover, .ptvh-btn:focus-visible { filter: brightness(1.1); color: #fff; }
.ptvh-btn-ghost { background: transparent; color: #fff; border-color: #fff; }

/* Listings */
.ptvh-listing { margin: 16px 0; }
.ptvh-items { display: grid; grid-template-columns: repeat(var(--ptvh-cols), minmax(0, 1fr)); gap: 20px; }
.ptvh-card { background: var(--ptvh-card); border-radius: var(--ptvh-radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.ptvh-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; }
.ptvh-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptvh-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.ptvh-body { padding: 12px 14px 14px; }
.ptvh-title { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.ptvh-title a { color: var(--ptvh-text); text-decoration: none; }
.ptvh-title a:hover, .ptvh-title a:focus-visible { color: var(--ptvh-accent); }
.ptvh-layout-list .ptvh-items { grid-template-columns: 1fr; gap: 12px; }
.ptvh-layout-list .ptvh-card { flex-direction: row; }
.ptvh-layout-list .ptvh-thumb { width: 240px; flex: 0 0 240px; }
.ptvh-related { margin-top: 40px; }
.ptvh-empty { opacity: .75; }

/* Filter and paging */
.ptvh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ptvh-filter select, .ptvh-filter input[type="search"] { padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: var(--ptvh-radius); min-width: 160px; }
.ptvh-pager, .ptvh-pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 0; }
.ptvh-pg, .ptvh-pager .page-numbers { padding: 6px 12px; border: 1px solid var(--ptvh-accent); border-radius: var(--ptvh-radius); color: var(--ptvh-accent); text-decoration: none; }
.ptvh-pg.is-current, .ptvh-pager .page-numbers.current { background: var(--ptvh-accent); color: #fff; }
.ptvh-gap { padding: 6px 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

@media (max-width: 900px) { .ptvh-items { grid-template-columns: repeat(min(var(--ptvh-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.ptvh-items { grid-template-columns: 1fr; }
	.ptvh-layout-list .ptvh-card { flex-direction: column; }
	.ptvh-layout-list .ptvh-thumb { width: 100%; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .ptvh-play-icon { transition: none; } .ptvh-play:hover .ptvh-play-icon { transform: none; } }
