/* ---------- New (تازه‌های طوبی) ---------- */
#tooba-home .new { position: relative; width: calc(1536 * var(--u)); height: calc(672 * var(--u)); margin: calc(170 * var(--u)) auto 0; direction: ltr; }
#tooba-home .new-head { position: absolute; left: 0; top: 0; bottom: 0; width: calc(413 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; direction: rtl; z-index: 2; }
#tooba-home .new-head img { width: calc(90 * var(--u)); margin-bottom: calc(14 * var(--u)); }
#tooba-home .new-head h2 { display: flex; flex-direction: column; align-items: center; line-height: .95; }
#tooba-home .new-head span { font-size: calc(80 * var(--u)); font-weight: 200; color: var(--moss); }
#tooba-home .new-head b { font-size: calc(124 * var(--u)); font-weight: 800; color: var(--gold); }
#tooba-home .new-list {
	position: absolute; left: calc(435 * var(--u)); right: 0; top: 0; height: 100%; padding-right: calc(88 * var(--u));
	display: flex; align-items: center; gap: calc(25 * var(--u)); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 60 * var(--u)), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 60 * var(--u)), transparent);
}
#tooba-home .new-list::-webkit-scrollbar { display: none; }
#tooba-home .new-list li { flex: 0 0 calc(321 * var(--u)); scroll-snap-align: start; }
#tooba-home .new-card {
	position: relative; display: block; height: calc(529 * var(--u)); overflow: hidden; border-radius: calc(40 * var(--u));
	transition: height .35s ease; background: var(--sage);
}
#tooba-home .new-card img { width: 100%; height: 100%; object-fit: cover; }
#tooba-home .new-card.is-center { height: calc(626 * var(--u)); }
#tooba-home .play {
	position: absolute; inset: 0; margin: auto; width: calc(115 * var(--u)); height: calc(115 * var(--u)); border-radius: 50%;
	border: calc(3 * var(--u)) solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#tooba-home .play::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: calc(34 * var(--u)); height: calc(40 * var(--u));
	translate: calc(3 * var(--u)) 0; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 4px;
}
#tooba-home .new-next { z-index: 2; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: calc(36 * var(--u)); height: calc(105 * var(--u)); opacity: .6; }
#tooba-home .new-next::before {
	content: ""; display: block; width: calc(26 * var(--u)); height: calc(26 * var(--u)); margin: auto; rotate: -45deg;
	border: solid #777; border-width: 0 calc(3 * var(--u)) calc(3 * var(--u)) 0;
}

/* Drag-to-scroll: grab cursor, no snapping or smoothing while dragging. */
#tooba-home .occ-cards, #tooba-home .new-list { cursor: grab; }
#tooba-home .new-list.is-drag, #tooba-home .occ-cards.is-drag { scroll-snap-type: none; }
#tooba-home .is-drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
#tooba-home .is-drag a { pointer-events: none; }
#tooba-home img { -webkit-user-drag: none; }

/* ---------- Video pop-up ---------- */
#tooba-home .tv { width: min(92vw, 560px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: #000; overflow: hidden; }
#tooba-home .tv::backdrop { background: rgba(0, 0, 0, .75); }
#tooba-home .tv video { display: block; width: 100%; max-height: 92vh; }
#tooba-home .tv-close { position: absolute; top: 8px; left: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
#tooba-home .tv-close::before { content: "\00d7"; color: #fff; font-size: 26px; line-height: 36px; }

@media (max-width: 1023px) {
	#tooba-home .new { width: auto; height: auto; margin: calc(60 * var(--u)) 0 0; display: flex; flex-direction: column; }
	#tooba-home .new-head { position: static; width: auto; flex-direction: row; gap: calc(14 * var(--u)); justify-content: center; }
	#tooba-home .new-head img { width: calc(40 * var(--u)); margin: 0; }
	#tooba-home .new-head h2 { flex-direction: row; gap: calc(8 * var(--u)); align-items: baseline; }
	#tooba-home .new-head span { font-size: calc(34 * var(--u)); } #tooba-home .new-head b { font-size: calc(52 * var(--u)); }
	#tooba-home .new-list { -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; padding-right: 0; position: static; width: auto; height: calc(300 * var(--u)); margin-top: calc(14 * var(--u)); padding: 0 calc(14 * var(--u)); gap: calc(12 * var(--u)); scroll-padding: 0 calc(14 * var(--u)); }
	#tooba-home .new-list li { flex-basis: calc(160 * var(--u)); scroll-snap-align: start; }
	#tooba-home .new-card { height: calc(250 * var(--u)); border-radius: calc(22 * var(--u)); }
	#tooba-home .new-card.is-center { height: calc(290 * var(--u)); }
	#tooba-home .play { width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
	#tooba-home .play::after { width: calc(16 * var(--u)); height: calc(19 * var(--u)); }
	#tooba-home .new-next { display: none; }
}
