.gfe-vault,
.gfe-vault * { box-sizing: border-box; }

.gfe-vault {
  --gfe-bg: #000;
  --gfe-panel: #252525;
  --gfe-text: #fff;
  --gfe-muted: #ececec;
  --gfe-accent: #7c3aed;
  --gfe-card-width: 235px;
  --gfe-media-height: 250px;
  --gfe-media-radius: 14px;
  --gfe-glass-blur: 18px;
  --gfe-glass-overlay: rgba(42,42,42,.46);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 0 !important;
  padding: 22px 30px 24px;
  border-radius: 10px;
  background-color: var(--gfe-bg);
  color: var(--gfe-text);
  direction: rtl !important;
  font-family: inherit;
  text-align: right;
}

.gfe-vault button,
.gfe-vault a { font: inherit; }

.gfe-info {
  position: absolute;
  z-index: 30;
  top: 31px;
  left: 38px;
  direction: rtl;
}
.gfe-info__trigger {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #d8d8d8;
  cursor: help;
}
.gfe-info-icon,
.gfe-info-icon--custom,
.gfe-info-icon--custom > svg,
.gfe-info-icon--custom > img,
.gfe-info-icon--custom > i { display: block; width: 100%; height: 100%; color: inherit; fill: currentColor; object-fit: contain; }
.gfe-info__tooltip {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  left: 2px;
  visibility: hidden;
  width: 320px;
  max-width: min(320px, calc(100vw - 70px));
  padding: 13px 18px;
  border: 1px solid #d4d4d4;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 11px rgba(0,0,0,.22);
  color: #595959;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  text-align: right;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.gfe-info__tooltip::before {
  position: absolute;
  top: -7px;
  left: 7px;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
  border-left: 7px solid transparent;
  content: "";
}
.gfe-info:hover .gfe-info__tooltip,
.gfe-info:focus-within .gfe-info__tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.gfe-vault__header {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin: 0 0 18px;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  direction: rtl;
}
.gfe-vault__title {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.4;
}
.gfe-vault__brand-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
}
.gfe-vault__brand-icon svg,
.gfe-vault__brand-icon img,
.gfe-title-icon--custom,
.gfe-title-icon--custom > i { display: block; width: 100%; height: 100%; object-fit: contain; }
.gfe-title-icon--custom > svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.gfe-hero {
  display: grid;
  min-height: 334px;
  padding: 22px clamp(40px, 8vw, 105px) 50px;
  align-items: center;
  justify-content: center;
  grid-template-columns: minmax(330px, 430px) minmax(340px, 1fr);
  gap: clamp(52px, 7vw, 96px);
  direction: ltr;
}
.gfe-hero__media-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  direction: ltr;
  isolation: isolate;
  will-change: transform, opacity;
}
.gfe-stack { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.gfe-stack__cover {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  max-width: 88% !important;
  height: 272px !important;
  border: 0;
  border-radius: 14px;
  background: #eee;
  object-fit: cover !important;
  box-shadow: none;
  transform-origin: center;
}
.gfe-stack__cover--1 { z-index: 3; transform: translate(-18px,-50%) scale(.97) rotate(-1.1deg); filter: brightness(.96); }
.gfe-stack__cover--2 { z-index: 2; transform: translate(-35px,-50%) scale(.94) rotate(-2.1deg); filter: brightness(.91); }
.gfe-stack__cover--3 { z-index: 1; transform: translate(-51px,-50%) scale(.91) rotate(-3.1deg); filter: brightness(.86); }
.gfe-media-count--1 .gfe-stack { display: none; }

.gfe-hero__media {
  position: relative;
  z-index: 5;
  overflow: hidden;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: var(--gfe-media-height) !important;
  border-radius: var(--gfe-media-radius) !important;
  background: #eee;
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
}
.gfe-hero__cover { display: block; width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover !important; }
.gfe-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 4px solid #8f8f8f;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transform: translate(-50%,-50%);
  transition: transform .2s ease, background .2s ease;
}
.gfe-play:hover { background: rgba(255,255,255,.35); transform: translate(-50%,-50%) scale(1.06); }
.gfe-play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #8f8f8f;
}
.gfe-player-host { position: absolute; z-index: 7; inset: 0; display: grid; place-items: center; background: #000; }
.gfe-player-host[hidden] { display: none; }
.gfe-player-host video,
.gfe-player-host audio,
.gfe-player-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.gfe-player-host audio { height: auto; padding: 20px; }

.gfe-hero__content {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  direction: rtl;
  text-align: center;
  width: 100%;
  max-width: 540px;
  justify-self: center;
  will-change: transform, opacity;
}
.gfe-hero__playlist-title { width: 100%; margin: 0 0 25px; color: #fff; font-size: 25px; font-weight: 800; line-height: 1.5; text-align: right; }
.gfe-hero__episode-nav {
  display: grid;
  width: min(100%, 470px);
  align-items: center;
  grid-template-columns: 34px minmax(0,1fr) 34px;
  gap: 16px;
  direction: ltr;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.gfe-hero__episode-title { min-width: 0; color: #f4f4f4; direction: rtl; font-size: 21px; line-height: 1.55; text-align: center; }
.gfe-episode-arrow,
.gfe-card-arrows button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.gfe-arrow-icon {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  object-fit: contain;
}
.gfe-arrow-icon--custom { stroke: none; }
.gfe-arrow-icon--custom { display: grid; place-items: center; color: #fff; }
.gfe-arrow-icon--custom > svg,
.gfe-arrow-icon--custom > img,
.gfe-arrow-icon--custom > i { display: block; width: 100%; height: 100%; color: inherit; fill: currentColor; object-fit: contain; }
.gfe-episode-arrow:disabled { opacity: .28; cursor: default; }
.gfe-hero__description { max-width: 500px; min-height: 48px; margin: 11px 0 4px; color: #eee; font-size: 16px; line-height: 2; }
.gfe-hero__tags { display: flex; min-height: 20px; margin-bottom: 15px; flex-wrap: wrap; justify-content: center; gap: 8px; color: #bbb; font-size: 12px; }
.gfe-all-button {
  display: inline-flex;
  padding: 12px 18px;
  align-items: center;
  align-self: flex-start;
  gap: 16px;
  border-radius: 9px;
  background: #fff;
  color: var(--gfe-accent);
  font-size: 15px;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.gfe-all-button:hover { background: var(--gfe-accent); color: #fff; transform: translateY(-2px); }
.gfe-button-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; color: currentColor; }
.gfe-button-icon--custom > svg,
.gfe-button-icon--custom > img,
.gfe-button-icon--custom > i { display: block; width: 100%; height: 100%; color: inherit; fill: currentColor; object-fit: contain; }
.gfe-button-arrow { position: relative; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; }
.gfe-button-arrow::after { position: absolute; top: 7px; left: -2px; width: 17px; border-top: 2px solid currentColor; content: ""; transform: rotate(45deg); transform-origin: left; }

.gfe-playlists {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  margin: 24px 0 0;
  padding: 16px 28px 24px;
  border-radius: 12px;
  background-color: var(--gfe-panel);
  box-shadow: 0 12px 38px rgba(0,0,0,.26);
}
.gfe-playlists__heading-row { display: flex; min-height: 38px; margin: 0 0 13px; align-items: center; justify-content: space-between; gap: 20px; direction: rtl; }
.gfe-playlists__heading-row h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.5; }
.gfe-card-arrows { display: none; align-items: center; gap: 5px; direction: ltr; }
.gfe-playlists.is-overflowing .gfe-card-arrows { display: flex; }
.gfe-card-arrows button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); }
.gfe-card-arrows .gfe-arrow-icon { width: 16px; height: 16px; stroke-width: 2.5; }
.gfe-card-track {
  display: flex;
  overflow-x: auto;
  height: auto !important;
  min-height: 0 !important;
  padding: 3px 2px 5px;
  align-items: stretch;
  gap: 24px;
  direction: rtl;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.gfe-card-track::-webkit-scrollbar { display: none; }
.gfe-card {
  position: relative;
  display: flex;
  overflow: hidden;
  width: var(--gfe-card-width);
  min-width: var(--gfe-card-width);
  max-width: var(--gfe-card-width);
  height: auto !important;
  min-height: 205px;
  padding: 0;
  flex: 0 0 var(--gfe-card-width);
  flex-direction: column;
  border: 0;
  border-radius: 9px;
  background: #646464;
  color: #fff;
  direction: rtl;
  text-align: right;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 7px 20px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gfe-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(0,0,0,.3); }
.gfe-card.is-active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 12px 30px rgba(0,0,0,.24); }
.gfe-card__image { position: relative; z-index: 3; display: block; overflow: hidden; width: 100%; height: 112px; flex: 0 0 auto; }
.gfe-card__image > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gfe-card:hover .gfe-card__image > img { transform: scale(1.035); }
.gfe-card__type {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  min-width: 74px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px 0 0 0;
  background: rgba(181,181,181,.88);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.gfe-card__type i { position: relative; width: 15px; height: 12px; border: 1px solid currentColor; border-radius: 3px; }
.gfe-card__type--video i::after { position: absolute; top: 3px; left: 5px; width: 0; height: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 4px solid currentColor; content: ""; }
.gfe-card__type--audio i { border: 0; }
.gfe-card__type--audio i::after { content: "♫"; font-size: 17px; line-height: 12px; }
.gfe-card__body { position: relative; z-index: 1; display: flex; overflow: hidden; min-height: 93px; flex: 1 1 auto; flex-direction: column; isolation: isolate; }
.gfe-card__glass { position: absolute; z-index: -2; inset: -28px; overflow: hidden; }
.gfe-card__glass img { display: block; width: 100%; height: 100%; opacity: .9; object-fit: cover; filter: blur(var(--gfe-glass-blur)) saturate(.82); transform: scale(1.2); }
.gfe-card__body::after { position: absolute; z-index: -1; inset: 0; background: var(--gfe-glass-overlay); content: ""; pointer-events: none; }
.gfe-card__meta { display: flex; min-height: 37px; padding: 8px 11px; align-items: center; justify-content: space-between; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.22); color: #f4f4f4; font-size: 11px; }
.gfe-card__title { display: block; overflow: hidden; padding: 7px 11px 0; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.gfe-card__description { display: -webkit-box; overflow: hidden; min-height: 31px; padding: 0 11px 7px; color: #f2f2f2; font-size: 12px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.gfe-admin-empty { padding: 26px; border: 1px dashed #8b5cf6; border-radius: 8px; background: #f7f5ff; color: #39216a; direction: rtl; text-align: center; }

@media (max-width: 960px) {
  .gfe-vault { padding: 21px 22px 23px; }
  .gfe-hero { padding-right: 28px; padding-left: 28px; grid-template-columns: minmax(300px, 44%) minmax(300px,1fr); gap: 44px; }
  .gfe-playlists { margin: 22px 0 0; padding-right: 22px; padding-left: 22px; }
}

@media (max-width: 720px) {
  .gfe-vault { --gfe-media-height: 220px; padding: 18px 15px; border-radius: 7px; }
  .gfe-vault__header { margin-bottom: 13px; }
  .gfe-vault__title { font-size: 22px; }
  .gfe-vault__brand-icon { width: 36px; height: 36px; }
  .gfe-hero { display: flex; min-height: 0; padding: 13px 14px 38px; flex-direction: column; gap: 48px; }
  .gfe-hero__media-wrap { width: min(88%,430px) !important; flex-basis: auto !important; }
  .gfe-stack__cover { max-width: 92% !important; height: calc(100% + 12px) !important; }
  .gfe-stack__cover--1 { transform: translate(-12px,-50%) scale(.97) rotate(-1deg); }
  .gfe-stack__cover--2 { transform: translate(-24px,-50%) scale(.94) rotate(-2deg); }
  .gfe-stack__cover--3 { transform: translate(-35px,-50%) scale(.91) rotate(-3deg); }
  .gfe-hero__playlist-title { margin-bottom: 18px; font-size: 21px; }
  .gfe-hero__episode-title { font-size: 17px; }
  .gfe-hero__description { min-height: 0; margin-top: 11px; font-size: 14px; }
  .gfe-playlists { margin: 18px 0 0; padding: 14px 15px 19px; }
  .gfe-playlists__heading-row h3 { font-size: 18px; }
  .gfe-card { --gfe-card-width: 185px; min-height: 185px; }
  .gfe-card__image { height: 101px; }
  .gfe-info { top: 23px; left: 19px; }
  .gfe-info__tooltip { left: 0; max-width: min(320px, calc(100vw - 48px)); }
}

@media (prefers-reduced-motion: reduce) {
  .gfe-vault *,
  .gfe-card-track { scroll-behavior: auto !important; transition: none !important; }
}
