/* =====================================================================
   Urdu Wali Poetry v2.5 — card buttons, new home page, Moods, New Urdu
   Poets, blog Categories and Forgot password pages.
   Uses the colour variables from uwp.css, so dark & light both work.
   ===================================================================== */

/* ---------- Sticky header + bottom bar ----------
   "overflow-x:hidden" on html/body (often added by themes / custom CSS) stops the header from sticking.
   "clip" hides sideways overflow the same way but keeps sticky working. */
html:not(.uwp-mm-lock), html:not(.uwp-mm-lock) body.uwp-site { overflow-x: clip !important; }
.uwp-header { position: sticky; top: 0; z-index: 900; }
/* Fallback (set by uwp-v25.js only if sticky still does not work on a page) */
.uwp-header.uwp-hfix { position: fixed !important; left: 0; right: 0; top: 0; }
body.admin-bar .uwp-header.uwp-hfix { top: 32px; }
@media (max-width: 782px) { body.admin-bar .uwp-header.uwp-hfix { top: 46px; } }
body.uwp-hfix-on { padding-top: var(--uwp-hh, 72px) !important; }

.uwp { --uwp-emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }

/* ---------- Card buttons: 6 equal buttons with small labels ---------- */
.uwp .uwp-acts {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	gap: 2px; width: 100%; flex: 1 1 100%; margin: 0; align-items: stretch;
}
.uwp-card-foot { flex-wrap: wrap; }
.uwp-card-foot > .uwp-acts { margin-inline: -10px; width: calc(100% + 20px); }
.uwp .uwp-acts .uwp-act {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	min-height: 50px; width: 100%; padding: 4px 0; border-radius: 12px; line-height: 1.2;
	font-size: 12px; color: var(--uwp-muted); text-decoration: none;
}
.uwp .uwp-acts .uwp-act svg { width: 21px; height: 21px; }
.uwp .uwp-acts .uwp-act-l {
	display: block !important; font-family: var(--uwp-urdu); font-size: 11.5px; font-weight: 400;
	line-height: 2; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.uwp .uwp-acts .uwp-n { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; font-size: 11.5px; }
.uwp .uwp-acts .uwp-n[hidden] { display: none !important; }
.uwp .uwp-acts .uwp-like { color: var(--uwp-accent); }
.uwp .uwp-acts .uwp-like.is-on svg { fill: currentColor; }
.uwp .uwp-acts .uwp-save.is-on { color: var(--uwp-accent); }
.uwp .uwp-acts .uwp-save.is-on svg { fill: currentColor; }
.uwp .uwp-acts .uwp-save.pop svg { animation: uwpPop .4s ease; }
.uwp .uwp-acts .uwp-wa { color: #1fa855; }
.uwp .uwp-acts .uwp-makeimg { color: #b7791f; }
[data-uwp-theme="dark"] .uwp .uwp-acts .uwp-makeimg { color: #e3a83b; }
[data-uwp-theme="dark"] .uwp .uwp-acts .uwp-wa { color: #25d366; }
.uwp .uwp-acts .uwp-share { display: flex; }
.uwp .uwp-acts .uwp-share-menu { min-width: 190px; }
.uwp .uwp-acts .uwp-sh { direction: rtl; font-family: var(--uwp-urdu); font-size: 14px; line-height: 2.2; gap: 10px; }
/* Single poem page keeps its bigger outlined buttons, now in one tidy row */
.uwp .uwp-acts.is-big { gap: 8px; margin: 16px 0 6px; }
.uwp .uwp-acts.is-big .uwp-act { min-height: 58px; border: 1px solid var(--uwp-line-2); border-radius: 16px; padding: 4px 0; }
.uwp .uwp-acts.is-big .uwp-act-l { font-size: 12.5px; }
@media (max-width: 480px) { .uwp .uwp-acts.is-big .uwp-act-l { font-size: 11px; } }
@media (max-width: 480px) {
	.uwp .uwp-acts.is-big { gap: 4px; }
	.uwp .uwp-acts.is-big .uwp-act { border-radius: 13px; }
}
@media (max-width: 420px) {
	.uwp .uwp-acts .uwp-act svg { width: 19px; height: 19px; }
	.uwp .uwp-acts .uwp-act-l, .uwp .uwp-acts .uwp-n { font-size: 11px; }
	.uwp .uwp-acts.has-audio .uwp-act-l, .uwp .uwp-acts.has-audio .uwp-n { font-size: 10px; }
	.uwp .uwp-acts.has-audio .uwp-act svg { width: 18px; height: 18px; }
}
@media (max-width: 340px) {
	.uwp .uwp-acts .uwp-act-l, .uwp .uwp-acts .uwp-n { font-size: 9.5px; }
}

/* ---------- Shared page head (Moods / Poets / Categories) ---------- */
.uwp-v25p { padding-bottom: 46px; }
.uwp-ph { padding: 34px 0 22px; background: radial-gradient(700px 300px at 92% 0%, color-mix(in srgb, var(--uwp-accent) 12%, transparent), transparent 62%); }
.uwp-crumb { font-size: 13px; color: var(--uwp-muted); line-height: 2.9; margin-bottom: 8px; }
.uwp-crumb-sep { font-family: "Plus Jakarta Sans", system-ui, sans-serif; margin: 0 4px; opacity: .7; }
.uwp-crumb a:hover { color: var(--uwp-accent); }
.uwp-crumb b { color: var(--uwp-accent); font-weight: 600; }
.uwp .uwp-ph-title { font-family: var(--uwp-urdu); font-size: clamp(30px, 4.4vw, 44px); line-height: 2; font-weight: 700; }
.uwp-ph-lead { font-size: 16px; line-height: 2.2; color: var(--uwp-muted); max-width: 680px; }
.uwp-ph-search { margin-top: 14px; display: flex; align-items: center; gap: 8px; max-width: 520px; background: var(--uwp-surface); border: 1.5px solid var(--uwp-line-2); border-radius: 999px; padding: 5px 6px 5px 6px; padding-inline-start: 16px; }
.uwp-ph-search .uwp-i { color: var(--uwp-faint); }
.uwp-ph-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; outline: 0; color: var(--uwp-text); font-family: var(--uwp-urdu); font-size: 15px; line-height: 2; padding: 2px 0 !important; }
.uwp .uwp-ph-search .uwp-btn { min-height: 38px; padding: 0 18px; }
.uwp-sh2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.uwp .uwp-sh2 h2 { font-family: var(--uwp-urdu); font-size: clamp(21px, 2.4vw, 26px); line-height: 2; font-weight: 700; }
.uwp-sh2 small { display: block; font-size: 13px; color: var(--uwp-muted); line-height: 1.9; }
.uwp-sh2 .uwp-viewall { padding-bottom: 6px; }
.uwp-mt { margin-top: 22px; }
.uwp-v25p .uwp-empty { text-align: center; color: var(--uwp-muted); padding: 30px 0; }

/* ---------- Moods ---------- */
.uwp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uwp-tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 112px; padding: 14px 18px 12px; border-radius: 20px;
	background: linear-gradient(135deg, hsl(var(--h) 75% 96%), hsl(var(--h) 62% 90%)); border: 1px solid hsl(var(--h) 45% 85%); color: #1f1a14 !important; transition: transform .2s, box-shadow .2s;
}
[data-uwp-theme="dark"] .uwp-tile { background: linear-gradient(135deg, hsl(var(--h) 35% 20%), hsl(var(--h) 40% 13%)); border-color: hsl(var(--h) 30% 26%); color: #f3eee4 !important; }
.uwp-tile:hover { transform: translateY(-2px); box-shadow: var(--uwp-shadow); }
.uwp-tile b { font-family: var(--uwp-urdu); font-size: 25px; line-height: 1.9; font-weight: 700; }
.uwp-tile small { font-size: 12px; opacity: .7; line-height: 1.6; text-align: end; }
.uwp-tile em { position: absolute; top: 12px; inset-inline-end: 14px; font-style: normal; font-size: 12px; line-height: 1.9; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #4b4137; }
[data-uwp-theme="dark"] .uwp-tile em { background: rgba(0, 0, 0, .3); color: #f3eee4; }
.uwp-forms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.uwp-form-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 6px 10px; border-radius: 18px; background: var(--uwp-surface); border: 1px solid var(--uwp-line); transition: border-color .2s; }
.uwp-form-tile:hover { border-color: var(--uwp-accent); }
.uwp-form-tile i { font-style: normal; font-size: 26px; line-height: 1.3; font-family: var(--uwp-emoji); }
.uwp-form-tile b { font-family: var(--uwp-urdu); font-size: 18px; line-height: 2.1; font-weight: 600; }
.uwp-form-tile small { font-size: 11px; color: var(--uwp-muted); line-height: 1.4; }

/* ---------- New Urdu Poets ---------- */
.uwp-tabs2 { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 4px; scrollbar-width: none; }
.uwp-tabs2::-webkit-scrollbar { display: none; }
.uwp-tabs2 a { flex: none; border: 1px solid var(--uwp-line-2); background: var(--uwp-surface); border-radius: 999px; padding: 2px 16px; font-size: 14px; line-height: 2.1; white-space: nowrap; color: var(--uwp-muted); }
.uwp-tabs2 a:hover { border-color: var(--uwp-accent); color: var(--uwp-text); }
.uwp-tabs2 a.is-on { background: var(--uwp-accent); border-color: var(--uwp-accent); color: var(--uwp-on-accent); }
.uwp-top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 10px; }
.uwp-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uwp-mc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 14px; border-radius: 22px; background: var(--uwp-surface); border: 1px solid var(--uwp-line); min-width: 0; }
.uwp-mc.is-top { background: linear-gradient(180deg, color-mix(in srgb, var(--uwp-accent) 9%, var(--uwp-surface)), var(--uwp-surface) 55%); border-color: color-mix(in srgb, var(--uwp-accent) 30%, var(--uwp-line)); }
.uwp-mc-rank { position: absolute; top: -11px; inset-inline-end: 16px; background: var(--uwp-accent); color: var(--uwp-on-accent); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 12px; line-height: 1.9; padding: 0 11px; border-radius: 999px; }
.uwp-mc-link { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.uwp-mc-link .uwp-av { border: 3px solid var(--uwp-surface); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.uwp-mc-link b { font-size: 17px; line-height: 2; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--uwp-urdu), "Plus Jakarta Sans", sans-serif; }
.uwp-mc-link:hover b { color: var(--uwp-accent); }
.uwp-mc-bio { font-size: 13px; color: var(--uwp-muted); line-height: 2; height: 26px; overflow: hidden; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; }
.uwp-mc-st { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; line-height: 2; color: var(--uwp-muted); margin: 2px 0 8px; }
.uwp-mc-st b { font-family: "Plus Jakarta Sans", sans-serif; color: var(--uwp-text); font-size: 13.5px; margin-inline-end: 2px; }
.uwp-join2 { display: flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 22px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--uwp-accent) 10%, var(--uwp-surface)), color-mix(in srgb, var(--uwp-accent) 18%, var(--uwp-surface))); border: 1px solid color-mix(in srgb, var(--uwp-accent) 28%, var(--uwp-line)); }
.uwp-join2 i { font-style: normal; font-size: 36px; line-height: 1; font-family: var(--uwp-emoji); }
.uwp-join2 > span { flex: 1; min-width: 0; }
.uwp-join2 b { display: block; font-family: var(--uwp-urdu); font-size: 19px; line-height: 2; }
.uwp-join2 small { display: block; font-size: 14px; line-height: 2; color: var(--uwp-muted); }

/* ---------- Blog categories ---------- */
.uwp-grp { margin-top: 26px; }
.uwp .uwp-gh { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 400; }
.uwp-gi { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--c); display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; font-family: var(--uwp-emoji); }
.uwp-gh b { display: block; font-family: var(--uwp-urdu); font-size: 22px; line-height: 1.9; font-weight: 700; }
.uwp-gh small { display: block; font-size: 11.5px; color: var(--uwp-muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; text-align: end; }
.uwp-gl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.uwp-ci { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 14px; border-radius: 16px; background: var(--uwp-surface); border: 1px solid var(--uwp-line); border-inline-start: 4px solid var(--c); transition: border-color .2s, transform .2s; }
.uwp-ci:hover { transform: translateY(-1px); border-color: var(--c); }
.uwp-cn { flex: 1; min-width: 0; }
.uwp-cn b { display: block; font-family: var(--uwp-urdu); font-size: 17px; line-height: 2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uwp-cn small { display: block; font-size: 12px; color: var(--uwp-muted); line-height: 1.5; text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uwp-ci em { flex: none; font-style: normal; font-size: 12px; line-height: 2; padding: 0 10px; border-radius: 999px; background: var(--uwp-line); white-space: nowrap; }
.uwp-ci i { flex: none; font-style: normal; color: var(--c); font-weight: 800; }

/* Blog post tiles (Categories page + home page) */
.uwp-blog3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.uwp-bp { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--uwp-surface); border: 1px solid var(--uwp-line); transition: transform .2s, box-shadow .2s; }
.uwp-bp:hover { transform: translateY(-2px); box-shadow: var(--uwp-shadow); }
.uwp-bp-th { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--uwp-line); }
.uwp-bp-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uwp-bp-th.is-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, hsl(var(--h) 60% 40%), hsl(var(--h) 60% 24%)); color: #fff; }
.uwp-bp-th.is-blank i { font-style: normal; font-size: 32px; line-height: 1.3; font-family: var(--uwp-emoji); }
.uwp-bp-th.is-blank b { font-family: var(--uwp-urdu); font-size: 22px; line-height: 2; }
.uwp-bp-tx { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; flex: 1; text-align: start; }
.uwp-bp-tx em { font-style: normal; font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; font-weight: 700; color: var(--uwp-accent); line-height: 1.5; }
.uwp-bp-tx b { font-family: "Plus Jakarta Sans", var(--uwp-urdu), sans-serif; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--uwp-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uwp-bp-go { margin-top: auto; padding-top: 4px; font-family: var(--uwp-urdu); font-size: 14px; line-height: 2; color: var(--uwp-accent); text-align: end; }

/* ---------- Forgot / reset password ---------- */
.uwp-fp { padding: 34px 16px 50px; }
.uwp-fp-box { max-width: 440px; margin: 0 auto; padding: 26px 22px 22px; border-radius: 24px; background: var(--uwp-surface); border: 1px solid var(--uwp-line); box-shadow: var(--uwp-shadow); text-align: center; }
.uwp-fp-ic { width: 70px; height: 70px; margin: 0 auto 6px; border-radius: 50%; background: var(--uwp-accent-soft); display: flex; align-items: center; justify-content: center; font-size: 32px; line-height: 1; font-family: var(--uwp-emoji); }
.uwp .uwp-fp-box h1 { font-family: var(--uwp-urdu); font-size: 26px; line-height: 2.1; font-weight: 700; }
.uwp-fp-box > p { font-size: 15px; line-height: 2.1; color: var(--uwp-muted); }
.uwp-fp-form { margin-top: 12px; text-align: start; display: flex; flex-direction: column; gap: 12px; }
.uwp-fp-form .uwp-btn-block { margin-top: 4px; min-height: 46px; font-size: 16px; }
.uwp-fp-meter { height: 6px; border-radius: 9px; background: var(--uwp-line); margin-top: -6px; overflow: hidden; }
.uwp-fp-meter i { display: block; height: 100%; width: 0; border-radius: 9px; background: #ef4444; transition: width .25s, background .25s; }
.uwp-fp-ok { margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #22c55e 14%, var(--uwp-surface)); border: 1px solid color-mix(in srgb, #22c55e 40%, transparent); color: #15803d; font-size: 14px; line-height: 2.1; }
[data-uwp-theme="dark"] .uwp-fp-ok { color: #86efac; }
.uwp-fp-box .uwp-notice { margin-top: 12px; text-align: start; }
.uwp-fp-back { display: inline-block; margin-top: 14px; font-size: 14px; line-height: 2.2; color: var(--uwp-accent) !important; }
.uwp-fp-g { font-size: 13px; color: var(--uwp-muted); line-height: 2.2; }
.uwp-fp-g b { color: var(--uwp-text); font-family: "Plus Jakarta Sans", sans-serif; }

/* =====================================================================
   Home page
   ===================================================================== */
.uwp-home2 { padding-bottom: 40px; }
.uwp-home2 .uwp-h-sec { margin-top: 44px; scroll-margin-top: 90px; }
.uwp-home2 .uwp-sec-head { margin-bottom: 16px; }

/* Hero */
.uwp-h-hero { position: relative; padding: 36px 0 30px; background: radial-gradient(800px 360px at 88% 0%, color-mix(in srgb, var(--uwp-accent) 13%, transparent), transparent 62%), radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--uwp-accent) 7%, transparent), transparent 60%); }
.uwp-h-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: center; }
.uwp .uwp-h-title { font-family: var(--uwp-urdu); font-size: clamp(34px, 5vw, 56px); line-height: 1.9; font-weight: 700; margin-top: 4px; }
.uwp-h-sub { font-size: 17px; line-height: 2.2; color: var(--uwp-muted); max-width: 560px; }
.uwp-h-search { display: flex; align-items: center; gap: 8px; margin-top: 16px; max-width: 560px; padding: 6px; padding-inline-start: 18px; background: var(--uwp-surface); border: 1.5px solid var(--uwp-line-2); border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 0, 0, .06); }
.uwp-h-search:focus-within { border-color: var(--uwp-accent); }
.uwp-h-search .uwp-i { color: var(--uwp-faint); }
.uwp-h-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; outline: 0; color: var(--uwp-text); font-family: var(--uwp-urdu); font-size: 16px; line-height: 2; padding: 2px 0 !important; }
.uwp .uwp-h-search .uwp-btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.uwp-h-jumps { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.uwp-h-jumps::-webkit-scrollbar { display: none; }
.uwp-h-jumps a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 16px; border-radius: 999px; background: var(--uwp-surface); border: 1px solid var(--uwp-line-2); font-size: 14px; line-height: 2.1; white-space: nowrap; }
.uwp-h-jumps a:hover { border-color: var(--uwp-accent); color: var(--uwp-accent); }
.uwp-h-jumps i { font-style: normal; font-family: var(--uwp-emoji); line-height: 1; font-size: 15px; }

/* آج کا شعر */
.uwp-h-sotd { position: relative; padding: 20px 22px 16px; border-radius: 28px; color: #fff; background: linear-gradient(140deg, var(--uwp-accent), color-mix(in srgb, var(--uwp-accent) 55%, #3b0018)); box-shadow: 0 22px 46px color-mix(in srgb, var(--uwp-accent) 30%, transparent); overflow: hidden; }
.uwp-h-sotd::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 20px; pointer-events: none; }
.uwp-h-sotd-label { position: relative; font-family: var(--uwp-urdu); font-size: 15px; line-height: 2; opacity: .95; }
.uwp-h-slides { position: relative; display: grid; }
.uwp-h-slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.uwp-h-slide.is-on { opacity: 1; visibility: visible; }
.uwp .uwp-h-verse { color: #fff !important; font-size: clamp(19px, 2.2vw, 25px); line-height: 2.3; font-weight: 600; padding: 4px 0 2px; text-align: center; }
.uwp-h-poet { margin-top: 2px; }
.uwp-h-poet a, .uwp-h-poet > span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--uwp-urdu); font-size: 16px; line-height: 2; color: #fff !important; }
.uwp-h-poet .uwp-av, .uwp-h-poet .uwp-av-photo { border: 2px solid rgba(255, 255, 255, .7); }
.uwp-h-sotd-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.uwp .uwp-h-sotd-acts button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; font-family: var(--uwp-urdu); font-size: 14px; line-height: 2; }
.uwp .uwp-h-sotd-acts button:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.uwp .uwp-h-sotd-acts .uwp-like.is-on svg { fill: #fff; }
.uwp .uwp-h-sotd-acts .uwp-n { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 13px; }
.uwp .uwp-h-sotd-acts .uwp-n[hidden] { display: none; }
.uwp-h-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; position: relative; }
.uwp .uwp-h-dots button { width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .25s, background .25s; }
.uwp .uwp-h-dots button.is-on { width: 24px; background: #fff; }

/* Contest banner */
.uwp-h-contest { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 16px 20px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, #f5b70a 16%, var(--uwp-surface)), color-mix(in srgb, #f5b70a 6%, var(--uwp-surface))); border: 1px solid color-mix(in srgb, #f5b70a 40%, var(--uwp-line)); }
.uwp-h-c-ic { flex: none; font-size: 44px; line-height: 1; font-family: var(--uwp-emoji); }
.uwp-h-c-tx { flex: 1; min-width: 0; }
.uwp-h-c-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.uwp-h-c-top b { font-family: var(--uwp-urdu); font-size: 20px; line-height: 2; }
.uwp-h-c-badge { font-size: 12.5px; line-height: 2; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, #22c55e 16%, var(--uwp-surface)); color: #15803d; white-space: nowrap; }
.is-upcoming .uwp-h-c-badge { background: var(--uwp-line); color: var(--uwp-muted); }
[data-uwp-theme="dark"] .uwp-h-c-badge { color: #86efac; }
.uwp-h-c-tx p { font-size: 14px; line-height: 2; color: var(--uwp-muted); }
.uwp-h-c-time, .uwp-h-c-prize { font-size: 14px; line-height: 2; }
.uwp-h-c-time b, .uwp-h-c-prize b { color: var(--uwp-accent); }
.uwp .uwp-h-c-btn { flex: none; min-width: 150px; min-height: 46px; font-size: 16px; }

/* Trending (3 cards; slider on tablet / phone) */
.uwp-h-trend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 12px; }

/* Latest feed: centred "load more" */
.uwp-h-latest .uwp-more-wrap { margin-top: 22px; }
.uwp .uwp-h-latest .uwp-more { min-height: 46px; padding: 0 28px; font-size: 16px; font-family: var(--uwp-urdu); background: var(--uwp-accent); border-color: var(--uwp-accent); color: var(--uwp-on-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--uwp-accent) 28%, transparent); }

/* Ad */
.uwp-h-ad { margin-top: 40px; min-height: 90px; text-align: center; overflow: hidden; }

/* Video */
.uwp-hv { max-width: 860px; margin: 0 auto; }
.uwp-hv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #111; box-shadow: var(--uwp-shadow); }
.uwp-hv-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s; }
.uwp-hv-slide.is-on { opacity: 1; visibility: visible; }
.uwp-hv-slide img, .uwp-hv-slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.uwp-hv-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .35)); pointer-events: none; }
.uwp-hv-slide.is-playing::after { display: none; }
.uwp-hv-badge { position: absolute; top: 12px; inset-inline-end: 14px; z-index: 2; background: rgba(0, 0, 0, .65); color: #fff; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; padding: 7px 11px; border-radius: 99px; pointer-events: none; }
.uwp-hv-btns { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 16px; transition: opacity .35s, visibility .35s; pointer-events: none; }
.uwp-hv-btns button { pointer-events: auto; }
.uwp .uwp-hv-btns button { width: 66px; height: 66px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); transition: transform .2s; }
.uwp .uwp-hv-btns button:hover { transform: scale(1.06); background: #fff; color: #111; }
.uwp .uwp-hv-btns .uwp-hv-play svg { margin-inline-end: -4px; }
[dir="rtl"] .uwp-hv-btns .uwp-hv-play svg { margin: 0 0 0 -4px; transform: translateX(2px); }
.uwp-hv-sound .uwp-hv-s-off, .uwp-hv-sound:not(.is-on) .uwp-hv-s-on { display: none; }
.uwp-hv-sound:not(.is-on) .uwp-hv-s-off { display: block; }
.uwp-hv.is-playing .uwp-hv-btns, .uwp-hv.is-playing .uwp-hv-badge { opacity: 0; visibility: hidden; }
.uwp .uwp-hv-nav { position: absolute; top: 50%; z-index: 4; width: 42px; height: 42px; min-height: 0; margin-top: -21px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; font: 700 26px/1 "Plus Jakarta Sans", sans-serif; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.uwp .uwp-hv-nav:hover { background: #fff; color: var(--uwp-accent); }
.uwp-hv-prev { inset-inline-start: 12px; }
.uwp-hv-next { inset-inline-end: 12px; }
.uwp-hv-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; line-height: 2; color: var(--uwp-muted); }
.uwp-hv-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--uwp-text); font-weight: 600; }
.uwp-hv-src { flex: none; }
.uwp-hv-dots button { background: var(--uwp-line-2) !important; }
.uwp-hv-dots button.is-on { background: var(--uwp-accent) !important; }

/* Explore strip */
.uwp-ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.uwp-ex-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 20px; background: var(--uwp-surface); border: 1px solid var(--uwp-line); border-inline-start: 4px solid var(--c); transition: transform .2s, box-shadow .2s; }
.uwp-ex-card:hover { transform: translateY(-2px); box-shadow: var(--uwp-shadow); }
.uwp-ex-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--c) 13%, var(--uwp-surface)); display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; font-family: var(--uwp-emoji); }
.uwp-ex-tx { flex: 1; min-width: 0; }
.uwp-ex-tx b { display: block; font-family: var(--uwp-urdu); font-size: 20px; line-height: 2; font-weight: 700; }
.uwp-ex-tx small { display: block; font-size: 13px; line-height: 2; color: var(--uwp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uwp-ex-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, var(--uwp-surface)); color: var(--c); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }

/* =====================================================================
   Tablet (701–1100)
   ===================================================================== */
@media (max-width: 1100px) {
	.uwp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.uwp-forms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.uwp-mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.uwp-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uwp-blog3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uwp-h-hero-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.uwp-h-sotd { max-width: 640px; width: 100%; margin-inline: auto; }
	/* Top 3: swipe slider */
	.uwp .uwp-h-trend-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 10px; scrollbar-width: none; }
	.uwp .uwp-h-trend-grid::-webkit-scrollbar { display: none; }
	.uwp .uwp-h-trend-grid > .uwp-item { flex: 0 0 calc(50% - 7px); scroll-snap-align: start; min-width: 0; }
	.uwp-ex { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}
@media (min-width: 701px) and (max-width: 1100px) {
	.uwp-home2 .uwp-h-latest .uwp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uwp-home2 .uwp-h-blog .uwp-blog3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.uwp-home2 .uwp-h-blog .uwp-bp-tx b { font-size: 14.5px; }
}

/* =====================================================================
   Phone (≤700)
   ===================================================================== */
@media (max-width: 700px) {
	.uwp-ph { padding: 20px 0 12px; }
	.uwp-ph-lead { font-size: 14.5px; }
	.uwp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.uwp-tile { min-height: 104px; padding: 12px 14px 10px; }
	.uwp-tile b { font-size: 21px; }
	.uwp-forms { gap: 8px; }
	.uwp-form-tile b { font-size: 16px; }
	.uwp-top3 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 8px; scrollbar-width: none; }
	.uwp-top3::-webkit-scrollbar { display: none; }
	.uwp-top3 .uwp-mc { flex: 0 0 72%; scroll-snap-align: start; }
	.uwp-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.uwp-mc { padding: 14px 8px 12px; border-radius: 18px; }
	.uwp-mc-link b { font-size: 15px; }
	.uwp-mc-st { gap: 2px 8px; font-size: 11.5px; }
	.uwp-join2 { flex-wrap: wrap; padding: 16px; }
	.uwp-join2 .uwp-btn { width: 100%; }
	.uwp-gl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.uwp-gh b { font-size: 20px; }
	.uwp-gi { width: 42px; height: 42px; font-size: 21px; }
	.uwp-cn b { font-size: 16px; }
	.uwp-blog3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.uwp-bp { flex-direction: row; border-radius: 18px; }
	.uwp-bp-th { flex: 0 0 38%; aspect-ratio: auto; min-height: 112px; }
	.uwp-bp-th.is-blank b { font-size: 16px; }
	.uwp-bp-th.is-blank i { font-size: 24px; }
	.uwp-bp-tx { padding: 10px 12px; }
	.uwp-bp-tx b { font-size: 14px; -webkit-line-clamp: 3; }
	.uwp-bp-tx em { font-size: 11px; }
	.uwp-bp-go { font-size: 13px; }

	.uwp-home2 .uwp-h-sec { margin-top: 34px; }
	.uwp-h-hero { padding: 20px 0 22px; }
	.uwp-h-sub { font-size: 15px; }
	.uwp-h-search { padding: 5px; padding-inline-start: 14px; }
	.uwp-h-search input { font-size: 15px; }
	.uwp .uwp-h-search .uwp-btn { min-height: 40px; padding: 0 16px; }
	.uwp-h-sotd { padding: 16px 16px 14px; border-radius: 24px; }
	.uwp .uwp-h-sotd-acts button { padding: 0 12px; min-height: 36px; font-size: 13px; }
	.uwp-h-contest { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; margin-top: 22px; }
	.uwp-h-c-ic { font-size: 36px; }
	.uwp-h-c-top b { font-size: 18px; }
	.uwp .uwp-h-c-btn { width: 100%; }
	.uwp .uwp-h-trend-grid > .uwp-item { flex-basis: 90%; }
	.uwp-hv-frame { border-radius: 18px; }
	.uwp .uwp-hv-btns button { width: 56px; height: 56px; }
	.uwp .uwp-hv-btns svg { width: 24px; height: 24px; }
	.uwp .uwp-hv-nav { width: 36px; height: 36px; margin-top: -18px; font-size: 22px; }
	.uwp-hv-cap { flex-direction: column; align-items: flex-start; gap: 0; }
	.uwp-hv-title { max-width: 100%; }
	.uwp-ex-card { padding: 12px 14px; }
	.uwp-ex-tx b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.uwp-h-slide, .uwp-hv-slide { transition: none; }
}

/* ---------- Image maker (v2.5): 3 sizes in one row, English buttons ---------- */
.uwp-im .uwp-im-size { flex-wrap: nowrap; justify-content: center; gap: 6px; }
.uwp-im .uwp-im-size span { padding: 0 12px; min-height: 36px; font-size: 13px !important; white-space: nowrap; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.uwp-im .uwp-im-dl, .uwp-im .uwp-im-share { font-family: "Plus Jakarta Sans", system-ui, sans-serif; min-width: 130px; }
.uwp-im .uwp-im-prev { background: var(--uwp-line); }
@media (max-width: 360px) { .uwp-im .uwp-im-size span { padding: 0 8px; font-size: 12px !important; } }
