/* ==========================================================================
   Vid2Porn THEME — base styles (v1.7.0)
   RTL-safe: logical properties only. Dark by default, light via [data-theme].
   Sections: 1 Tokens · 2 Reset · 3 Header · 4 Page heads · 5 Cards · 6 Models
             7 Single video · 8 Pagination/Comments/Footer · 9 Forms · 10 Utilities
   ========================================================================== */

/* 1 ── Design tokens ─────────────────────────────────────────────────────── */
:root {
	color-scheme: dark;

	/* Surfaces */
	--tt-bg: #0b0d12;
	--tt-surface: #141821;
	--tt-surface-2: #1d222e;
	--tt-surface-3: #282e3d;
	--tt-hover: rgba(255, 255, 255, .06);
	--tt-border: rgba(255, 255, 255, .09);
	--tt-border-strong: rgba(255, 255, 255, .2);

	/* Text */
	--tt-text: #eef0f6;
	--tt-muted: #a3abbd;

	/* Brand */
	--tt-accent: #fb7185;
	--tt-accent-hover: #fda4af;
	--tt-accent-strong: #e11d48;
	--tt-accent-soft: rgba(251, 113, 133, .14);
	--tt-on-accent: #fff;
	--tt-success: #34d399;
	--tt-danger: #f87171;

	/* Shape & depth */
	--tt-radius: 14px;
	--tt-radius-sm: 8px;
	--tt-radius-pill: 999px;
	--tt-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
	--tt-shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
	--tt-shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
	--tt-ring: 0 0 0 3px var(--tt-accent-soft), 0 0 0 1px var(--tt-accent);

	/* Layout */
	--tt-gap: 20px;
	--tt-header-h: 64px;
	--tt-card-min: 260px;

	/* Motion */
	--tt-ease: cubic-bezier(.2, .7, .2, 1);
	--tt-fast: .15s;
	--tt-base: .25s;

	--tt-font: 'Inter', 'Inter Fallback', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

:root[data-theme="light"] {
	color-scheme: light;
	--tt-bg: #f4f5f9;
	--tt-surface: #ffffff;
	--tt-surface-2: #eceef5;
	--tt-surface-3: #dfe3ee;
	--tt-hover: rgba(15, 20, 40, .05);
	--tt-border: rgba(15, 20, 40, .1);
	--tt-border-strong: rgba(15, 20, 40, .25);
	--tt-text: #12151d;
	--tt-muted: #596176;
	--tt-accent: #e11d48;
	--tt-accent-hover: #be123c;
	--tt-accent-strong: #be123c;
	--tt-accent-soft: rgba(225, 29, 72, .12);
	--tt-success: #15803d;
	--tt-danger: #b91c1c;
	--tt-shadow-sm: 0 1px 2px rgba(20, 30, 60, .08);
	--tt-shadow-md: 0 8px 24px rgba(20, 30, 60, .1);
	--tt-shadow-lg: 0 18px 48px rgba(20, 30, 60, .16);
}

/* No-JS fallback: follow the OS when the theme script has not set data-theme */
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) {
		color-scheme: light;
		--tt-bg: #f4f5f9;
		--tt-surface: #ffffff;
		--tt-surface-2: #eceef5;
		--tt-surface-3: #dfe3ee;
		--tt-hover: rgba(15, 20, 40, .05);
		--tt-border: rgba(15, 20, 40, .1);
		--tt-border-strong: rgba(15, 20, 40, .25);
		--tt-text: #12151d;
		--tt-muted: #596176;
		--tt-accent: #e11d48;
		--tt-accent-hover: #be123c;
		--tt-accent-strong: #be123c;
		--tt-accent-soft: rgba(225, 29, 72, .12);
		--tt-success: #15803d;
		--tt-danger: #b91c1c;
		--tt-shadow-sm: 0 1px 2px rgba(20, 30, 60, .08);
		--tt-shadow-md: 0 8px 24px rgba(20, 30, 60, .1);
		--tt-shadow-lg: 0 18px 48px rgba(20, 30, 60, .16);
	}
}

/* While the theme changes every transition is paused for two frames, so the whole page switches at once
   instead of the body fading while cards, header and footer jump. */
.tt-theme-switching, .tt-theme-switching *, .tt-theme-switching *::before, .tt-theme-switching *::after { transition: none !important; }

/* 2 ── Reset & globals ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: calc(var(--tt-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background: var(--tt-bg);
	color: var(--tt-text);
	font: 400 16px/1.65 var(--tt-font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { font-family: 'Cairo', 'Inter', system-ui, sans-serif; line-height: 1.75; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--tt-fast) ease; }
a:hover { color: var(--tt-accent); }
button { font: inherit; color: inherit; }
::selection { background: var(--tt-accent-strong); color: var(--tt-on-accent); }

/* One consistent, visible keyboard focus style */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--tt-ring); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; width: auto; height: auto; clip: auto; background: var(--tt-accent-strong); color: var(--tt-on-accent); padding: 10px 16px; border-radius: var(--tt-radius-sm); font-weight: 700; z-index: 1000; }
.tt-container { width: min(1360px, 100% - 32px); margin-inline: auto; }
.tt-main { flex: 1 0 auto; padding-block: 28px 56px; min-height: 0; }

/* 3 ── Header & navigation ───────────────────────────────────────────────── */
.tt-header {
	position: sticky; inset-block-start: 0; z-index: 50;
	background: var(--tt-surface);
	border-block-end: 1px solid var(--tt-border);
	transition: box-shadow var(--tt-base) ease, background-color var(--tt-base) ease;
}
@supports (backdrop-filter: blur(1px)) {
	.tt-header { background: color-mix(in srgb, var(--tt-surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
.tt-header.is-scrolled { box-shadow: var(--tt-shadow-md); }
.tt-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--tt-header-h); flex-wrap: wrap; }

.tt-logo { display: flex; align-items: center; }
.tt-logo img, .tt-logo .custom-logo { display: block; max-height: 40px; width: auto; }
.tt-logo__text { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--tt-text); }
.tt-logo__text::before {
	content: ""; width: 30px; height: 22px; flex: none; border-radius: 7px;
	background: var(--tt-accent) linear-gradient(135deg, var(--tt-accent-hover), var(--tt-accent-strong));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M8 0h14a8 8 0 0 1 8 8v6a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8a8 8 0 0 1 8-8Zm4.5 6v10l9-5-9-5Z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M8 0h14a8 8 0 0 1 8 8v6a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8a8 8 0 0 1 8-8Zm4.5 6v10l9-5-9-5Z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tt-logo__text:hover { color: var(--tt-text); }
:root[dir="rtl"] .tt-logo__text::before, :lang(ar) .tt-logo__text::before { transform: scaleX(-1); }

.tt-nav { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; }
.tt-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.tt-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--tt-radius-pill); font-weight: 600; font-size: .95rem; color: var(--tt-muted); transition: background-color var(--tt-fast) ease, color var(--tt-fast) ease; }
.tt-nav a:hover { color: var(--tt-text); background: var(--tt-hover); }
.tt-nav .current-menu-item > a, .tt-nav .current_page_item > a, .tt-nav .current-menu-ancestor > a, .tt-nav a[aria-current="page"] { color: var(--tt-accent); background: var(--tt-accent-soft); }

.tt-search { display: flex; align-items: center; background: var(--tt-surface-2); border: 1px solid transparent; border-radius: var(--tt-radius-pill); overflow: hidden; transition: border-color var(--tt-fast) ease, box-shadow var(--tt-fast) ease, background-color var(--tt-fast) ease; }
.tt-search:hover { border-color: var(--tt-border-strong); }
.tt-search:focus-within { border-color: var(--tt-accent); box-shadow: var(--tt-ring); background: var(--tt-surface); }
.tt-search input { background: transparent; border: 0; color: inherit; padding: 10px 6px 10px 18px; padding-inline: 18px 6px; min-width: 200px; width: 100%; outline: none; box-shadow: none; font: inherit; font-size: .95rem; }
.tt-search input:focus-visible { box-shadow: none; }
.tt-search input::placeholder { color: var(--tt-muted); opacity: .85; }
.tt-search input::-webkit-search-cancel-button { appearance: none; }
.tt-search button { display: grid; place-items: center; width: 44px; align-self: stretch; background: transparent; border: 0; color: var(--tt-muted); cursor: pointer; transition: color var(--tt-fast) ease; }
.tt-search button:hover, .tt-search:focus-within button { color: var(--tt-accent); }
.tt-search button:focus-visible { outline-offset: -4px; border-radius: var(--tt-radius-pill); }
.tt-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Theme toggle */
.tt-theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--tt-border); border-radius: 50%; background: var(--tt-surface-2); color: var(--tt-text); cursor: pointer; transition: background-color var(--tt-fast) ease, border-color var(--tt-fast) ease, transform var(--tt-fast) ease; }
.tt-theme-toggle:hover { border-color: var(--tt-accent); color: var(--tt-accent); }
.tt-theme-toggle:active { transform: scale(.94); }
.tt-theme-toggle .tt-icon--sun { display: none; }
:root[data-theme="dark"] .tt-theme-toggle .tt-icon--sun { display: block; }
:root[data-theme="dark"] .tt-theme-toggle .tt-icon--moon { display: none; }

/* Burger (three bars → ✕) */
.tt-burger { display: none; place-items: center; width: 42px; height: 42px; background: var(--tt-surface-2); border: 1px solid var(--tt-border); border-radius: 50%; color: inherit; cursor: pointer; padding: 0; }
.tt-burger__bars { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color var(--tt-fast) ease; }
.tt-burger__bars::before, .tt-burger__bars::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--tt-base) var(--tt-ease); }
.tt-burger__bars::before { inset-block-start: -6px; }
.tt-burger__bars::after { inset-block-start: 6px; }
.tt-burger[aria-expanded="true"] .tt-burger__bars { background: transparent; }
.tt-burger[aria-expanded="true"] .tt-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.tt-burger[aria-expanded="true"] .tt-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 4 ── Page heads, sort & breadcrumbs ────────────────────────────────────── */
.tt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-block-end: 24px; }
.tt-head__title { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tt-head__desc { color: var(--tt-muted); flex-basis: 100%; max-width: 80ch; }
.tt-head--model { align-items: center; }
.tt-head__avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tt-surface-2); box-shadow: var(--tt-shadow-md); }
.tt-sort { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; padding: 4px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius-pill); }
.tt-sort__item { padding: 6px 16px; border-radius: var(--tt-radius-pill); font-size: .88rem; font-weight: 600; color: var(--tt-muted); transition: background-color var(--tt-fast) ease, color var(--tt-fast) ease; }
.tt-sort__item:hover { color: var(--tt-text); background: var(--tt-hover); }
.tt-sort__item.is-active { background: var(--tt-accent-strong); color: #fff; box-shadow: var(--tt-shadow-sm); }
.tt-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--tt-muted); font-size: .85rem; }
.tt-breadcrumbs a { color: var(--tt-text); }
.tt-breadcrumbs a:hover { color: var(--tt-accent); }

/* 5 ── Video cards ───────────────────────────────────────────────────────── */
.tt-grid { display: grid; gap: 28px var(--tt-gap); grid-template-columns: repeat(auto-fill, minmax(var(--tt-card-min), 1fr)); }
.tt-card { display: flex; flex-direction: column; min-width: 0; }
.tt-card__link { display: block; color: inherit; }
.tt-card__link:hover { color: inherit; }
.tt-card__thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
	border-radius: var(--tt-radius);
	background: linear-gradient(100deg, var(--tt-surface-2) 30%, var(--tt-surface-3) 50%, var(--tt-surface-2) 70%) 0 0 / 200% 100%;
	animation: tt-shimmer 1.6s linear infinite;
	box-shadow: var(--tt-shadow-sm);
	transition: transform var(--tt-base) var(--tt-ease), box-shadow var(--tt-base) var(--tt-ease);
}
.tt-card__thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 3; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); opacity: .85; pointer-events: none; transition: opacity var(--tt-base) ease; }
.tt-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--tt-ease); }
.tt-card__link:hover .tt-card__thumb, .tt-card__link:focus-visible .tt-card__thumb { transform: translateY(-3px); box-shadow: var(--tt-shadow-lg); }
.tt-card__link:hover .tt-card__thumb img { transform: scale(1.05); }
.tt-card__link:hover .tt-card__thumb::after { opacity: 1; }
.tt-card__link:focus-visible { outline-offset: 5px; border-radius: var(--tt-radius); }
.tt-card__duration { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; background: rgba(0, 0, 0, .78); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tt-card__title { font-size: .97rem; font-weight: 700; line-height: 1.4; margin: 12px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--tt-fast) ease; }
.tt-card__link:hover .tt-card__title { color: var(--tt-accent); }
.tt-card__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--tt-muted); font-size: .82rem; }
.tt-card__meta > span + span::before { content: "•"; margin-inline-end: 10px; opacity: .5; }
.tt-card__votes { display: flex; gap: 6px; margin-block-start: 10px; }
.tt-Vid2Porn-vote { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--tt-border); border-radius: var(--tt-radius-pill); background: transparent; color: var(--tt-muted); font: inherit; font-size: .8rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--tt-fast) ease, border-color var(--tt-fast) ease, color var(--tt-fast) ease, transform var(--tt-fast) ease; }
.tt-Vid2Porn-vote:hover:not(:disabled) { border-color: var(--tt-accent); color: var(--tt-text); background: var(--tt-accent-soft); }
.tt-Vid2Porn-vote:active:not(:disabled) { transform: scale(.95); }
.tt-Vid2Porn-vote.is-selected { border-color: var(--tt-accent); background: var(--tt-accent-soft); color: var(--tt-text); }
@keyframes tt-shimmer { to { background-position: -200% 0; } }
.tt-card__thumb:has(img) { animation: none; background: var(--tt-surface-2); }

/* 6 ── Models ────────────────────────────────────────────────────────────── */
.tt-models-grid { display: grid; gap: var(--tt-gap); grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tt-model { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); transition: transform var(--tt-base) var(--tt-ease), border-color var(--tt-fast) ease, box-shadow var(--tt-base) ease; }
.tt-model:hover { transform: translateY(-4px); border-color: var(--tt-accent); box-shadow: var(--tt-shadow-md); color: inherit; }
.tt-model__img { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--tt-surface-2); display: grid; place-items: center; border: 3px solid var(--tt-surface-2); transition: border-color var(--tt-fast) ease; }
.tt-model:hover .tt-model__img { border-color: var(--tt-accent); }
.tt-model__img img { width: 100%; height: 100%; object-fit: cover; }
.tt-model__initial { font-size: 2.4rem; font-weight: 800; color: var(--tt-muted); }
.tt-model__name { font-weight: 700; line-height: 1.3; }
.tt-model__count { color: var(--tt-muted); font-size: .8rem; }
.tt-model-stat { margin: 4px 0; color: var(--tt-muted); font-size: .9rem; }
.tt-model-llm-summary { flex-basis: 100%; max-width: 80ch; margin-block-start: 12px; color: var(--tt-muted); line-height: 1.7; }
.tt-model-llm-summary h2 { margin: 0 0 6px; color: var(--tt-text); font-size: 1rem; font-weight: 700; }
.tt-model-llm-summary p { margin: 0; }
.tt-related-models { margin-block-start: 40px; }
.tt-related-models__title { margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; }
.tt-related-models .tt-model { height: 100%; }
.tt-related-models .tt-model__img { width: 100px; height: 100px; }

/* 7 ── Single video ──────────────────────────────────────────────────────── */
.tt-single { max-width: 1120px; margin-inline: auto; }
.tt-single__poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--tt-radius); box-shadow: var(--tt-shadow-lg); }
.tt-single .tt-player { box-shadow: var(--tt-shadow-lg); }
.tt-single__title { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; margin: 20px 0 12px; text-wrap: balance; }
.tt-single__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 12px; border-block: 1px solid var(--tt-border); }
.tt-single__views { color: var(--tt-muted); }
.tt-single__views strong { color: var(--tt-text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tt-vote { display: inline-flex; background: var(--tt-surface-2); border-radius: var(--tt-radius-pill); overflow: hidden; }
.tt-vote__btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: inherit; border: 0; padding: 10px 20px; cursor: pointer; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--tt-fast) ease, color var(--tt-fast) ease, transform var(--tt-fast) ease; }
.tt-vote__btn + .tt-vote__btn { border-inline-start: 1px solid var(--tt-border); }
.tt-vote__btn:hover:not([disabled]) { background: var(--tt-accent-strong); color: #fff; }
.tt-vote__btn:active:not([disabled]) { transform: scale(.96); }
.tt-vote__btn.is-selected { background: var(--tt-accent-soft); color: var(--tt-accent); }
.tt-vote__btn[disabled] { cursor: default; opacity: .7; }
.tt-vote__btn.is-selected[disabled] { opacity: 1; }
.tt-vote__btn:focus-visible { outline-offset: -3px; }
.tt-chips { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-chips li { display: contents; }
.tt-chips a { display: inline-block; padding: 5px 14px; border-radius: var(--tt-radius-pill); background: var(--tt-surface-2); border: 1px solid transparent; font-size: .85rem; font-weight: 500; transition: background-color var(--tt-fast) ease, border-color var(--tt-fast) ease, color var(--tt-fast) ease; }
.tt-chips a:hover { border-color: var(--tt-accent); color: var(--tt-accent); background: var(--tt-accent-soft); }
.tt-chips--models a { background: var(--tt-accent-strong); color: #fff; font-weight: 600; }
.tt-chips--models a:hover { background: var(--tt-accent-hover); color: #fff; border-color: transparent; }
.tt-related { margin-block-start: 44px; }
.tt-related__title { font-size: 1.25rem; font-weight: 800; margin-block: 0 18px; position: relative; padding-inline-start: 14px; }
.tt-related__title::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 4px; border-radius: 4px; background: var(--tt-accent); }
.tt-prose { max-width: 80ch; color: var(--tt-text); }
.tt-prose > :first-child { margin-block-start: 0; }
.tt-prose a { color: var(--tt-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tt-prose a:hover { color: var(--tt-accent-hover); }
.tt-prose img { border-radius: var(--tt-radius-sm); }
.tt-prose blockquote { margin-inline: 0; padding: 4px 18px; border-inline-start: 4px solid var(--tt-accent); color: var(--tt-muted); background: var(--tt-surface); border-radius: 0 var(--tt-radius-sm) var(--tt-radius-sm) 0; }
:root[dir="rtl"] .tt-prose blockquote { border-radius: var(--tt-radius-sm) 0 0 var(--tt-radius-sm); }
.tt-prose code { padding: 2px 6px; border-radius: 4px; background: var(--tt-surface-2); font-size: .9em; }

/* Empty / 404 states */
.tt-none, .tt-404 { display: grid; justify-items: center; gap: 12px; padding: 56px 20px; text-align: center; color: var(--tt-muted); }
.tt-none p, .tt-404 p { margin: 0; font-size: 1.05rem; }
.tt-none .tt-search, .tt-404 .tt-search { width: min(440px, 100%); margin-block-start: 8px; }
.tt-none__icon { width: 64px; height: 64px; color: var(--tt-surface-3); stroke-width: 1.5; }
.tt-404 .tt-head__title { font-size: clamp(1.5rem, 10vw, 8rem); white-space: nowrap; max-width: 100%; line-height: 1.2; padding-block: .06em .16em; overflow: visible; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(135deg, var(--tt-accent-hover), var(--tt-accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-404__popular { width: 100%; justify-self: stretch; margin-block-start: 28px; text-align: start; }
.tt-404__popular-title { margin: 0 0 18px; color: var(--tt-text); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 800; line-height: 1.3; }
.tt-404__popular .tt-grid { text-align: start; }
.tt-container.tt-404 { padding: 0; }

/* 8 ── Pagination, comments, footer ──────────────────────────────────────── */
.navigation.pagination { margin-block-start: 36px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 14px; border-radius: var(--tt-radius-sm); background: var(--tt-surface); border: 1px solid var(--tt-border); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--tt-fast) ease, border-color var(--tt-fast) ease, color var(--tt-fast) ease; }
a.page-numbers:hover { border-color: var(--tt-accent); color: var(--tt-accent); }
.page-numbers.current { background: var(--tt-accent-strong); border-color: transparent; color: #fff; }
.page-numbers.dots { background: transparent; border-color: transparent; }

.tt-comments { margin-block-start: 44px; padding-block-start: 28px; border-block-start: 1px solid var(--tt-border); max-width: 1120px; margin-inline: auto; }
.tt-comments__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.tt-comments__list .children { list-style: none; padding-inline-start: 24px; margin-block-start: 14px; display: grid; gap: 14px; }
.tt-comments__list .comment-body { padding: 16px 18px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); }
.tt-comments .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block-end: 8px; font-size: .85rem; color: var(--tt-muted); }
.tt-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--tt-text); }
.tt-comments .avatar { border-radius: 50%; }
.tt-comments .reply a { font-size: .85rem; font-weight: 600; color: var(--tt-accent); }
.tt-comments label { display: block; margin-block: 12px 6px; font-weight: 600; font-size: .9rem; }
.tt-comments input[type=text], .tt-comments input[type=email], .tt-comments input[type=url], .tt-comments textarea { width: 100%; background: var(--tt-surface-2); color: inherit; border: 1px solid transparent; border-radius: var(--tt-radius-sm); padding: 12px 14px; font: inherit; transition: border-color var(--tt-fast) ease, background-color var(--tt-fast) ease; }
.tt-comments input:focus, .tt-comments textarea:focus { border-color: var(--tt-accent); background: var(--tt-surface); }
.tt-comments .submit { background: var(--tt-accent-strong); color: #fff; border: 0; border-radius: var(--tt-radius-sm); padding: 12px 24px; cursor: pointer; font: inherit; font-weight: 700; transition: background-color var(--tt-fast) ease, transform var(--tt-fast) ease; }
.tt-comments .submit:hover { background: var(--tt-accent-hover); }
.tt-comments .submit:active { transform: scale(.97); }

.tt-footer { margin-block-start: 24px; background: var(--tt-surface); border-block-start: 1px solid var(--tt-border); padding-block: 32px; color: var(--tt-muted); }
.tt-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.tt-footer__menu { display: flex; gap: 8px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.tt-footer__menu a { font-weight: 500; }
.tt-footer__copy { margin: 0; font-size: .85rem; }

/* Back to top */
.tt-top { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--tt-border); border-radius: 50%; background: var(--tt-surface); color: var(--tt-text); box-shadow: var(--tt-shadow-md); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--tt-base) ease, transform var(--tt-base) var(--tt-ease), background-color var(--tt-fast) ease, color var(--tt-fast) ease; }
.tt-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tt-top:hover { background: var(--tt-accent-strong); color: #fff; border-color: transparent; }

/* 9 ── Forms: discovery filters & community submission ───────────────────── */
.tt-head form[aria-label="Filter videos"] { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; margin: 4px 0 8px; padding: 14px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); }
.tt-head form[aria-label="Filter videos"] input[type=search], .tt-head form[aria-label="Filter videos"] select, .tt-submit-form input, .tt-submit-form textarea, .tt-submit-form select { min-width: 0; padding: 11px 14px; color: var(--tt-text); background: var(--tt-surface-2); border: 1px solid transparent; border-radius: var(--tt-radius-sm); font: inherit; transition: border-color var(--tt-fast) ease, background-color var(--tt-fast) ease; }
.tt-head form[aria-label="Filter videos"] input:focus, .tt-head form[aria-label="Filter videos"] select:focus, .tt-submit-form input:focus, .tt-submit-form textarea:focus, .tt-submit-form select:focus { border-color: var(--tt-accent); background: var(--tt-surface); }
.tt-head form[aria-label="Filter videos"] input[type=search] { flex: 1 1 220px; }
.tt-head form[aria-label="Filter videos"] select { flex: 0 1 190px; }
.tt-head form[aria-label="Filter videos"] button, .tt-submit-button { display: inline-flex; justify-content: center; align-items: center; padding: 11px 22px; border: 0; border-radius: var(--tt-radius-sm); background: var(--tt-accent-strong); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--tt-fast) ease, transform var(--tt-fast) ease; }
.tt-head form[aria-label="Filter videos"] button:hover, .tt-submit-button:hover { background: var(--tt-accent-hover); }
.tt-head form[aria-label="Filter videos"] button:active, .tt-submit-button:active { transform: scale(.97); }
.tt-head form[aria-label="Filter videos"] .tt-discovery__reset { padding: 8px; color: var(--tt-muted); }
.tt-submit-wrap { max-width: 900px; }
.tt-submit-form { display: grid; grid-template-columns: 1fr; gap: 9px; max-width: 760px; padding: 26px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); box-shadow: var(--tt-shadow-sm); }
.tt-submit-form label, .tt-submit-duration legend { font-weight: 700; margin-block-start: 8px; }
.tt-submit-form input, .tt-submit-form textarea, .tt-submit-form select { width: 100%; }
.tt-submit-form select[multiple] { min-height: 130px; }
.tt-submit-duration { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 12px 0; }
.tt-submit-duration legend { grid-column: 1 / -1; }
.tt-submit-message { padding: 14px 16px; margin: 0 0 18px; border-radius: var(--tt-radius-sm); background: var(--tt-surface-2); }
.tt-submit-message--success { border-inline-start: 4px solid var(--tt-success); }
.tt-submit-message--error { border-inline-start: 4px solid var(--tt-danger); }

/* 10 ── Responsive ───────────────────────────────────────────────────────── */
@media (min-width: 783px) {
	.tt-search:not(:focus-within) input { min-width: 180px; }
	.tt-search:focus-within input { min-width: 260px; }
	.tt-search input { transition: min-width var(--tt-base) var(--tt-ease); }
}
@media (max-width: 1100px) {
	.tt-nav a { padding: 0 11px; }
}
@media (max-width: 782px) {
	:root { --tt-header-h: 60px; --tt-card-min: 170px; --tt-gap: 14px; }
	.tt-header__inner { gap: 10px; padding-block: 8px; }
	.tt-logo { order: 0; margin-inline-end: auto; }
	.tt-theme-toggle { order: 1; }
	.tt-burger { display: grid; order: 2; }
	.tt-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; order: 3; padding-block: 6px; gap: 2px; border-block-start: 1px solid var(--tt-border); animation: tt-drop var(--tt-base) var(--tt-ease); }
	.tt-nav.is-open { display: flex; }
	.tt-nav__list { flex-direction: column; gap: 2px; }
	.tt-nav a { width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--tt-radius-sm); font-size: 1rem; }
	.tt-search { flex-basis: 100%; order: 4; }
	.tt-search input { min-width: 0; flex: 1; }
	.tt-main { padding-block: 20px 40px; }
	.tt-grid { gap: 22px var(--tt-gap); }
	.tt-sort { margin-inline-start: 0; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; border-radius: var(--tt-radius-pill); }
	.tt-sort::-webkit-scrollbar { display: none; }
	.tt-sort__item { white-space: nowrap; }
	.tt-vote { width: 100%; }
	.tt-vote__btn { flex: 1; justify-content: center; }
	.tt-comments__list .children { padding-inline-start: 12px; }
	.tt-footer__inner { flex-direction: column; align-items: flex-start; }
	.tt-top { inset-block-end: 14px; inset-inline-end: 14px; }
}
@media (max-width: 600px) {
	.tt-head form[aria-label="Filter videos"] > * { flex: 1 1 100%; width: 100%; }
	.tt-submit-form { padding: 16px; }
	.tt-submit-duration { grid-template-columns: 1fr; }
	.tt-models-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.tt-model__img { width: 96px; height: 96px; }
}
@media (hover: none) {
	.tt-card__link:hover .tt-card__thumb { transform: none; box-shadow: var(--tt-shadow-sm); }
	.tt-card__link:hover .tt-card__thumb img { transform: none; }
}
@keyframes tt-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (forced-colors: active) {
	.tt-sort__item.is-active, .page-numbers.current { outline: 2px solid Highlight; }
	.tt-card__thumb::after { display: none; }
}
@media print {
	.tt-header, .tt-footer, .tt-top, .tt-sort, .tt-head form[aria-label="Filter videos"], .tt-card__votes { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Video facts + AI summary (crawlable HTML) */
.tt-single__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; color: var(--tt-muted); font-size: .88rem; }
.tt-single__facts time { color: var(--tt-text); font-weight: 600; }
.tt-video-summary { max-width: 80ch; margin-block: 16px; padding: 14px 18px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-inline-start: 4px solid var(--tt-accent); border-radius: var(--tt-radius-sm); }
.tt-video-summary h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.tt-video-summary p { margin: 0; color: var(--tt-muted); line-height: 1.7; }


/* Category archive navigation */
.tt-category-page__eyebrow { margin: 0 0 6px; color: var(--tt-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tt-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.tt-category-nav__item { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--tt-border); border-radius: 999px; background: var(--tt-surface); color: var(--tt-text); text-decoration: none; font-size: .9rem; transition: border-color var(--tt-fast) ease, background-color var(--tt-fast) ease, color var(--tt-fast) ease; }
.tt-category-nav__item:hover, .tt-category-nav__item.is-active { border-color: var(--tt-accent-strong); background: var(--tt-accent-strong); color: #fff; }
.tt-category-nav__count { opacity: .72; font-size: .78rem; }
.tt-category-nav__item:focus-visible { outline: 2px solid var(--tt-accent-strong); outline-offset: 3px; }
/* Category directory: compact layout without the oversized empty section. */
.tt-category-directory { min-height: 0; padding-block: 28px 32px; }
.tt-category-directory .tt-container { min-height: 0; }
.tt-category-directory__head { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 22px; row-gap: 4px; margin-bottom: 20px; }
.tt-category-directory__head .tt-category-page__eyebrow { flex-basis: 100%; margin-bottom: 0; }
.tt-category-directory__head .tt-head__title,
.tt-category-directory__head .tt-head__desc { margin-block: 0; }
.tt-category-directory__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-content: start; gap: 12px; margin: 0; }

.tt-models-directory__head { margin-bottom: 8px; }
.tt-models-directory__sort { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tt-models-directory__sort a { padding: 6px 14px; border: 1px solid var(--tt-border); border-radius: 999px; background: var(--tt-surface); color: var(--tt-text); font-size: .875rem; font-weight: 600; text-decoration: none; }
.tt-models-directory__sort a:hover, .tt-models-directory__sort a:focus-visible, .tt-models-directory__sort a.is-active { border-color: var(--tt-accent-hover); }
.tt-models-directory .pagination { margin-top: 24px; }
.tt-category-directory__actors { margin-top: 40px; }
.tt-category-directory__section-title { margin: 0 0 16px; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.tt-category-directory__actors-more { margin: 20px 0 0; text-align: center; }
.tt-category-directory__actors-link { display: inline-block; padding: 10px 20px; border: 1px solid var(--tt-border); border-radius: var(--tt-radius); background: var(--tt-surface); color: var(--tt-text); font-weight: 600; text-decoration: none; transition: border-color var(--tt-fast) ease, background-color var(--tt-fast) ease; }
.tt-category-directory__actors-link:hover, .tt-category-directory__actors-link:focus-visible { border-color: var(--tt-accent-hover); }
.tt-category-directory__card { display: flex; min-width: 0; min-height: 88px; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; border: 1px solid var(--tt-border); border-radius: var(--tt-radius); background: var(--tt-surface); color: var(--tt-text); text-decoration: none; transition: border-color var(--tt-fast) ease, transform var(--tt-fast) ease, background-color var(--tt-fast) ease; }
.tt-category-directory__card:hover { border-color: var(--tt-accent-strong); background: var(--tt-surface-2); transform: translateY(-2px); }
.tt-category-directory__card:focus-visible { outline: 2px solid var(--tt-accent-strong); outline-offset: 3px; }
.tt-category-directory__name { font-size: 1.05rem; font-weight: 750; overflow-wrap: anywhere; }
.tt-category-directory__count { color: var(--tt-muted); font-size: .82rem; }
.tt-category-directory__description { color: var(--tt-muted); font-size: .9rem; line-height: 1.5; }
.tt-category-directory__body { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.tt-category-directory__card.has-media { justify-content: flex-start; gap: 0; padding: 0; overflow: hidden; }
.tt-category-directory__card.has-media .tt-category-directory__body { padding: 12px 14px 14px; }
.tt-category-directory__media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tt-surface-2); }
.tt-category-directory__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--tt-base) var(--tt-ease); }
.tt-category-directory__card:hover .tt-category-directory__img { transform: scale(1.04); }
.tt-category-directory__initial { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tt-muted); font-size: 2.4rem; font-weight: 800; }
@media (hover: none) { .tt-category-directory__card:hover .tt-category-directory__img { transform: none; } }

@media (max-width: 600px) {
  .tt-category-directory { padding-block: 22px 28px; }
  .tt-category-directory__head { column-gap: 10px; margin-bottom: 16px; }
  .tt-category-directory__head .tt-head__desc { flex-basis: 100%; }
  .tt-category-directory__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
  .tt-category-directory__card { padding: 14px; }
}

/* 11 ── Header/footer polish (v1.8.36) ───────────────────────────────────── */
.tt-header {
	isolation: isolate;
	background: color-mix(in srgb, var(--tt-surface) 94%, transparent);
	border-block-end: 1px solid var(--tt-border);
	box-shadow: 0 4px 22px rgb(0 0 0 / .08);
}
.tt-header__inner {
	min-height: 76px;
	padding-block: 10px;
	gap: clamp(12px, 1.5vw, 22px);
}
.tt-logo { flex: 0 0 auto; min-width: max-content; }
.tt-logo img, .tt-logo .custom-logo { max-height: 44px; }
.tt-nav { flex: 1 1 auto; }
.tt-nav__list { align-items: center; gap: 6px; }
.tt-nav a, .tt-nav__extra {
	min-height: 42px;
	padding-inline: 16px;
	border: 1px solid transparent;
	text-decoration: none;
	white-space: nowrap;
}
.tt-nav a:hover { border-color: var(--tt-border); }
.tt-nav .current-menu-item > a,
.tt-nav .current_page_item > a,
.tt-nav .current-menu-ancestor > a,
.tt-nav a[aria-current="page"] {
	border-color: color-mix(in srgb, var(--tt-accent) 24%, transparent);
}
.tt-header .tt-search {
	flex: 0 1 300px;
	min-width: 180px;
	min-height: 44px;
	border-color: var(--tt-border);
	background: var(--tt-surface-2);
}
.tt-header .tt-search input { min-width: 0; }
.tt-header .tt-theme-toggle {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	box-shadow: 0 2px 8px rgb(0 0 0 / .08);
}
.tt-burger { border: 1px solid var(--tt-border); border-radius: 12px; }

.tt-footer {
	position: relative;
	margin-block-start: clamp(36px, 5vw, 68px);
	padding-block: 28px;
	background: var(--tt-surface);
	border-block-start: 1px solid var(--tt-border);
}
.tt-footer::before {
	content: "";
	position: absolute;
	inset-block-start: -1px;
	inset-inline: max(16px, calc((100% - 1360px) / 2));
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--tt-border-strong), transparent);
	pointer-events: none;
}
.tt-footer__inner { gap: 18px 32px; }
.tt-footer__menu { align-items: center; gap: 8px; }
.tt-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 10px;
	border-radius: var(--tt-radius-sm);
	color: var(--tt-muted);
	text-decoration: none;
	transition: color var(--tt-fast) ease, background-color var(--tt-fast) ease;
}
.tt-footer__menu a:hover { color: var(--tt-text); background: var(--tt-hover); }
.tt-footer__copy { color: var(--tt-muted); line-height: 1.7; }

/* Tablet header follows the same compact layout and navigation behavior as mobile. */
@media (min-width: 783px) and (max-width: 1050px) {
	:root { --tt-header-h: 60px; }
	.tt-header__inner { gap: 10px; flex-wrap: wrap; min-height: 64px; padding-block: 9px; }
	.tt-logo { order: 0; margin-inline-end: auto; flex: 0 0 auto; }
	.tt-logo img, .tt-logo .custom-logo { max-height: 38px; }
	.tt-header .tt-theme-toggle { order: 1; flex: 0 0 44px; width: 44px; height: 44px; }
	.tt-burger { display: grid; order: 2; }
	.tt-nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; order: 3; padding-block: 6px; gap: 2px; border-block-start: 1px solid var(--tt-border); }
	.tt-nav.is-open { display: flex; }
	.tt-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.tt-nav a { width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--tt-radius-sm); font-size: 1rem; }
	.tt-header .tt-search { order: 4; flex: 0 0 100%; min-width: 0; margin-block-start: 2px; }
	.tt-header .tt-search input { min-width: 0; flex: 1; }
}
@media (max-width: 782px) {
	.tt-header__inner { min-height: 64px; padding-block: 9px; }
	.tt-logo img, .tt-logo .custom-logo { max-height: 38px; }
	.tt-header .tt-search { min-width: 0; flex-basis: 100%; margin-block-start: 2px; }
	.tt-nav { border-block-start-color: var(--tt-border); }
	.tt-footer { padding-block: 24px; }
	.tt-footer__inner { align-items: center; text-align: center; gap: 14px; }
	.tt-footer__menu { justify-content: center; gap: 4px; }
	.tt-footer__menu a { min-height: 36px; padding-inline: 8px; font-size: .92rem; }
	.tt-footer__copy { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
	.tt-nav a, .tt-footer__menu a { transition: none; }
}


/* v1.8.37 — Keep the footer at the viewport bottom and make pagination explicit. */
.tt-header { flex: 0 0 auto; }
.tt-main { width: 100%; }
.tt-footer { flex: 0 0 auto; margin-block-start: auto; }
.tt-Vid2Porn-infinite-sentinel { height: auto; min-height: 0; clear: both; text-align: center; }
.tt-Vid2Porn-load-more { min-width: 180px; margin: 24px auto 8px; padding: 12px 24px; border: 1px solid transparent; box-shadow: var(--tt-shadow-sm); }
.tt-Vid2Porn-load-more[hidden] { display: none !important; }
.tt-Vid2Porn-load-more:disabled { opacity: .65; cursor: wait; }
.navigation.pagination { margin-block: 28px 12px; }


/* v1.8.39 — clearer SVG icon scale and non-overlapping vote rows. */
svg.tt-icon { display:inline-block; width:18px; height:18px; min-width:18px; flex:0 0 18px; vertical-align:middle; overflow:visible; stroke-width:1.8; }
.tt-card__meta { display:flex; flex-wrap:wrap; align-items:center; column-gap:12px; row-gap:5px; line-height:1.5; }
.tt-card__meta > span { display:inline-flex; align-items:center; gap:6px; min-height:20px; white-space:nowrap; }
.tt-card__meta > span + span::before { content:"•"; margin-inline-end:6px; opacity:.5; }
.tt-card__meta .tt-icon { width:17px; height:17px; min-width:17px; flex-basis:17px; }
.tt-card__votes { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-block-start:9px; }
.tt-card__votes .tt-Vid2Porn-vote { display:inline-flex; min-height:34px; min-width:54px; align-items:center; justify-content:center; gap:7px; padding:5px 12px; line-height:1.2; white-space:nowrap; }
.tt-card__votes .tt-icon, .tt-vote__btn .tt-icon { width:18px; height:18px; min-width:18px; flex-basis:18px; }
.tt-vote__btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; line-height:1.3; }
.tt-card__votes button:focus-visible, .tt-vote__btn:focus-visible { outline:2px solid var(--tt-accent, #e11d48); outline-offset:3px; }
@media (max-width:480px) {
  .tt-card__meta { column-gap:9px; }
  .tt-card__votes { gap:7px; }
  .tt-card__votes .tt-Vid2Porn-vote { min-height:33px; padding-inline:10px; }
}


/* ===== Logo: Light / Dark toggle ===== */
.tt-logo .logo-light { display: none; }
.tt-logo .logo-dark  { display: inline-block; }
:root[data-theme="light"] .tt-logo .logo-light { display: inline-block; }
:root[data-theme="light"] .tt-logo .logo-dark  { display: none; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) .tt-logo .logo-light { display: inline-block; }
	:root:not([data-theme]) .tt-logo .logo-dark  { display: none; }
}

/* Consistent height, no layout shift */
.tt-logo__text img {
	display: inline-block;
	vertical-align: middle;
	height: 36px;
	width: auto;
}