/* ============ STORY (Sosyal Faz 3, v20260902f) ============ */
/* --- şerit --- */
.sc-story-blok { margin-bottom: 14px; }
.sc-story-serit { display: flex; gap: 10px; overflow-x: auto; padding: 12px 4px 8px; scrollbar-width: none; }
.sc-story-serit::-webkit-scrollbar { display: none; }
.sc-story-ring { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; width: 72px; }
.sc-story-ring .sc-story-av {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #22252b; overflow: visible; position: relative; border: 3px solid transparent;
  background-image: linear-gradient(#1c1f24, #1c1f24), linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.sc-story-av img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.sc-story-av-harf { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; background: #3a3f4a; color: #fff; }
.sc-story-izlendi .sc-story-av { background-image: linear-gradient(#1c1f24, #1c1f24), linear-gradient(#3a3f4a, #3a3f4a); }
.sc-story-ad { font-size: .72rem; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.sc-story-plus { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: #4f8cff; color: #fff; font-style: normal; font-weight: 700; font-size: 1rem; line-height: 20px;
  text-align: center; border: 2px solid #1c1f24; }
.sc-story-av-giris { font-size: 1.2rem; }
.sc-story-bos { padding: 22px 14px; text-align: center; opacity: .55; font-size: .9rem;
  background: var(--sc-kart,#22252b); border: 1px dashed var(--sc-border,#333a45); border-radius: 14px; margin-bottom: 14px; }

/* --- izleyici --- */
#storyIzleyici { position: fixed; inset: 0; z-index: 10002; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.94); }
#storyIzleyici .sc-izle-icerik { position: relative; width: min(430px, 94vw); height: min(92vh, 860px);
  border-radius: 16px; overflow: hidden; background: #000; }
.sc-izle-resim, .sc-izle-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sc-izle-resim img { width: 100%; height: 100%; object-fit: contain; }
.sc-izle-video iframe { width: 100%; height: 100%; border: 0; }
.sc-izle-altyazi { position: absolute; bottom: 26px; left: 16px; right: 16px; color: #fff; font-size: .95rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.8); z-index: 5; }
.sc-izle-ust { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 12px 12px 34px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.sc-izle-segler { display: flex; gap: 4px; margin-bottom: 10px; }
.sc-izle-seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.sc-izle-dolu { height: 100%; background: #fff; width: 0; }
.sc-izle-kisi { display: flex; align-items: center; gap: 8px; color: #fff; }
.sc-izle-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; text-decoration: none;
  border: 2px solid #fff; display: flex; align-items: center; justify-content: center; background: #3a3f4a; }
.sc-izle-av img { width: 100%; height: 100%; object-fit: cover; }
.sc-izle-av .sc-story-av-harf { width: 100%; height: 100%; font-size: .9rem; }
.sc-izle-isim { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-izle-isim a { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.sc-izle-isim span { font-size: .72rem; opacity: .8; }
.sc-izle-sil { background: none; border: none; color: #fff; opacity: .8; cursor: pointer; font-size: 1rem; padding: 4px 8px; }
.sc-izle-kapat { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: .9; padding: 2px 6px; }
.sc-izle-bolge { position: absolute; top: 60px; bottom: 0; width: 45%; z-index: 15; cursor: pointer; }
.sc-izle-once { left: 0; }
.sc-izle-sonra { right: 0; }

/* --- ekleme modalı --- */
#storyEkleModal.sc-lb { background: rgba(0,0,0,.65); }
.sc-ekle-kutu { background: var(--sc-kart,#22252b); border-radius: 16px; padding: 18px; width: min(420px, 92vw);
  display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--sc-border,#333a45); }
.sc-ekle-baslik { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1rem; }
.sc-ekle-baslik button, .sc-ekle-sec { background: rgba(127,127,127,.14); border: none; color: inherit; cursor: pointer; border-radius: 10px; padding: 8px 12px; }
.sc-ekle-baslik button { padding: 4px 10px; font-size: 1rem; }
.sc-ekle-video { display: flex; gap: 6px; }
.sc-ekle-video input, .sc-ekle-cap input { flex: 1; background: var(--sc-input,#1b1e23); border: 1px solid var(--sc-border,#333a45);
  border-radius: 10px; padding: 8px 12px; color: inherit; font: inherit; min-width: 0; }
.sc-ekle-oniz img { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; margin: 0 auto; }
.sc-ekle-durum { font-size: .85rem; opacity: .75; min-height: 1.2em; text-align: center; }

/* ============ REELS — INSTAGRAM TARZI (v20260902g) ============ */
body.sc-reels-body { background: #000 !important; overflow: hidden; height: 100dvh; }
.sc-reels-body .sc-topbar, .sc-reels-body .sc-container { display: none; } /* panel üst barını gizle (reels tam ekran) */

/* üst bar */
.sc-reels-ust { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 16px; background: linear-gradient(rgba(0,0,0,.55), transparent);
  color: #fff; pointer-events: none; }
.sc-reels-ust > * { pointer-events: auto; }
.sc-reels-logo { font-weight: 800; font-size: 1.35rem; letter-spacing: .5px; }
.sc-reels-ust a.sc-reels-yeni { text-decoration: none; color: #fff; display: flex; }
.sc-reels-arti { font-size: 1.9rem; line-height: 1; font-weight: 300; }
.sc-reels-sekme { display: flex; gap: 6px; background: rgba(255,255,255,.12); padding: 3px; border-radius: 24px; }
.sc-reels-sekme button { background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer;
  padding: 5px 14px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.sc-reels-sekme button.active { background: #fff; color: #111; }

/* akış */
#reelsAkis { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
#reelsAkis::-webkit-scrollbar { display: none; }
.sc-reel { height: 100dvh; scroll-snap-align: start; position: relative; background: #000; overflow: hidden; }

/* video alanı — 9:16 merkezli kutu */
.sc-reels-video-alan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sc-reels-video-kap { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #000; }
.sc-reels-video-kap video, .sc-reels-video-kap iframe {
  width: 100%; height: 100%; border: 0; object-fit: cover; display: block; background: #000; }
.sc-reels-video-kap video { cursor: pointer; }
.sc-reels-oynat-kapak { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.12); transition: opacity .3s; z-index: 2; pointer-events: none; }
.sc-reels-oynat-kapak span { font-size: 3rem; opacity: .85; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.sc-reels-video-kap[data-aktif="1"] .sc-reels-oynat-kapak { opacity: 0; }
.sc-reels-baslat { position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer; border: none; color: #fff; }
.sc-reels-linkac { color: #8ab8ff; text-decoration: none; }

/* kalp animasyonu (çift tık) */
.sc-reels-kalp-anim { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  font-size: 6rem; pointer-events: none; z-index: 6; opacity: 0; }
.sc-reels-kalp-anim.go { animation: scKalp 0.9s ease-out forwards; }
@keyframes scKalp { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0); }
  25% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
  45% { transform: translate(-50%,-50%) scale(1); }
  75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-58%) scale(1.15); } }

/* sol alt bilgi */
.sc-reels-sol-alt { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 8; padding: 20px 14px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.sc-reels-kullanici { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sc-reels-kullanici a { color: #fff; text-decoration: none; font-size: .95rem; }
.sc-reels-takip { background: #fff; color: #111; border-radius: 8px; padding: 4px 14px; font-size: .8rem;
  font-weight: 700; cursor: pointer; }
.sc-reels-aciklama { font-size: .9rem; line-height: 1.45; max-height: 3.4em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-reels-aciklama a { color: #8ab8ff; text-decoration: none; }
.sc-reels-aciklama .sc-hashtag { color: #8ab8ff; }
.sc-reels-muzik { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; opacity: .95; }

/* sağ aksiyon sütunu */
.sc-reels-sag { position: absolute; right: max(8px, calc(50% - 200px)); bottom: 120px; z-index: 9;
  display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; }
.sc-reels-av-link { text-decoration: none; display: block; }
.sc-reels-av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: flex; align-items: center;
  justify-content: center; background: #2a2e37; border: 2px solid #fff; }
.sc-reels-av img { width: 100%; height: 100%; object-fit: cover; }
.sc-reels-av-harf { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; }
.sc-reels-aksyon { background: none; border: none; color: #fff; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; gap: 3px; font-size: .7rem; text-shadow: 0 1px 6px rgba(0,0,0,.6);
  padding: 0; }
.sc-reels-aksyon .sc-aks-ikon { font-size: 1.85rem; line-height: 1.15; }
.sc-reels-aksyon .sc-aks-sayi { font-weight: 600; }
.sc-reels-begen.aktif .sc-aks-ikon { animation: scBegenZipla .4s ease; }
@keyframes scBegenZipla { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }

/* alt gezinme (IG alt bar) */
.sc-reels-altbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex;
  justify-content: space-around; align-items: center; background: rgba(8,10,14,.92); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.07); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.sc-reels-altbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255,255,255,.6);
  text-decoration: none; font-size: .62rem; min-width: 60px; }
.sc-reels-altbar a.active { color: #fff; font-weight: 700; }
.sc-reels-altbar .sc-abar-ikon { font-size: 1.35rem; line-height: 1.2; filter: grayscale(1) opacity(.85); }
.sc-reels-altbar a.active .sc-abar-ikon { filter: none; }
.sc-reels-altbar .sc-abar-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.sc-reels-altbar .sc-abar-harf { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff; background: var(--c,#4f8cff); border-radius: 50%; }

/* yorum paneli */
.sc-reels-yorum-arka { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90; display: none; }
.sc-reels-yorum-panel { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%) translateY(105%);
  width: min(460px, 100%); max-height: 72dvh; background: #181a20; color: #fff; z-index: 95;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; transition: transform .32s ease;
  border: 1px solid #2a2e37; border-bottom: none; }
.sc-reels-yorum-panel.acik { transform: translateX(-50%) translateY(0); }
.sc-reels-yorum-baslik { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px;
  border-bottom: 1px solid #262a31; font-size: .95rem; }
.sc-reels-yorum-baslik b { color: #fff; }
.sc-reels-yorum-baslik button { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.sc-reels-yorum-liste { flex: 1; min-height: 120px; overflow-y: auto; padding: 10px 14px; display: flex;
  flex-direction: column; gap: 12px; }
.sc-reels-yorum-bos { text-align: center; color: #8a8f98; padding: 30px 10px; font-size: .9rem; }
.sc-reels-yorum { display: flex; gap: 9px; }
.sc-reels-yorum-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: #262a31; text-decoration: none; }
.sc-reels-yorum-av img { width: 100%; height: 100%; object-fit: cover; }
.sc-reels-yorum-av .sc-reels-av-harf { font-size: .9rem; }
.sc-reels-yorum-govde { flex: 1; min-width: 0; }
.sc-reels-yorum-metin { background: #262a31; border-radius: 14px; padding: 7px 11px; font-size: .88rem;
  word-break: break-word; }
.sc-reels-yorum-metin a { color: #fff; text-decoration: none; }
.sc-reels-yorum-alt { display: flex; align-items: center; gap: 12px; padding: 4px 4px 0; font-size: .72rem;
  color: #8a8f98; }
.sc-reels-yorum-alt button { background: none; border: none; color: #8a8f98; cursor: pointer; font-size: .75rem;
  padding: 0; }
.sc-reels-yorum-alt button.aktif { color: #ff3b5c; }
.sc-reels-yorum-sil { margin-left: auto; color: #8a8f98 !important; }
.sc-reels-yorum-alt2 { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #262a31; }
.sc-reels-yorum-alt2 input { flex: 1; background: #262a31; border: none; border-radius: 22px; padding: 9px 14px;
  color: #fff; font: inherit; outline: none; }
.sc-reels-yorum-alt2 button { background: #4f8cff; color: #fff; border: none; border-radius: 22px; padding: 8px 18px;
  font-weight: 700; cursor: pointer; }

/* mobil ince ekranlarda sağ sütun sıkışmasın */
@media (max-width: 480px) {
  .sc-reels-sag { right: 8px; bottom: 130px; }
  .sc-reels-av { width: 40px; height: 40px; }
  .sc-reels-aksyon .sc-aks-ikon { font-size: 1.6rem; }
  .sc-reels-sol-alt { bottom: 14px; }
}
