/* =====================================================================
   TWP Flipbook Magazines – front-end styles
   Everything is scoped to .twpf (carousel/grid) and #twpf-modal (reader)
   ===================================================================== */

/* ---------- shared ---------- */
.twpf {
	--p: var(--twpf-primary, #d81b72);
	--s: var(--twpf-secondary, #7a3cc8);
	--b1: var(--twpf-bg1, #1a0620);
	--b2: var(--twpf-bg2, #44103e);
	position: relative;
	box-sizing: border-box;
	width: 100%;
}
.twpf *, .twpf *::before, .twpf *::after { box-sizing: border-box; }
.twpf svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.twpf .twpf-heading {
	margin: 0 0 8px; padding: 0; text-align: center; font-weight: 800;
	font-size: clamp(26px, 4vw, 42px); line-height: 1.15; letter-spacing: -.01em;
}
.twpf .twpf-heading::after {
	content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 14px auto 0;
	background: linear-gradient(90deg, var(--p), var(--s));
}
.twpf-empty { padding: 18px; text-align: center; border: 1px dashed #c3c4c7; border-radius: 8px; color: #50575e; }

/* themes */
.twpf-theme-light { color: #15111b; }
.twpf-theme-light .twpf-heading { color: #15111b; }
.twpf-theme-light .twpf-label { color: var(--p); }
.twpf-theme-light .twpf-name { color: #15111b; }

.twpf-theme-dark, .twpf-theme-gradient { color: #fff; }
.twpf-theme-dark .twpf-heading, .twpf-theme-gradient .twpf-heading { color: #fff; }
.twpf-theme-dark .twpf-label, .twpf-theme-gradient .twpf-label { color: #ff8fc2; }
.twpf-theme-dark .twpf-name, .twpf-theme-gradient .twpf-name { color: #fff; }
.twpf-theme-dark { background: #0f0414; }
.twpf-theme-gradient {
	background: linear-gradient(135deg, var(--b1), var(--b2));
	overflow: hidden; isolation: isolate;
}
.twpf-theme-gradient::before, .twpf-theme-gradient::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(110px); z-index: -1; pointer-events: none;
}
.twpf-theme-gradient::before { width: 420px; height: 420px; right: -90px; top: -110px; background: var(--p); opacity: .38; }
.twpf-theme-gradient::after { width: 380px; height: 380px; left: -110px; bottom: -120px; background: var(--s); opacity: .34; }

/* ---------- card (cover + title) ---------- */
.twpf .twpf-card {
	display: block; color: inherit; text-align: center; text-decoration: none; box-shadow: none;
	cursor: pointer; outline: 0; -webkit-tap-highlight-color: transparent; border: 0; background: none;
}
.twpf .twpf-card:hover, .twpf .twpf-card:focus { color: inherit; text-decoration: none; }
.twpf .twpf-cover {
	position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
	border-radius: 4px 12px 12px 4px;
	background: linear-gradient(145deg, var(--p), var(--s));
	box-shadow: 0 26px 44px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.twpf .twpf-cover img {
	display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0;
	border-radius: 0; object-fit: cover; box-shadow: none;
}
/* book spine + glossy sheen */
.twpf .twpf-cover::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9%; z-index: 2; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(255, 255, 255, .22) 46%, rgba(0, 0, 0, 0));
}
.twpf .twpf-cover::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 38%);
}
.twpf .twpf-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; text-align: center; color: #fff; }
.twpf .twpf-ph em { font-style: normal; font-weight: 800; font-size: 20px; line-height: 1.25; }

.twpf .twpf-badge {
	position: absolute; top: 12px; right: 12px; z-index: 3; padding: 5px 11px; border-radius: 30px;
	background: #fff; color: var(--p); font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.2;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}
.twpf .twpf-read {
	position: absolute; left: 50%; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 40px; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
	background: linear-gradient(135deg, var(--p), var(--s));
	box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6);
	opacity: 0; transform: translate(-50%, 14px); transition: .35s;
}
.twpf .twpf-read svg { width: 16px; height: 16px; }
.twpf .twpf-card:hover .twpf-read, .twpf .twpf-card:focus-visible .twpf-read { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .twpf .twpf-read { display: none; } }

.twpf .twpf-info { display: block; padding: 16px 6px 0; }
.twpf .twpf-label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.twpf .twpf-name {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 17px; font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: 0;
}
.twpf .twpf-card:focus-visible .twpf-cover { outline: 3px solid var(--p); outline-offset: 4px; }

/* ---------- 3D carousel ---------- */
.twpf-carousel { padding: 64px 0 60px; }

/* heading inside the carousel background ("Top leaders" style: pink line + big serif title) */
.twpf-carousel .twpf-sh { max-width: 1204px; margin: 0 auto; padding: 0 20px; text-align: left; }
.twpf-carousel .twpf-sh::before {
	content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin: 0 0 22px; background: var(--p);
	transform-origin: left; animation: twpfLine .9s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.twpf-carousel .twpf-sh h2 {
	margin: 0; padding: 0; text-transform: none; letter-spacing: -.01em; text-align: left;
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 700;
	font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15;
}
.twpf-theme-gradient .twpf-sh h2, .twpf-theme-dark .twpf-sh h2 { color: #fff; }
.twpf-theme-light .twpf-sh h2 { color: #111; }
@keyframes twpfLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* "View All" button at the bottom of the carousel */
.twpf-carousel .twpf-more { text-align: center; margin-top: 38px; padding: 0 20px; }
.twpf .twpf-more-btn {
	position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px;
	padding: 17px 38px; border-radius: 50px; line-height: 1; font-size: 16px; font-weight: 700; letter-spacing: .01em;
	color: #fff !important; text-decoration: none !important; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .7);
	background: linear-gradient(135deg, var(--p), var(--s)); border: 0; transition: transform .3s, box-shadow .3s;
}
.twpf .twpf-more-btn::before {
	content: ""; position: absolute; top: 0; left: -70%; width: 50%; height: 100%; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s;
}
.twpf .twpf-more-btn:hover, .twpf .twpf-more-btn:focus-visible { color: #fff !important; transform: translateY(-4px); box-shadow: 0 24px 40px -14px var(--p); }
.twpf .twpf-more-btn:hover::before { left: 130%; }
.twpf .twpf-more-btn svg { width: 20px; height: 20px; transition: transform .3s; }
.twpf .twpf-more-btn:hover svg { transform: translateX(5px); }
@media (max-width: 480px) {
	.twpf-carousel .twpf-sh { padding: 0 16px; }
	.twpf .twpf-more-btn { padding: 15px 30px; font-size: 15px; }
}
.twpf-carousel .twpf-stagec { position: relative; }
.twpf-carousel .twpf-swiper { overflow: hidden; padding: 34px 0 20px; margin: 0; }
.twpf-carousel .swiper-slide {
	width: 260px; height: auto; opacity: .5; transition: opacity .45s, filter .45s; filter: saturate(.8);
}
.twpf-carousel .swiper-slide-active { opacity: 1; filter: none; }
.twpf-carousel .swiper-slide-active .twpf-cover {
	box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 70px -10px var(--p);
}
.twpf-carousel .swiper-slide-active .twpf-card:hover .twpf-cover { transform: translateY(-8px); }
.twpf-carousel:not(.twpf-ready) .swiper-wrapper { display: flex; gap: 20px; overflow-x: auto; padding: 0 20px; }
.twpf-carousel:not(.twpf-ready) .swiper-slide { flex: none; opacity: 1; }

.twpf .twpf-arrow {
	position: absolute; top: 42%; z-index: 5; width: 50px; height: 50px; padding: 0; margin: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; min-width: 0;
	-webkit-appearance: none; appearance: none;
	color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; text-transform: none;
	transition: .3s;
}
.twpf .twpf-arrow:hover, .twpf .twpf-arrow:focus-visible { color: #fff; background: var(--p); border-color: var(--p); transform: scale(1.08); }
.twpf .twpf-arrow.swiper-button-disabled { opacity: .35; pointer-events: none; }
.twpf .twpf-arrow-prev { left: max(16px, 3vw); }
.twpf .twpf-arrow-next { right: max(16px, 3vw); }
.twpf-theme-light .twpf-arrow { color: #15111b; background: #fff; border-color: #e7dfe6; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }

.twpf .twpf-dots { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 12px; margin-top: 10px; }
.twpf .twpf-dots .swiper-pagination-bullet {
	display: inline-block; width: 8px; height: 8px; margin: 0; border-radius: 8px; opacity: .4; cursor: pointer;
	background: currentColor; transition: .35s;
}
.twpf .twpf-dots .swiper-pagination-bullet-active { width: 28px; opacity: 1; background: var(--p); }

/* ---------- grid ---------- */
.twpf-grid { padding: 10px 0; }
.twpf-grid.twpf-theme-gradient, .twpf-grid.twpf-theme-dark { padding: 56px 24px; }
.twpf-grid .twpf-heading { margin-bottom: 34px; }
.twpf-grid .twpf-grid-wrap { display: grid; gap: 46px 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twpf-grid.twpf-cols-1 .twpf-grid-wrap { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin: 0 auto; }
.twpf-grid.twpf-cols-2 .twpf-grid-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twpf-grid.twpf-cols-3 .twpf-grid-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.twpf-grid.twpf-cols-5 .twpf-grid-wrap { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.twpf-grid.twpf-cols-6 .twpf-grid-wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.twpf-grid .twpf-card:hover .twpf-cover { transform: translateY(-10px) rotate(-.6deg); box-shadow: 0 34px 50px -20px rgba(0, 0, 0, .6), 0 0 40px -12px var(--p); }
.twpf-grid .twpf-g-item { min-width: 0; }

@media (max-width: 1100px) {
	.twpf-grid.twpf-cols-4 .twpf-grid-wrap, .twpf-grid.twpf-cols-5 .twpf-grid-wrap, .twpf-grid.twpf-cols-6 .twpf-grid-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.twpf-grid .twpf-grid-wrap, .twpf-grid.twpf-cols-3 .twpf-grid-wrap, .twpf-grid.twpf-cols-4 .twpf-grid-wrap,
	.twpf-grid.twpf-cols-5 .twpf-grid-wrap, .twpf-grid.twpf-cols-6 .twpf-grid-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; }
	.twpf-grid.twpf-cols-1 .twpf-grid-wrap { grid-template-columns: minmax(0, 1fr); }
	.twpf-grid.twpf-theme-gradient, .twpf-grid.twpf-theme-dark { padding: 40px 16px; }
}
@media (max-width: 480px) {
	.twpf .twpf-name { font-size: 15px; }
	.twpf-carousel .swiper-slide { width: 200px; }
	.twpf .twpf-arrow { width: 42px; height: 42px; top: 38%; }
	.twpf-carousel { padding: 44px 0 40px; }
}

/* pagination */
.twpf .twpf-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 46px; }
.twpf .twpf-page-num {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 40px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: none;
	color: inherit; border: 1px solid rgba(128, 128, 128, .35); transition: .3s;
}
.twpf .twpf-page-num:hover { color: #fff; background: var(--p); border-color: var(--p); transform: translateY(-2px); }
.twpf .twpf-page-num.is-current { color: #fff; background: linear-gradient(135deg, var(--p), var(--s)); border-color: transparent; }


/* =====================================================================
   POPUP READER (#twpf-modal)
   ===================================================================== */
html.twpf-lock, html.twpf-lock body { overflow: hidden !important; }

#twpf-modal {
	--p: var(--twpf-primary, #d81b72);
	--s: var(--twpf-secondary, #7a3cc8);
	--b1: var(--twpf-bg1, #1a0620);
	--b2: var(--twpf-bg2, #44103e);
	position: fixed; inset: 0; z-index: 2147483000; display: flex;
	visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s;
	color: #fff; font-size: 16px; line-height: 1.4; text-align: left;
}
#twpf-modal, #twpf-modal *, #twpf-modal *::before, #twpf-modal *::after { box-sizing: border-box; }
#twpf-modal.is-open { visibility: visible; opacity: 1; }
#twpf-modal svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* reset theme button styles (ID specificity) */
#twpf-modal button {
	-webkit-appearance: none; appearance: none; margin: 0; padding: 0; min-width: 0; min-height: 0;
	background: none; border: 0; border-radius: 0; box-shadow: none; text-shadow: none; text-transform: none;
	letter-spacing: normal; font: inherit; line-height: 1; color: inherit; cursor: pointer;
}

#twpf-modal .twpf-backdrop {
	position: absolute; inset: 0; overflow: hidden;
	background: linear-gradient(135deg, var(--b1), var(--b2));
}
#twpf-modal .twpf-backdrop::before, #twpf-modal .twpf-backdrop::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
#twpf-modal .twpf-backdrop::before { width: 52vmax; height: 52vmax; right: -14vmax; top: -22vmax; background: var(--p); opacity: .42; }
#twpf-modal .twpf-backdrop::after { width: 46vmax; height: 46vmax; left: -16vmax; bottom: -22vmax; background: var(--s); opacity: .38; }

#twpf-modal .twpf-dialog { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; height: 100%; }

/* top bar */
#twpf-modal .twpf-top {
	flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px 22px; min-height: 68px;
}
#twpf-modal .twpf-top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
#twpf-modal .twpf-logo {
	flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--p), var(--s)); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
}
#twpf-modal .twpf-m-title {
	margin: 0; padding: 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3;
	text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#twpf-modal .twpf-top-right { flex: none; display: flex; align-items: center; gap: 10px; }

/* round icon buttons */
#twpf-modal .twpf-btn {
	width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
	transition: background .25s, transform .25s, border-color .25s, opacity .25s;
}
#twpf-modal .twpf-btn:hover, #twpf-modal .twpf-btn:focus-visible { background: var(--p); border-color: var(--p); color: #fff; transform: scale(1.08); }
#twpf-modal .twpf-btn[disabled], #twpf-modal .twpf-btn.is-off { opacity: .32; pointer-events: none; }
#twpf-modal .twpf-close { background: rgba(255, 255, 255, .16); width: 46px; height: 46px; }
#twpf-modal .twpf-close:hover { transform: rotate(90deg) scale(1.08); }
#twpf-modal .twpf-fs .twpf-i-exit { display: none; }
#twpf-modal.is-fs .twpf-fs .twpf-i-exit { display: block; }
#twpf-modal.is-fs .twpf-fs .twpf-i-full { display: none; }
#twpf-modal .twpf-btn:focus-visible, #twpf-modal .twpf-side:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* stage */
#twpf-modal .twpf-stagebox { position: relative; flex: 1 1 auto; min-height: 0; }
#twpf-modal .twpf-stage {
	position: absolute; inset: 0; overflow: auto; display: flex; scrollbar-width: none; -ms-overflow-style: none;
}
#twpf-modal .twpf-stage::-webkit-scrollbar { display: none; }
#twpf-modal.is-zoomed .twpf-stage { cursor: grab; }
#twpf-modal.is-zoomed .twpf-stage.is-drag { cursor: grabbing; user-select: none; }
#twpf-modal .twpf-zoomwrap {
	flex: none; margin: auto; position: relative;
	opacity: 0; transform: scale(.94); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
#twpf-modal.is-ready .twpf-zoomwrap { opacity: 1; transform: none; }
#twpf-modal .twpf-book { transform-origin: 0 0; }
#twpf-modal.is-zoomed .twpf-book { pointer-events: none; }

/* StPageFlip required styles */
#twpf-modal .stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); touch-action: pan-y; }
#twpf-modal .stf__wrapper { position: relative; width: 100%; height: 100%; box-sizing: border-box; padding-bottom: 0 !important; }
#twpf-modal .stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
#twpf-modal .stf__block { position: absolute; width: 100%; height: 100%; box-sizing: border-box; perspective: 2000px; }
#twpf-modal .stf__item { display: none; position: absolute; transform-style: preserve-3d; }
#twpf-modal .stf__outerShadow, #twpf-modal .stf__innerShadow, #twpf-modal .stf__hardShadow, #twpf-modal .stf__hardInnerShadow { position: absolute; left: 0; top: 0; }

/* pages */
#twpf-modal .twpf-page { background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
#twpf-modal .twpf-page canvas { display: block; }
#twpf-modal .twpf-page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; z-index: 2; }
#twpf-modal .twpf-page.--left::after { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)); }
#twpf-modal .twpf-page.--right::after { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)); }

/* big side arrows */
#twpf-modal .twpf-side {
	position: absolute; top: 50%; z-index: 4; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; color: #fff;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: .3s;
}
#twpf-modal .twpf-side:hover { background: var(--p); border-color: var(--p); transform: scale(1.1); }
#twpf-modal .twpf-side.is-off { opacity: 0; pointer-events: none; }
#twpf-modal.is-zoomed .twpf-side { opacity: 0; pointer-events: none; }
#twpf-modal .twpf-side-prev { left: 14px; }
#twpf-modal .twpf-side-next { right: 14px; }
#twpf-modal .twpf-side svg { width: 26px; height: 26px; }

/* loader + error */
#twpf-modal .twpf-loader, #twpf-modal .twpf-error {
	position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center;
	gap: 18px; text-align: center; padding: 24px; pointer-events: none;
}
#twpf-modal.is-loading .twpf-loader { display: flex; }
#twpf-modal.is-error .twpf-error { display: flex; pointer-events: auto; }
#twpf-modal .twpf-spin {
	width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--p);
	animation: twpfSpin .85s linear infinite;
}
#twpf-modal .twpf-loader-text { font-size: 15px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
#twpf-modal .twpf-error a { color: #fff; font-weight: 700; text-decoration: underline; }
@keyframes twpfSpin { to { transform: rotate(360deg); } }

/* bottom controls */
#twpf-modal .twpf-bottom { flex: none; display: flex; justify-content: center; padding: 6px 14px 20px; }
#twpf-modal .twpf-bar {
	display: flex; align-items: center; gap: 6px; max-width: 100%;
	padding: 8px 12px; border-radius: 60px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}
#twpf-modal .twpf-bar .twpf-btn { width: 40px; height: 40px; background: transparent; border-color: transparent; }
#twpf-modal .twpf-bar .twpf-btn:hover { background: var(--p); }
#twpf-modal .twpf-pager { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
#twpf-modal .twpf-range {
	-webkit-appearance: none; appearance: none; width: 210px; height: 5px; margin: 0; padding: 0; border-radius: 5px;
	background: linear-gradient(90deg, var(--p) var(--pct, 0%), rgba(255, 255, 255, .25) var(--pct, 0%)); outline: 0; cursor: pointer;
}
#twpf-modal .twpf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
#twpf-modal .twpf-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
#twpf-modal .twpf-pageinfo { min-width: 78px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#twpf-modal .twpf-sep { width: 1px; height: 22px; margin: 0 6px; background: rgba(255, 255, 255, .25); }
#twpf-modal .twpf-zlabel { min-width: 52px; padding: 8px 4px; border-radius: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; transition: .2s; }
#twpf-modal .twpf-zlabel:hover { background: rgba(255, 255, 255, .16); }

/* responsive */
@media (max-width: 900px) {
	#twpf-modal .twpf-range { width: 120px; }
}
@media (max-width: 720px) {
	#twpf-modal .twpf-top { padding: 10px 14px; min-height: 58px; }
	#twpf-modal .twpf-m-title { font-size: 15px; }
	#twpf-modal .twpf-logo { width: 34px; height: 34px; border-radius: 10px; }
	#twpf-modal .twpf-btn { width: 38px; height: 38px; }
	#twpf-modal .twpf-close { width: 42px; height: 42px; }
	#twpf-modal .twpf-side { display: none; }
	#twpf-modal .twpf-range, #twpf-modal .twpf-first, #twpf-modal .twpf-last, #twpf-modal .twpf-sep { display: none; }
	#twpf-modal .twpf-bottom { padding: 4px 10px 14px; }
	#twpf-modal .twpf-bar { gap: 2px; padding: 6px 8px; }
	#twpf-modal .twpf-bar .twpf-btn { width: 38px; height: 38px; }
	#twpf-modal .twpf-pageinfo { min-width: 70px; font-size: 13px; }
	#twpf-modal .twpf-zlabel { min-width: 44px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.twpf *, #twpf-modal * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
