/* Portfolio and project media enhancements. Scoped to avoid changing other pages. */
[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters {
  position: sticky;
  top: 92px;
  z-index: 12;
  width: min(100%, 1180px);
  padding: 8px;
  border: 1px solid rgba(53, 240, 227, 0.14);
  border-radius: 22px;
  background: rgba(5, 16, 24, 0.88);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button {
  display: inline-flex;
  align-items: center;
  flex: 1 1 170px;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 15px;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 10px;
  opacity: 0.68;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button.is-active {
  box-shadow: 0 10px 26px rgba(35, 198, 189, 0.16);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__card {
  grid-column: auto;
  min-width: 0;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__media {
  height: clamp(220px, 22vw, 290px);
  background:
    radial-gradient(circle at 78% 18%, rgba(53, 240, 227, 0.16), transparent 42%),
    linear-gradient(135deg, #10242d, #07131d 65%);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__media--contain {
  padding: 10px;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__media--contain img {
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__card:hover .moeen-portfolio-showcase__media--contain img {
  transform: scale(1.015);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__content {
  min-height: 300px;
}

/* Inline PDF library */
[data-scope="moeen-project-pdf-library"] .moeen-project-media__shell,
[data-scope="moeen-project-video-library"] .moeen-project-media__shell {
  overflow: hidden;
  border: 1px solid rgba(53, 240, 227, 0.2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(14, 37, 47, 0.94), rgba(5, 16, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.2);
}

.moeen-project-media__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 40px);
  border-bottom: 1px solid rgba(53, 240, 227, 0.12);
}

.moeen-project-media__head h2 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 46px); }
.moeen-project-media__head p { max-width: 620px; margin: 10px 0 0; color: var(--muted); }

.moeen-pdf-library__layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  min-height: 680px;
}

.moeen-pdf-library__list {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 22px;
  border-inline-end: 1px solid rgba(53, 240, 227, 0.12);
}

.moeen-pdf-library__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid rgba(53, 240, 227, 0.12);
  border-radius: 14px;
  color: var(--text);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.moeen-pdf-library__item::before {
  content: "PDF";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(217, 175, 85, 0.12);
  color: var(--gold);
  font: 800 9px/1 sans-serif;
}

.moeen-pdf-library__item:hover,
.moeen-pdf-library__item.is-active {
  transform: translateX(-3px);
  border-color: rgba(53, 240, 227, 0.4);
  background: rgba(53, 240, 227, 0.08);
}

.moeen-pdf-library__viewer { min-width: 0; padding: 14px; background: rgba(0, 0, 0, 0.18); }
.moeen-pdf-library__viewer iframe { display: block; width: 100%; height: 650px; border: 0; border-radius: 18px; background: #fff; }

/* Video cards render a branded preview before loading YouTube. */
.moeen-video-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(22px, 4vw, 40px);
}

.moeen-video-card {
  overflow: hidden;
  border: 1px solid rgba(53, 240, 227, 0.16);
  border-radius: 22px;
  background: rgba(4, 15, 23, 0.72);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.moeen-video-card:hover { transform: translateY(-5px); border-color: rgba(53, 240, 227, 0.4); box-shadow: 0 22px 50px rgba(0,0,0,.24); }
.moeen-video-card__preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; background: #06151e; cursor: pointer; }
.moeen-video-card__preview img { width: 100%; height: 100%; object-fit: cover; opacity: .76; transition: transform .45s ease, opacity .25s ease; }
.moeen-video-card:hover img { transform: scale(1.035); opacity: .9; }
.moeen-video-card__play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(35,198,189,.9); color: #06131b; font-size: 25px; box-shadow: 0 0 0 10px rgba(35,198,189,.12); }
.moeen-video-card__body { padding: 20px; }
.moeen-video-card__body span { color: var(--gold); font-size: 12px; font-weight: 900; }
.moeen-video-card__body h3 { margin: 8px 0 6px; font-size: 22px; }
.moeen-video-card__body p { margin: 0; color: var(--muted); }

.moeen-media-dialog { width: min(1120px, calc(100% - 28px)); padding: 0; border: 1px solid rgba(53,240,227,.3); border-radius: 24px; background: #07131d; color: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.moeen-media-dialog::backdrop { background: rgba(0, 6, 10, .84); backdrop-filter: blur(8px); }
.moeen-media-dialog__close { position: absolute; top: 14px; left: 14px; z-index: 3; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(5,16,24,.82); color: #fff; font-size: 24px; cursor: pointer; }
.moeen-media-dialog__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; translate: 0 -50%; border: 1px solid rgba(53,240,227,.32); border-radius: 50%; background: rgba(5,16,24,.86); color: var(--teal); font-size: 24px; cursor: pointer; }
.moeen-media-dialog__nav--prev { right: 14px; }
.moeen-media-dialog__nav--next { left: 14px; }
.moeen-media-dialog__counter { position: absolute; top: 18px; right: 18px; z-index: 3; min-width: 62px; padding: 7px 10px; border: 1px solid rgba(217,175,85,.28); border-radius: 999px; background: rgba(5,16,24,.82); color: var(--gold); text-align: center; font-size: 12px; font-weight: 900; }
.moeen-media-dialog__nav[hidden], .moeen-media-dialog__counter[hidden] { display: none; }
.moeen-media-dialog__body { display: grid; place-items: center; min-height: 70vh; padding: 34px; }
.moeen-media-dialog__body img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 16px; }
.moeen-media-dialog__body iframe { width: min(100%, 1080px); aspect-ratio: 16/9; border: 0; border-radius: 16px; }
.moeen-media-dialog__caption { padding: 0 34px 24px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moeen-pdf-library__layout { grid-template-columns: 1fr; }
  .moeen-pdf-library__list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-inline-end: 0; border-bottom: 1px solid rgba(53,240,227,.12); }
}

@media (max-width: 640px) {
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters { position: static; flex-wrap: nowrap; justify-content: flex-start; border-radius: 18px; }
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button { flex: 0 0 auto; }
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__grid,
  .moeen-video-library__grid { grid-template-columns: 1fr; }
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__media { height: 240px; }
  .moeen-pdf-library__list { grid-template-columns: 1fr; }
  .moeen-pdf-library__viewer iframe { height: 68vh; }
  .moeen-project-media__head { align-items: start; flex-direction: column; }
  .moeen-media-dialog__nav { top: auto; bottom: 18px; translate: none; }
  .moeen-media-dialog__body { min-height: 62vh; padding: 60px 14px 76px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-scope="moeen-portfolio-showcase"] *,
  [data-scope="moeen-project-video-library"] * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Codex 20260716: calmer portfolio cards, compact filters and modern project media. */
[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters {
  position: relative;
  top: auto;
  display: flex;
  gap: 10px;
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 6px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 240, 227, .09), transparent 34%),
    rgba(4, 18, 27, .72);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button {
  flex: 1 1 150px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid rgba(53, 240, 227, .13);
  border-radius: 13px;
  color: rgba(235, 248, 248, .76);
  font-size: 13px;
  line-height: 1.35;
  background: rgba(255, 255, 255, .025);
  box-shadow: none;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button span {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 9px;
  color: rgba(53, 240, 227, .86);
  background: rgba(53, 240, 227, .06);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button:hover,
[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button.is-active {
  color: #06131d;
  border-color: rgba(217, 175, 85, .28);
  background: linear-gradient(135deg, rgba(217, 175, 85, .86), rgba(53, 240, 227, .88));
  box-shadow: 0 14px 34px rgba(35, 198, 189, .13);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters button.is-active span {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .12) !important;
  opacity: 1;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1120px);
  margin-inline: auto;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__card {
  border-radius: 22px;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__media {
  height: clamp(180px, 17vw, 230px);
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__content {
  min-height: 238px;
  padding: 24px 22px 22px;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__content h3 {
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.38;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__content p {
  font-size: 14px;
  line-height: 1.85;
}

[data-scope="moeen-project-pdf-library"] .moeen-project-media__shell,
[data-scope="moeen-project-video-library"] .moeen-project-media__shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.moeen-project-media__head {
  justify-content: center;
  padding: 0 0 clamp(24px, 4vw, 42px);
  border-bottom: 0;
  text-align: center;
}

.moeen-project-media__head > div {
  display: grid;
  justify-items: center;
}

.moeen-project-media__head h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 52px);
}

.moeen-project-media__head p {
  max-width: 720px;
  margin-inline: auto;
}

.moeen-project-media__head > .moeen-portfolio-showcase__category {
  position: absolute;
  inset: auto 0 auto auto;
  transform: translateY(8px);
}

.moeen-pdf-library__layout {
  grid-template-columns: minmax(210px, .28fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  align-items: stretch;
}

.moeen-pdf-library__list {
  gap: 10px;
  padding: 0;
  border-inline-end: 0;
}

.moeen-pdf-library__item {
  position: relative;
  grid-template-columns: 1fr 40px;
  min-height: 58px;
  padding: 10px 14px;
  overflow: hidden;
  border-color: rgba(53, 240, 227, .15);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(53, 240, 227, .055), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.moeen-pdf-library__item::before {
  grid-column: 2;
  grid-row: 1;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(217, 175, 85, .13);
  box-shadow: inset 0 0 0 1px rgba(217, 175, 85, .22);
}

.moeen-pdf-library__item::after {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(#35f0e3, #d9af55);
  opacity: 0;
  transition: opacity .22s ease;
}

.moeen-pdf-library__item:hover,
.moeen-pdf-library__item.is-active {
  transform: translateX(-2px);
  border-color: rgba(53, 240, 227, .42);
  background:
    radial-gradient(circle at 100% 50%, rgba(53, 240, 227, .12), transparent 42%),
    rgba(7, 31, 40, .76);
}

.moeen-pdf-library__item.is-active::after {
  opacity: 1;
}

.moeen-pdf-library__viewer {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(53, 240, 227, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(53, 240, 227, .09), transparent 32%),
    rgba(4, 18, 27, .72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.moeen-pdf-library__viewer iframe {
  height: min(72vh, 680px);
  min-height: 520px;
  border-radius: 18px;
}

.moeen-video-library__grid {
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 0;
  gap: 18px;
}

.moeen-video-card {
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 8%, rgba(53, 240, 227, .12), transparent 38%),
    rgba(5, 19, 27, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.moeen-video-card__preview {
  border-radius: 24px 24px 0 0;
}

.moeen-video-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(2, 13, 19, .82)),
    radial-gradient(circle at 50% 50%, rgba(53, 240, 227, .13), transparent 38%);
  pointer-events: none;
}

.moeen-video-card__play {
  z-index: 2;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #35f0e3, #23c6bd);
  box-shadow: 0 0 0 10px rgba(53, 240, 227, .11), 0 16px 34px rgba(0,0,0,.25);
}

.moeen-video-card__body {
  display: grid;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.moeen-video-card__body h3 {
  font-size: 21px;
}

.moeen-media-dialog {
  width: min(1040px, calc(100% - 32px));
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 240, 227, .12), transparent 35%),
    #06121a;
}

.moeen-media-dialog__body {
  min-height: min(72vh, 720px);
  padding: 64px 34px 22px;
}

.moeen-media-dialog__body iframe {
  width: min(100%, 980px);
  border-radius: 22px;
  box-shadow: 0 20px 70px rgba(0,0,0,.42);
}

@media (max-width: 900px) {
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moeen-project-media__head > .moeen-portfolio-showcase__category {
    position: static;
    transform: none;
  }

  .moeen-pdf-library__layout {
    grid-template-columns: 1fr;
  }

  .moeen-pdf-library__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__filters {
    overflow-x: auto;
    justify-content: flex-start;
  }

  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__grid,
  .moeen-video-library__grid {
    grid-template-columns: 1fr;
  }

  .moeen-pdf-library__list {
    grid-template-columns: 1fr;
  }
}

/* Codex 20260716 follow-up: compact album, protected media UI, sidebar video tabs. */
[data-scope="moeen-project-value"] {
  display: none !important;
}

/* Live website actions are exclusive to programming projects. */
[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__card--live .moeen-portfolio-showcase__project-link {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-badge {
  position: absolute;
  z-index: 3;
  inset: 16px auto auto 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #eafffd;
  background: rgba(5, 25, 31, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 900;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-badge i,
[data-scope="moeen-project-hero"] .moeen-project-hero__btn--live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35f0e3;
  box-shadow: 0 0 0 4px rgba(53, 240, 227, .1), 0 0 14px rgba(53, 240, 227, .7);
  animation: moeen-live-project-pulse 1.6s ease-in-out infinite alternate;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__actions .moeen-portfolio-showcase__cta {
  margin-top: 0;
  text-decoration: none;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(217, 175, 85, .38);
  border-radius: 999px;
  color: #e6c875;
  background: linear-gradient(135deg, rgba(217, 175, 85, .1), rgba(53, 240, 227, .04));
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-link svg,
[data-scope="moeen-project-hero"] .moeen-project-hero__btn--live svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-link:hover,
[data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 175, 85, .7);
  color: #07131d;
  background: #d9af55;
  box-shadow: 0 12px 26px rgba(217, 175, 85, .16);
}

[data-scope="moeen-project-hero"] .moeen-project-hero__btn--live {
  gap: 9px;
  border-color: rgba(53, 240, 227, .36);
  color: #b9fff9;
  background: linear-gradient(135deg, rgba(53, 240, 227, .1), rgba(217, 175, 85, .06));
}

[data-scope="moeen-project-hero"] .moeen-project-hero__btn--live:hover {
  border-color: #35f0e3;
  color: #06151d;
  background: #35f0e3;
}

[data-scope="moeen-project-hero"] .moeen-project-hero__live-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: rgba(246, 250, 250, .58);
  font: 700 11px/1.5 Consolas, "Courier New", monospace;
  direction: ltr;
  text-decoration: none;
  transition: color .2s ease;
}

[data-scope="moeen-project-hero"] .moeen-project-hero__live-domain span {
  padding: 4px 7px;
  border: 1px solid rgba(53, 240, 227, .25);
  border-radius: 999px;
  color: #35f0e3;
  background: rgba(53, 240, 227, .06);
  font-size: 8px;
  letter-spacing: .08em;
}

[data-scope="moeen-project-hero"] .moeen-project-hero__live-domain:hover {
  color: #b9fff9;
}

[data-scope="moeen-simple-project-cta"] .moeen-simple-project-cta__action .moeen-simple-project-cta__live {
  border-color: rgba(217, 175, 85, .52);
  color: #07131d;
  background: linear-gradient(135deg, #e5c675, #d9af55);
  box-shadow: 0 13px 30px rgba(217, 175, 85, .15);
}

[data-scope="moeen-simple-project-cta"] .moeen-simple-project-cta__action .moeen-simple-project-cta__live:hover {
  border-color: #d9af55;
  color: #d9af55;
  background: transparent;
}

@keyframes moeen-live-project-pulse {
  to { opacity: .55; transform: scale(.82); }
}

@media (max-width: 640px) {
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__actions {
    align-items: stretch;
  }

  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__actions a {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-scope="moeen-portfolio-showcase"] .moeen-portfolio-showcase__live-badge i,
  [data-scope="moeen-project-hero"] .moeen-project-hero__btn--live i {
    animation: none;
  }
}

.moeen-project-media__head > .moeen-portfolio-showcase__category {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 16px;
  padding: 8px 15px;
  border: 1px solid rgba(217, 175, 85, .28);
  border-radius: 999px;
  color: #f3d27a;
  background:
    radial-gradient(circle at 15% 50%, rgba(53, 240, 227, .16), transparent 38%),
    linear-gradient(135deg, rgba(217, 175, 85, .13), rgba(53, 240, 227, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 28px rgba(0, 0, 0, .16);
  font-size: 13px;
  font-weight: 900;
  transform: none;
}

.moeen-project-media__head > .moeen-portfolio-showcase__category::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35f0e3;
  box-shadow: 0 0 12px rgba(53, 240, 227, .52);
}

.moeen-file-tab__num {
  display: inline-grid;
  min-width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 175, 85, .26);
  border-radius: 13px;
  color: #f0c963;
  background:
    radial-gradient(circle at 35% 25%, rgba(217, 175, 85, .26), transparent 46%),
    rgba(217, 175, 85, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  font-size: 12px;
  font-weight: 950;
  direction: ltr;
}

.moeen-file-tab__text {
  min-width: 0;
}

.moeen-pdf-library__item {
  grid-template-columns: minmax(0, 1fr) auto;
  direction: rtl;
}

.moeen-pdf-library__item::before {
  display: none;
}

.moeen-pdf-library__item:hover .moeen-file-tab__num,
.moeen-pdf-library__item.is-active .moeen-file-tab__num,
.moeen-video-tabs__list button:hover .moeen-file-tab__num,
.moeen-video-tabs__list button.is-active .moeen-file-tab__num {
  color: #07131d;
  border-color: rgba(53, 240, 227, .3);
  background: linear-gradient(135deg, #35f0e3, #d9af55);
}

.moeen-pdf-library__viewer {
  position: relative;
  overflow: hidden;
}

.moeen-pdf-library__viewer::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 5;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #06131d, #08212a);
  pointer-events: none;
}

.moeen-pdf-library__shield {
  position: absolute;
  inset: auto 0 0 auto;
  z-index: 6;
  width: 84px;
  height: 84px;
  cursor: default;
}

.moeen-video-library__grid {
  display: none !important;
}

.moeen-video-tabs {
  display: grid;
  grid-template-columns: minmax(220px, .3fr) minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 1060px);
  margin-inline: auto;
  align-items: stretch;
}

.moeen-video-tabs__list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.moeen-video-tabs__list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 240, 227, .15);
  border-radius: 17px;
  color: rgba(238, 248, 248, .84);
  background:
    linear-gradient(135deg, rgba(53, 240, 227, .055), rgba(255, 255, 255, .018));
  font: inherit;
  font-weight: 900;
  text-align: right;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.moeen-video-tabs__list button:hover,
.moeen-video-tabs__list button.is-active {
  transform: translateX(-2px);
  border-color: rgba(53, 240, 227, .42);
  background:
    radial-gradient(circle at 100% 50%, rgba(53, 240, 227, .12), transparent 42%),
    rgba(7, 31, 40, .76);
}

.moeen-video-tabs__stage {
  min-width: 0;
}

.moeen-video-frame {
  overflow: hidden;
  border: 1px solid rgba(53, 240, 227, .2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 240, 227, .1), transparent 34%),
    rgba(5, 18, 27, .78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.moeen-video-frame__preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: #06131d;
  cursor: pointer;
}

.moeen-video-frame__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  filter: saturate(.88) contrast(1.03);
  transition: transform .45s ease, opacity .25s ease;
}

.moeen-video-frame__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(2, 13, 19, .82)),
    radial-gradient(circle at 50% 50%, rgba(53, 240, 227, .13), transparent 38%);
}

.moeen-video-frame__preview:hover img {
  transform: scale(1.025);
  opacity: .92;
}

.moeen-video-frame__play {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: #06131d;
  background: linear-gradient(135deg, #35f0e3, #23c6bd);
  box-shadow: 0 0 0 12px rgba(53, 240, 227, .12), 0 18px 38px rgba(0, 0, 0, .28);
  font-size: 25px;
}

.moeen-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #000;
}

.moeen-video-frame__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 18px 20px 20px;
  text-align: right;
}

.moeen-video-frame__meta strong {
  display: block;
  color: #f4ffff;
  font-size: 22px;
  line-height: 1.45;
}

.moeen-video-frame__meta p {
  margin: 6px 0 0;
  color: rgba(213, 229, 231, .72);
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 820px) {
  .moeen-video-tabs {
    grid-template-columns: 1fr;
  }

  .moeen-video-tabs__list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .moeen-video-tabs__list button {
    flex: 0 0 min(260px, 82vw);
  }
}

@media (max-width: 640px) {

  .moeen-video-frame__meta {
    grid-template-columns: 1fr;
  }
}
