:root {
	--tift-bg: #070a12;
	--tift-surface: #101624;
	--tift-surface-2: #151d2e;
	--tift-border: rgba(139, 156, 188, .18);
	--tift-cyan: #10d7dd;
	--tift-violet: #7c3aed;
	--tift-coral: #ff4f64;
	--tift-text: #f7f9ff;
	--tift-muted: #9da9bf;
	--tift-radius: 14px;
}

html { background: var(--tift-bg); }
body { background: radial-gradient(circle at 15% 0, rgba(16, 215, 221, .08), transparent 28rem), var(--tift-bg) !important; color: var(--tift-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
#page { overflow: clip; }
.row { max-width: 1460px; }
.site-header { background: rgba(7, 10, 18, .96) !important; border-bottom: 1px solid var(--tift-border); box-shadow: 0 12px 36px rgba(0, 0, 0, .24); }
.site-branding { min-height: 100px; padding-top: 14px; padding-bottom: 14px; }
.site-branding .logo { display: flex; min-width: 250px; flex-direction: column; justify-content: center; }
.site-branding .logo img { display: block; width: min(330px, 31vw); max-height: 78px; object-fit: contain; object-position: left center; }
.site-branding .site-description { margin: 5px 0 0; color: var(--tift-muted) !important; font-size: 13px; letter-spacing: .02em; }
.site-branding #searchform input[type="search"], .site-branding #searchform input[type="text"] { min-height: 46px; border: 1px solid var(--tift-border) !important; border-radius: 10px 0 0 10px; background: var(--tift-surface) !important; color: var(--tift-text) !important; }
.site-branding #searchform button, .site-branding #searchform input[type="submit"] { border-radius: 0 10px 10px 0; background: linear-gradient(135deg, var(--tift-cyan), #0aa0be) !important; }
.site-branding .tift-trending-searches { display: flex; width: 100%; align-items: center; gap: 6px; margin-top: 8px; overflow: hidden; color: var(--tift-muted); font-size: 10px; white-space: nowrap; }
.site-branding .tift-trending-searches > span { flex: 0 0 auto; color: #cbd7e9; font-weight: 800; }
.site-branding .tift-trending-searches a { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--tift-border); border-radius: 999px; background: rgba(16, 22, 36, .8); color: #aebbd0 !important; line-height: 1.2; text-decoration: none; }
.site-branding .tift-trending-searches a:hover { border-color: rgba(16, 215, 221, .55); color: var(--tift-cyan) !important; }
.main-navigation { border: 0 !important; background: #0d1220 !important; }
.main-navigation ul li a { border-color: var(--tift-border) !important; color: #dfe8f7 !important; font-weight: 700; }
.main-navigation ul li a:hover, .main-navigation ul li.current-menu-item > a { background: linear-gradient(135deg, rgba(16, 215, 221, .18), rgba(124, 58, 237, .18)) !important; color: #fff !important; }
.main-navigation ul li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--tift-cyan); }
.breadcrumb { border: 0 !important; background: #0b101c !important; color: var(--tift-muted) !important; }
.breadcrumb a { color: var(--tift-cyan) !important; }
.site-content { padding-top: 22px; }
.widget-title, .page-title, .entry-title { border-left-color: var(--tift-cyan) !important; color: var(--tift-text) !important; }
.page-header .widget-title, .widget-title { background: linear-gradient(90deg, rgba(16, 215, 221, .12), transparent 64%) !important; border-radius: 0 10px 10px 0; padding-top: 10px; padding-bottom: 10px; }
/* RetroTube outputs video cards as .thumb-block. Keep the native markup and
 * replace only its presentation so filters, previews and AJAX remain intact. */
#main [id^="widget_videos_block-"] { position: relative; margin: 0 0 28px; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none; }
#main [id^="widget_videos_block-"] > .widget-title { margin: 0 0 14px; padding: 12px 132px 12px 15px; border: 1px solid var(--tift-border); border-left: 4px solid var(--tift-cyan) !important; border-radius: 10px; background: linear-gradient(90deg, rgba(16, 215, 221, .13), rgba(21, 29, 46, .72)) !important; font-size: 18px; line-height: 1.3; }
#main [id^="widget_videos_block-"] > .more-videos { position: absolute; top: 8px; right: 9px; z-index: 3; min-height: 34px; padding: 8px 11px; border: 1px solid rgba(16, 215, 221, .35); border-radius: 8px; background: rgba(16, 215, 221, .12) !important; color: var(--tift-cyan) !important; font-size: 12px; font-weight: 800; }
#main [id^="widget_videos_block-"] > .more-videos:hover { border-color: var(--tift-cyan); background: var(--tift-cyan) !important; color: #041216 !important; }
#main .videos-list { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin: 0 !important; }
#main .videos-list > .thumb-block { float: none !important; display: block !important; width: 100% !important; min-width: 0; margin: 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid var(--tift-border); border-radius: 12px; background: var(--tift-surface) !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
#main .videos-list > .thumb-block:hover { transform: translateY(-3px); border-color: rgba(16, 215, 221, .48); box-shadow: 0 14px 30px rgba(0, 0, 0, .32); }
#main .videos-list > .thumb-block > a { display: block; width: 100%; color: inherit !important; text-decoration: none; }
#main .thumb-block .post-thumbnail { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px 11px 0 0; background: #03050a; }
#main .thumb-block .post-thumbnail-container { inset: 0; width: 100%; height: 100%; }
#main .thumb-block .post-thumbnail img,
#main .thumb-block .post-thumbnail video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .28s ease, filter .28s ease; }
#main .thumb-block:hover .post-thumbnail img { transform: scale(1.045); filter: saturate(1.08); }
#main .thumb-block .rating-bar { min-height: 22px; padding: 3px 8px; background: #0a0f1a !important; color: #c9d4e7; font-size: 11px; line-height: 16px; }
#main .thumb-block .entry-header { display: block; height: auto; min-height: 52px; padding: 10px 11px 12px; color: #eef3ff !important; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: left; }
#main .thumb-block .entry-header > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#main .thumb-block span.views,
#main .thumb-block span.duration,
#main .thumb-block span.hd-video { bottom: 7px; padding: 4px 6px; border-radius: 5px; background: rgba(3, 5, 10, .86); font-size: 11px; line-height: 1; backdrop-filter: blur(4px); }
#main .thumb-block span.duration { right: 7px; left: auto; }
#main .thumb-block span.hd-video { top: 7px; right: 7px; bottom: auto; left: auto; }
.video-player, .responsive-player { overflow: hidden; border-radius: var(--tift-radius); background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .38); }
.responsive-player iframe { border-radius: var(--tift-radius); }
.entry-content, .video-about, .video-share, .comments-area, .widget { border-radius: var(--tift-radius); background: var(--tift-surface) !important; border: 1px solid var(--tift-border) !important; }
.pagination ul li a, .pagination ul li span { border-radius: 8px !important; border-color: var(--tift-border) !important; background: var(--tift-surface) !important; color: var(--tift-text) !important; }
.pagination ul li .current, .pagination ul li a:hover { background: var(--tift-cyan) !important; color: #061018 !important; }
.site-footer { margin-top: 34px; border-top: 1px solid var(--tift-border); background: #090e19 !important; }
.site-info { color: var(--tift-muted) !important; }
.site-info a { color: var(--tift-cyan) !important; }

.tift-ad { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 14px auto; }
.tift-ad-stack { display: grid; justify-items: center; gap: 12px; width: 100%; }
.tift-creative { display: block; width: 100%; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255, 179, 39, .28); border-radius: 12px; background: #030406; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.tift-creative--vip { max-width: 980px; color: inherit !important; line-height: 0; text-decoration: none !important; }
.tift-creative--vip:hover { transform: translateY(-2px); border-color: rgba(255, 179, 39, .72); box-shadow: 0 16px 34px rgba(0, 0, 0, .38); }
.tift-creative--vip img { display: block; width: 100%; height: auto; }
.tift-creative--compact { max-width: 520px; }
.tift-creative--cam { line-height: 0; }
.tift-creative--cam iframe { display: block; border: 0; }
.tift-creative--wide { width: 728px; max-width: 100%; aspect-ratio: 728 / 90; }
.tift-creative--wide iframe { width: 728px; height: 90px; max-width: none; }
.tift-creative--mobile { width: 300px; max-width: 100%; aspect-ratio: 3 / 1; }
.tift-creative--mobile iframe { width: 300px; height: 100px; }
.tift-creative--square { width: 300px; max-width: 100%; aspect-ratio: 6 / 5; }
.tift-creative--square iframe { width: 300px; height: 250px; }
.tift-ad--inline { clear: both; margin: 4px auto 28px; padding: 14px 10px; border-top: 1px solid var(--tift-border); border-bottom: 1px solid var(--tift-border); background: rgba(8, 12, 22, .72); }
.tift-ad--sidebar, .tift-ad--mobile-sidebar { max-width: 320px; }
.tift-ad--sidebar .tift-ad-stack, .tift-ad--mobile-sidebar .tift-ad-stack { gap: 10px; }
.tift-creative--mobile-only { display: none; }
.tift-ad--mobile, .tift-ad--mobile-sidebar, .tift-ad--mobile-under-player { display: none; }

.tift-preroll { position: relative; width: 100%; margin: 0 auto 14px; overflow: hidden; border: 1px solid var(--tift-border); border-radius: var(--tift-radius); background: #030407; aspect-ratio: 16 / 9; color: #fff; }
.tift-preroll__poster, .tift-preroll__stage { position: absolute; inset: 0; }
.tift-preroll__poster { display: grid; place-items: center; background-image: linear-gradient(110deg, rgba(3, 5, 10, .62), rgba(20, 10, 50, .85)), var(--tift-poster); background-position: center; background-size: cover; }
.tift-preroll__content { max-width: 540px; padding: 28px; text-align: center; }
.tift-preroll__content > span { color: var(--tift-cyan); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.tift-preroll__content strong { display: block; margin-top: 7px; color: #fff; font-size: clamp(28px, 4vw, 48px); line-height: 1; }
.tift-preroll__content p { margin: 9px 0 0; color: #c3cede; font-size: 13px; }
.tift-preroll__start, .tift-preroll__fallback { margin-top: 18px; padding: 12px 20px; border: 0; border-radius: 9px; background: linear-gradient(135deg, var(--tift-cyan), #0aa0be); color: #031014; font-size: 14px; font-weight: 900; cursor: pointer; }
.tift-preroll__stage { background: #000; }
.tift-preroll__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tift-preroll__click { position: absolute; inset: 0 0 48px; z-index: 2; }
.tift-preroll__bar { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; background: rgba(5, 8, 14, .94); }
.tift-preroll__status { color: #ced7e5; font-size: 12px; }
.tift-preroll__skip { padding: 8px 11px; border: 1px solid #62708a; border-radius: 7px; background: #121a29; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.tift-preroll__skip[disabled] { opacity: .6; cursor: not-allowed; }
.tift-preroll__fallback { position: absolute; top: 50%; left: 50%; z-index: 5; margin: 0; transform: translate(-50%, -50%); }

.tift-footer-seo { max-width: 1040px; margin: 20px auto; padding: 4px 18px 18px; text-align: center; }
.tift-footer-seo h2 { margin: 0 0 9px; color: #fff; font-size: 20px; }
.tift-footer-seo p { margin: 8px 0; color: var(--tift-muted); line-height: 1.65; }
.tift-footer-seo nav a { display: inline-block; margin: 4px 7px; color: var(--tift-cyan); font-weight: 700; }
.tift-popular-footer { padding: 30px 16px 34px; border-top: 1px solid var(--tift-border); background: linear-gradient(180deg, #080d17, #050812); }
.tift-popular-footer__inner { max-width: 1180px; margin: 0 auto; }
.tift-popular-footer h2 { margin: 0; color: #fff; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; text-align: center; }
.tift-popular-footer p { max-width: 720px; margin: 8px auto 20px; color: var(--tift-muted); font-size: 13px; line-height: 1.55; text-align: center; }
.tift-popular-footer nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tift-popular-footer a { display: flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 9px; border: 1px solid var(--tift-border); border-radius: 9px; background: rgba(16, 22, 36, .86); color: #d8e2f2 !important; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.tift-popular-footer a:hover { border-color: rgba(16, 215, 221, .6); background: rgba(16, 215, 221, .12); color: var(--tift-cyan) !important; transform: translateY(-1px); }

@media (max-width: 1080px) {
	#main .videos-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-branding .logo img { width: min(310px, 34vw); }
}

@media (max-width: 782px) {
	body { background: var(--tift-bg) !important; }
	.row { width: 100%; }
	.site-branding { min-height: auto; padding: 10px 12px 12px; }
	.site-branding .logo { align-items: center; }
	.site-branding .logo img { width: min(255px, 72vw); max-height: 68px; object-position: center; }
	.site-branding .site-description { margin-top: 3px; font-size: 11px; text-align: center; }
	.site-branding #searchform { margin-top: 10px; }
	.site-branding #searchform input[type="search"], .site-branding #searchform input[type="text"] { min-height: 40px; }
	.site-branding .tift-trending-searches { gap: 5px; margin-top: 7px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
	.site-branding .tift-trending-searches::-webkit-scrollbar { display: none; }
	.site-branding .tift-trending-searches a { padding: 4px 7px; font-size: 9px; }
	.site-content { padding: 14px 10px 0; }
	#main [id^="widget_videos_block-"] { margin-bottom: 24px; }
	#main [id^="widget_videos_block-"] > .widget-title { margin-bottom: 11px; padding: 10px 50px 10px 12px; font-size: 16px; }
	#main [id^="widget_videos_block-"] > .more-videos { top: 6px; right: 7px; min-width: 34px; min-height: 32px; padding: 7px 9px; text-align: center; }
	#main [id^="widget_videos_block-"] > .more-videos span { display: none; }
	#main .videos-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 9px; }
	#main .videos-list > .thumb-block { border-radius: 9px; }
	#main .thumb-block .post-thumbnail { border-radius: 8px 8px 0 0; }
	#main .thumb-block .entry-header { min-height: 47px; padding: 8px 8px 9px; font-size: 12.5px; line-height: 1.35; }
	#main .thumb-block .rating-bar { min-height: 20px; padding: 2px 6px; font-size: 10px; }
	#main .thumb-block span.views,
	#main .thumb-block span.duration,
	#main .thumb-block span.hd-video { bottom: 5px; padding: 3px 5px; font-size: 9px; }
	#main .thumb-block span.duration { right: 5px; }
	.tift-ad--header, .tift-ad--sidebar, .tift-ad--under-player, .tift-ad--footer { display: none !important; }
	.tift-ad--mobile, .tift-ad--mobile-sidebar, .tift-ad--mobile-under-player { display: block; margin: 10px auto; }
	.tift-ad { margin-top: 10px; margin-bottom: 14px; }
	.tift-ad-stack { gap: 8px; }
	.tift-creative { border-radius: 9px; }
	.tift-creative--desktop-only { display: none; }
	.tift-creative--mobile-only { display: block; width: 100%; }
	.tift-creative--vip { max-width: 520px; }
	.tift-ad--inline { margin-bottom: 22px; padding: 10px 0; background: transparent; }
	.tift-preroll { border-radius: 9px; aspect-ratio: 16 / 10; }
	.tift-preroll__content { padding: 18px; }
	.tift-preroll__content strong { font-size: 26px; }
	.tift-preroll__content p { font-size: 11px; }
	.tift-preroll__start { margin-top: 13px; padding: 10px 15px; }
	.tift-preroll__status { font-size: 10px; }
	.tift-preroll__skip { padding: 7px 8px; font-size: 10px; }
	.tift-popular-footer { padding: 24px 9px 28px; }
	.tift-popular-footer h2 { font-size: 19px; }
	.tift-popular-footer p { margin-bottom: 15px; font-size: 11px; }
	.tift-popular-footer nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.tift-popular-footer a { min-height: 36px; padding: 6px 5px; border-radius: 8px; font-size: 10.5px; }
}

@media (max-width: 420px) {
	.site-content { padding-right: 8px; padding-left: 8px; }
	#main .videos-list { gap: 12px 8px; }
	#main .thumb-block .entry-header { min-height: 45px; font-size: 12px; }
	.tift-creative--mobile, .tift-creative--square { max-width: calc(100vw - 24px); }
}

@media (max-width: 330px) {
	#main .videos-list { grid-template-columns: 1fr; }
}
