:root {
  --zemin: #0b0d12;
  --yuzey: #151821;
  --yuzey2: #1d212d;
  --cizgi: #2a2f3d;
  --metin: #f2f3f6;
  --soluk: #9aa1b2;
  --vurgu: #ff3b4e;
  --altin: #ffc247;
  --yesil: #22c55e;
  --wa: #25d366;
  --mavi: #3b82f6;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zemin); color: var(--metin); }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 10px 14px; background: var(--yuzey2); font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ana { background: var(--vurgu); color: #fff; }
button.yesil { background: var(--yesil); color: #04140a; }
button.mavi { background: var(--mavi); color: #fff; }
button.kucuk { padding: 5px 9px; font-size: 13px; border-radius: 8px; }
button.tehlike { background: #7f1d1d; color: #fecaca; }
input, select, textarea {
  width: 100%; background: var(--yuzey2); border: 1px solid var(--cizgi);
  border-radius: 10px; padding: 11px 12px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--mavi); }
label { display: block; font-size: 13px; color: var(--soluk); margin: 10px 0 5px; }
.gizli { display: none !important; }
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 14px; }
.soluk { color: var(--soluk); }
.satir { display: flex; gap: 8px; align-items: center; }
.satir > .esnek { flex: 1; min-width: 0; }

/* Üst çubuk */
.ust {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--cizgi); background: var(--zemin);
  position: sticky; top: 0; z-index: 20;
}
.logo { font-weight: 800; letter-spacing: .3px; font-size: 17px; }
.logo span { color: var(--vurgu); }
.rozet {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: var(--yuzey2); color: var(--soluk);
}
.rozet.canli { background: var(--vurgu); color: #fff; }
.rozet.canli::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nabiz 1.2s infinite; }
@keyframes nabiz { 50% { opacity: .3; } }

/* Video */
.video-kutu {
  position: relative; background: #000; aspect-ratio: 16 / 9; width: 100%; max-height: 70dvh;
  overflow: hidden; border-radius: var(--r);
}
.video-kutu video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.video-ust { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.video-ust > * { pointer-events: auto; }
.video-alt { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 8px; }
.video-alt button { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.perde {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at center, #1a1e2a, #000); color: var(--soluk); padding: 20px;
}
.perde b { display: block; color: var(--metin); font-size: 17px; margin-bottom: 4px; }
.donen { width: 34px; height: 34px; border: 3px solid #333; border-top-color: var(--vurgu); border-radius: 50%; animation: don 0.9s linear infinite; margin: 0 auto 12px; }
@keyframes don { to { transform: rotate(360deg); } }
.ses-ac { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--vurgu); color: #fff; padding: 12px 18px; font-size: 16px; }

/* İzleme düzeni */
.izle-duzen { display: grid; gap: 14px; padding: 14px 16px 24px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 960px) {
  .izle-duzen { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .izle-duzen .yan { position: sticky; top: 70px; }
}
@media (max-width: 959px) {
  .izle-duzen { padding: 0 0 24px; gap: 0; }
  .izle-duzen > .ana-kolon > .video-kutu { border-radius: 0; position: sticky; top: 0; z-index: 10; }
  .izle-duzen .ic { padding: 12px 16px 0; }
}

/* Ürün & ALDIM */
.urun-ad { font-size: 18px; font-weight: 800; margin: 0; }
.fiyat { font-size: 38px; font-weight: 900; letter-spacing: -.5px; color: var(--altin); line-height: 1.1; }
.kalan { font-size: 14px; font-weight: 700; color: var(--soluk); text-align: right; }
.kalan.az { color: var(--vurgu); }
.aldim-btn {
  width: 100%; padding: 18px; font-size: 24px; font-weight: 900; letter-spacing: 1px;
  background: var(--yesil); color: #04140a; border-radius: 14px; box-shadow: 0 6px 24px rgba(34,197,94,.35);
}
.aldim-btn:active { transform: scale(.97); }
.aldim-btn:disabled { background: var(--yuzey2); color: var(--soluk); box-shadow: none; }
.aldin { margin-top: 12px; background: #052e16; border: 1px solid var(--yesil); color: #bbf7d0; border-radius: 12px; padding: 12px; font-weight: 700; text-align: center; }
.alici-liste { list-style: none; padding: 0; margin: 10px 0 0; max-height: 170px; overflow: auto; }
.alici-liste li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--cizgi); font-size: 14px; }

.etiket.secim { background: #1e3a8a; color: #dbeafe; font-size: 12px; }

/* Kayıt uyarısı */
.kayit-uyari.bekliyor { background: #0c2a4a; border-color: #1d4ed8; color: #dbeafe; }
.kayit-uyari {
  background: #3a2a05; border: 1px solid #a16207; color: #fde68a; border-radius: 12px; padding: 12px 14px;
  font-weight: 600; text-align: center;
}
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--wa); color: #052e14; font-weight: 800; font-size: 17px; padding: 15px; border-radius: 12px;
  text-decoration: none; margin-top: 10px;
}
.wa-btn svg { width: 24px; height: 24px; }

/* Sohbet */
.sohbet { display: flex; flex-direction: column; height: 420px; }
.sohbet-liste { flex: 1; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; }
.msj { padding: 4px 0; font-size: 14px; word-wrap: break-word; }
.msj .kim { font-weight: 700; margin-right: 6px; color: #93c5fd; }
.msj.yayinci .kim { color: var(--vurgu); }
.msj.moderator .kim { color: #c084fc; }
.msj.sistem { color: var(--altin); font-weight: 600; }
.msj.sistem .kim { display: none; }
.msj .islemler { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.sohbet form { display: flex; gap: 8px; margin-top: 10px; }

/* Bildirim */
#bildirim {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 62px); transform: translateX(-50%); z-index: 100;
  background: #111; border: 1px solid var(--cizgi); padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); font-weight: 600;
}
#bildirim.hata { border-color: var(--vurgu); color: #fecaca; }

/* Kayıt ekranı */
.merkez { min-height: calc(100dvh - 60px); display: grid; place-items: center; padding: 20px 16px; }
.giris-kart { width: 100%; max-width: 400px; }
.giris-kart h1 { margin: 0 0 4px; font-size: 22px; }

/* Panel listeleri */
.tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.tablo td, .tablo th { padding: 8px 6px; border-bottom: 1px solid var(--cizgi); text-align: left; vertical-align: middle; }
.tablo th { color: var(--soluk); font-weight: 600; font-size: 12px; }
.etiket { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--yuzey2); white-space: nowrap; }
.etiket.onayli { background: #14532d; color: #bbf7d0; }
.etiket.bekliyor { background: #713f12; color: #fde68a; }
.etiket.reddedildi, .etiket.banli { background: #7f1d1d; color: #fecaca; }
.etiket.susturuldu { background: #3b0764; color: #e9d5ff; }
.etiket.cevrimici { background: #0c4a6e; color: #bae6fd; }
.sekme-bar { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.sekme-bar button.secili { background: var(--mavi); color: #fff; }
.sayi-rozet { background: var(--vurgu); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
h2 { font-size: 15px; margin: 0 0 10px; }

/* ===== TikTok tarzı tam ekran izleme ===== */
.tt { position: fixed; inset: 0; background: #000; overflow: hidden; }
@media (min-width: 700px) {
  /* Masaüstünde ortada telefon oranında sütun */
  .tt { left: 50%; right: auto; width: min(100vw, calc(100dvh * 9 / 16)); min-width: 420px; transform: translateX(-50%); }
}
.tt-sahne { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto !important; max-height: none; }
.tt-sahne video { object-fit: contain; }
.tt-sahne.dikey video { object-fit: cover; } /* dikey yayın ekranı tamamen doldurur */

.tt-ust {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 24px;
  background: linear-gradient(rgba(0,0,0,.55), transparent);
}
.tt-ust .esnek { flex: 1; }
.rozet.koyu { background: rgba(0,0,0,.45); color: #fff; }
.yuvarlak {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: #fff; font-size: 17px; backdrop-filter: blur(6px); flex-shrink: 0;
}
.yuvarlak.kapali { opacity: .45; }

.tt-alt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; gap: 8px;
  padding: 40px 12px calc(env(safe-area-inset-bottom) + 10px);
  background: linear-gradient(transparent, rgba(0,0,0,.35) 30%, rgba(0,0,0,.7));
}

/* Mesajlar: en fazla ~5 satır görünür, üst kısım silikleşir; eski mesajlar kaybolur */
.tt-sohbet {
  max-height: 26dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px;
  width: 78%; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
          mask-image: linear-gradient(transparent, #000 45%);
}
.tt-sohbet::-webkit-scrollbar { display: none; }
.tt-sohbet.gizli-sohbet { visibility: hidden; }
.tt-sohbet .msj {
  align-self: flex-start; max-width: 100%; padding: 4px 9px; border-radius: 12px;
  background: rgba(0,0,0,.32); font-size: 13.5px; line-height: 1.35; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6); animation: msjGel .25s ease-out;
}
.tt-sohbet .msj.eski { animation: msjSon 1.2s ease forwards; }
.tt-sohbet .msj.sistem { background: rgba(34,197,94,.28); color: #dcfce7; font-weight: 700; }
.tt-sohbet .msj.yayinci { background: rgba(255,59,78,.35); }
.tt-sohbet .msj .kim { color: #cbd5e1; font-weight: 700; }
.tt-sohbet .msj.yayinci .kim, .tt-sohbet .msj.moderator .kim { color: #fff; }
@keyframes msjGel { from { opacity: 0; transform: translateY(6px); } }
@keyframes msjSon { to { opacity: 0; height: 0; padding: 0; margin: 0; } }

.tt-urun {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px;
  background: rgba(20,22,30,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08);
}
.tt-urun-ad { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e5e7eb; }
.tt-fiyat { white-space: nowrap; font-size: 26px; font-weight: 900; color: var(--altin); line-height: 1.1; }
.aldim-ipucu {
  cursor: pointer;
  flex-shrink: 0; max-width: 38%; text-align: center; font-size: 13px; font-weight: 800; line-height: 1.25;
  padding: 9px 11px; border-radius: 12px; background: rgba(34,197,94,.22); color: #bbf7d0; border: 1px solid rgba(34,197,94,.5);
}
.aldim-ipucu.bitti { background: rgba(255,59,78,.25); color: #fecaca; border-color: rgba(255,59,78,.6); font-size: 15px; }
.tt .aldin { margin: 0; padding: 8px; font-size: 14px; }
.tt-sayfa {
  background: rgba(20,22,30,.95); border: 1px solid var(--cizgi); border-radius: 16px; padding: 12px;
}
.tt .kayit-uyari { font-size: 14px; padding: 9px 12px; }
.tt .wa-btn { margin-top: 6px; padding: 12px; font-size: 16px; }
.tt-yaz { display: flex; gap: 8px; align-items: center; }
.tt-yaz input { background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 11px 16px; font-size: 15px; }
.tt-yaz .gonder { background: var(--vurgu); }
.tt .perde { background: #000; }
.tt .ses-ac { top: 42%; z-index: 7; font-size: 18px; padding: 14px 22px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }

/* İsteğe bağlı WhatsApp kayıt hatırlatması (tek satır) */
.kayit-serit {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 14px;
  background: rgba(58,42,5,.75); border: 1px solid rgba(161,98,7,.7); color: #fde68a; font-size: 13px; font-weight: 600;
}
.kayit-serit.bekliyor { background: rgba(5,46,22,.75); border-color: rgba(34,197,94,.6); color: #bbf7d0; }
.wa-mini {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; text-decoration: none;
  background: var(--wa); color: #052e14; font-weight: 800; font-size: 13px; padding: 8px 11px; border-radius: 10px;
}
.wa-mini svg { width: 18px; height: 18px; }
.kapat-x { background: transparent; color: inherit; padding: 4px 6px; font-size: 14px; opacity: .7; }
