/* "Nasıl kullanılır" oynatıcısı (tanitim-video.js ile birlikte). Video dosyası yok: sahneler HTML/CSS ile çizilir, kendi
   kendine ilerler; altyazı, bölüm noktaları ve ilerleme çubuğu bir video gibi davranır. Hem panelde hem ana sayfada kullanılır.
   Renk değişkenleri sayfadan gelir (--violet, --night, --white, --lavender, --ink, --muted, --line). Stiller .tv- önekli. */
.tv-dlg { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; border: none; border-radius: 22px; padding: 0; background: #0b0726; color: #fff; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.tv-dlg::backdrop { background: rgba(11, 7, 38, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tv-dlg[open] { display: grid; grid-template-rows: auto 1fr auto auto; }
.tv-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tv-ust b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tv-ust b i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--violet, #7a2ff0); display: grid; place-items: center; font-size: 11px; }
.tv-ust small { color: rgba(255, 255, 255, .6); font-weight: 500; }
.tv-kapat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.tv-kapat:hover { background: rgba(255, 255, 255, .18); }

/* Sahne alanı: 16:9, koyu zemin, ışık */
.tv-sahne { position: relative; aspect-ratio: 16 / 9; max-height: calc(100dvh - 200px); background: radial-gradient(700px 380px at 50% 0%, rgba(122, 47, 240, .35), transparent 65%), linear-gradient(180deg, #0f0a33 0%, #1a0f4a 100%); overflow: hidden; user-select: none; }
.tv-sahne > section { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px 32px 64px; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.tv-sahne > section.aktif { opacity: 1; pointer-events: auto; }
.tv-sahne > section > .tv-icerik { width: 100%; max-width: 760px; display: grid; gap: 16px; justify-items: center; }
.tv-baslik { font-size: clamp(18px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.tv-baslik em { font-style: normal; background: linear-gradient(100deg, #d9c4ff, #a9c8ff 50%, #8fe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aktif .tv-g { animation: tvGel .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--g, 0s); }
@keyframes tvGel { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Mini arayüz parçaları */
.tv-kart { background: #fff; color: #17112b; border-radius: 14px; padding: 14px 16px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); font-size: 13.5px; width: 100%; }
.tv-kart h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.tv-alan { display: grid; gap: 4px; margin-top: 8px; }
.tv-alan label { font-size: 11.5px; font-weight: 600; color: #5c5670; }
.tv-alan div { border: 1px solid #e6e2f0; border-radius: 8px; padding: 7px 10px; min-height: 32px; background: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; }
.tv-alan div::after { content: "|"; color: #7a2ff0; animation: tvImlec 1s steps(1) infinite; }
.aktif .tv-yaz { animation: tvYaz 1.4s steps(24) both; animation-delay: var(--g, 0s); }
@keyframes tvYaz { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tvImlec { 50% { opacity: 0; } }
.tv-sec { display: flex; gap: 6px; }
.tv-sec span { border: 1px solid #e6e2f0; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.tv-sec span.secili { background: #efe8ff; border-color: #7a2ff0; color: #7a2ff0; }
.tv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #7a2ff0; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.tv-btn.tv-cerceve { background: #fff; color: #17112b; border: 1.5px solid #17112b; }
.aktif .tv-bas { animation: tvBas .4s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: var(--g, 0s); }
@keyframes tvBas { 0% { transform: scale(1); } 50% { transform: scale(.92); } 100% { transform: scale(1); } }
.tv-satirlar { display: grid; gap: 6px; }
.tv-satir { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #e6e2f0; border-radius: 10px; font-size: 13px; }
.tv-satir b { font-weight: 600; }
.tv-satir span { color: #5c5670; font-variant-numeric: tabular-nums; }
.tv-uc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.tv-kanal { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px; display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.tv-kanal i { font-style: normal; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.tv-kanal b { color: #fff; font-size: 14px; }
.tv-kanal code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; background: rgba(255, 255, 255, .1); border-radius: 6px; padding: 3px 6px; color: #d9c4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-telefon { width: min(300px, 100%); background: #efe8df; border-radius: 18px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); color: #111b21; }
.tv-telefon .tv-ustbar { background: #128c7e; color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; font-weight: 600; }
.tv-balon { max-width: 86%; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; background: #fff; }
.tv-balon.sag { justify-self: end; background: #d9fdd3; }
.tv-balon a { color: #027eb5; text-decoration: underline; }
.tv-planlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.tv-plan { background: #fff; color: #17112b; border-radius: 14px; padding: 14px; display: grid; gap: 6px; font-size: 12.5px; border: 2px solid transparent; }
.tv-plan.one { border-color: #7a2ff0; box-shadow: 0 0 0 4px rgba(122, 47, 240, .25); }
.tv-plan b { font-size: 14px; }
.tv-plan .tv-fiyat { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #7a2ff0; }
.tv-plan ul { list-style: none; display: grid; gap: 3px; color: #5c5670; }
.tv-plan li::before { content: "✓ "; color: #1d8256; font-weight: 700; }
.tv-plan li.yok { color: #8d88a0; } .tv-plan li.yok::before { content: "— "; color: #8d88a0; }
.tv-plan small { font-size: 11.5px; color: #5c5670; }
.tv-son { text-align: center; display: grid; gap: 10px; justify-items: center; }
.tv-son p { color: rgba(255, 255, 255, .75); max-width: 520px; }

/* "Link nereye konur" seti: Instagram profili, WhatsApp Business profili, site çerçevesi */
.tv-ig { width: min(360px, 100%); background: #fff; color: #17112b; border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 13px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.tv-ig-ust { display: flex; align-items: center; gap: 10px; }
.tv-ig-ust i { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #f9a03f, #e1306c, #7a2ff0); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; }
.tv-ig-ust b { display: block; font-size: 14px; } .tv-ig-ust small { color: #5c5670; }
.tv-ig p { color: #17112b; line-height: 1.4; }
.tv-ig-link { color: #00376b; font-weight: 600; background: #eef6ff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-ig-yol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11.5px; color: #5c5670; }
.tv-ig-yol span { background: #f5f2ff; border-radius: 999px; padding: 3px 9px; }
.tv-ig-yol span.secili { background: #7a2ff0; color: #fff; }
.tv-parmak { font-size: 13px; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; }
.tv-wa { width: min(380px, 100%); background: #fff; color: #17112b; border-radius: 16px; padding: 0 0 12px; display: grid; gap: 0; font-size: 13px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); overflow: hidden; }
.tv-wa-ust { background: #128c7e; color: #fff; padding: 10px 14px; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.tv-wa-satir { display: grid; grid-template-columns: 1fr; padding: 7px 14px; border-bottom: 1px solid #eef0f2; }
.tv-wa-satir span { font-size: 11px; color: #667781; } .tv-wa-satir b { font-weight: 500; overflow-wrap: anywhere; }
.tv-wa .tv-balon, .tv-wa .tv-ig-yol { margin: 8px 14px 0; }
.tv-wa .tv-balon { background: #e7f3ff; border: 1px solid #cfe3f7; }
.tv-site { background: #fff; color: #17112b; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); font-size: 12.5px; min-width: 0; }
.tv-site-ust { background: #f1eef6; padding: 8px 12px; font-size: 12px; color: #5c5670; display: flex; align-items: center; gap: 5px; }
.tv-site-ust i { width: 9px; height: 9px; border-radius: 50%; background: #d9ccf5; display: inline-block; }
.tv-site-govde { position: relative; min-height: 120px; padding: 12px; }
.tv-kod { font-family: ui-monospace, Consolas, monospace; font-size: 11px; background: #1c0b44; color: #d9c4ff; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.tv-site-dugme { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: #7a2ff0; color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 12px 24px -10px rgba(122, 47, 240, .8); }
.tv-icerik > .tv-btn[data-video-set] { cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 600; font-size: 13px; }
.tv-icerik > .tv-btn[data-video-set]:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 720px) { .tv-uc[style] { grid-template-columns: 1fr !important; } }

/* Altyazı ve ilerleme */
/* Altyazı: masaüstünde sahnenin alt kenarına biner, telefonda sahnenin altında ayrı şerit */
.tv-altyazi { position: relative; z-index: 1; margin-top: -76px; min-height: 76px; display: block; padding: 30px 20px 14px; background: linear-gradient(180deg, rgba(11, 7, 38, 0), rgba(11, 7, 38, .92) 40%); font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .92); text-align: center; pointer-events: none; }
/* Dar alanlarda metin ve kartlar sığsın */
.tv-sahne { overflow-x: hidden; }
.tv-sahne > section > .tv-icerik, .tv-uc, .tv-planlar, .tv-kanal, .tv-plan, .tv-kart { min-width: 0; max-width: 100%; }
.tv-kanal span, .tv-plan small, .tv-balon, .tv-baslik { overflow-wrap: anywhere; min-width: 0; }
.tv-altyazi b { color: #fff; }
.tv-alt { display: grid; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tv-ilerleme { display: flex; gap: 5px; }
.tv-ilerleme button { flex: 1; height: 18px; background: none; border: none; padding: 7px 0; cursor: pointer; }
.tv-ilerleme button i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; position: relative; }
.tv-ilerleme button i::after { content: ""; position: absolute; inset: 0; width: 0; background: #d9c4ff; }
.tv-ilerleme button.gecti i::after { width: 100%; }
.tv-ilerleme button.aktif i::after { width: 100%; transform-origin: 0 50%; animation: tvDolum var(--sure, 8s) linear both; }
.tv-dlg.duraklat .tv-ilerleme button.aktif i::after { animation-play-state: paused; }
@keyframes tvDolum { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tv-kontrol { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tv-kontrol .tv-ad { font-size: 13px; color: rgba(255, 255, 255, .7); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-dugmeler { display: flex; gap: 6px; }
.tv-dugmeler button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 999px; min-width: 38px; height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tv-dugmeler button:hover { background: rgba(255, 255, 255, .18); }
.tv-dugmeler button:disabled { opacity: .35; cursor: default; }
.tv-dugmeler .tv-oynat { background: #fff; color: #0b0726; border-color: #fff; }
.tv-sahne .tv-oynat-buyuk { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #0b0726; border: none; font-size: 26px; cursor: pointer; display: none; place-items: center; z-index: 2; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7); }
.tv-dlg.duraklat .tv-oynat-buyuk { display: grid; }

/* Oynatıcıyı açan düğme (sayfalar kendi .btn stiliyle de kullanabilir) */
.tv-ac { display: inline-flex; align-items: center; gap: 8px; }
.tv-ac i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: currentColor; display: grid; place-items: center; flex: none; }
.tv-ac i::after { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.btn-outline.tv-ac i::after, .tv-ac.tv-koyu i::after { border-left-color: var(--white, #fff); }

/* Panel: başlangıç rehberi başlığındaki ve Hesap penceresindeki düğme; ana sayfa: giriş düğmesi telefonda da görünsün */
.rh-ust .tv-ac { padding: 8px 14px; font-size: 13.5px; margin-left: auto; white-space: nowrap; }
.hs-bolum .tv-ac { justify-self: start; }
@media (max-width: 960px) { .hero-cta .hero-nasil.tv-ac { display: inline-flex; } }
@media (max-width: 560px) { .rh-ust { flex-wrap: wrap; } .rh-ust .tv-ac { margin-left: 0; } }

@media (max-width: 720px) {
  .tv-dlg { width: calc(100vw - 12px); border-radius: 16px; }
  /* Telefonda sahne içeriğe göre uzar ve kaydırılır; altyazı ayrı şerit */
  .tv-sahne { aspect-ratio: auto; height: auto; max-height: 50vh; min-height: 240px; overflow-y: auto; }
  .tv-sahne > section { position: static; display: none; padding: 16px 14px 18px; transition: none; }
  .tv-sahne > section.aktif { display: grid; }
  .tv-altyazi { margin-top: 0; min-height: 0; background: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .1); text-align: left; font-size: 13.5px; padding: 10px 14px; }
  .tv-kanal { grid-template-columns: 36px minmax(0, 1fr); }
  .tv-kanal code { grid-column: 2; }
  .tv-sahne .tv-oynat-buyuk { position: sticky; top: calc(50% - 36px); margin: 0 auto; }
  .tv-uc, .tv-planlar { grid-template-columns: 1fr; gap: 8px; }
  .tv-kanal { grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 10px 12px; }
  .tv-kanal i { grid-row: span 2; }
  .tv-plan ul { display: none; }
  .tv-plan { grid-template-columns: 1fr auto; align-items: center; }
  .tv-telefon { width: 100%; }
  .tv-altyazi { font-size: 13.5px; padding: 10px 12px 12px; }
  .tv-kontrol .tv-ad { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aktif .tv-g, .aktif .tv-yaz, .aktif .tv-bas, .tv-alan div::after { animation: none; }
  .tv-ilerleme button.aktif i::after { animation: none; width: 100%; }
  .tv-sahne > section { transition: none; }
}
