/* Kendi sunucu oynatıcısı (public/player.js). Video sayfalarında style.css'ten sonra, mağaza ana sayfasında tek başına yüklenir. */
.player { aspect-ratio: 16 / 9; background: #000; color: #d0d0d0; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
video.player { padding: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.yp { position: relative; overflow: hidden; border-radius: 12px; background: #000; }
.yp video.player { display: block; border-radius: 0; cursor: pointer; }
.yp.yp-tamekran { border-radius: 0; display: flex; align-items: center; justify-content: center; }
.yp.yp-tamekran video.player { width: 100%; height: 100%; aspect-ratio: auto; }
.yp:not(.yp-aktif):not(.yp-duraklatildi) video.player { cursor: none; }
.yp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 12px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.yp.yp-aktif .yp-bar, .yp.yp-duraklatildi .yp-bar, .yp-bar:focus-within { opacity: 1; pointer-events: auto; }
.yp-ilerleme { position: relative; height: 16px; display: flex; align-items: center; }
.yp-ilerleme::before, .yp-tampon, .yp-dolu { content: ''; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; pointer-events: none; transition: height .1s, margin .1s; }
.yp-ilerleme::before { right: 0; background: rgba(255, 255, 255, .25); }
.yp-tampon { background: rgba(255, 255, 255, .45); width: 0; }
.yp-dolu { background: #ff3b3b; width: 0; }
.yp-ilerleme:hover::before, .yp-ilerleme:hover .yp-tampon, .yp-ilerleme:hover .yp-dolu { height: 6px; margin-top: -3px; }
.yp-seek, .yp-seviye { -webkit-appearance: none; appearance: none; margin: 0; background: transparent; cursor: pointer; }
.yp-seek { position: relative; z-index: 1; width: 100%; height: 16px; }
.yp-seek::-webkit-slider-runnable-track { height: 16px; background: transparent; }
.yp-seek::-moz-range-track { height: 16px; background: transparent; }
.yp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: 1.5px; border-radius: 50%; background: #ff3b3b; border: 0; transform: scale(0); transition: transform .1s; }
.yp-seek::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #ff3b3b; border: 0; transform: scale(0); transition: transform .1s; }
.yp-ilerleme:hover .yp-seek::-webkit-slider-thumb, .yp-seek:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.yp-ilerleme:hover .yp-seek::-moz-range-thumb, .yp-seek:focus-visible::-moz-range-thumb { transform: scale(1); }
.yp-satir { display: flex; align-items: center; gap: 4px; height: 44px; }
.yp-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; flex: none; }
.yp-btn svg { width: 26px; height: 26px; fill: currentColor; }
.yp-btn:hover, .yp-btn:focus-visible { background: rgba(255, 255, 255, .15); }
.yp-ses { display: flex; align-items: center; }
.yp-seviye { width: 0; height: 20px; opacity: 0; transition: width .2s, opacity .2s; --yp-v: 100%; }
.yp-ses:hover .yp-seviye, .yp-seviye:focus-visible { width: 80px; opacity: 1; margin-right: 6px; }
.yp-seviye::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--yp-v), rgba(255, 255, 255, .3) var(--yp-v)); }
.yp-seviye::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--yp-v), rgba(255, 255, 255, .3) var(--yp-v)); }
.yp-seviye::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; border: 0; }
.yp-seviye::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.yp-sure { margin-left: 6px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.yp-bosluk { flex: 1; }
.yp-ayar[aria-expanded="true"] svg { transform: rotate(30deg); }
.yp-ayar svg { transition: transform .2s; }
.yp-buyuk { position: absolute; left: 50%; top: 50%; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; }
.yp-buyuk svg { width: 38px; height: 38px; fill: currentColor; margin-left: 4px; }
.yp.yp-duraklatildi .yp-buyuk { display: flex; }
.yp-menu { position: absolute; right: 12px; bottom: 64px; z-index: 4; min-width: 200px; max-height: calc(100% - 80px); overflow: auto; padding: 6px; border-radius: 12px; background: rgba(20, 20, 20, .95); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.yp-menu-baslik { padding: 8px 10px 4px; font-size: 12px; font-weight: 700; color: #aaa; }
.yp-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.yp-menu button:hover, .yp-menu button:focus-visible { background: rgba(255, 255, 255, .12); }
.yp-menu button[aria-checked="true"]::after { content: '✓'; font-weight: 700; color: #ffcc4d; }
.yp-bildirim { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 14px; border-radius: 16px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.yp-bildirim.goster { opacity: 1; }
@media (max-width: 600px) {
  .yp-buyuk { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .yp-bar { padding: 20px 6px 2px; }
  .yp-btn { width: 36px; height: 36px; }
  .yp-btn svg { width: 22px; height: 22px; }
  .yp-ses:hover .yp-seviye { width: 0; opacity: 0; }
}
/* Video beklerken (internet yavaş) ortada dönen halka: izleyici "dondu" sanmasın */
.yp.yp-yukleniyor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: yp-don .8s linear infinite; pointer-events: none; z-index: 3; }
@keyframes yp-don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .yp.yp-yukleniyor::after { animation-duration: 2.5s; } }
