/* =====================================================================
   Elevations gallery — MONAQASAT (gallery.aspx)
   Same design tokens as the main app (css/styles.css); logical
   properties keep Arabic (RTL) and English (LTR) in sync.
   ===================================================================== */

@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(../assets/fonts/readex-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(../assets/fonts/readex-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(../assets/fonts/readex-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0F2A3A;
  --ink-2: #2E4A59;
  --muted: #5E7480;
  --brand: #1C5A7A;
  --brand-deep: #1C5A7A;
  --brand-teal: #63C3C5;
  --brand-orange: #F15E25;
  --bg: #F3F0EA;
  --surface: #FFFFFF;
  --soft: #EAE6DE;
  --line: rgba(15, 42, 58, .10);
  --line-2: rgba(15, 42, 58, .18);
  --glass: rgba(243, 240, 234, .82);
  --shadow: 0 18px 40px -12px rgba(15, 42, 58, .22);
  --shadow-sm: 0 2px 10px rgba(15, 42, 58, .07);
  --modern: #1C5A7A;   --modern-bg: #E3EEF4;
  --classic: #8A5A2B;  --classic-bg: #F5EADB;
  --neo: #2E7D6B;      --neo-bg: #E1F1EC;
  --radius: 20px;
  --font: 'Readex Pro', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #E6EEF2; --ink-2: #BCCDD6; --muted: #8DA3AF;
  --brand: #6CB8DC; --brand-deep: #1F6A8E;
  --bg: #0B1A24; --surface: #112636; --soft: #183245;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --glass: rgba(11, 26, 36, .84);
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --modern: #8FCBE8;  --modern-bg: rgba(108, 184, 220, .16);
  --classic: #E2B98A; --classic-bg: rgba(226, 185, 138, .15);
  --neo: #7FD3BD;     --neo-bg: rgba(127, 211, 189, .14);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { font-size: clamp(14px, .35vw + 11px, 19px); -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; border-radius: 10px; }
h1 { margin: 0; }
p { margin: 0; }
html[lang="ar"] .t-en, html[lang="en"] .t-ar { display: none; }
html[dir="rtl"] .flip { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 12px; background: var(--brand-deep); color: #fff; text-decoration: none; }
.skip:focus { top: 1rem; }
.logo-dark { display: none !important; }
html[data-theme="dark"] .logo-dark { display: block !important; }
html[data-theme="dark"] .logo-light { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .6rem var(--gutter); max-width: 1680px; margin: 0 auto; }
.home-btn { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: 0 1rem 0 .85rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.home-btn svg { width: 1.1rem; height: 1.1rem; }
.home-btn:hover { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.brand { justify-self: center; }
.brand .logo { height: 2.3rem; width: auto; }
.top-tools { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.icon-btn { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--brand); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.icon-btn .th-sun, html[data-theme="dark"] .icon-btn .th-moon { display: none; }
html[data-theme="dark"] .icon-btn .th-sun { display: block; }
html[data-theme="dark"] .icon-btn { color: #FFC24B; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang-switch button { min-height: 2.15rem; padding: 0 .85rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.lang-switch button[aria-pressed="true"] { background: var(--brand-deep); color: #fff; }

/* ---------- Intro ---------- */
.page { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter) 3rem; }
.intro { padding: clamp(1.8rem, 4vw, 3.4rem) 0 clamp(1.2rem, 2.5vw, 2rem); max-width: 46rem; }
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-orange); }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }
.kicker::before { content: ""; width: 1.8rem; height: 2px; border-radius: 2px; background: currentColor; }
.intro h1 { margin-top: .5rem; font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); }
html[lang="ar"] .intro h1 { letter-spacing: 0; line-height: 1.2; }
.lead { margin-top: .9rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 38rem; }
.lead b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Toolbar ---------- */
.toolbar { position: sticky; top: 3.85rem; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 0 calc(var(--gutter) * -1); padding: .75rem var(--gutter); background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.toolbar.stuck { border-bottom-color: var(--line); }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); transition: left .38s var(--ease), width .38s var(--ease); pointer-events: none; }
.tabs:not(.ready) .tab-ink { transition: none; }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.65rem; padding: 0 1.15rem; border-radius: 999px; white-space: nowrap; font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .25s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab-n { min-width: 1.7rem; padding: .05rem .45rem; border-radius: 999px; background: var(--line); font-size: .74rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
.tab[aria-selected="true"] .tab-n { background: var(--brand-deep); color: #fff; }
.tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; inset-inline-start: .9rem; width: 1.05rem; height: 1.05rem; color: var(--muted); pointer-events: none; }
.search input { width: min(17rem, 60vw); min-height: 2.75rem; padding: 0 1rem; padding-inline-start: 2.6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.sort { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.sort button { min-height: 2.3rem; padding: 0 .9rem; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.status { min-height: 1.4rem; margin: 1.1rem 0 .9rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 1.8vw, 1.75rem); }
.card { margin: 0; min-width: 0; }
.card.is-hidden { display: none; }
.card.in { animation: cardIn .5s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 30ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card-hit { position: relative; display: block; width: 100%; text-align: start; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card-hit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(110deg, var(--soft) 30%, color-mix(in srgb, var(--soft) 55%, var(--surface)) 50%, var(--soft) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.card-img.loaded { animation: none; background: var(--soft); }
@keyframes shimmer { to { background-position: -150% 0; } }
.card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .5s ease, transform .8s var(--ease); }
.card-img.loaded img { opacity: 1; transform: none; }
.card-hit:hover .card-img img { transform: scale(1.045); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 18, 26, .28), transparent 40%); opacity: 0; transition: opacity .35s; }
.card-hit:hover .card-img::after { opacity: 1; }
.card figcaption { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1.05rem .95rem; }
.code { font-size: .92rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); direction: ltr; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--ink-2); }
.pill-modern { background: var(--modern-bg); color: var(--modern); }
.pill-classic { background: var(--classic-bg); color: var(--classic); }
.pill-neo-classic { background: var(--neo-bg); color: var(--neo); }
.badge-new { position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 2; padding: .22rem .65rem; border-radius: 999px; background: var(--brand-orange); color: #fff; font-size: .72rem; font-weight: 600; box-shadow: 0 4px 12px rgba(241, 94, 37, .35); }
.card-zoom { position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0F2A3A; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .35s var(--ease); }
.card-zoom svg { width: 1.05rem; height: 1.05rem; }
.card-hit:hover .card-zoom, .card-hit:focus-visible .card-zoom { opacity: 1; transform: none; }

.empty { display: grid; justify-items: center; gap: .9rem; padding: 4rem 1rem; text-align: center; color: var(--muted); }
.empty svg { width: 3rem; height: 3rem; opacity: .6; }
.btn-ghost { min-height: 2.6rem; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.foot { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.6rem var(--gutter) 2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); text-align: center; }
.foot-mark { width: 1.6rem; height: auto; opacity: .8; }

/* ---------- Viewer ---------- */
body.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: #050D13; color: #EEF3F6; animation: vIn .3s ease both; }
@keyframes vIn { from { opacity: 0; } }
.viewer.closing { animation: vOut .22s ease both; }
@keyframes vOut { to { opacity: 0; } }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(.8rem, 2vw, 1.6rem); padding-top: max(.8rem, env(safe-area-inset-top)); }
.v-info { display: flex; align-items: center; gap: .8rem; min-width: 0; flex-wrap: wrap; }
.v-info b { font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; direction: ltr; }
.viewer .pill { background: rgba(255, 255, 255, .1); color: #fff; }
.v-count { font-size: .82rem; color: rgba(238, 243, 246, .6); font-variant-numeric: tabular-nums; direction: ltr; }
.v-tools { display: flex; align-items: center; gap: .35rem; }
.v-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: rgba(238, 243, 246, .85); text-decoration: none; transition: background .2s, color .2s; }
.v-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.v-btn svg { width: 1.25rem; height: 1.25rem; }
.v-btn .i-pause, .v-btn[aria-pressed="true"] .i-play { display: none; }
.v-btn[aria-pressed="true"] .i-pause { display: block; }
.v-btn[aria-pressed="true"] { background: var(--brand-orange); color: #fff; }
.v-close { margin-inline-start: .3rem; background: rgba(255, 255, 255, .08); }
.v-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.v-img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - clamp(1rem, 10vw, 9rem)); max-height: calc(100% - 1rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .35s ease, transform .35s var(--ease); cursor: zoom-in; will-change: transform; }
.v-img.ready { opacity: 1; }
.v-img.zoomed { cursor: grab; transition: opacity .35s ease; }
.v-img.dragging { cursor: grabbing; }
.v-spin { position: absolute; inset: 0; margin: auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--brand-teal); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s .15s; }
.v-stage.loading .v-spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.v-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-top: -1.7rem; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, transform .2s, opacity .2s; }
.v-nav:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.v-nav svg { width: 1.5rem; height: 1.5rem; }
.v-prev { inset-inline-start: clamp(.5rem, 1.5vw, 1.5rem); }
.v-next { inset-inline-end: clamp(.5rem, 1.5vw, 1.5rem); }
.viewer.zoom-on .v-nav { opacity: 0; pointer-events: none; }
.v-strip { display: flex; gap: .5rem; padding: .7rem clamp(.8rem, 2vw, 1.6rem); padding-bottom: max(.8rem, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; scroll-behavior: smooth; }
.v-strip button { flex: none; width: 6.2rem; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; background: rgba(255, 255, 255, .06); }
.v-strip button:hover { opacity: .8; }
.v-strip button[aria-current="true"] { opacity: 1; outline-color: var(--brand-teal); }
.v-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Display wall (large screens) ---------- */
.wall-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.15rem 0 1rem; border-radius: 999px; background: var(--brand-deep); color: #fff; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.wall-btn svg { width: 1.2rem; height: 1.2rem; }
.wall-btn:hover { background: var(--brand-orange); transform: translateY(-1px); }

body.wall-open { overflow: hidden; }
.wall { position: fixed; inset: 0; z-index: 110; background: #03080C; color: #EEF3F6; animation: vIn .4s ease both; }
.wall.hide-cursor, .wall.hide-cursor * { cursor: none !important; }
.wall-grid { position: absolute; inset: 0; display: grid; gap: clamp(4px, .35vw, 10px); padding: clamp(4px, .35vw, 10px); }

.wp { position: relative; overflow: hidden; min-width: 0; min-height: 0; border-radius: clamp(6px, .6vw, 14px); background: #0A141B; isolation: isolate; cursor: pointer; }
.wp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.wp-slide.on { opacity: 1; z-index: 1; }
.wp-blur { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; filter: blur(32px) brightness(.42) saturate(1.25); }
.wp-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 60%; }
.wp-slide.on .wp-main { animation: kenBurns var(--dur, 9.4s) linear both; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.06); } }
.wp.paused .wp-main, .wall.paused-all .wp-main { animation-play-state: paused !important; }

.wp-label { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: .8em; padding: 2.6em 1.3em 1.1em; font-size: clamp(.8rem, .55vw + .45rem, 1.35rem); background: linear-gradient(to top, rgba(3, 8, 12, .78), transparent); pointer-events: none; }
.wp-label .pill { font-size: .85em; padding: .3em .85em; background: var(--brand-orange); color: #fff; }
.wp-label .pill-modern { background: #1F6A8E; }
.wp-label .pill-classic { background: #8A5A2B; }
.wp-label .pill-neo-classic { background: #2E7D6B; }
.wp-code { font-weight: 600; letter-spacing: .03em; direction: ltr; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.wp-count { margin-inline-start: auto; font-size: .8em; color: rgba(238, 243, 246, .65); font-variant-numeric: tabular-nums; direction: ltr; }
.wp-progress { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; height: 3px; background: rgba(255, 255, 255, .1); }
.wp-progress i { display: block; height: 100%; background: var(--brand-teal); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .wp-progress i { transform-origin: right; }
.wp-paused { position: absolute; top: 1em; inset-inline-start: 1em; z-index: 4; display: inline-flex; align-items: center; gap: .45em; padding: .4em .9em .4em .75em; border-radius: 999px; background: rgba(3, 8, 12, .7); font-size: clamp(.75rem, .45vw + .45rem, 1.1rem); font-weight: 600; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wp-paused svg { width: 1em; height: 1em; color: var(--brand-orange); }
.wp.paused .wp-paused, .wall.paused-all .wp-paused { opacity: 1; transform: none; }
.wp-tools { position: absolute; top: 1em; inset-inline-end: 1em; z-index: 4; display: flex; gap: .4em; font-size: clamp(.8rem, .45vw + .5rem, 1.2rem); opacity: 0; transition: opacity .3s; }
.wall.show-ui .wp:hover .wp-tools, .wp:focus-within .wp-tools { opacity: 1; }
.wp-btn { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(3, 8, 12, .6); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s; }
.wp-btn:hover { background: var(--brand-orange); }
.wp-btn svg { width: 1.1em; height: 1.1em; }
.wp-btn .i-play, .wp.paused .wp-btn .i-pause { display: none; }
.wp.paused .wp-btn .i-play { display: block; }

.wall-bar { position: absolute; bottom: clamp(14px, 2vw, 36px); left: 12px; right: 12px; z-index: 6; width: fit-content; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding: .5rem; border-radius: 28px; background: rgba(10, 22, 30, .82); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); transition: opacity .35s, transform .35s var(--ease); }
.wall:not(.show-ui) .wall-bar { opacity: 0; transform: translateY(24px); pointer-events: none; }
.wall-bar button { color: rgba(238, 243, 246, .85); }
.wb-play { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.2rem 0 1rem; border-radius: 999px; background: var(--brand-orange); color: #fff !important; font-size: .88rem; font-weight: 600; }
.wb-play svg { width: 1.1rem; height: 1.1rem; }
.wb-play .i-play, .wb-play .when-off, .wb-play[aria-pressed="false"] .i-pause, .wb-play[aria-pressed="false"] .when-on { display: none; }
.wb-play[aria-pressed="false"] .i-play, .wb-play[aria-pressed="false"] .when-off { display: inline; }
.wb-play[aria-pressed="false"] { background: var(--brand-teal); color: #03222A !important; }
.wb-sep { width: 1px; height: 1.6rem; background: rgba(255, 255, 255, .14); }
.wb-group, .wb-seg { display: inline-flex; align-items: center; gap: 2px; }
.wb-group button, .wb-seg button, .wb-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.45rem; padding: 0 .85rem; border-radius: 999px; font-size: .84rem; font-weight: 500; transition: background .2s, color .2s; }
.wb-group button:hover, .wb-seg button:hover, .wb-btn:hover, .wb-icon:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.wb-group button[aria-pressed="true"], .wb-seg button[aria-pressed="true"], .wb-btn[aria-pressed="true"] { background: #EEF3F6; color: #0A161E; font-weight: 600; }
.wb-group button::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid currentColor; }
.wb-group button[aria-pressed="true"]::before { background: currentColor; }
.wb-seg button { padding: 0 .7rem; font-variant-numeric: tabular-nums; }
.wb-seg button svg, .wb-btn svg { width: 1.1rem; height: 1.1rem; }
.wb-label { display: grid; place-items: center; padding: 0 .3rem 0 .5rem; color: rgba(238, 243, 246, .5); }
.wb-label svg { width: 1.05rem; height: 1.05rem; }
.wb-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; transition: background .2s; }
.wb-icon svg { width: 1.2rem; height: 1.2rem; }
.wb-close { background: rgba(255, 255, 255, .08); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .topbar-in { grid-template-columns: auto 1fr auto; gap: .5rem; }
  .brand { justify-self: center; }
  .brand .logo { height: 1.9rem; }
  .home-btn { padding: 0 .7rem; }
  .home-btn span { display: none; }
  .lang-switch button { padding: 0 .6rem; }
  .toolbar { top: 3.4rem; }
  .tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .v-strip { display: none; }
  .v-nav { width: 2.8rem; height: 2.8rem; margin-top: -1.4rem; }
  .v-img { max-width: 100%; border-radius: 0; }
  .v-tools [data-act="full"], .v-tools [data-act="play"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
