/* ==========================================================================
   Media Hub — section stylesheet. All selectors are prefixed with the site's
   css_prefix (default "cptv"; tophentai uses "r34"). Dark is the default theme;
   the light variant applies under body.text-ui-dark (Madara "dark text") or
   [data-mh-theme="light"].
   ========================================================================== */

.cptv-hub, .cptv-single, .r34-hub, .r34-single {
	--mh-accent: #ff2d6b;
	--mh-accent2: #7c3aed;
	--mh-bg: #0f0f12;
	--mh-panel: rgba(255,255,255,.05);
	--mh-panel-solid: #17171c;
	--mh-line: rgba(255,255,255,.12);
	--mh-text: #f2f2f5;
	--mh-muted: rgba(255,255,255,.62);
	--mh-radius: 12px;
	--mh-gap: 14px;
	--mh-badge: rgba(0,0,0,.7);
	max-width: 1320px;
	margin: 0 auto;
	padding: 8px 6px 40px;
	color: inherit;
}
body.text-ui-dark .cptv-hub, body.text-ui-dark .cptv-single,
[data-mh-theme="light"] .cptv-hub, [data-mh-theme="light"] .cptv-single,
[data-mh-theme="light"] .r34-hub, [data-mh-theme="light"] .r34-single {
	--mh-panel: rgba(0,0,0,.04);
	--mh-panel-solid: #fff;
	--mh-line: rgba(0,0,0,.12);
	--mh-text: #16161a;
	--mh-muted: rgba(0,0,0,.6);
}

/* ---- header ---- */
.cptv-breadcrumb, .r34-breadcrumb { font-size: .82rem; opacity: .65; margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cptv-breadcrumb a, .r34-breadcrumb a { color: inherit; text-decoration: none; }
.cptv-breadcrumb a:hover, .r34-breadcrumb a:hover { color: var(--mh-accent); }
.cptv-title, .r34-title {
	font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; margin: 0 0 .5rem;
	background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cptv-intro, .r34-intro { font-size: .96rem; opacity: .82; max-width: 78ch; margin: 0 0 1rem; line-height: 1.5; }
.cptv-crosslink a, .r34-crosslink a { color: var(--mh-accent); text-decoration: none; font-weight: 600; font-size: .9rem; }

/* ---- section heads / rails ---- */
.cptv-section-head, .r34-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: 1.6rem 0 .8rem; }
.cptv-section-title, .r34-section-title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.cptv-section-link, .r34-section-link { font-size: .85rem; font-weight: 600; color: var(--mh-accent); text-decoration: none; white-space: nowrap; }
.cptv-rail, .r34-rail { margin-top: .4rem; }
.cptv-grid--rail, .r34-grid--rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 168px; overflow-x: auto; scrollbar-width: thin; padding-bottom: .4rem; scroll-snap-type: x proximity; }
.cptv-grid--rail > *, .r34-grid--rail > * { scroll-snap-align: start; }

/* ---- suggest dropdown (grouped) ---- */
.cptv-suggest, .r34-suggest {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 380px; overflow-y: auto; padding: .35rem;
	background: var(--mh-panel-solid); border: 1px solid var(--mh-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.cptv-suggest__group, .r34-suggest__group { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .5; padding: .45rem .6rem .2rem; }
.cptv-suggest__item:hover, .cptv-suggest__item.is-active, .r34-suggest__item:hover, .r34-suggest__item.is-active { background: rgba(255,45,107,.14); }
.cptv-suggest__thumb, .r34-suggest__thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: #222; flex: 0 0 34px; }
.cptv-suggest__name, .r34-suggest__name { font-weight: 600; flex: 1 1 auto; }
.cptv-suggest__meta, .r34-suggest__meta { font-size: .72rem; opacity: .55; white-space: nowrap; }
.cptv-suggest__go, .r34-suggest__go { font-size: .72rem; color: var(--mh-accent); text-decoration: none; padding: .2rem .45rem; border: 1px solid var(--mh-line); border-radius: 6px; white-space: nowrap; }

/* ---- active tags / chips / trending ---- */
.cptv-active, .r34-active { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .8rem; }
.cptv-activetag, .r34-activetag {
	display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; padding: .38rem .45rem .38rem .8rem; border-radius: 999px; border: 0;
	font-size: .84rem; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2));
}
.cptv-activetag__x, .r34-activetag__x { font-size: 1.05rem; line-height: 1; opacity: .85; }
.cptv-clear, .r34-clear { cursor: pointer; border: 1px solid var(--mh-line); background: transparent; color: inherit; padding: .34rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.cptv-chips, .r34-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.cptv-chip, .r34-chip {
	cursor: pointer; border: 1px solid var(--mh-line); background: var(--mh-panel); color: inherit; padding: .4rem .8rem; border-radius: 999px;
	font-size: .82rem; font-weight: 600; line-height: 1; white-space: nowrap; transition: all .15s ease;
}
.cptv-chip:hover, .r34-chip:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-chip.is-active, .r34-chip.is-active { background: var(--mh-accent); border-color: transparent; color: #fff; }
.cptv-trending, .r34-trending { display: flex; flex-direction: column; gap: .45rem; margin: 0 0 1rem; }
.cptv-trending__row, .r34-trending__row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cptv-trending__label, .r34-trending__label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .55; margin-right: .2rem; }
.cptv-pill, .r34-pill { font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--mh-line); color: inherit; text-decoration: none; background: var(--mh-panel); transition: all .15s ease; }
.cptv-pill:hover, .r34-pill:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-taxbar, .r34-taxbar { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0 0 1rem; }

/* ---- results meta ---- */
.cptv-meta, .r34-meta { font-size: .82rem; opacity: .7; font-weight: 600; margin: 0 0 .6rem; }
.cptv-status, .r34-status { font-size: .82rem; opacity: .6; min-height: 1em; margin-bottom: .4rem; }
.cptv-status.is-loading::before, .r34-status.is-loading::before { content: "Loading…"; }
.cptv-results, .r34-results { transition: opacity .15s ease; }
.cptv-hub.is-busy .cptv-results, .r34-hub.is-busy .r34-results { opacity: .5; pointer-events: none; }
.cptv-empty, .r34-empty { opacity: .65; padding: 2rem 0; text-align: center; grid-column: 1 / -1; }

/* ---- grid + cards ---- */
.cptv-grid, .r34-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--mh-gap); align-items: start; }
.cptv-card, .r34-card { margin: 0; border-radius: var(--mh-radius); overflow: hidden; background: var(--mh-panel); box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .18s ease, box-shadow .18s ease; }
.cptv-card:hover, .r34-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.cptv-card__link, .r34-card__link { display: block; color: inherit; text-decoration: none; }
.cptv-card__media, .r34-card__media { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #111; line-height: 0; overflow: hidden; }
.cptv-grid--motion .cptv-card__media, .r34-grid--motion .r34-card__media { aspect-ratio: 16 / 10; }
.cptv-card__img, .cptv-card__media .cptv-hover-media, .r34-card__img, .r34-card__media .r34-hover-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cptv-card__media .cptv-hover-media, .r34-card__media .r34-hover-media { z-index: 1; opacity: 0; transition: opacity .18s ease; }
.cptv-card__media.is-hovering .cptv-hover-media, .r34-card__media.is-hovering .r34-hover-media { opacity: 1; }
.cptv-card__title, .r34-card__title { font-size: .8rem; font-weight: 600; margin: 0; padding: .5rem .6rem .6rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2.5em + 1.1rem); }
.cptv-badge, .r34-badge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .66rem; font-weight: 800; letter-spacing: .03em; padding: .2rem .45rem; border-radius: 6px; color: #fff; background: var(--mh-badge); backdrop-filter: blur(3px); line-height: 1.2; }
.cptv-badge--video, .r34-badge--video { background: rgba(255,45,107,.92); padding: .15rem .5rem; font-size: .8rem; }
.cptv-badge--gif, .r34-badge--gif { background: rgba(124,58,237,.92); }
.cptv-badge--res, .r34-badge--res { left: auto; right: 8px; background: rgba(0,0,0,.6); }
.cptv-card__dur, .r34-card__dur { position: absolute; bottom: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; color: #fff; padding: .15rem .45rem; border-radius: 6px; background: rgba(0,0,0,.66); line-height: 1.2; }
.cptv-card__score, .r34-card__score { position: absolute; bottom: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: .2rem; font-size: .7rem; font-weight: 700; color: #fff; padding: .15rem .45rem; border-radius: 6px; background: rgba(0,0,0,.6); line-height: 1.2; }
.cptv-card__score .cptv-ico, .cptv-single__score .cptv-ico, .r34-card__score .r34-ico, .r34-single__score .r34-ico { color: #ff7a3d; }
.cptv-card__peek, .r34-card__peek { display: none; position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; }
@media (hover: none) {
	.cptv-card--video .cptv-card__peek, .cptv-card--gif .cptv-card__peek, .r34-card--video .r34-card__peek, .r34-card--gif .r34-card__peek { display: inline-flex; align-items: center; justify-content: center; }
	.cptv-badge--res, .r34-badge--res { right: 48px; }
}

/* ---- load more + pagination ---- */
.cptv-more, .r34-more { display: flex; justify-content: center; margin: 1.2rem 0 .4rem; }
.cptv-more__btn, .r34-more__btn { cursor: pointer; border: 1px solid var(--mh-line); background: var(--mh-panel); color: inherit; padding: .7rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.cptv-more__btn:hover, .r34-more__btn:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-more__btn[disabled], .r34-more__btn[disabled] { opacity: .5; cursor: default; }
.cptv-pagination-wrap, .r34-pagination-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.ch-pagination { display: flex; flex-wrap: wrap; gap: .35rem; }
.ch-page { cursor: pointer; min-width: 38px; height: 38px; padding: 0 .5rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mh-line); background: transparent; color: inherit; border-radius: 8px; font-weight: 600; font-size: .85rem; text-decoration: none; }
.ch-page:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.ch-page.is-current { background: var(--mh-accent); border-color: transparent; color: #fff; }
.ch-page-gap { display: inline-flex; align-items: center; padding: 0 .25rem; opacity: .5; }

/* ---- single ---- */
.cptv-single__title, .r34-single__title { font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 800; margin: .4rem 0 .9rem; line-height: 1.2; }
.cptv-single__stage, .r34-single__stage { display: flex; justify-content: center; background: #0a0a0a; border-radius: var(--mh-radius); overflow: hidden; margin-bottom: .9rem; }
.cptv-single__stage.is-theater, .r34-single__stage.is-theater { border-radius: 0; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.cptv-single__img, .cptv-single__video, .r34-single__img, .r34-single__video { max-width: 100%; max-height: 82vh; width: auto; height: auto; display: block; }
.cptv-single__imglink, .r34-single__imglink { display: block; line-height: 0; max-width: 100%; }
.cptv-player, .r34-player { position: relative; width: 100%; display: flex; justify-content: center; }
.cptv-player video, .r34-player video { width: 100%; max-height: 82vh; background: #000; }
.cptv-player__big, .r34-player__big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255,45,107,.92); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; box-shadow: 0 8px 30px rgba(0,0,0,.5); transition: transform .15s ease, opacity .2s ease; }
.cptv-player__big:hover, .r34-player__big:hover { transform: scale(1.06); }
.cptv-player.is-playing .cptv-player__big, .r34-player.is-playing .r34-player__big { opacity: 0; pointer-events: none; }
.cptv-player__unmute, .r34-player__unmute { position: absolute; left: 12px; top: 12px; z-index: 3; border: 0; border-radius: 999px; padding: .45rem .8rem; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; display: none; }
.cptv-player.is-muted-auto .cptv-player__unmute, .r34-player.is-muted-auto .r34-player__unmute { display: inline-flex; }
.cptv-player__next, .r34-player__next { position: absolute; right: 12px; bottom: 60px; z-index: 3; background: rgba(0,0,0,.82); color: #fff; padding: .6rem .8rem; border-radius: 10px; font-size: .82rem; max-width: 260px; display: none; }
.cptv-player.is-ended .cptv-player__next, .r34-player.is-ended .r34-player__next { display: block; }
.cptv-player__next a, .r34-player__next a { color: #fff; font-weight: 700; text-decoration: none; display: block; margin: .2rem 0; }
.cptv-player__next button, .r34-player__next button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 6px; padding: .25rem .5rem; cursor: pointer; font-size: .75rem; }
.cptv-player__bar, .r34-player__bar { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 .8rem; }
.cptv-player__bar button, .r34-player__bar button { cursor: pointer; border: 1px solid var(--mh-line); background: var(--mh-panel); color: inherit; padding: .35rem .65rem; border-radius: 8px; font-size: .78rem; font-weight: 600; }
.cptv-player__bar button.is-on, .r34-player__bar button.is-on { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-single__meta, .r34-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; font-size: .85rem; opacity: .9; margin-bottom: 1rem; }
.cptv-single__type, .r34-single__type { padding: .15rem .5rem; border-radius: 6px; background: var(--mh-accent); color: #fff; font-weight: 700; font-size: .72rem; }
.cptv-single__fact, .r34-single__fact { padding: .15rem .55rem; border-radius: 6px; background: var(--mh-panel); border: 1px solid var(--mh-line); font-size: .78rem; font-weight: 600; }
.cptv-single__score, .r34-single__score { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; }
.cptv-single__actions, .r34-single__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-left: auto; }
.cptv-btn, .r34-btn { cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--mh-line); background: var(--mh-panel); color: inherit; padding: .4rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; line-height: 1; }
.cptv-btn:hover, .r34-btn:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-single__desc, .r34-single__desc { font-size: .95rem; line-height: 1.55; opacity: .9; max-width: 90ch; }
.cptv-single__desc p, .r34-single__desc p { margin: 0 0 .6rem; }
.cptv-single__desc a, .r34-single__desc a { color: var(--mh-accent); }
.cptv-single__tags, .r34-single__tags { margin: 1rem 0; }
.cptv-taxrow, .r34-taxrow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .55rem; }
.cptv-taxrow__label, .r34-taxrow__label { font-weight: 700; font-size: .8rem; opacity: .65; margin-right: .2rem; }
.cptv-tagpill, .r34-tagpill { font-size: .78rem; padding: .28rem .6rem; border-radius: 999px; text-decoration: none; border: 1px solid var(--mh-line); color: inherit; transition: all .15s ease; }
.cptv-tagpill:hover, .r34-tagpill:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-related, .r34-related { margin-top: 1.6rem; }
.cptv-related .cptv-section-title, .r34-related .r34-section-title { margin-bottom: .9rem; }
.cptv-single__report, .r34-single__report { font-size: .75rem; opacity: .5; margin-top: 1.5rem; }
.cptv-single__report a, .r34-single__report a { color: inherit; }
.cptv-toast, .r34-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 90; background: rgba(0,0,0,.85); color: #fff; padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* ---- a11y ---- */
.cptv-card__link:focus-visible, .cptv-type:focus-visible, .cptv-chip:focus-visible, .ch-page:focus-visible, .cptv-tagpill:focus-visible, .cptv-btn:focus-visible,
.r34-card__link:focus-visible, .r34-type:focus-visible, .r34-chip:focus-visible, .r34-tagpill:focus-visible, .r34-btn:focus-visible { outline: 2px solid var(--mh-accent); outline-offset: 2px; }

/* ---- mobile ---- */
@media (max-width: 768px) {
	.cptv-hub, .cptv-single, .r34-hub, .r34-single { --mh-radius: 10px; --mh-gap: 10px; padding: 10px 2px 32px; }
	.cptv-breadcrumb, .r34-breadcrumb { font-size: .74rem; }
	.cptv-title, .r34-title { font-size: 1.5rem; }
	.cptv-intro, .r34-intro { font-size: .88rem; }
	.cptv-chips, .cptv-active, .cptv-trending__row, .r34-chips, .r34-active, .r34-trending__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
	.cptv-chips::-webkit-scrollbar, .cptv-active::-webkit-scrollbar, .cptv-trending__row::-webkit-scrollbar { display: none; }
	.cptv-chip, .cptv-activetag, .cptv-clear, .cptv-pill, .r34-chip, .r34-activetag, .r34-clear, .r34-pill { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; }
	.cptv-grid, .r34-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cptv-grid--rail, .r34-grid--rail { grid-auto-columns: 46%; scrollbar-width: none; }
	.cptv-card:hover, .r34-card:hover { transform: none; }
	.cptv-card__title, .r34-card__title { font-size: .76rem; }
	.cptv-single__title, .r34-single__title { font-size: 1.2rem; }
	.cptv-single__stage, .r34-single__stage { margin-left: -2px; margin-right: -2px; border-radius: 8px; }
	.cptv-single__img, .cptv-single__video, .r34-single__img, .r34-single__video { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
	.cptv-single__actions, .r34-single__actions { margin-left: 0; width: 100%; }
	.cptv-player__big, .r34-player__big { width: 64px; height: 64px; font-size: 1.5rem; }
	.cptv-tagpill, .r34-tagpill { min-height: 32px; display: inline-flex; align-items: center; }
}
@media (max-width: 360px) {
	.cptv-hub, .cptv-single, .r34-hub, .r34-single { --mh-gap: 8px; }
	.cptv-card__title, .r34-card__title { font-size: .72rem; }
}

/* ==========================================================================
   Watch page (single) — v2, Sep 18 2026. Site-agnostic "mh-" classes.
   Layout: player + info (main) | "Up next" column on ≥1200px; theater mode
   spans the player across and drops the column below.
   ========================================================================== */
.mh-watch { max-width: 1680px; }
.mh-watch__grid { display: block; }
.mh-watch__main { min-width: 0; }
@media (min-width: 1200px) {
	.mh-watch.has-side .mh-watch__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 24px; align-items: start; }
	.mh-watch.has-side.is-theater .mh-watch__grid { grid-template-columns: minmax(0, 1fr); }
	.mh-watch.is-theater .mh-watch__main .mh-stage { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; background: #000; }
	.mh-watch.is-theater .mh-side__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 18px; }
}

/* Breadcrumb: one line, ellipsis. */
.mh-watch > .cptv-breadcrumb, .mh-watch > .r34-breadcrumb { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mh-watch > .cptv-breadcrumb > *, .mh-watch > .r34-breadcrumb > * { display: inline; }

/* ---- stage / player ---- */
.mh-stage { position: relative; background: #000; margin-bottom: .75rem; }
.mh-stage.is-portrait { background: #000; isolation: isolate; }
.mh-stage.is-portrait::before { content: ""; position: absolute; inset: -30px; background: var(--mh-poster) center / cover no-repeat; filter: blur(28px) brightness(.45); z-index: -1; }
.mh-player { position: relative; display: block; width: 100%; max-width: calc(82vh * var(--mh-arn, 1.7778)); margin: 0 auto; aspect-ratio: var(--mh-ar, 16 / 9); background: #000; }
/* In-page size only: fullscreen / pseudo-fullscreen / mini modes size themselves. */
.mh-player > video, .mh-player > .fluid_video_wrapper:not(.pseudo_fullscreen):not(.fluid_mini_player_mode) { width: 100% !important; height: 100% !important; display: block; }
.mh-player video { object-fit: contain; max-height: none !important; }
/* Theme sets button{position:relative}; the big play must overlay, not push the video. */
.mh-player > button.cptv-player__big, .mh-player > button.r34-player__big { position: absolute !important; inset: 0; margin: auto; padding: 0; }
.mh-player.is-fluid .fluid_video_wrapper { font-family: inherit; }
.mh-player .fluid_controls_container .fluid_button.mh-theater { background: none; border: 0; padding: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: #fff; opacity: .85; cursor: pointer; }
.mh-player .fluid_button.mh-theater:hover, .mh-player .fluid_button.mh-theater.is-on { opacity: 1; color: var(--mh-accent); }
.mh-theater--float { position: absolute !important; right: 10px; top: 10px; z-index: 4; border: 0; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; width: 36px; height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.mh-player:hover .mh-theater--float, .mh-theater--float:focus-visible { opacity: 1; }

.mh-unmute { position: absolute !important; left: 12px; top: 12px; z-index: 5; display: none; align-items: center; gap: .4rem; max-width: calc(100% - 24px); border: 0; border-radius: 999px; padding: .5rem .85rem; background: rgba(0,0,0,.75); color: #fff; font: 700 .8rem/1 inherit; cursor: pointer; white-space: nowrap; }
.mh-player.is-muted-auto .mh-unmute { display: inline-flex; }
.mh-player.is-ad .mh-unmute, .mh-player.is-ad .mh-resume { display: none; }

.mh-resume { position: absolute !important; left: 12px; bottom: 64px; z-index: 5; display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; padding: .5rem .5rem .5rem .9rem; background: rgba(0,0,0,.8); color: #fff; font: 700 .82rem/1 inherit; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.mh-resume:hover { background: var(--mh-accent); }
.mh-resume__x { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 1rem; }

/* ---- end screen ---- */
.mh-end { position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 16px; background: rgba(8,8,10,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.mh-player.is-ended .mh-end { display: flex; }
.mh-end__main { display: flex; align-items: center; gap: 18px; max-width: 640px; width: 100%; }
.mh-end__thumb { position: relative; flex: 0 0 44%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #111; display: block; }
.mh-end__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-end__play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.mh-end__ring { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; transform: rotate(-90deg); pointer-events: none; }
.mh-end__ring circle { fill: none; stroke: var(--mh-accent); stroke-width: 3; stroke-dasharray: 125.7; stroke-dashoffset: 125.7; }
.mh-end__ring.is-run circle { animation: mh-ring var(--mh-ring-dur, 8s) linear forwards; }
.mh-end__ring.is-off { display: none; }
@keyframes mh-ring { to { stroke-dashoffset: 0; } }
.mh-end__info { min-width: 0; flex: 1; }
.mh-end__kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.mh-end__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .3rem 0 .8rem; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.25; text-decoration: none; }
.mh-end__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.mh-end__btns button { position: relative; border: 0; border-radius: 999px; padding: .5rem .95rem; background: rgba(255,255,255,.14); color: #fff; font: 700 .82rem/1 inherit; cursor: pointer; }
.mh-end__btns button[data-replay] { background: #fff; color: #111; }
.mh-end__more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; width: 100%; }
.mh-end__more a { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #111; }
.mh-end__more img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.mh-end__more a:hover img { transform: scale(1.05); }
.mh-end__more span { position: absolute; right: 5px; bottom: 5px; padding: .1rem .35rem; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: .7rem; font-weight: 700; }

/* ---- title + info bar ---- */
.mh-watch .cptv-single__title, .mh-watch .r34-single__title { margin: .2rem 0 .55rem; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.mh-infobar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .9rem; }
.mh-facts { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .86rem; font-weight: 600; color: var(--mh-muted); }
.mh-facts li { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.mh-facts li + li::before { content: "·"; margin: 0 .5rem; opacity: .6; }
.mh-facts__type { color: var(--mh-accent); font-weight: 800; }
.mh-facts__score { color: var(--mh-text); }
.mh-facts .mh-ico { width: 15px; height: 15px; }
.mh-ico--fire { color: #ff7a3d; }
.mh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; position: relative; }
.mh-act, .mh-actions .cp-favorite-wrap { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .95rem; border: 1px solid var(--mh-line); border-radius: 999px; background: var(--mh-panel); color: inherit; font: 700 .84rem/1 inherit; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.mh-act:hover, .mh-actions .cp-favorite-wrap:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
button.mh-act { position: relative; }
.mh-act--icon { width: 38px; padding: 0; justify-content: center; }
.mh-actions .cp-favorite-wrap { padding: 0 .8rem; margin: 0; }
.mh-actions .cp-favorite-btn { display: inline-flex; color: inherit; line-height: 0; }
.mh-actions .cp-favorite-btn.cp-favorited { color: var(--mh-accent); }
.mh-actions .cp-favorite-count { font-weight: 700; font-size: .84rem; }
.mh-actions .cp-favorite-count.is-zero { display: none; }

/* share popover */
.mh-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(360px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--mh-line); border-radius: 12px; background: var(--mh-panel-solid, #17171c); color: var(--mh-text); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.mh-pop__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: 0 0 .35rem; }
.mh-pop__row { display: flex; gap: .4rem; margin-bottom: .7rem; }
.mh-pop__row:last-child { margin-bottom: 0; }
.mh-pop input, .mh-pop textarea { flex: 1; min-width: 0; border: 1px solid var(--mh-line); border-radius: 8px; background: rgba(0,0,0,.25); color: inherit !important; padding: .45rem .55rem; font: .78rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; resize: none; }
.mh-pop button { position: relative; flex: 0 0 auto; border: 0; border-radius: 8px; padding: 0 .8rem; background: var(--mh-accent); color: #fff; font: 700 .78rem/1 inherit; cursor: pointer; }

/* ---- about: clamped description + chips ---- */
.mh-about { padding: .85rem 1rem; border-radius: var(--mh-radius); background: var(--mh-panel); border: 1px solid var(--mh-line); margin-bottom: 1rem; }
.mh-about .cptv-single__desc, .mh-about .r34-single__desc { max-width: none; font-size: .92rem; }
.mh-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh-clamp p { display: inline; margin: 0; }
.mh-clamp.is-open { display: block; -webkit-line-clamp: unset; }
.mh-clamp.is-open p { display: block; margin: 0 0 .6rem; }
.mh-more, .mh-tagmore { position: relative; border: 0; background: none; padding: .2rem 0; color: var(--mh-text); font: 700 .82rem/1.2 inherit; cursor: pointer; }
.mh-more:hover, .mh-tagmore:hover { color: var(--mh-accent); }
.mh-about .cptv-single__tags, .mh-about .r34-single__tags { margin: .75rem 0 0; }
.mh-taxrow .cptv-taxrow__label, .mh-taxrow .r34-taxrow__label { min-width: 5.5rem; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.mh-taxrow--entity .cptv-tagpill, .mh-taxrow--entity .r34-tagpill { background: rgba(255,45,107,.1); border-color: rgba(255,45,107,.35); font-weight: 700; font-size: .82rem; }
.mh-count { margin-left: .35rem; font-weight: 600; font-size: .72rem; opacity: .6; }
.mh-taxrow .is-extra { display: none; }
.mh-taxrow.is-open .is-extra { display: inline-flex; }
.mh-tagmore { font-size: .78rem; padding: .28rem .4rem; opacity: .8; }

/* ---- "Up next" column ---- */
.mh-side { min-width: 0; margin: 0 0 1rem; }
.mh-side__title { display: inline-block; font-size: 1.05rem; margin: 0 0 .7rem; }
.mh-autonext { float: right; display: inline-flex; align-items: center; gap: .4rem; margin: .1rem 0 0; font-size: .8rem; font-weight: 600; color: var(--mh-muted); cursor: pointer; user-select: none; }
.mh-autonext input { accent-color: var(--mh-accent); width: 16px; height: 16px; margin: 0; }
.mh-side__list { list-style: none; margin: 0; padding: 0; clear: both; }
.mh-side__list li { margin: 0 0 10px; padding: 0; }
.mh-side__item { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; color: inherit; text-decoration: none; border-radius: 10px; }
.mh-side__item:hover .mh-side__name { color: var(--mh-accent); }
.mh-side__item:focus-visible { outline: 2px solid var(--mh-accent); outline-offset: 2px; }
.mh-side__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.mh-side__thumb img, .mh-side__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-side__dur { position: absolute; right: 5px; bottom: 5px; z-index: 2; padding: .1rem .35rem; border-radius: 4px; background: rgba(0,0,0,.78); color: #fff; font-size: .7rem; font-weight: 700; }
.mh-side__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; padding-top: 2px; }
.mh-side__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; font-weight: 700; line-height: 1.3; transition: color .15s; }
.mh-side__meta { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--mh-muted); }
@media (min-width: 700px) and (max-width: 1199px) {
	.mh-side__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
	.mh-side__list li { margin: 0; }
}

/* ---- mobile ---- */
@media (max-width: 768px) {
	.mh-watch { padding-top: 4px; }
	.mh-watch > .cptv-breadcrumb, .mh-watch > .r34-breadcrumb { font-size: .75rem; margin-bottom: .35rem; }
	.mh-watch .mh-stage { margin-left: -8px; margin-right: -8px; border-radius: 0; }
	.mh-player { max-width: calc(80vh * var(--mh-arn, 1.7778)); }
	.mh-infobar { flex-direction: column; align-items: stretch; }
	.mh-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; }
	.mh-act, .mh-actions .cp-favorite-wrap { justify-content: center; padding: 0 .5rem; min-width: 0; }
	.mh-act--icon { width: auto; }
	.mh-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.mh-pop { right: auto; left: 0; }
	.mh-about { padding: .75rem; }
	.mh-taxrow .cptv-taxrow__label, .mh-taxrow .r34-taxrow__label { min-width: 0; width: 100%; }
	.mh-side__item { grid-template-columns: 140px minmax(0, 1fr); }
	.mh-end { gap: .6rem; padding: 10px; }
	.mh-end__main { gap: 12px; }
	.mh-end__title { font-size: .9rem; margin: .2rem 0 .5rem; }
	.mh-end__more { display: none; }
	.mh-end__btns button { padding: .45rem .75rem; }
	.mh-resume { bottom: 56px; font-size: .78rem; }
}
@media (max-width: 400px) {
	.mh-act span { display: none; }
	.mh-act { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.mh-end__ring.is-run circle { animation: none; stroke-dashoffset: 0; }
}

/* Theme's `button:not(.close)` (ui-enhancements.css) sets display/padding/colors on every button;
   these element-qualified selectors outrank it for the watch-page controls. */
.mh-watch button.mh-unmute { display: none; padding: .5rem .85rem; margin: 0; gap: .4rem; }
.mh-watch .mh-player.is-muted-auto > button.mh-unmute { display: inline-flex; }
.mh-watch .mh-player.is-ad > button.mh-unmute, .mh-watch .mh-player.is-ad > button.mh-resume { display: none; }
.mh-watch button.mh-resume { padding: .5rem .5rem .5rem .9rem; margin: 0; background: rgba(0,0,0,.8); color: #fff; }
.mh-watch button.mh-resume:hover { background: var(--mh-accent); }
.mh-watch button.mh-theater { margin: 0; gap: 0; }
.mh-watch .fluid_controls_right button.mh-theater { padding: 0; background: none; border: 0; color: #fff; }
.mh-watch .mh-actions button.mh-act { padding: 0 .95rem; margin: 0; background: var(--mh-panel); color: var(--mh-text); border: 1px solid var(--mh-line); }
.mh-watch .mh-actions button.mh-act:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.mh-watch .mh-actions a.mh-act { color: var(--mh-text); }
.mh-watch .mh-actions a.mh-act:hover { color: var(--mh-accent); }
.mh-watch .mh-actions .cp-favorite-wrap a.cp-favorite-btn { width: auto; height: auto; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; border-radius: 0; color: inherit; }
.mh-watch .mh-actions .cp-favorite-wrap a.cp-favorite-btn.cp-favorited { color: var(--mh-accent); }
.mh-watch .mh-actions .cp-favorite-wrap { color: var(--mh-text); }
.mh-watch button.mh-more, .mh-watch button.mh-tagmore { display: inline-block; padding: .2rem 0; margin: 0; background: none; border: 0; color: var(--mh-text); }
.mh-watch button.mh-tagmore { padding: .28rem .4rem; }
.mh-watch .mh-end__btns button { padding: .5rem .95rem; margin: 0; background: rgba(255,255,255,.14); color: #fff; border: 0; }
.mh-watch .mh-end__btns button[data-replay] { background: #fff; color: #111; }
.mh-watch .mh-pop button { padding: 0 .8rem; margin: 0; background: var(--mh-accent); color: #fff; border: 0; }
.mh-watch .mh-side__title { word-spacing: .12em; }
@media (max-width: 768px) {
	.mh-watch .mh-stage { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
	.mh-watch .mh-actions button.mh-act { padding: 0 .5rem; }
}
@media (max-width: 400px) {
	.mh-watch .mh-actions button.mh-act { padding: 0; }
}
/* Card-media wrappers set line-height:0 (image baseline gap); badges need their own. */
.mh-side__dur, .mh-end__more span { line-height: 1.35; }

/* ---- player fixes v3 (Sep 18 2026): fullscreen, control spacing, touch ---- */
.mh-player .fluid_video_wrapper video { width: 100% !important; height: 100% !important; }
.mh-player .fluid_video_wrapper:fullscreen, .mh-player .fluid_video_wrapper:-webkit-full-screen { width: 100% !important; height: 100% !important; max-width: none; background: #000; }
.mh-player .fluid_video_wrapper:fullscreen video, .mh-player .fluid_video_wrapper:-webkit-full-screen video { width: 100% !important; height: 100% !important; object-fit: contain; }
.mh-player .fluid_video_wrapper.pseudo_fullscreen { position: fixed !important; inset: 0; width: 100vw !important; height: 100vh !important; height: 100dvh !important; z-index: 2147483000; background: #000; }
/* Fluid floats the right-hand buttons; give each a hit area and breathing room. */
.mh-player .fluid_controls_right > .fluid_button { margin-left: 10px; }
.mh-player .fluid_controls_right > .fluid_control_playback_rate { margin-left: 10px; }
.mh-watch .mh-player .fluid_controls_right > button.mh-theater { float: right; width: 24px; height: 24px; margin: 0 0 0 10px; padding: 0; background: none; border: 0; color: #fff; opacity: .85; display: flex; align-items: center; justify-content: center; }
.mh-watch .mh-player .fluid_controls_right > button.mh-theater:hover, .mh-watch .mh-player .fluid_controls_right > button.mh-theater.is-on { opacity: 1; color: var(--mh-accent); }
.mh-player .fluid_controls_right .fluid_control_duration { overflow: hidden; }
/* Taps: no double-tap zoom, no grey flash, no text selection on the picture. */
.mh-player, .mh-player .fluid_video_wrapper, .mh-player video { touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mh-player .fluid_player_skip_offset { display: none !important; }
.mh-seek { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.mh-seek--back { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; background: radial-gradient(ellipse at left center, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); }
.mh-seek--fwd { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; background: radial-gradient(ellipse at right center, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); }
.mh-seek.is-on { opacity: 1; transition: none; }
.mh-seek__txt { padding: .45rem .8rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font: 800 .95rem/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; letter-spacing: .02em; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mh-player.is-fs .mh-unmute, .mh-player.is-fs .mh-resume { display: none !important; }

/* ---- tophentai (r34) host theme: body text is #828485 and light mode = body:not(.dark) (Sep 19 2026) ---- */
.r34-hub, .r34-single { color: var(--mh-text); }
body:not(.dark) .r34-hub, body:not(.dark) .r34-single {
	--mh-panel: rgba(0,0,0,.04);
	--mh-panel-solid: #fff;
	--mh-line: rgba(0,0,0,.12);
	--mh-text: #16161a;
	--mh-muted: rgba(0,0,0,.6);
}
body:not(.dark) .r34-toolbar { background: rgba(250,250,250,.94); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.r34-single h1.r34-single__title, .r34-hub h1.r34-title { color: var(--mh-text); }
.r34-single .mh-side__name, .r34-hub .r34-card__title { color: var(--mh-text); }

/* ==========================================================================
   Filter toolbar v2 (Sep 19 2026): search + include/exclude suggestions,
   segmented Show / Sort / Uploaded / Length groups, blacklist button,
   active-filter summary, empty-state fixes, blacklist manager dialog.
   Buttons are scoped `.x-hub button.x-…` because the host themes style
   bare `button:not(.close)` with higher specificity than one class.
   ========================================================================== */
.cptv-toolbar, .r34-toolbar {
	position: sticky; top: 0; z-index: 30;
	display: flex; flex-direction: column; gap: .65rem;
	margin: 0 0 .8rem; padding: .7rem .75rem; border-radius: var(--mh-radius);
	background: rgba(22,22,26,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	box-shadow: 0 2px 12px rgba(0,0,0,.35); border: 1px solid var(--mh-line);
}
body.text-ui-dark .cptv-toolbar, body.text-ui-dark .r34-toolbar, [data-mh-theme="light"] .cptv-toolbar, [data-mh-theme="light"] .r34-toolbar { background: rgba(250,250,250,.95); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cptv-toolbar-sentinel, .r34-toolbar-sentinel { height: 1px; margin-bottom: -1px; }
.cptv-toolbar__top, .r34-toolbar__top { display: flex; align-items: center; gap: .5rem; }
.cptv-search, .r34-search { position: relative; flex: 1 1 auto; min-width: 0; }
.cptv-search__icon, .r34-search__icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.cptv-hub input.cptv-search__input, .r34-hub input.r34-search__input {
	width: 100%; box-sizing: border-box; margin: 0; padding: .6rem .9rem .6rem 2.3rem; min-height: 42px; height: auto;
	border-radius: 999px; border: 1px solid var(--mh-line); background: var(--mh-panel); color: var(--mh-text); font-size: .92rem; box-shadow: none;
}
.cptv-hub input.cptv-search__input:focus, .r34-hub input.r34-search__input:focus { outline: none; border-color: var(--mh-accent); box-shadow: 0 0 0 3px rgba(255,45,107,.18); }
.cptv-hub input.cptv-search__input::placeholder, .r34-hub input.r34-search__input::placeholder { color: var(--mh-muted); opacity: 1; }
.cptv-hub button.cptv-blbtn, .r34-hub button.r34-blbtn, .cptv-hub button.cptv-filters-btn, .r34-hub button.r34-filters-btn {
	display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; margin: 0; cursor: pointer; min-height: 42px; padding: 0 .95rem;
	border: 1px solid var(--mh-line); border-radius: 999px; background: var(--mh-panel); color: var(--mh-text); font: 700 .84rem/1 inherit; white-space: nowrap; box-shadow: none;
}
.cptv-hub button.cptv-blbtn:hover, .r34-hub button.r34-blbtn:hover, .cptv-hub button.cptv-filters-btn:hover, .r34-hub button.r34-filters-btn:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-hub button.cptv-blbtn.is-active, .r34-hub button.r34-blbtn.is-active { border-color: rgba(255,45,107,.55); color: var(--mh-accent); }
.cptv-hub button.cptv-blbtn.is-paused, .r34-hub button.r34-blbtn.is-paused { opacity: .7; text-decoration: line-through; }
.cptv-blbtn__n, .r34-blbtn__n, .cptv-filters-btn__n, .r34-filters-btn__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--mh-accent); color: #fff; font-size: .7rem; font-weight: 800; }
.cptv-blbtn__n[hidden], .r34-blbtn__n[hidden], .cptv-filters-btn__n[hidden], .r34-filters-btn__n[hidden] { display: none; }
.cptv-hub button.cptv-filters-btn, .r34-hub button.r34-filters-btn { display: none; }

/* groups: inline segmented controls on desktop */
.cptv-sheet, .r34-sheet { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; }
.cptv-sheet__head, .r34-sheet__head, .cptv-sheet__foot, .r34-sheet__foot { display: none; }
.cptv-group, .r34-group { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.cptv-group__label, .r34-group__label { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--mh-muted); white-space: nowrap; }
.cptv-group__note, .r34-group__note { flex: 1 1 100%; margin: -.2rem 0 0; font-size: .74rem; color: var(--mh-muted); }
.cptv-group__note[hidden], .r34-group__note[hidden] { display: none; }
.cptv-seg, .r34-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--mh-panel); border: 1px solid var(--mh-line); }
.cptv-seg__btn, .r34-seg__btn {
	display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .78rem; border-radius: 999px;
	font-size: .8rem; font-weight: 650; line-height: 1.1; white-space: nowrap; color: var(--mh-text); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.cptv-seg__btn:hover, .r34-seg__btn:hover { color: var(--mh-accent); text-decoration: none; }
.cptv-seg__btn.is-active, .r34-seg__btn.is-active { background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2)); color: #fff; }
.cptv-seg__btn.is-active:hover, .r34-seg__btn.is-active:hover { color: #fff; }
.cptv-seg__btn small, .r34-seg__btn small { font-size: .68rem; font-weight: 700; opacity: .6; }
.cptv-seg__btn.is-active small, .r34-seg__btn.is-active small { opacity: .85; }
.cptv-seg__btn:focus-visible, .r34-seg__btn:focus-visible { outline: 2px solid var(--mh-accent); outline-offset: 1px; }

/* condensed when stuck (desktop): only the top row, groups drop down from "Filters" */
@media (min-width: 769px) {
	.cptv-toolbar.is-stuck, .r34-toolbar.is-stuck { padding: .5rem .6rem; border-radius: 0 0 var(--mh-radius) var(--mh-radius); }
	.cptv-toolbar.is-stuck .cptv-sheet, .r34-toolbar.is-stuck .r34-sheet { display: none; }
	.cptv-toolbar.is-stuck .cptv-sheet.is-open, .r34-toolbar.is-stuck .r34-sheet.is-open { display: flex; padding-top: .3rem; }
	.cptv-toolbar.is-stuck button.cptv-filters-btn, .r34-toolbar.is-stuck button.r34-filters-btn { display: inline-flex; }
}

/* ---- suggest: include / exclude / always hide ---- */
.cptv-suggest, .r34-suggest { max-height: min(420px, 60vh); }
.cptv-suggest__hint, .r34-suggest__hint, .cptv-suggest__none, .r34-suggest__none { margin: 0; padding: .35rem .6rem .45rem; font-size: .72rem; color: var(--mh-muted); }
.cptv-suggest__hint b, .r34-suggest__hint b { color: var(--mh-text); }
.cptv-suggest__item, .r34-suggest__item { display: flex; align-items: center; gap: .3rem; border-radius: 8px; }
.cptv-suggest__item:hover, .r34-suggest__item:hover, .cptv-suggest__item.is-active, .r34-suggest__item.is-active { background: rgba(255,45,107,.12); }
.cptv-suggest__item.is-exclude .cptv-suggest__name, .r34-suggest__item.is-exclude .r34-suggest__name { color: #ff6b8b; }
.cptv-hub button.cptv-suggest__main, .r34-hub button.r34-suggest__main {
	display: flex; align-items: center; gap: .6rem; flex: 1 1 auto; min-width: 0; margin: 0; padding: .4rem .5rem; border: 0; border-radius: 8px;
	background: transparent; color: var(--mh-text); text-align: left; font: 600 .88rem/1.2 inherit; cursor: pointer; box-shadow: none;
}
.cptv-suggest__name, .r34-suggest__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cptv-suggest__acts, .r34-suggest__acts { display: inline-flex; align-items: center; gap: .25rem; padding-right: .35rem; }
.cptv-hub button.cptv-suggest__act, .r34-hub button.r34-suggest__act {
	width: 30px; height: 30px; margin: 0; padding: 0; border: 1px solid var(--mh-line); border-radius: 8px; background: var(--mh-panel-solid);
	color: var(--mh-text); font: 800 1rem/1 inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: none;
}
.cptv-hub button.cptv-suggest__act:hover, .r34-hub button.r34-suggest__act:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.cptv-hub button.cptv-suggest__act--bl, .r34-hub button.r34-suggest__act--bl { font-size: .95rem; }
.cptv-suggest__go, .r34-suggest__go { line-height: 1.6; }

/* ---- active-filter summary ---- */
.cptv-active, .r34-active { margin: 0 0 .75rem; }
.cptv-active[hidden], .r34-active[hidden] { display: none; }
.cptv-hub button.cptv-activetag, .r34-hub button.r34-activetag {
	display: inline-flex; align-items: center; gap: .35rem; margin: 0; cursor: pointer; padding: .36rem .45rem .36rem .75rem; border-radius: 999px;
	border: 1px solid var(--mh-line); background: var(--mh-panel); color: var(--mh-text); font: 650 .8rem/1.1 inherit; box-shadow: none;
}
.cptv-hub button.cptv-activetag:hover, .r34-hub button.r34-activetag:hover { border-color: var(--mh-accent); }
.cptv-hub button.cptv-activetag--inc, .r34-hub button.r34-activetag--inc { border-color: transparent; color: #fff; background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2)); }
.cptv-hub button.cptv-activetag--exc, .r34-hub button.r34-activetag--exc { border-color: rgba(255,90,120,.6); color: #ff6b8b; background: rgba(255,45,107,.08); }
.cptv-activetag__x, .r34-activetag__x { font-size: 1.05rem; line-height: 1; opacity: .8; }
.cptv-hub button.cptv-activetag__perm, .r34-hub button.r34-activetag__perm { margin: 0 .2rem 0 -.15rem; padding: .2rem .4rem; border: 0; background: none; color: var(--mh-muted); font: 600 .72rem/1 inherit; cursor: pointer; text-decoration: underline; box-shadow: none; }
.cptv-hub button.cptv-activetag__perm:hover, .r34-hub button.r34-activetag__perm:hover { color: var(--mh-accent); }
.cptv-hub button.cptv-clear, .r34-hub button.r34-clear { margin: 0; padding: .36rem .75rem; border: 1px dashed var(--mh-line); border-radius: 999px; background: transparent; color: var(--mh-muted); font: 650 .78rem/1.1 inherit; cursor: pointer; box-shadow: none; }
.cptv-hub button.cptv-clear:hover, .r34-hub button.r34-clear:hover { color: var(--mh-accent); border-color: var(--mh-accent); }

/* ---- results meta / notices ---- */
.cptv-meta, .r34-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.cptv-bl-note[hidden], .r34-bl-note[hidden] { display: none; }
.cptv-hub button.cptv-bl-note__btn, .r34-hub button.r34-bl-note__btn { margin: 0 0 0 .2rem; padding: 0; border: 0; background: none; color: var(--mh-accent); font: 700 .82rem/1 inherit; cursor: pointer; text-decoration: underline; box-shadow: none; }
.cptv-lock, .r34-lock { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; margin: -.2rem 0 .7rem; font-size: .82rem; color: var(--mh-muted); }
.cptv-lock__name, .r34-lock__name { font-weight: 800; color: var(--mh-text); }
.cptv-lock__hub, .r34-lock__hub { margin-left: .4rem; color: var(--mh-accent); font-weight: 650; text-decoration: none; }
.cptv-lock__hub:hover, .r34-lock__hub:hover { text-decoration: underline; }
.cptv-termbl, .r34-termbl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 10px; border: 1px solid rgba(255,45,107,.4); background: rgba(255,45,107,.08); font-size: .85rem; }
.cptv-termbl[hidden], .r34-termbl[hidden] { display: none; }
.cptv-hub button.cptv-termbl__show, .r34-hub button.r34-termbl__show, .cptv-hub button.cptv-termbl__remove, .r34-hub button.r34-termbl__remove { margin: 0; padding: .3rem .7rem; border: 1px solid var(--mh-line); border-radius: 999px; background: var(--mh-panel); color: var(--mh-text); font: 650 .78rem/1 inherit; cursor: pointer; box-shadow: none; }
.cptv-results-title, .r34-results-title { margin: 1.4rem 0 .6rem; }

/* ---- empty state ---- */
.cptv-empty, .r34-empty { opacity: 1; padding: 2.4rem 1rem; text-align: center; grid-column: 1 / -1; color: var(--mh-muted); }
.cptv-empty p, .r34-empty p { margin: 0 0 .7rem; }
.cptv-empty strong, .r34-empty strong { color: var(--mh-text); font-size: 1rem; }
.cptv-empty__fixes, .r34-empty__fixes { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.cptv-hub button.cptv-empty__fix, .r34-hub button.r34-empty__fix { margin: 0; padding: .45rem .9rem; border: 1px solid var(--mh-line); border-radius: 999px; background: var(--mh-panel); color: var(--mh-text); font: 650 .82rem/1.1 inherit; cursor: pointer; box-shadow: none; }
.cptv-hub button.cptv-empty__fix:hover, .r34-hub button.r34-empty__fix:hover { border-color: var(--mh-accent); color: var(--mh-accent); }

/* ---- mobile: filters live in a bottom sheet ---- */
@media (max-width: 768px) {
	.cptv-toolbar, .r34-toolbar { padding: .5rem; gap: .5rem; border-radius: 0 0 10px 10px; margin-left: -2px; margin-right: -2px; }
	.cptv-hub button.cptv-filters-btn, .r34-hub button.r34-filters-btn { display: inline-flex; padding: 0 .8rem; }
	.cptv-hub button.cptv-blbtn, .r34-hub button.r34-blbtn { padding: 0 .75rem; }
	.cptv-blbtn__label, .r34-blbtn__label { display: none; }
	.cptv-sheet, .r34-sheet {
		display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
		flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1rem; padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
		background: var(--mh-panel-solid); border-radius: 18px 18px 0 0; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55), 0 -8px 30px rgba(0,0,0,.5);
	}
	.cptv-sheet.is-open, .r34-sheet.is-open { display: flex; }
	.cptv-sheet__head, .r34-sheet__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: .9rem 0 .4rem; background: var(--mh-panel-solid); font-size: 1.05rem; }
	.cptv-hub button.cptv-sheet__x, .r34-hub button.r34-sheet__x { width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--mh-panel); color: var(--mh-text); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: none; }
	.cptv-group, .r34-group { flex-direction: column; align-items: stretch; gap: .45rem; }
	.cptv-seg, .r34-seg { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; border: 0; background: none; border-radius: 0; }
	.cptv-seg__btn, .r34-seg__btn { padding: .6rem .9rem; border: 1px solid var(--mh-line); background: var(--mh-panel); font-size: .86rem; min-height: 40px; }
	.cptv-seg__btn.is-active, .r34-seg__btn.is-active { border-color: transparent; }
	.cptv-sheet__foot, .r34-sheet__foot { display: flex; gap: .6rem; position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); padding: .6rem 0 calc(.2rem + env(safe-area-inset-bottom)); background: var(--mh-panel-solid); }
	.cptv-hub button.cptv-reset, .r34-hub button.r34-reset { flex: 0 0 auto; margin: 0; padding: .8rem 1.1rem; border: 1px solid var(--mh-line); border-radius: 12px; background: transparent; color: var(--mh-text); font: 700 .9rem/1 inherit; box-shadow: none; }
	.cptv-hub button.cptv-sheet__apply, .r34-hub button.r34-sheet__apply { flex: 1 1 auto; margin: 0; padding: .8rem; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2)); color: #fff; font: 800 .95rem/1 inherit; box-shadow: none; }
	.cptv-active, .r34-active { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.cptv-hub button.cptv-activetag, .r34-hub button.r34-activetag, .cptv-hub button.cptv-clear, .r34-hub button.r34-clear, .cptv-hub button.cptv-activetag__perm, .r34-hub button.r34-activetag__perm { flex: 0 0 auto; min-height: 34px; }
	.cptv-suggest__hint, .r34-suggest__hint { display: none; }
	.cptv-hub button.cptv-suggest__act, .r34-hub button.r34-suggest__act { width: 34px; height: 34px; }
	.cptv-lock__hub, .r34-lock__hub { margin-left: 0; }
}
html.mh-sheet-open, html.mh-blp-open { overflow: hidden; }

/* ---- viewer blacklist: hidden posts + first-paint guard ---- */
.mh-bl-hidden { display: none !important; }
@keyframes mh-bl-reveal { to { visibility: visible; } }
html.mh-has-bl:not(.mh-bl-ready) .cptv-results, html.mh-has-bl:not(.mh-bl-ready) .r34-results,
html.mh-has-bl:not(.mh-bl-ready) .cptv-grid--rail, html.mh-has-bl:not(.mh-bl-ready) .r34-grid--rail,
html.mh-has-bl:not(.mh-bl-ready) .mh-side__list { visibility: hidden; animation: mh-bl-reveal 0s linear 2.5s forwards; }

/* watch page entry point */
.cptv-single button.mh-blthis, .r34-single button.mh-blthis {
	display: inline-flex; align-items: center; gap: .4rem; margin: .5rem 0 0; padding: .3rem 0; border: 0; background: none;
	color: var(--mh-muted); font: 600 .78rem/1.3 inherit; cursor: pointer; box-shadow: none; text-align: left;
}
.cptv-single button.mh-blthis:hover, .r34-single button.mh-blthis:hover { color: var(--mh-accent); }

/* ---- blacklist manager dialog (appended to <body>, outside the section wrapper) ---- */
.mh-blp {
	--mh-accent: #ff2d6b; --mh-accent2: #7c3aed; --mh-panel: rgba(255,255,255,.06); --mh-panel-solid: #17171c; --mh-line: rgba(255,255,255,.14); --mh-text: #f2f2f5; --mh-muted: rgba(255,255,255,.62);
	position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; padding: 16px;
	background: rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
	font-family: inherit; color: var(--mh-text);
}
body.text-ui-dark .mh-blp, body:not(.dark) .r34-blp { --mh-panel: rgba(0,0,0,.04); --mh-panel-solid: #fff; --mh-line: rgba(0,0,0,.14); --mh-text: #16161a; --mh-muted: rgba(0,0,0,.6); }
.mh-blp.is-open { display: flex; }
.mh-blp__box { width: 100%; max-width: 580px; max-height: min(86vh, 760px); overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.2rem 1rem; border-radius: 16px; background: var(--mh-panel-solid); border: 1px solid var(--mh-line); box-shadow: 0 24px 60px rgba(0,0,0,.5); box-sizing: border-box; }
.mh-blp__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mh-blp__head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--mh-text); }
.mh-blp button.mh-blp__x { width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--mh-panel); color: var(--mh-text); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: none; }
.mh-blp__lead { margin: .4rem 0 .9rem; font-size: .84rem; line-height: 1.45; color: var(--mh-muted); }
.mh-blp__search { position: relative; }
.mh-blp input.mh-blp__input { width: 100%; box-sizing: border-box; margin: 0; min-height: 42px; padding: .55rem .9rem; border-radius: 10px; border: 1px solid var(--mh-line); background: var(--mh-panel); color: var(--mh-text); font-size: .92rem; box-shadow: none; }
.mh-blp input.mh-blp__input:focus { outline: none; border-color: var(--mh-accent); }
.mh-blp__suggest { margin-top: .35rem; max-height: 240px; overflow-y: auto; border: 1px solid var(--mh-line); border-radius: 10px; padding: .25rem; }
.mh-blp__suggest[hidden] { display: none; }
.mh-blp button.mh-blp__sugg { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: .6rem; margin: 0; padding: .5rem .6rem; border: 0; border-radius: 8px; background: transparent; color: var(--mh-text); font: 600 .88rem/1.2 inherit; text-align: left; cursor: pointer; box-shadow: none; }
.mh-blp button.mh-blp__sugg:hover { background: rgba(255,45,107,.12); }
.mh-blp__sugg small { color: var(--mh-muted); font-weight: 600; font-size: .72rem; white-space: nowrap; }
.mh-blp__section { margin-top: 1rem; }
.mh-blp__label { margin-bottom: .45rem; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--mh-muted); }
.mh-blp__label span { display: inline-block; margin-left: .25rem; padding: 0 .4rem; border-radius: 999px; background: var(--mh-accent); color: #fff; letter-spacing: 0; }
.mh-blp__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.mh-blp__empty { margin: .2rem 0; font-size: .82rem; color: var(--mh-muted); }
.mh-blp button.mh-blp__chip, .mh-blp button.mh-blp__preset {
	display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--mh-line);
	background: var(--mh-panel); color: var(--mh-text); font: 650 .8rem/1.1 inherit; cursor: pointer; box-shadow: none;
}
.mh-blp button.mh-blp__chip:hover, .mh-blp button.mh-blp__preset:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.mh-blp button.mh-blp__chip.is-on { border-color: rgba(255,90,120,.6); background: rgba(255,45,107,.12); color: #ff6b8b; }
.mh-blp button.mh-blp__chip.is-on span { font-size: 1.05rem; line-height: 1; }
.mh-blp button.mh-blp__preset.is-on { border-color: transparent; background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2)); color: #fff; }
.mh-blp__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--mh-line); }
.mh-blp__pause { display: inline-flex; align-items: center; gap: .45rem; margin: 0 auto 0 0; font-size: .82rem; color: var(--mh-muted); cursor: pointer; }
.mh-blp__pause input { margin: 0; accent-color: var(--mh-accent); width: 16px; height: 16px; }
.mh-blp button.mh-blp__clear { margin: 0; padding: .55rem .9rem; border: 1px solid var(--mh-line); border-radius: 10px; background: transparent; color: var(--mh-muted); font: 650 .82rem/1 inherit; cursor: pointer; box-shadow: none; }
.mh-blp button.mh-blp__done { margin: 0; padding: .6rem 1.4rem; border: 0; border-radius: 10px; background: linear-gradient(90deg, var(--mh-accent), var(--mh-accent2)); color: #fff; font: 800 .88rem/1 inherit; cursor: pointer; box-shadow: none; }
@media (max-width: 600px) {
	.mh-blp { align-items: flex-end; padding: 0; }
	.mh-blp__box { max-width: none; max-height: 90vh; border-radius: 18px 18px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
	.mh-blp button.mh-blp__chip, .mh-blp button.mh-blp__preset { min-height: 36px; }
}
/* host themes restyle input[type=search] with higher specificity: keep room for the icon */
.cptv-hub .cptv-search input.cptv-search__input[type="search"], .r34-hub .r34-search input.r34-search__input[type="search"] { padding-left: 2.35rem !important; padding-right: .9rem !important; }

/* The sticky toolbar's backdrop-filter + z-index trap its position:fixed bottom sheet (it would
   render inside the toolbar, under the site header). Lift both while the sheet is open. */
@media (max-width: 768px) {
	.cptv-toolbar.is-sheet-open, .r34-toolbar.is-sheet-open { backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 2147482000; }
}
