/* =====================================================================
   Yatra Techs — Portfolio page (/portfolio/)
   Loaded only by portfolio/index.html, after the shared yt-home.css.
   Every selector uses the yt-pf- prefix (the homepage's own portfolio
   section uses yt-portfolio-, so the two never collide).
   ===================================================================== */

/* ---------- Hero: keeps the page's dark-purple neon atmosphere ---------- */
.yt-pf-hero {
  background:
    radial-gradient(70% 70% at 82% 30%, rgba(121, 61, 206, .34), transparent 62%),
    radial-gradient(50% 60% at 8% 90%, rgba(240, 24, 131, .16), transparent 60%),
    #0A0B22;
}
.yt-pf-hero .yt-ambient .a3 { background: radial-gradient(circle, rgba(121, 61, 206, .42), transparent 62%); }
.yt-pf-title { font-size: clamp(44px, 6.6vw, 92px); line-height: 1; }
.yt-pf-kinds { margin-top: 34px; }
.yt-pf-hero [data-pf-reel][hidden] { display: none; }

/* collage of real work */
.yt-pf-visual .yt-hero-stage { aspect-ratio: 1 / 0.9; }
.yt-pf-h img { display: block; width: 100%; height: auto; }
.yt-pf-h--brochure { left: 40%; top: 0; width: 58%; }
.yt-pf-h--brochure img { border-radius: 8px; transform: rotate(5deg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12); }
.yt-pf-h--web { left: 0; top: 17%; width: 70%; }
.yt-pf-h--poster { left: 3%; top: 57%; width: 27%; }
.yt-pf-h--poster img { border-radius: 10px; transform: rotate(-6deg); box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); }
.yt-pf-h--video { left: 35%; top: 66%; width: 36%; }
.yt-pf-h--phone { right: 1%; top: 33%; width: 25%; }
.yt-pf-h--web .yt-pf-browser { box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(8, 123, 255, .55); }

/* reusable frames */
.yt-pf-browser { border-radius: 12px; overflow: hidden; background: #0B1226; border: 1px solid var(--yt-border-2); }
.yt-pf-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #141D36; border-bottom: 1px solid var(--yt-border); }
.yt-pf-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.yt-pf-bar i:first-child { background: var(--yt-pink); }
.yt-pf-browser img { display: block; width: 100%; height: auto; }

.yt-pf-phone {
  aspect-ratio: 9 / 17.5; border-radius: 24px; padding: 7px; background: #0B1226; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 34px 70px -22px rgba(0, 0, 0, .95), 0 0 50px -16px rgba(240, 24, 131, .6);
}
.yt-pf-phone img { border-radius: 14px; }

.yt-pf-screen { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--yt-border-2); box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .9); }
.yt-pf-screen img { display: block; width: 100%; height: auto; }
.yt-pf-play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; padding-left: 3px; color: #fff;
  background: var(--yt-grad-pink); box-shadow: 0 0 0 8px rgba(240, 24, 131, .22), 0 12px 30px -8px rgba(240, 24, 131, .9);
  transition: transform .35s var(--yt-ease);
}
.yt-pf-h .yt-pf-play { width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: 12px; box-shadow: 0 0 0 6px rgba(240, 24, 131, .22); }

@media (max-width: 1079px) {
  .yt-pf-visual { max-width: 560px; }
}

/* ---------- Work section ---------- */
.yt-pf-head { align-items: flex-end; }
.yt-pf-intro { max-width: 40ch; color: var(--yt-text-2); }

/* filter bar: sticks under the navigation while browsing */
.yt-pf-filterbar {
  position: sticky; top: var(--yt-nav-h); z-index: 5;
  margin-inline: calc(var(--yt-gutter) * -1); padding: 12px var(--yt-gutter);
  background: rgba(16, 24, 46, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.yt-pf-filterbar.is-stuck { border-bottom-color: var(--yt-border); }
.yt-pf-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.yt-pf-filter {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; flex-shrink: 0;
  font: 600 14px/1 var(--yt-font-head); color: #E3E9F5; white-space: nowrap; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--yt-border-2);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--yt-ease), box-shadow .25s;
}
.yt-pf-filter i { font-size: 13px; color: var(--yt-pink-2); transition: color .25s; }
.yt-pf-filter:hover { border-color: rgba(255, 59, 157, .55); background: rgba(240, 24, 131, .08); transform: translateY(-1px); }
.yt-pf-filter:focus-visible { outline: 2px solid var(--yt-pink-2); outline-offset: 3px; }
.yt-pf-filter.is-active { background: var(--yt-grad-pink); border-color: transparent; color: #fff; box-shadow: 0 12px 28px -12px rgba(240, 24, 131, .9); }
.yt-pf-filter.is-active i { color: #fff; }
.yt-pf-num {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--yt-text-2); background: rgba(255, 255, 255, .08);
}
.yt-pf-filter.is-active .yt-pf-num { color: #fff; background: rgba(255, 255, 255, .22); }
.yt-pf-filter[hidden] { display: none; }

@media (max-width: 899px) {
  /* one swipeable row on small screens */
  .yt-pf-filters {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--yt-gutter) * -1); padding-inline: var(--yt-gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--yt-gutter), #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--yt-gutter), #000 calc(100% - 28px), transparent);
  }
  .yt-pf-filters::-webkit-scrollbar { display: none; }
  .yt-pf-filter { scroll-snap-align: start; min-height: 42px; padding: 0 15px; font-size: 13.5px; }
}

.yt-pf-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grid + cards ---------- */
.yt-pf-grid { margin-top: 28px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .yt-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .yt-pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1320px) { .yt-pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.yt-pf-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--yt-radius); overflow: hidden;
  background: var(--yt-card); border: 1px solid var(--yt-border);
  transition: transform .45s var(--yt-ease), border-color .3s, box-shadow .45s var(--yt-ease);
}
.yt-pf-card[hidden] { display: none; }
.yt-pf-card:hover { transform: translateY(-6px); border-color: rgba(255, 59, 157, .4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(240, 24, 131, .12); }
.yt-pf-card:focus-within { border-color: rgba(255, 59, 157, .7); }
html.yt-pf-anim .yt-pf-card.is-pending { opacity: 0; transform: translateY(24px); }
html.yt-pf-anim .yt-pf-card.is-in { transition: opacity .6s var(--yt-ease), transform .6s var(--yt-ease), border-color .3s, box-shadow .45s var(--yt-ease); }

/* media compositions (consistent 4:3 frame for every card) */
.yt-pf-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--yt-border);
  background: radial-gradient(90% 90% at 15% 0%, rgba(240, 24, 131, .26), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(121, 61, 206, .3), transparent 60%), var(--yt-card-2);
}
.yt-pf-media img { display: block; }

.yt-pf-media--web { padding: 8% 7% 0; display: flex; align-items: flex-end;
  background: radial-gradient(90% 90% at 0% 0%, rgba(8, 123, 255, .32), transparent 60%), radial-gradient(80% 80% at 100% 100%, rgba(121, 61, 206, .3), transparent 60%), var(--yt-card-2); }
.yt-pf-media--web .yt-pf-browser { width: 100%; border-radius: 10px 10px 0 0; border-bottom: 0; box-shadow: 0 -10px 40px -16px rgba(0, 0, 0, .8); transition: transform .6s var(--yt-ease); }
.yt-pf-media--web .yt-pf-browser img { aspect-ratio: 16 / 9.4; object-fit: cover; object-position: left top; }
.yt-pf-card:hover .yt-pf-media--web .yt-pf-browser { transform: translateY(-6px); }

.yt-pf-piece {
  position: absolute; left: 50%; top: 50%; height: 80%; width: auto; max-width: 78%; object-fit: contain;
  border-radius: 8px; transform: translate(-50%, -50%); box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .6s var(--yt-ease);
}
.yt-pf-media.is-wide .yt-pf-piece { height: auto; width: 80%; max-width: none; }
.is-stack .yt-pf-piece { left: 56%; transform: translate(-50%, -50%) rotate(3deg); }
.is-stack .yt-pf-piece--back { left: 40%; transform: translate(-50%, -50%) rotate(-7deg) scale(.9); filter: brightness(.8); }
.yt-pf-card:hover .yt-pf-piece { transform: translate(-50%, -52%) scale(1.04); }
.yt-pf-card:hover .is-stack .yt-pf-piece { transform: translate(-46%, -52%) rotate(4deg) scale(1.03); }
.yt-pf-card:hover .is-stack .yt-pf-piece--back { transform: translate(-60%, -50%) rotate(-10deg) scale(.9); }
.yt-pf-media--brochure { background: radial-gradient(90% 90% at 100% 0%, rgba(8, 123, 255, .24), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(240, 24, 131, .22), transparent 60%), var(--yt-card-2); }
.yt-pf-media--brochure.is-wide .yt-pf-piece { width: 84%; transform: translate(-50%, -50%) rotate(-2deg); }
.yt-pf-card:hover .yt-pf-media--brochure.is-wide .yt-pf-piece { transform: translate(-50%, -52%) rotate(0deg) scale(1.03); }

.yt-pf-media--video { display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 40%, rgba(121, 61, 206, .35), transparent 65%), #0B1226; }
.yt-pf-media--video .yt-pf-screen { width: 84%; }
.yt-pf-media--video .yt-pf-screen img { aspect-ratio: 16 / 9.6; object-fit: cover; }
.yt-pf-card:hover .yt-pf-play { transform: scale(1.12); }
/* vertical videos uploaded in the admin panel: shown in a phone frame */
.yt-pf-media--vvideo { display: grid; place-items: center; background: #0B1226; }
.yt-pf-media--vvideo::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat; filter: blur(24px) brightness(.5); }
.yt-pf-media--vvideo .yt-pf-phone { position: relative; height: 90%; width: auto; aspect-ratio: 9 / 16; padding: 5px; border-radius: 18px; }
.yt-pf-media--vvideo .yt-pf-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.yt-pf-media--vvideo .yt-pf-play { z-index: 1; }
/* uploaded images without a known layout */
.yt-pf-media--upload img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--yt-ease); }
.yt-pf-card:hover .yt-pf-media--upload img { transform: scale(1.05); }
.yt-pf-media--blank { background: var(--yt-grad); }

/* illustrative software UI (no product screenshots exist yet) */
.yt-pf-media--ui { display: grid; place-items: end center; padding: 9% 9% 0;
  background: radial-gradient(90% 90% at 0% 0%, rgba(240, 24, 131, .35), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(8, 123, 255, .32), transparent 60%), var(--yt-card-2); }
.yt-pf-note {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #E3E9F5;
  background: rgba(8, 13, 32, .7); border: 1px solid var(--yt-border-2);
}
.yt-pf-app { width: 100%; height: 100%; border-radius: 12px 12px 0 0; background: #0B1226; border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.yt-pf-app-top { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.yt-pf-app-top i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.yt-pf-app-top i:first-child { background: var(--yt-pink); }
.yt-pf-app-top span { margin-left: 8px; font: 700 10px/1 var(--yt-font-head); letter-spacing: .12em; color: var(--yt-muted); }
.yt-pf-app-body { flex: 1; display: grid; grid-template-columns: 18% 1fr; gap: 8px; padding: 8px; min-height: 0; }
.yt-pf-app-side { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .035); }
.yt-pf-app-side i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.yt-pf-app-side i.on { background: rgba(240, 24, 131, .6); }
.yt-pf-app-main { display: grid; grid-template-rows: auto 1fr auto; gap: 7px; min-height: 0; }
.yt-pf-app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.yt-pf-app-kpis span { height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); position: relative; }
.yt-pf-app-kpis span::after { content: ""; position: absolute; left: 6px; bottom: 6px; height: 4px; width: 60%; border-radius: 3px; background: var(--yt-grad-pink); }
.yt-pf-app-kpis span:nth-child(2)::after { background: var(--yt-grad-blue); width: 45%; }
.yt-pf-app-chart { display: flex; align-items: flex-end; gap: 5px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .035); min-height: 0; }
.yt-pf-app-chart i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--yt-pink-2), rgba(121, 61, 206, .6)); }
.yt-pf-app-chart i:nth-child(even) { background: linear-gradient(180deg, #4FA2FF, rgba(86, 61, 206, .55)); }
.yt-pf-app-rows { display: grid; gap: 5px; }
.yt-pf-app-rows span { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.yt-pf-app-rows span + span { width: 70%; }

/* card text */
.yt-pf-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.yt-pf-cat {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.2 var(--yt-font-head); letter-spacing: .08em; text-transform: uppercase;
  color: var(--yt-pink-2); background: rgba(240, 24, 131, .1); border: 1px solid rgba(240, 24, 131, .22);
}
.yt-pf-card[data-cat="web-designs"] .yt-pf-cat, .yt-pf-card[data-cat="softwares"] .yt-pf-cat { color: #5AA8FF; background: rgba(8, 123, 255, .1); border-color: rgba(8, 123, 255, .25); }
.yt-pf-card[data-cat="brochures"] .yt-pf-cat, .yt-pf-card[data-cat="videos"] .yt-pf-cat { color: #B89BFF; background: rgba(121, 61, 206, .14); border-color: rgba(121, 61, 206, .32); }
.yt-pf-body h3 { margin-top: 12px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.yt-pf-open { color: #fff; text-decoration: none; }
/* stretched link: the whole card (media + text) opens the project */
.yt-pf-open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.yt-pf-card { cursor: pointer; }
.yt-pf-open:focus-visible { outline: none; }
.yt-pf-card:has(.yt-pf-open:focus-visible) { outline: 2px solid var(--yt-pink-2); outline-offset: 3px; }
.yt-pf-body p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--yt-muted); }
.yt-pf-view { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--yt-font-head); color: #E3E9F5; transition: color .25s; }
.yt-pf-view i { font-size: 11px; color: var(--yt-pink-2); transition: transform .3s var(--yt-ease); }
.yt-pf-card:hover .yt-pf-view { color: var(--yt-pink-2); }
.yt-pf-card:hover .yt-pf-view i { transform: translateX(4px); }

.yt-pf-empty { margin-top: 32px; text-align: center; color: var(--yt-muted); }
.yt-pf-more-wrap { margin-top: 40px; display: flex; justify-content: center; }
.yt-pf-more-wrap .yt-btn[hidden] { display: none; }

/* ---------- Project detail / video viewer ---------- */
.yt-pf-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.yt-pf-modal[hidden] { display: none; }
.yt-pf-modal-overlay { position: absolute; inset: 0; background: rgba(4, 7, 18, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.yt-pf-modal-panel {
  position: relative; width: min(1200px, 100%); height: min(88vh, 820px); display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  border-radius: var(--yt-radius-lg); overflow: hidden; background: var(--yt-bg-2); border: 1px solid var(--yt-border-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .35s var(--yt-ease), transform .45s var(--yt-ease);
}
.yt-pf-modal.is-open .yt-pf-modal-overlay { opacity: 1; }
.yt-pf-modal.is-open .yt-pf-modal-panel { opacity: 1; transform: none; }
.yt-pf-modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--yt-border-2);
  display: grid; place-items: center; color: #fff; font-size: 17px; background: rgba(8, 13, 32, .75); cursor: pointer; transition: background .25s, transform .25s;
}
.yt-pf-modal-close:hover { background: var(--yt-pink); transform: rotate(90deg); }

.yt-pf-viewer { position: relative; min-height: 0; background: radial-gradient(70% 70% at 50% 40%, rgba(121, 61, 206, .22), transparent 70%), #050914; }
.yt-pf-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 72px; }
.yt-pf-stage img, .yt-pf-stage video { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9); animation: yt-pf-in .45s var(--yt-ease); }
.yt-pf-stage video { background: #000; }
.yt-pf-stage video.is-h { width: min(100%, 860px); aspect-ratio: 16 / 9.6; }
.yt-pf-stage video.is-v { height: 100%; width: auto; aspect-ratio: 9 / 16; }
.yt-pf-stage .yt-pf-app { width: min(100%, 640px); height: auto; aspect-ratio: 16 / 10; border-radius: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.yt-pf-stage .yt-pf-note { left: 50%; top: auto; bottom: 22px; transform: translateX(-50%); }
@keyframes yt-pf-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.yt-pf-nav {
  position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid var(--yt-border-2);
  display: grid; place-items: center; color: #fff; background: rgba(23, 36, 64, .85); cursor: pointer; transition: background .25s, opacity .25s;
}
.yt-pf-nav:hover { background: var(--yt-pink); }
.yt-pf-nav--prev { left: 14px; }
.yt-pf-nav--next { right: 14px; }
.yt-pf-nav[hidden], .yt-pf-counter[hidden] { display: none; }
.yt-pf-counter { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font: 600 12px/1 var(--yt-font-head); color: #E3E9F5; background: rgba(8, 13, 32, .75); border: 1px solid var(--yt-border); }

.yt-pf-side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 32px 28px 28px; border-left: 1px solid var(--yt-border); }
.yt-pf-side .yt-pf-cat { margin-right: 52px; }
.yt-pf-side h2 { margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.2; }
.yt-pf-m-sub { margin-top: 6px; font: 600 14px/1.4 var(--yt-font-head); color: var(--yt-pink-2); }
.yt-pf-m-desc { margin-top: 14px; font-size: 15px; line-height: 1.65; }
.yt-pf-m-desc:empty, .yt-pf-m-sub:empty { display: none; }
.yt-pf-thumbs { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.yt-pf-thumbs:empty { display: none; }
.yt-pf-thumb {
  position: relative; aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--yt-card-2);
  border: 2px solid transparent; opacity: .65; transition: opacity .25s, border-color .25s;
}
.yt-pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-pf-thumb:hover { opacity: 1; }
.yt-pf-thumb[aria-current="true"] { opacity: 1; border-color: var(--yt-pink-2); }
.yt-pf-thumb .fa-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.yt-pf-thumb-label { display: block; }
.yt-pf-m-actions { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.yt-pf-m-actions .yt-btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 959px) {
  .yt-pf-modal { padding: 0; }
  .yt-pf-modal-panel { width: 100%; height: 100%; border-radius: 0; border: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 58%) minmax(0, 1fr); }
  .yt-pf-stage { padding: 56px 16px 44px; }
  .yt-pf-nav { width: 40px; height: 40px; margin-top: -20px; }
  .yt-pf-nav--prev { left: 8px; }
  .yt-pf-nav--next { right: 8px; }
  .yt-pf-side { border-left: 0; border-top: 1px solid var(--yt-border); padding: 22px 20px 24px; }
  .yt-pf-side .yt-pf-cat { margin-right: 0; }
}

/* ---------- Small screens / reduced motion ---------- */
@media (max-width: 760px) {
  .yt-pf-filterbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 24, 46, .97); }
}
@media (prefers-reduced-motion: reduce) {
  html.yt-pf-anim .yt-pf-card.is-pending { opacity: 1; transform: none; }
  .yt-pf-stage img, .yt-pf-stage video { animation: none; }
}
