/* ── Portfolio redesign candidates (admin lab) ───────────────────────────
   Category tone, entrance/filter motion and four layouts. Everything degrades
   to a plain readable list without JS, and motion is off under
   prefers-reduced-motion. */

.pl { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; position: relative; }
[data-pl-item][hidden] { display: none !important; }

[data-cat="web"]     { --pl-c: var(--accent-2); --pl-c-soft: var(--accent-2-soft); --pl-c-border: var(--accent-2-border); }
[data-cat="graphic"] { --pl-c: var(--accent);   --pl-c-soft: var(--accent-soft);   --pl-c-border: var(--accent-border); }
[data-cat="ai"]      { --pl-c: #a99cff;         --pl-c-soft: rgba(169,156,255,.14); --pl-c-border: rgba(169,156,255,.38); }

/* Header */
.pl-head { display: grid; gap: 14px; justify-items: center; text-align: center; }
.pl-head h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.pl-head > p { margin: 0; max-width: 52ch; color: var(--text-muted); line-height: 1.9; }
.pl-stats { display: flex; gap: 28px; margin: 0; }
.pl-stats div { display: grid; justify-items: center; gap: 0; }
.pl-stats dd { margin: 0; font-size: 1.8rem; font-weight: 800; color: var(--accent-2); line-height: 1.2; font-variant-numeric: tabular-nums; }
.pl-stats dt { color: var(--text-muted); font-size: .85rem; order: 2; }
.pl-empty { color: var(--text-muted); }

/* Filter with a sliding indicator */
.pl-filter { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pl-filter::-webkit-scrollbar { display: none; }
.pl-filter[hidden] { display: none; }
.pl-filter button { flex: none; white-space: nowrap; position: relative; z-index: 1; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-fast); }
.pl-filter button em { font-style: normal; font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.pl-filter button[aria-pressed="true"] { color: var(--accent-ink); }
.pl-filter button[aria-pressed="true"] em { background: rgba(0,0,0,.18); }
.pl-filter button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pl-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--radius-pill); background: var(--accent-2); box-shadow: 0 8px 22px -10px rgba(139,199,75,.7); transition: transform .45s var(--ease), width .45s var(--ease); }

/* Entrance: only when JS is up (otherwise everything is simply visible) */
.pl-js [data-pl-item] { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.pl-js [data-pl-item].pl-in { opacity: 1; transform: none; }

/* Shared bits */
.pl-badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--pl-c); background: rgba(11,19,32,.7); border: 1px solid var(--pl-c-border); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pl-badge-flat { position: static; justify-self: start; align-self: start; }
.pl-sub { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.pl-tags, .pl-more { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-tags i, .pl-more i { font-style: normal; padding: 2px 10px; border-radius: 999px; font-size: .74rem; background: rgba(255,255,255,.09); color: var(--text); border: 1px solid var(--border); }
.pl-media { display: block; position: absolute; inset: 0; overflow: hidden; background: linear-gradient(150deg, var(--bg-soft), var(--bg-elevated)); }
.pl-media img, .pl-media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.pl-btn { align-self: flex-start; min-height: 46px; display: inline-flex; align-items: center; padding: 0 24px; border-radius: 999px; background: var(--pl-c); color: #0b1320; font-weight: 700; text-decoration: none; transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast); }
.pl-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
:is(.pl-tile, .pl-row, .pl-card, .pl-btn, .pl-slab h3 a):focus-visible { outline: 2px solid var(--pl-c, var(--accent-2)); outline-offset: 3px; }

/* 1 — Bento */
.pl-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; grid-auto-flow: dense; }
.pl-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 4 / 3; color: var(--text); text-decoration: none; isolation: isolate; }
.pl-tile.is-feature { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pl-tile.is-wide-m { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.pl-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 15%, rgba(6,10,20,.82) 60%, rgba(6,10,20,.96)); transition: opacity var(--dur); }
.pl-info { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2; padding: 16px; display: grid; gap: 4px; }
.pl-info strong { font-size: 1.15rem; }
.pl-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.pl-more b { color: var(--pl-c); font-size: .85rem; margin-inline-start: auto; }
.pl-tile:hover img, .pl-tile:focus-visible img, .pl-card:hover img { transform: scale(1.07); }
.pl-tile:hover, .pl-tile:focus-visible { border-color: var(--pl-c-border); }
@media (hover: none) { .pl-tile:not(.is-feature):not(.is-wide-m):not(.is-wide-d) .pl-more { display: none; } .pl-more { max-height: 120px; opacity: 1; margin-top: 4px; } }
@media (hover: hover) { .pl-tile:is(:hover, :focus-visible) .pl-more { max-height: 90px; opacity: 1; margin-top: 6px; } }
@container (min-width: 720px) {
  .pl-bento { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pl-tile.is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 360px; }
  .pl-tile.is-feature strong { font-size: 1.6rem; }
  .pl-tile.is-wide-m { grid-column: auto; aspect-ratio: 4 / 3; }
  .pl-tile.is-wide-d { grid-column: 1 / -1; aspect-ratio: 21 / 7; }
  .pl-tile.is-tall-d { grid-row: span 2; aspect-ratio: auto; }
}

/* 2 — Editorial index */
.pl-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pl-rows li { border-bottom: 1px solid var(--border); }
.pl-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 20px; padding: 20px 6px; color: var(--text); text-decoration: none; position: relative; transition: padding var(--dur) var(--ease), background var(--dur); }
.pl-num { font-family: var(--font-mono); color: var(--text-faint); font-size: .9rem; transition: color var(--dur); }
.pl-row-main { display: grid; gap: 2px; }
.pl-row-main strong { font-size: clamp(1.4rem, 1rem + 2.4vw, 2.6rem); font-weight: 800; line-height: 1.2; transition: transform var(--dur) var(--ease), color var(--dur); }
.pl-row-thumb { width: 84px; aspect-ratio: 4/3; position: relative; border-radius: 12px; overflow: hidden; grid-column: 2; grid-row: 2; }
.pl-row-thumb img, .pl-row-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-arrow { font-size: 1.6rem; color: var(--pl-c); opacity: 0; transform: translateX(10px); transition: opacity var(--dur), transform var(--dur) var(--ease); grid-column: 3; grid-row: 1; }
.pl-row:is(:hover, :focus-visible) { padding-inline: 20px; background: linear-gradient(90deg, transparent, var(--pl-c-soft)); }
.pl-row:is(:hover, :focus-visible) .pl-num { color: var(--pl-c); }
.pl-row:is(:hover, :focus-visible) strong { color: var(--pl-c); transform: translateX(-8px); }
.pl-row:is(:hover, :focus-visible) .pl-arrow { opacity: 1; transform: none; }
.pl-peek { position: absolute; z-index: 5; top: 0; left: 0; width: 260px; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; scale: .85; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lift); transition: opacity .25s, scale .35s var(--ease); display: none; }
.pl-peek.on { opacity: 1; scale: 1; }
.pl-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .pl-peek { display: block; }
  .pl-row-thumb { display: none; }
  .pl-row { grid-template-columns: auto 1fr auto; }
}
@container (min-width: 720px) { .pl-row { padding-block: 26px; } }

/* 3 — Stack */
.pl-stack { display: grid; gap: 28px; padding-bottom: 12px; }
.pl-slab { position: sticky; top: calc(var(--pl-top, 84px) + var(--k, 0) * 14px); display: grid; border-radius: 26px; overflow: hidden; border: 1px solid var(--pl-c-border); background: linear-gradient(180deg, var(--pl-c-soft), #111a2e 60%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); transform-origin: 50% 0; transform: scale(calc(1 - var(--p, 0) * .05)); filter: brightness(calc(1 - var(--p, 0) * .4)); will-change: transform; }
.pl-js .pl-slab.pl-in { transform: scale(calc(1 - var(--p, 0) * .05)); }
.pl-slab-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.pl-slab-media img, .pl-slab-media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-slab-body { padding: 22px; display: grid; gap: 12px; align-content: center; }
.pl-slab h3 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); }
.pl-slab h3 a { color: var(--text); text-decoration: none; }
.pl-slab p { margin: 0; color: var(--text-muted); line-height: 1.9; }
@container (min-width: 760px) {
  .pl-slab { grid-template-columns: 1.15fr 1fr; min-height: 380px; }
  .pl-slab-media { aspect-ratio: auto; }
  .pl-slab-body { padding: 36px; }
  .pl-slab:nth-child(even) { direction: ltr; }
  .pl-slab:nth-child(even) > * { direction: rtl; }
}

/* 4 — Tilt gallery */
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@container (min-width: 720px) { .pl-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.pl-tilt-wrap { perspective: 900px; }
.pl-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); color: var(--text); text-decoration: none; isolation: isolate; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), border-color var(--dur), box-shadow var(--dur); transform-style: preserve-3d; }
.pl-card .pl-media { z-index: 0; }
.pl-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, rgba(6,10,20,.85) 62%, rgba(6,10,20,.97)); }
.pl-card.is-tilting { transition: transform .08s linear, border-color var(--dur); }
.pl-card:is(:hover, :focus-visible) { border-color: var(--pl-c-border); box-shadow: 0 30px 60px -28px var(--pl-c); }
.pl-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 60%); transition: opacity .3s; }
.pl-card:is(:hover, :focus-visible) .pl-glare { opacity: 1; }
.pl-card-body { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2; padding: 16px; display: grid; gap: 4px; transform: translateZ(30px); }
.pl-card-body .pl-badge-flat { margin-bottom: 4px; }
.pl-card-body strong { font-size: 1.15rem; }
.pl-reveal { display: grid; gap: 8px; font-size: .85rem; color: var(--text-muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.pl-card:is(:hover, :focus-visible) .pl-reveal { max-height: 130px; opacity: 1; margin-top: 6px; }
@media (hover: none) { .pl-reveal { max-height: none; opacity: 1; margin-top: 6px; } .pl-reveal > span:first-child { display: none; } }
@container (max-width: 420px) { .pl-grid { grid-template-columns: 1fr; } .pl-card { aspect-ratio: 4 / 3; } }

@media (prefers-reduced-motion: reduce) {
  .pl-js [data-pl-item], .pl-media img, .pl-ind, .pl-more, .pl-reveal, .pl-card, .pl-row, .pl-slab { transition: none !important; }
  .pl-js [data-pl-item] { opacity: 1; transform: none; }
  .pl-slab { transform: none !important; filter: none !important; }
}
.pl-js [data-pl-item].pl-done { transition: none; }

.pl-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-muted); font-size: .85rem; line-height: 1.7; }
.pl-more .pl-summary { flex-basis: 100%; }

/* ═══════════════ Mobile-first / app-feel models (5–8) ═══════════════ */
.pl a, .pl button { -webkit-tap-highlight-color: transparent; }
.pl-btn:active, .pl-feed-row:active, .pl-nav:active { transform: scale(.97); }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-summary-1 { -webkit-line-clamp: 1; }
.pl-btn-block { justify-self: stretch; align-self: auto; justify-content: center; }

/* Compact header + chip filter */
.pl-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pl-bar-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pl-bar-title h2 { margin: 0; font-size: 1.4rem; }
.pl-bar-count { color: var(--text-muted); font-size: .85rem; }
.pl-bar-count b { color: var(--accent-2); font-size: 1rem; }
.pl-bar .pl-filter { width: 100%; justify-content: flex-start; }

/* Phone bezel in the lab's mobile mode */
.sl-phone .sl-frame { border: 10px solid #1d2438; border-radius: 42px; padding: 28px 12px 18px; position: relative; background: var(--bg); box-shadow: 0 30px 60px -30px #000; }
.sl-phone .sl-frame::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 84px; height: 16px; border-radius: 12px; background: #0a0f1c; }

/* 5 — Swipe deck */
.pl-swipe-wrap { position: relative; margin-inline: -4px; }
.pl-swipe { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 8px 9% 16px; scroll-padding-inline: 9%; scrollbar-width: none; outline: none; }
.pl-swipe::-webkit-scrollbar { display: none; }
.pl-swipe:focus-visible { box-shadow: 0 0 0 2px var(--accent-2); border-radius: 20px; }
.pl-slide { flex: 0 0 82%; scroll-snap-align: center; scroll-snap-stop: always; border-radius: 26px; overflow: hidden; border: 1px solid var(--pl-c-border); background: linear-gradient(180deg, var(--pl-c-soft), #111a2e 55%); transform: scale(calc(1 - var(--a, 0) * .07)); opacity: calc(1 - var(--a, 0) * .4); display: grid; }
.pl-shot { display: grid; grid-template-rows: auto 1fr; aspect-ratio: 4 / 3; overflow: hidden; color: inherit; text-decoration: none; }
.pl-shot-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: var(--surface-2); }
.pl-shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.pl-shot-bar span { flex: 1; margin-inline-start: 6px; text-align: center; font-size: .7rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-shot-view { position: relative; overflow: hidden; background: var(--bg-soft); }
.pl-shot-img { position: absolute; inset: 0; transform: translateX(calc(var(--o, 0) * -7%)) scale(1.14); will-change: transform; }
.pl-shot-img img, .pl-shot-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-slide-body { padding: 16px 18px 20px; display: grid; gap: 10px; }
.pl-slide-body h3 { margin: 0; font-size: 1.4rem; }
.pl-nav { position: absolute; top: 34%; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(11,19,32,.8); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); display: grid; place-items: center; }
.pl-nav[hidden] { display: none; }
.pl-nav-prev { inset-inline-start: 8px; } .pl-nav-next { inset-inline-end: 8px; }
.pl-dots { display: flex; justify-content: center; }
.pl-dots[hidden] { display: none; }
.pl-dots button { width: 26px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pl-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); transition: width .3s var(--ease), background .3s; }
.pl-dots button[aria-current="true"]::before { width: 24px; background: var(--accent-2); }
@container (min-width: 720px) { .pl-slide { flex-basis: 44%; } .pl-swipe { padding-inline: 28%; scroll-padding-inline: 28%; } }

/* 6 — Browser window */
.pl-browser { width: 100%; max-width: 980px; margin-inline: auto; }
.pl-win-tabs { display: flex; gap: 4px; padding: 8px 8px 0; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 18px 18px 0 0; background: #0a1120; }
.pl-win-tabs[hidden] { display: none; }
.pl-win-tabs::-webkit-scrollbar { display: none; }
.pl-win-tabs button { flex: none; min-height: 44px; max-width: 220px; padding: 0 16px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--text-muted); font: inherit; font-size: .9rem; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background var(--dur-fast), color var(--dur-fast); }
.pl-win-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-win-tabs button[aria-selected="true"] { background: #131c31; color: var(--text); }
.pl-win-tabs button:hover:not([aria-selected="true"]) { background: rgba(255,255,255,.05); }
.pl-win-tabs button:focus-visible { outline: 2px solid var(--pl-c); outline-offset: -2px; }
.pl-fav { width: 10px; height: 10px; border-radius: 50%; background: var(--pl-c); flex: none; }
.pl-win { border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; background: #131c31; margin-bottom: 16px; }
.pl-win[hidden] { display: none; }
.pl-tabs-on .pl-win { border-radius: 0 0 18px 18px; margin-bottom: 0; animation: pl-win-in .45s var(--ease); }
@keyframes pl-win-in { from { opacity: 0; transform: translateY(8px); } }
.pl-win-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.pl-win-ctl { display: flex; gap: 6px; } .pl-win-ctl i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.pl-win-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.3); color: var(--text-muted); font-size: .75rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-win-url svg { flex: none; color: var(--accent-2); }
.pl-win-view { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.pl-win-pan { position: absolute; inset: 0; animation: pl-pan 18s ease-in-out infinite alternate; }
.pl-win-pan img, .pl-win-pan svg { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes pl-pan { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.2) translateY(-7%); } }
.pl-win-load { position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--pl-c); transform: scaleX(0); transform-origin: right; }
.pl-win.is-loading .pl-win-load { animation: pl-load .9s var(--ease) forwards; }
@keyframes pl-load { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.pl-win-info { padding: 18px; display: grid; gap: 14px; }
.pl-win-info h3 { margin: 8px 0 4px; font-size: 1.35rem; }
.pl-win-info > div { display: grid; gap: 8px; justify-items: start; }
.pl-win-info h3 { margin: 0; }
@container (min-width: 720px) { .pl-win-view { aspect-ratio: 16 / 8; } .pl-win-info { grid-template-columns: 1fr auto; align-items: end; padding: 22px 26px; } }

/* 7 — App screen + bottom sheet */
.pl-app { position: relative; height: min(680px, 88dvh); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 26px; border: 1px solid var(--border); background: var(--bg); isolation: isolate; }
.pl-app-top { padding: 14px 14px 10px; border-bottom: 1px solid var(--border); background: rgba(11,19,32,.9); }
.pl-feed { list-style: none; margin: 0; padding: 6px 10px calc(14px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 2px; }
.pl-feed-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 14px; min-height: 84px; padding: 8px 10px; border-radius: 18px; color: var(--text); text-decoration: none; transition: background var(--dur-fast), transform var(--dur-fast) var(--ease); }
.pl-feed-row:hover, .pl-feed-row:focus-visible { background: var(--surface); }
.pl-feed-thumb { position: relative; width: 68px; height: 68px; border-radius: 16px; overflow: hidden; border: 1px solid var(--pl-c-border); }
.pl-feed-text { display: grid; gap: 1px; min-width: 0; }
.pl-feed-text strong { font-size: 1.05rem; }
.pl-chev { color: var(--text-faint); }
.pl-backdrop { position: absolute; inset: 0; z-index: 10; background: rgba(3,6,14,.62); opacity: 0; transition: opacity .3s; }
.pl-backdrop[hidden], .pl-sheet[hidden] { display: none; }
.pl-app.sheet-open .pl-backdrop { opacity: 1; }
.pl-sheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 11; max-height: 90%; overflow-y: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; background: #111a2e; border-top: 1px solid var(--border-strong); box-shadow: 0 -20px 60px -20px #000; transform: translateY(100%); transition: transform .42s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0px); }
.pl-app.sheet-open .pl-sheet { transform: translateY(var(--drag, 0px)); }
.pl-sheet.is-dragging { transition: none; }
.pl-sheet-grab { position: sticky; top: 0; z-index: 2; height: 30px; background: linear-gradient(rgba(11,19,32,.55), transparent); display: grid; place-items: center; touch-action: none; cursor: grab; }
.pl-sheet-grab span { width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pl-sheet-close { position: absolute; z-index: 3; top: 4px; inset-inline-end: 6px; width: 44px; height: 44px; border: 0; background: radial-gradient(circle, rgba(11,19,32,.8) 0 15px, transparent 16px); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.pl-sheet-hero { position: relative; aspect-ratio: 16 / 10; margin-top: -30px; overflow: hidden; }
.pl-sheet-text { padding: 18px 18px 22px; display: grid; gap: 12px; }
.pl-sheet-text h3 { margin: 0; font-size: 1.5rem; }
.pl-sheet-text p { margin: 0; color: var(--text-muted); line-height: 1.9; }

/* 8 — Reels */
.pl-reels-wrap { position: relative; width: 100%; max-width: 440px; margin-inline: auto; height: min(700px, 82dvh); border-radius: 28px; overflow: hidden; border: 1px solid var(--border); }
.pl-reels { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.pl-reels::-webkit-scrollbar { display: none; }
.pl-reels:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-2); }
.pl-reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--bg-soft); }
.pl-reel .pl-media img, .pl-reel .pl-media svg { transform: scale(1.04); transition: transform 6s linear; }
.pl-reel.is-active .pl-media img, .pl-reel.is-active .pl-media svg { transform: scale(1.14); }
.pl-reel .pl-scrim { background: linear-gradient(180deg, rgba(6,10,20,.35), transparent 22%, rgba(6,10,20,.55) 50%, rgba(6,10,20,.97)); }
.pl-reel-info { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; justify-items: start; }
.pl-reel-info h3 { margin: 0; font-size: 1.9rem; }
.pl-reel-count { position: absolute; top: 22px; inset-inline-end: 16px; z-index: 3; font-size: .8rem; color: var(--text); background: rgba(11,19,32,.6); padding: 2px 10px; border-radius: 99px; }
.pl-story { position: absolute; z-index: 5; top: 10px; inset-inline: 12px; display: flex; gap: 4px; pointer-events: none; }
.pl-story i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); transition: background .3s; }
.pl-story i.on { background: #fff; }
.pl-swipe-hint { position: absolute; z-index: 5; inset-inline: 0; top: 46%; display: flex; justify-content: center; align-items: center; gap: 8px; color: #fff; font-size: .9rem; pointer-events: none; animation: pl-hint 1.8s ease-in-out infinite; transition: opacity .4s; text-shadow: 0 2px 10px #000; }
.pl-swipe-hint.off { opacity: 0; animation: none; }
@keyframes pl-hint { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .pl-win-pan, .pl-swipe-hint, .pl-tabs-on .pl-win { animation: none !important; }
  .pl-sheet, .pl-backdrop, .pl-reel .pl-media img { transition: none !important; }
}
