/* Video oynatıcı: temadan bağımsız; vurgu rengi --vp-accent (yoksa temanın kırmızısı). */
.vp { --vp-accent: var(--ghost-accent-color, #E00C20); margin: 32px 0; }
.vp, .vp * { box-sizing: border-box; }
.vp__stage { position: relative; overflow: hidden; border-radius: 20px; background: #0B1117; aspect-ratio: 16 / 9; isolation: isolate; }
.vp__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0B1117; }
.vp__cap { margin: 10px 4px 0; font-size: 14px; line-height: 1.45; color: var(--color-font-input, #5B6670); }

/* Büyük oynat düğmesi */
.vp__big { position: absolute; z-index: 3; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px;
  background: var(--vp-accent); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .18s, opacity .2s; }
.vp__big svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.vp__big:hover { transform: scale(1.06); }
.vp__big:focus-visible, .vp button:focus-visible, .vp input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vp.is-playing .vp__big, .vp.is-started.is-paused .vp__big { opacity: 0; pointer-events: none; }
.vp.is-started.is-paused .vp__big { opacity: 1; pointer-events: auto; }

/* Kapak üstü hafif karartma */
.vp__shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; transition: opacity .25s; }
.vp.is-playing.is-idle .vp__shade { opacity: 0; }

/* Denetim çubuğu */
.vp__bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 12px 10px; color: #fff; transition: opacity .25s, transform .25s; }
.vp:not(.is-started) .vp__bar { opacity: 0; pointer-events: none; }
.vp.is-playing.is-idle .vp__bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vp__seek { position: relative; height: 22px; display: flex; align-items: center; }
.vp__track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; transition: height .15s; }
.vp__seek:hover .vp__track { height: 6px; }
.vp__buffer, .vp__played { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.vp__buffer { background: rgba(255,255,255,.4); }
.vp__played { background: var(--vp-accent); }
.vp__range { position: relative; z-index: 1; width: 100%; height: 22px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.vp__range::-webkit-slider-runnable-track { height: 22px; background: transparent; }
.vp__range::-moz-range-track { height: 22px; background: transparent; }
.vp__range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--vp-accent); }
.vp__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--vp-accent); }
.vp__row { display: flex; align-items: center; gap: 4px; }
.vp__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; font: 600 13px/1 system-ui, sans-serif; }
.vp__btn:hover { background: rgba(255,255,255,.14); }
.vp__btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp__time { font: 500 13px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; opacity: .92; }
.vp__spacer { flex: 1; }
.vp__vol { width: 78px; accent-color: #fff; cursor: pointer; }
.vp__speed { width: auto; min-width: 46px; padding: 0 8px; }

/* Yükleniyor */
.vp__spin { position: absolute; z-index: 2; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; animation: vp-spin .8s linear infinite; display: none; }
.vp.is-waiting .vp__spin { display: block; }
@keyframes vp-spin { to { transform: rotate(360deg); } }

/* Tam ekran */
.vp__stage:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.vp__stage:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; }

/* YouTube / Vimeo: tıklayınca yüklenir */
.vp__stage--embed { background-size: cover; background-position: center; }
.vp__stage--embed::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.vp__stage--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }
.vp__note { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; color: #fff; font: 500 12px/1.4 system-ui, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

@media (max-width: 600px) {
  .vp { margin: 24px -4px; }
  .vp__stage { border-radius: 14px; }
  .vp__big { width: 68px; height: 68px; }
  .vp__vol, .vp__pip { display: none; }
  .vp__btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .vp *, .vp { transition: none !important; animation: none !important; } }

/* Bazı temalar yazı içindeki her öğenin rengini zorluyor; oynatıcı kendi renklerini korur */
.vp .vp__stage .vp__bar, .vp .vp__stage .vp__bar *, .vp .vp__stage .vp__big, .vp .vp__stage .vp__note { color: #fff !important; }
.vp .vp__stage .vp__btn { background: transparent; }
.vp .vp__stage .vp__btn:hover { background: rgba(255,255,255,.14); }

/* Dikey (telefon) videoları */
.vp--tall .vp__stage { aspect-ratio: 9 / 16; width: min(100%, calc(82vh * 9 / 16)); margin: 0 auto; }
.vp--tall .vp__cap { text-align: center; }
