/* css/mod.video.panel.css */

/* container metinleri */
.videoSideTitle { font-weight: 800; font-size: 18px; }
.videoSideSubtitle { opacity: .75; font-size: 13px; margin: 6px 0 10px; }

.videoPlayerCard{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.videoPlayerLabel{ opacity:.7; font-size:12px; margin-bottom:8px; }
.videoPlayer{
  width: 100%;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16/9;
}

.videoGridTitle{ font-weight: 800; font-size: 14px; opacity: .9; margin: 10px 0 8px; }

/* ✅ 2 kolon grid */
.vpGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ✅ Eita-style card */
.vpCard{
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  cursor: pointer;
}
.vpCard:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.10);
}
.vpCard.is-active{
  border-color: rgba(160,110,255,0.45);
  box-shadow: 0 0 0 1px rgba(160,110,255,0.25) inset;
}

/* video viewport */
.vpThumb{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

/* gerçek video */
.vpVideo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* WOW crop */
  background: #000;
}

/* üstte status pill */
.vpBadge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}

/* ortada play overlay */
.vpPlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
}

/* HTML’de span.vpPlayIcon kullanıyoruz */
.vpPlayIcon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
}

/* ikon aksiyon barı */
.vpActions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-start;
}

/* butonlar */
.vpIconBtn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.vpIconBtn:hover{ background: rgba(255,255,255,0.09); }

.vpIconBtn.danger{
  border-color: rgba(255,80,80,0.25);
  background: rgba(255,80,80,0.10);
}
.vpIconBtn.danger:hover{ background: rgba(255,80,80,0.16); }

.vpEmpty{
  opacity:.65;
  font-size: 13px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.10);
}

.videoFootNote{ margin-top: 12px; opacity:.55; font-size: 12px; }
/* ==============================
   VIDEO CARD – PLAYER INTERACTION
   (Block 1 üzerine ek davranışlar)
   ============================== */

/* ▶️ overlay zaten Block 1'de tanımlı
   burada sadece state davranışı ekliyoruz */

/* video oynarken overlay gizlensin */
.vpCard.is-playing .vpPlay{
  opacity: 0;
  transition: opacity .15s ease;
}

/* video durunca overlay geri gelsin */
.vpCard:not(.is-playing) .vpPlay{
  opacity: 1;
}

/* native controls kapalı (WOW hissi) */
.vpVideo::-webkit-media-controls{
  display: none !important;
}

/* güvenlik: pointer video üzerinde çalışsın */
.vpVideo{
  pointer-events: auto;
}

/* legacy ppeHost gizle (tek yerde kalsın) */
section[data-module="video"] #ppeHost,
#moduleHost[data-active-module="video"] ~ section.outputsCard.studioOutputs #ppeHost{
  display: none !important;
}
/* ===== Layout polish (Eita style, grid bozmadan) ===== */

/* grid override YOK: Block 1 zaten 2 kolon kuruyor */
/* burada sadece gap/padding gibi polish bırakıyoruz */

.vpGrid{
  gap: 14px;
}

/* kart premium hissi */
.vpCard{
  padding: 10px;
  border-radius: 16px;
}

/* sağ panel hizası */
.videoSideCard{
  align-items: flex-start;
}

/* thumb premium */
.vpThumb{
  border-radius: 16px;
  background: rgba(0,0,0,.85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* video sinematik */
.vpVideo{
  border-radius: 16px;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

/* overlay play daha premium */
.vpPlay{
  background: transparent;
  pointer-events: none;
}

.vpPlayIcon{
  width: 52px;
  height: 52px;
  font-size: 18px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* badge daha kompakt */
.vpBadge{
  font-size: 10px;
  padding: 4px 9px;
}

/* ikonlar biraz daha küçük ama tıklanabilir kalsın */
.vpIconBtn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
/* =========================
   Video Panel – Card Footer Polish
   (SAFE – player logic yok)
   ========================= */

/* kartın genel premium hissi (ölçü/behavior yok) */
.vpCard{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(20,18,40,.55);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* thumbnail alt çizgi (sadece görsel) */
.vpThumb{
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
}

/* alt meta alanı */
.vpMeta{
  padding: 12px 12px 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.04) 0%,
      rgba(255,255,255,.015) 100%
    );
  backdrop-filter: blur(10px);
}
/* =========================
   Video Panel – Card Footer Polish (SAFE)
   ========================= */

/* Kart genel (premium görünüm) */
.vpCard{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(20,18,40,.55);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}

/* Thumbnail alanı alt çizgi */
.vpThumb{
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
}

/* Alt meta alanı */
.vpMeta{
  padding: 12px 12px 14px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.015) 100%
  );
  backdrop-filter: blur(10px);
}

/* Title: 2 satır */
.vpTitle{
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
  margin: 2px 2px 10px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 34px;
}

/* Actions pill */
.vpActions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  padding: 10px;
  border-radius: 999px;

  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 18px rgba(0,0,0,.22);
}

/* Icon button */
.vpIconBtn{
  width: 40px;
  height: 40px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.vpIconBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}

/* Tintler */
.vpIconBtn[data-act="download"]{
  background: rgba(120, 210, 255, .10);
  border-color: rgba(120, 210, 255, .20);
}
.vpIconBtn[data-act="download"]:hover{
  background: rgba(120, 210, 255, .16);
  border-color: rgba(120, 210, 255, .32);
}

.vpIconBtn[data-act="share"]{
  background: rgba(180, 140, 255, .10);
  border-color: rgba(180, 140, 255, .20);
}
.vpIconBtn[data-act="share"]:hover{
  background: rgba(180, 140, 255, .16);
  border-color: rgba(180, 140, 255, .32);
}

.vpIconBtn.vpDanger,
.vpIconBtn[data-act="delete"]{
  background: rgba(255, 90, 120, .10);
  border-color: rgba(255, 90, 120, .22);
}
.vpIconBtn.vpDanger:hover,
.vpIconBtn[data-act="delete"]:hover{
  background: rgba(255, 90, 120, .18);
  border-color: rgba(255, 90, 120, .34);
}

/* ikon */
.vpIconBtn .vpI{
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
/* =====================================================
   VIDEO RIGHT PANEL – FINAL LAYOUT GUARD (CLEAN)
   SADECE layout + viewport
   (play / interaction başka bloklarda)
   ===================================================== */

/* GRID */
section.outputsCard.studioOutputs .videoSide .vpGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 520px){
  section.outputsCard.studioOutputs .videoSide .vpGrid{
    grid-template-columns: 1fr;
  }
}

/* CARD */
section.outputsCard.studioOutputs .videoSide .vpCard{
  width: 100%;
  border-radius: 18px;
  background: rgba(20,18,40,.55);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* THUMB / VIEWPORT (9:16 SAFE) */
section.outputsCard.studioOutputs .videoSide .vpThumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
}

/* VIDEO (boyut + crop SADECE) */
section.outputsCard.studioOutputs .videoSide .vpVideo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

/* ❌ PLAY / CONTROLS BURADA YOK
   (interaction başka bloklarda) */

/* Badge pozisyonu */
section.outputsCard.studioOutputs .videoSide .vpBadge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

/* Meta alanı */
section.outputsCard.studioOutputs .videoSide .vpMeta{
  padding: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,.015)
    );
  backdrop-filter: blur(10px);
}
/* =========================
   Video Card Fullscreen Btn
   (Mat / muted style like trash icon)
   ========================= */

/* Thumb üstüne bindirebilmek için konteyneri referans al */
.vpThumb{
  position: relative;
}

/* Fullscreen butonu (⛶) — Mat */
.vpFsBtn{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 40;              /* vpPlay overlay'den yüksek */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 30px;
  padding: 0;
  border-radius: 999px;

  border: 1px solid rgba(170, 150, 220, 0.22);
  background: rgba(60, 50, 90, 0.35);
  color: rgba(210, 200, 240, 0.78);

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 8px 18px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04) inset;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}

.vpFsBtn:hover{
  background: rgba(80, 65, 120, 0.40);
  border-color: rgba(170, 150, 220, 0.35);
  color: rgba(235, 230, 255, 0.92);
  transform: translateY(-1px);
}

.vpFsBtn:active{
  transform: translateY(0px) scale(0.98);
}

/* Overlay play butonu varsa onun üstünde kalmasını garanti et */
.vpPlay{
  z-index: 20;
}

/* Video element */
.vpVideo{
  position: relative;
  z-index: 1;
}
/* Processing Skeleton */
.vpSkeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.04) 8%,
    rgba(255,255,255,0.12) 18%,
    rgba(255,255,255,0.04) 33%
  );
  background-size: 200% 100%;
  animation: vpShimmer 1.4s linear infinite;
  border-radius: 12px;
}

.vpSkLine {
  width: 60%;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  margin-bottom: 8px;
}

.vpSkLine.short {
  width: 40%;
}

.vpSkPulse {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

@keyframes vpShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =========================
   /css/mod.video.panel.css
   Premium shimmer + typography + clamp + spacing
========================= */

/* Kart iç düzeni toparla */
.vpCard{
  padding: 14px;
}
.vpThumb{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.vpVideo{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
}

/* Badge */
.vpBadge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

/* Expand butonu (varsa) */
.vpExpand{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}

/* Skeleton yüzeyi */
.vpThumb.is-loading{
  background: rgba(255,255,255,.03);
}

.vpSkel{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  overflow: hidden;
}
/* Shimmer katmanı */
.vpSkelShimmer{
  position:absolute;
  inset: -40% -60%;
  background: linear-gradient(
    90deg,
    rgba(120, 60, 255, 0) 0%,
    rgba(160, 70, 255, 0.18) 30%,
    rgba(255, 90, 200, 0.38) 50%,
    rgba(160, 70, 255, 0.18) 70%,
    rgba(120, 60, 255, 0) 100%
  );
  transform: rotate(10deg);
  animation: vpShimmer 1.6s cubic-bezier(.4,0,.2,1) infinite;
  opacity: .85;
}

@keyframes vpShimmer{
  0%   { transform: translateX(-25%) rotate(10deg); }
  100% { transform: translateX(25%)  rotate(10deg); }
}

/* Ortada “premium play” hissi */
.vpSkelPlay{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}

.vpSkelPlayRing{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.vpSkelPlayTri{
  position:absolute;
  margin-left: 4px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255,255,255,.85);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  opacity: .95;
}

/* Metin alanı */
.vpText{
  padding: 12px 4px 0;
}
.vpTitle{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vpSub{
  margin-top: 6px;
  font-size: 13px;
  opacity: .80;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aksiyonlar: loading iken “disabled” görünümü */
.vpActions.is-disabled{
  opacity: .45;
  pointer-events: none;
  filter: saturate(.85);
}

/* Kart içi spacing/hizalama */
.vpActions{
  margin-top: 10px;
}
/* Title typography (Video kart başlığı) */
.vpTitle{
  font-size: 14px;          /* 16 -> 14 (daha dengeli) */
  font-weight: 700;         /* 800 -> 700 */
  letter-spacing: .1px;     /* daha az “bağıran” */
  line-height: 1.2;
  white-space: normal;      /* tek satıra zorlamayı kaldır */
  display: -webkit-box;     /* 2 satır clamp */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .92;
}

/* "Text→Video:" gibi prefix varsa daha az öne çıksın */
.vpTitle::first-line{
  opacity: .95;
}

/* Title: iki satırlı modern görünüm */
.vpTitle{
  margin-top: 10px;
  display: block;
}

.vpType{
  display:block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 4px;
}

.vpName{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .1px;
}
.vpTitle{
  font-weight: 400 !important;
}

.vpTitle .vpName{
  font-weight: 500 !important;  /* kalınlığı inceltir */
}

.vpTitle .vpType{
  font-weight: 700 !important;
  letter-spacing: .12em;
  opacity: .65;
}
/* video thumb üstündeki overlay ikonlar */
.vpThumb { position: relative; }

/* video element her zaman altta kalsın */
.vpThumb video,
.vpVideo {
  position: relative;
  z-index: 1;
}

/* sağ üst büyütme butonu üstte kalsın */
.vpThumb .vpExpand,
.vpThumb .vpFullBtn,
.vpThumb .vpZoomBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* ikon görünürlüğü: video gelince kaybolmasın */
.vpThumb .vpExpand svg,
.vpThumb .vpFullBtn svg,
.vpThumb .vpZoomBtn svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
  opacity: 0.95;
}
