/* ===== Language switcher (EN | کوردی) ===== */
/* icons (bell + colour picker) and the language pill UNDER them */
.dt-tools{
	float:left;
	position:relative;
	display:flex;
	align-items:center;
	height:70px;
	margin:0 4px 0 0;
}
.dt-tools .dt-notify,
.dt-tools .dt-colorpicker{ float:none; margin:0 4px; }
.dt-tools .dt-notify,
.dt-tools .dt-colorpicker{ height:70px; padding-bottom:10px; box-sizing:border-box; }
.dt-lang{
	display:flex;
	align-items:center;
	gap:0;
	background:#000;
	border:1px solid #000;
	border-radius:10px;
	overflow:hidden;
	box-shadow:0 0 0 1px rgba(255,255,255,.35);
}
.dt-tools .dt-lang{
	position:absolute;
	left:50%;
	bottom:4px;
	transform:translateX(-50%);
	z-index:5;
}
.dt-lang-btn{
	display:inline-block;
	padding:1px 7px;
	font-size:10px;
	font-weight:700;
	line-height:14px;
	color:#fff !important;
	text-shadow:0 0 2px #000;
	opacity:.7;
	background:transparent;
	transition:.2s;
	white-space:nowrap;
}
.dt-lang-btn:hover{ opacity:1; background:#333; }
.dt-lang-btn.active{ opacity:1; background:#3a3a3a; }
/* mobile header: one small black pill in the free space between the (centred) logo and the search icon */
.dt-lang-mobile{
	position:absolute;
	top:14px;
	right:56px;
	left:auto;
	height:auto;
	margin:0;
}
.dt-lang-mobile .dt-lang-btn{ padding:3px 10px; min-width:40px; text-align:center; opacity:1; background:transparent; font-size:11px; line-height:16px; }

/* ===== Kurdish (RTL) ===== */
body.dt-lang-ckb,
body.dt-lang-ckb input,
body.dt-lang-ckb select,
body.dt-lang-ckb textarea,
body.dt-lang-ckb button{
	font-family:'Noto Sans Arabic','Roboto',Tahoma,Arial,sans-serif;
}
/* our header icons follow the logo on the right-hand side */
html[dir="rtl"] .dt-tools{ float:right; margin:0 0 0 4px; }
/* the latin letters of "EN" keep their own direction */
.dt-lang-btn[data-lang="en"]{ direction:ltr; unicode-bidi:isolate; }
/* home extras */
html[dir="rtl"] .dt-trend-item .n{ left:auto; right:-6px; }
html[dir="rtl"] .dt-trend-item span{ text-align:left; }
html[dir="rtl"] .dt-trend{ padding-left:0; padding-right:8px; }
html[dir="rtl"] .dt-ticker i,
html[dir="rtl"] .dt-filter-apply i,
html[dir="rtl"] .dt-random-btn i{ margin-left:6px; margin-right:0; }

/* very small phones: make the mobile button a bit smaller so it never touches the logo */
@media (max-width:340px){
	.dt-lang-mobile{ right:54px; }
	.dt-lang-mobile .dt-lang-btn{ padding:3px 6px; min-width:0; font-size:10px; }
}

/* ===== Desktop header: keep every menu item (Home, Movies, Apps...) on ONE row =====
   The bell / colour picker take some room, so the menu used to wrap onto a hidden second row.
   Now the header is a flex row: the search box shrinks first and the menu padding adapts. */
@media (min-width:769px){
	header.main .fix-hidden{ display:flex; flex-wrap:nowrap; align-items:flex-start; }
	header.main .fix-hidden > .logo,
	header.main .fix-hidden > .dt-tools,
	header.main .fix-hidden > .head-main-nav,
	header.main .fix-hidden > .headitems{ float:none; flex:0 0 auto; }
	header.main .fix-hidden > .head-main-nav{ min-width:0; }
	header.main .fix-hidden > .headitems{ flex:1 1 340px; max-width:340px; min-width:140px; margin-left:12px; }
	html[dir="rtl"] header.main .fix-hidden > .headitems{ margin-left:0; margin-right:12px; }
	.head-main-nav ul.main-header{ display:flex; flex-wrap:nowrap; float:none; }
	.head-main-nav ul.main-header > li{ float:none; white-space:nowrap; }
	.head-main-nav ul.main-header > li > a{ padding-left:clamp(7px,1vw,20px); padding-right:clamp(7px,1vw,20px); }
}

/* Kurdish text reads right-to-left, but the page layout is NOT mirrored */
body.dt-lang-ckb h1, body.dt-lang-ckb h2, body.dt-lang-ckb h3, body.dt-lang-ckb h4, body.dt-lang-ckb h5, body.dt-lang-ckb h6,
body.dt-lang-ckb p, body.dt-lang-ckb .wp-content, body.dt-lang-ckb .tagline, body.dt-lang-ckb .data span{
	unicode-bidi:plaintext;
}
