/* A Kare · Instagram hikâyeleri ve gönderileri */
html.ig-lock { overflow: hidden; }

/* hikâye halkaları */
.ig-st { padding: 18px 0 4px; }
.ig-st__row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.ig-st__row::-webkit-scrollbar { display: none; }
.ig-st__ring { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.ig-st__pic { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #f9db6c, #f97316, #e11d48, #a855f7, #f9db6c); transition: transform .2s; }
.ig-st__ring:hover .ig-st__pic { transform: scale(1.06); }
.ig-st__ring:focus-visible .ig-st__pic { outline: 3px solid var(--ak-ink, #111); outline-offset: 2px; }
.ig-st__pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--ak-bg, #fff); background: #fff; display: block; }
.ig-st__name { font-size: 12px; font-weight: 600; color: var(--ak-muted, #5a6273); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* gönderi ızgarası */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.ig-card { display: flex; flex-direction: column; border-radius: var(--ak-radius-sm, 14px); overflow: hidden; background: var(--ak-surface, #fff);
  border: 1px solid var(--ak-line, #e8e2d3); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.ig-card:hover { transform: translateY(-3px); box-shadow: var(--ak-shadow-lg); }
.ig-card__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ak-tint, #f3efe4); }
.ig-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ig-card:hover .ig-card__img img { transform: scale(1.04); }
.ig-card__type, .ig-card__pin { position: absolute; top: 8px; font-style: normal; font-size: 13px; line-height: 1; padding: 5px 7px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; }
.ig-card__type { right: 8px; }
.ig-card__pin { left: 8px; background: var(--ak-gold, #f9db6c); }
.ig-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.ig-card__body b { font-size: .95rem; line-height: 1.35; }
.ig-card__body small { color: var(--ak-muted, #5a6273); font-size: .8rem; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .ig-card__body { padding: 9px 10px 11px; } .ig-card__body b { font-size: .85rem; } }

/* pencere */
.ig-ov { position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,.86); display: grid; place-items: center; animation: ig-fade .2s; }
@keyframes ig-fade { from { opacity: 0; } }
.ig-sv { position: relative; width: min(420px, 100vw); height: min(calc(100dvh - 24px), 746px); border-radius: 16px; overflow: hidden; background: #000; }
.ig-sv__media { position: absolute; inset: 0; display: grid; place-items: center; }
.ig-sv__media img, .ig-sv__media video { width: 100%; height: 100%; object-fit: contain; }
.ig-sv__bars { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 3; display: flex; gap: 4px; }
.ig-sv__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.ig-sv__bars b { display: block; height: 100%; width: 0; background: #fff; }
.ig-sv__bars i.is-done b { width: 100%; }
.ig-sv__bars i.is-on b { animation: ig-bar linear forwards; }
@keyframes ig-bar { to { width: 100%; } }
.ig-sv__top { position: absolute; left: 12px; right: 6px; top: 20px; z-index: 3; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ig-sv__top em { font-style: normal; font-weight: 400; opacity: .8; }
.ig-sv__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ig-sv__prev, .ig-sv__next { position: absolute; top: 70px; bottom: 70px; z-index: 2; width: 35%; border: 0; background: transparent; cursor: pointer; }
.ig-sv__prev { left: 0; } .ig-sv__next { right: 0; }
.ig-sv__link { position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: #111; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .ig-sv { height: 100dvh; width: 100vw; border-radius: 0; } }

.ig-pv { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 16px; overflow: hidden; background: #fff; }
.ig-pv__img { background: #000; display: grid; place-items: center; }
.ig-pv__img img { width: 100%; max-height: calc(100dvh - 24px); object-fit: contain; display: block; }
.ig-pv__text { padding: 26px 24px; overflow: auto; color: #1f2633; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ig-pv__text small { color: #5a6273; }
.ig-pv__text p { margin: 0; line-height: 1.6; font-size: .95rem; }
.ig-tag { color: #8a6400; font-weight: 600; }
.ig-pv .ig-sv__x { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(0,0,0,.55); }
@media (max-width: 760px) {
  .ig-pv { grid-template-columns: 1fr; overflow: auto; }
  .ig-pv__img img { max-height: 60dvh; }
  .ig-pv__text { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .ig-card, .ig-card__img img, .ig-st__pic { transition: none; } }
