
.shortz-wrap {
max-width: 1320px;
width: 100%;
margin: 0 auto;
padding: 20px 16px 30px;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
overflow-x: hidden;
}
.shortz-wrap * { box-sizing: border-box; }

.shortz-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 14px;
}
.shortz-heading {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1 1 auto;
}
.shortz-bars {
display: inline-flex;
align-items: flex-end;
gap: 2px;
height: 16px;
}
.shortz-bars i {
display: block;
width: 3px;
background: #e21b22;
}
.shortz-bars i:nth-child(1) { height: 16px; }
.shortz-bars i:nth-child(2) { height: 11px; background: #1652a1; }
.shortz-bars i:nth-child(3) { height: 6px; background: #e21b22; }
.shortz-heading-text {
font-size: 20px;
font-weight: 800;
letter-spacing: 0.5px;
color: #1a1a1a;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.shortz-more {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.5px;
color: #1652a1;
text-decoration: none;
white-space: nowrap;
flex: 0 0 auto;
}

.shortz-carousel-outer {
position: relative;
padding: 0 6px;
}

.shortz-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 5;
width: 34px;
height: 34px;
min-width: 34px;
border-radius: 50%;
background: rgba(0,0,0,0.6);
border: 1px solid rgba(255,255,255,0.35);
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background .15s ease;
}
.shortz-arrow:hover { background: rgba(0,0,0,0.85); }
.shortz-arrow:disabled { opacity: 0; visibility: hidden; }
.shortz-arrow-prev { left: 10px; }
.shortz-arrow-next { right: 10px; }

.shortz-viewport {
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scrollbar-width: none;
-ms-overflow-style: none;
scroll-behavior: smooth;
}
.shortz-viewport::-webkit-scrollbar { display: none; }

.shortz-track {
display: flex;
gap: 16px;
}

.shortz-card {
position: relative;
flex: 0 0 auto;
width: 190px;
height: 338px;
border-radius: 8px;
overflow: hidden;
border: 0;
padding: 0;
background: #111;
cursor: pointer;
scroll-snap-align: start;
-webkit-tap-highlight-color: transparent;
}
.shortz-thumb {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
transition: transform .35s ease;
}
.shortz-card:hover .shortz-thumb { transform: scale(1.04); }

.shortz-play-btn {
position: absolute;
top: 10px;
right: 10px;
width: 28px;
height: 28px;
border-radius: 6px;
background: rgba(0,0,0,0.55);
display: flex;
align-items: center;
justify-content: center;
}

.shortz-card-gradient {
position: absolute;
left: 0; right: 0; bottom: 0;
height: 62%;
background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0) 100%);
}

.shortz-card-text {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: 10px 10px 12px;
display: flex;
flex-direction: column-reverse;
gap: 6px;
text-align: left;
}
.shortz-card-title {
color: #fff;
font-size: 13.5px;
line-height: 1.3;
font-weight: 600;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.shortz-card-cat {
color: #cfcfcf;
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.6px;
text-transform: uppercase;
}

.shortz-dots {
display: flex;
justify-content: center;
gap: 6px;
margin-top: 16px;
}
.shortz-dots .shortz-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #d4d4d4;
cursor: pointer;
transition: background .2s ease;
}
.shortz-dots .shortz-dot.is-active {
background: #29aae1;
}

/* ---------- Popup / Modal (reels style) ---------- */
.shortz-modal {
position: fixed;
inset: 0;
z-index: 999999;
display: none;
align-items: center;
justify-content: center;
padding: 16px;
}
.shortz-modal.is-open { display: flex; }

.shortz-modal-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.92);
}

.shortz-modal-close {
position: absolute;
top: 18px;
right: 22px;
z-index: 3;
background: transparent;
color: #fff;
border: 0;
/*width: 40px;*/
height: 40px;
border-radius: 50%;
font-size: 26px;
line-height: 1;
cursor: pointer;
}

.shortz-modal-content {
position: relative;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
max-width: 100%;
max-height: 100%;
}

.shortz-player-wrap {
position: relative;
width: 400px;
max-width: 92vw;
max-height: 85vh;
aspect-ratio: 9 / 16;
background: #000;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.shortz-player-wrap iframe,
#shortz-player-frame,
#shortz-player-frame iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
.shortz-swipe-catcher {
position: absolute;
inset: 0;
z-index: 2;
background: transparent;
touch-action: none;
}
.shortz-player-title {
position: absolute;
top: 0; left: 0; right: 0;
padding: 10px 46px 26px 12px;
background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
color: #fff;
font-size: 13px;
font-weight: 600;
line-height: 1.3;
pointer-events: none;
}

.shortz-modal-nav {
display: flex;
flex-direction: column;
gap: 14px;
}
.shortz-nav-btn {
width: 42px;
height: 42px;
border-radius: 8px;
background: rgba(255,255,255,0.14);
border: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background .15s ease;
}
.shortz-nav-btn:hover { background: rgba(255,255,255,0.28); }
.shortz-nav-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
.shortz-card { width: 170px; height: 302px; }
}
@media (max-width: 782px) {
.shortz-wrap { padding: 16px 12px 24px; }
.shortz-heading-text { font-size: 17px; max-width: 60%; }
.shortz-carousel-outer { padding: 0 4px; }
.shortz-viewport { padding: 0 2px; }
.shortz-card {
	width: calc(50vw - 22px);
	height: auto;
	aspect-ratio: 9 / 16;
	border-radius: 6px;
}
.shortz-track { gap: 10px; }
.shortz-card-title { font-size: 11.5px; -webkit-line-clamp: 2; }
.shortz-card-cat { font-size: 9px; }
.shortz-arrow { width: 28px; height: 28px; min-width: 28px; }
/*.shortz-arrow-prev { left: 2px; }*/
/*.shortz-arrow-next { right: 2px; }*/

/* Popup: stack video + nav and keep everything centered on small screens */
.shortz-modal { padding: 0; }
.shortz-modal-content {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
}
.shortz-modal-nav { display: none; }
.shortz-player-wrap {
	width: 100vw;
	height: 100dvh;
	max-width: 100vw;
	max-height: 100dvh;
	margin: 0;
	border-radius: 0;
	aspect-ratio: unset;
}
.shortz-modal-close { 
	top: 12px; 
	right: 12px; 
	/*width: 36px; */
	height: 36px; 
	font-size: 22px; }
}

@media (max-width: 400px) {
.shortz-card { width: calc(50vw - 18px); }
.shortz-heading-text { font-size: 15.5px; }
}