/* Akış — mobilde dikey snap; masaüstünde kart ızgarası */

html.is-mobile-app #page-feed.feed-logged-in .feed-toolbar-web,
html.kozamia-app-shell #page-feed.feed-logged-in .feed-toolbar-web,
html.is-mobile-app #page-feed .feed-mode-toggle,
html.kozamia-app-shell #page-feed .feed-mode-toggle,
html.is-mobile-app #page-feed .feed-app-tabs,
html.kozamia-app-shell #page-feed .feed-app-tabs {
  display: none !important;
}

html.is-mobile-app #page-feed.feed-logged-in.is-feed-snap-active #discover-video-grid,
html.kozamia-app-shell #page-feed.feed-logged-in.is-feed-snap-active #discover-video-grid,
html.is-mobile-app #page-feed.feed-mode-vertical #discover-video-grid,
html.kozamia-app-shell #page-feed.feed-mode-vertical #discover-video-grid {
  display: none !important;
}

html.is-mobile-app #page-feed.feed-logged-in.is-feed-snap-active #discover-vertical-feed,
html.kozamia-app-shell #page-feed.feed-logged-in.is-feed-snap-active #discover-vertical-feed,
html.is-mobile-app #page-feed.feed-mode-vertical #discover-vertical-feed:not([hidden]),
html.kozamia-app-shell #page-feed.feed-mode-vertical #discover-vertical-feed:not([hidden]) {
  display: block !important;
}

html.is-mobile-app #page-feed.feed-mode-grid:not(.is-feed-snap-active) #discover-video-grid,
html.kozamia-app-shell #page-feed.feed-mode-grid:not(.is-feed-snap-active) #discover-video-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.65rem 0.75rem calc(1rem + var(--bottom-nav-h, 4.5rem));
  width: 100%;
  box-sizing: border-box;
}

html.is-mobile-app #page-feed.feed-mode-grid:not(.is-feed-snap-active) #discover-vertical-feed,
html.kozamia-app-shell #page-feed.feed-mode-grid:not(.is-feed-snap-active) #discover-vertical-feed {
  display: none !important;
}

html.is-mobile-app #page-feed.feed-logged-in .feed-app-top,
html.kozamia-app-shell #page-feed.feed-logged-in .feed-app-top {
  display: none !important;
}

html.is-mobile-app .feed-app-bar,
html.kozamia-app-shell .feed-app-bar {
  display: grid;
  grid-template-columns: 2.35rem 1fr 2.35rem;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  pointer-events: auto;
}

html.is-mobile-app .feed-app-icon-btn,
html.kozamia-app-shell .feed-app-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--kozamia-shell-purple, #752FEE);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

html.is-mobile-app .feed-app-icon-btn .material-symbols-outlined,
html.kozamia-app-shell .feed-app-icon-btn .material-symbols-outlined {
  font-size: 1.4rem;
}

html.is-mobile-app .feed-app-title,
html.kozamia-app-shell .feed-app-title {
  margin: 0;
  text-align: center;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--kozamia-shell-purple, #752FEE);
  text-shadow: none;
}

/* Hikâyeler — üst beyaz alana (safe-area dahil), Akış yazısı yok */
html.is-mobile-app #page-feed.feed-logged-in .feed-top-chrome,
html.kozamia-app-shell #page-feed.feed-logged-in .feed-top-chrome,
html.is-mobile-app #page-feed.is-feed-snap-active .feed-top-chrome,
html.kozamia-app-shell #page-feed.is-feed-snap-active .feed-top-chrome {
  position: relative !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 12 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: flex-end !important;
  background: var(--bg-elevated, #fff) !important;
  background-color: var(--bg-elevated, #fff) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: calc(0.2rem + env(safe-area-inset-top, 0px)) 0.45rem 0.2rem !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

html.is-mobile-app #page-feed .story-rings-row,
html.kozamia-app-shell #page-feed .story-rings-row,
html.is-mobile-app #page-feed.is-feed-snap-active .story-rings-row,
html.kozamia-app-shell #page-feed.is-feed-snap-active .story-rings-row {
  pointer-events: auto !important;
  background: transparent !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  margin: 0 !important;
  padding: 0.05rem 0 0 !important;
  gap: 0.28rem !important;
  -webkit-overflow-scrolling: touch;
}

html.is-mobile-app #page-feed .story-ring-name,
html.kozamia-app-shell #page-feed .story-ring-name,
html.is-mobile-app #page-feed.is-feed-snap-active .story-ring-name,
html.kozamia-app-shell #page-feed.is-feed-snap-active .story-ring-name {
  color: var(--text, #3d2a4a) !important;
  text-shadow: none !important;
  font-size: 0.62rem !important;
  line-height: 1.1 !important;
  margin-top: 0.12rem !important;
}

html.is-mobile-app #page-feed .story-ring-add .story-ring-avatar,
html.kozamia-app-shell #page-feed .story-ring-add .story-ring-avatar {
  border-style: dashed !important;
  background: rgba(106, 61, 138, 0.08) !important;
  color: var(--kozamia-shell-purple, #752FEE) !important;
  border-color: rgba(106, 61, 138, 0.45) !important;
}

/* Dikey akış */
html.is-mobile-app #page-feed.feed-logged-in.is-feed-snap-active .feed-page-panel,
html.kozamia-app-shell #page-feed.feed-logged-in.is-feed-snap-active .feed-page-panel {
  position: relative;
}

html.is-mobile-app #page-feed .vertical-video-feed.is-tiktok-feed,
html.kozamia-app-shell #page-feed .vertical-video-feed.is-tiktok-feed {
  background: #0b0710 !important;
}

html.is-mobile-app #page-feed .tiktok-reel-meta .vertical-video-author,
html.kozamia-app-shell #page-feed .tiktok-reel-meta .vertical-video-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

html.is-mobile-app #page-feed .tiktok-reel-meta .vertical-video-author strong,
html.kozamia-app-shell #page-feed .tiktok-reel-meta .vertical-video-author strong {
  font-weight: 750;
}

html.is-mobile-app #page-feed .vertical-video-cat,
html.kozamia-app-shell #page-feed .vertical-video-cat {
  color: #c4a3f5;
}

html.is-mobile-app #page-feed .vertical-play-fab,
html.kozamia-app-shell #page-feed .vertical-play-fab {
  opacity: 0.85;
}

html.is-mobile-app #page-feed .vertical-video-card.is-playing .vertical-play-fab,
html.kozamia-app-shell #page-feed .vertical-video-card.is-playing .vertical-play-fab {
  opacity: 0;
  pointer-events: none;
}

html.is-mobile-app #page-feed .tiktok-rail-btn.is-saved .material-symbols-outlined,
html.kozamia-app-shell #page-feed .tiktok-rail-btn.is-saved .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
  color: #f5d0fe;
}

/* Vertical reel overlays */
html.is-mobile-app #page-feed .tiktok-reel-rail,
html.kozamia-app-shell #page-feed .tiktok-reel-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  right: 0.55rem;
  bottom: 5.5rem;
  z-index: 6;
}
html.is-mobile-app #page-feed .tiktok-rail-avatar,
html.kozamia-app-shell #page-feed .tiktok-rail-avatar {
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0.35rem;
}
html.is-mobile-app #page-feed .tiktok-rail-avatar-img,
html.kozamia-app-shell #page-feed .tiktok-rail-avatar-img {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #752FEE;
  display: grid;
  place-items: center;
  background: #2a1a35;
  color: #fff;
  font-size: 1.1rem;
}
html.is-mobile-app #page-feed .tiktok-rail-avatar-img img,
html.kozamia-app-shell #page-feed .tiktok-rail-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.is-mobile-app #page-feed .tiktok-rail-avatar-plus,
html.kozamia-app-shell #page-feed .tiktok-rail-avatar-plus {
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  transform: translateX(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #752FEE;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}
html.is-mobile-app #page-feed .tiktok-rail-btn,
html.kozamia-app-shell #page-feed .tiktok-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border: 0;
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  padding: 0;
  min-width: 2.5rem;
}
html.is-mobile-app #page-feed .tiktok-rail-btn .material-symbols-outlined,
html.kozamia-app-shell #page-feed .tiktok-rail-btn .material-symbols-outlined {
  font-size: 1.85rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
html.is-mobile-app #page-feed .tiktok-rail-btn.liked .material-symbols-outlined,
html.is-mobile-app #page-feed .tiktok-rail-btn.liked,
html.kozamia-app-shell #page-feed .tiktok-rail-btn.liked .material-symbols-outlined,
html.kozamia-app-shell #page-feed .tiktok-rail-btn.liked {
  color: #752FEE;
  font-variation-settings: "FILL" 1;
}
html.is-mobile-app #page-feed .tiktok-rail-btn span:not(.material-symbols-outlined),
html.kozamia-app-shell #page-feed .tiktok-rail-btn span:not(.material-symbols-outlined) {
  font-size: 0.72rem;
  font-weight: 700;
}
html.is-mobile-app #page-feed .tiktok-reel-meta,
html.kozamia-app-shell #page-feed .tiktok-reel-meta {
  left: 0.85rem;
  right: 4.5rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  z-index: 5;
}
html.is-mobile-app #page-feed .tiktok-community-pill,
html.kozamia-app-shell #page-feed .tiktok-community-pill {
  display: none !important;
}
html.is-mobile-app #page-feed .tiktok-verified,
html.kozamia-app-shell #page-feed .tiktok-verified {
  color: #752FEE;
  display: inline-flex;
}
html.is-mobile-app #page-feed .tiktok-verified .material-symbols-outlined,
html.kozamia-app-shell #page-feed .tiktok-verified .material-symbols-outlined {
  font-size: 1.05rem;
  font-variation-settings: "FILL" 1;
}
html.is-mobile-app #page-feed .tiktok-caption,
html.kozamia-app-shell #page-feed .tiktok-caption {
  margin: 0;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
html.is-mobile-app #page-feed .tiktok-hashtags,
html.kozamia-app-shell #page-feed .tiktok-hashtags {
  margin: 0;
  color: #c9a6e0;
  font-size: 0.8rem;
  font-weight: 700;
}
html.is-mobile-app #page-feed .tiktok-audio,
html.kozamia-app-shell #page-feed .tiktok-audio {
  margin: 0.15rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
}
html.is-mobile-app #page-feed .tiktok-audio .material-symbols-outlined,
html.kozamia-app-shell #page-feed .tiktok-audio .material-symbols-outlined {
  font-size: 0.95rem;
}
html.is-mobile-app #page-feed .tiktok-mute-chip,
html.kozamia-app-shell #page-feed .tiktok-mute-chip {
  display: none !important;
}

/* —— Arkadaş / arama yok — yalnızca başlık —— */
html.is-mobile-app #page-feed .feed-app-bar,
html.kozamia-app-shell #page-feed .feed-app-bar {
  display: flex !important;
  justify-content: center;
  align-items: center;
  grid-template-columns: none;
}

html.is-mobile-app #page-feed #feed-app-friends,
html.is-mobile-app #page-feed #feed-app-search-vert,
html.kozamia-app-shell #page-feed #feed-app-friends,
html.kozamia-app-shell #page-feed #feed-app-search-vert {
  display: none !important;
}

/* —— Hikaye halkası: daire, kare kutu yok —— */
html.is-mobile-app #page-feed .story-ring,
html.kozamia-app-shell #page-feed .story-ring {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 3.55rem;
}

html.is-mobile-app #page-feed .story-ring-hit,
html.kozamia-app-shell #page-feed .story-ring-hit {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.is-mobile-app #page-feed .story-ring-avatar,
html.kozamia-app-shell #page-feed .story-ring-avatar {
  width: 3.35rem !important;
  height: 3.35rem !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2.5px solid transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #752FEE, #CE8FF2) border-box !important;
  box-shadow: 0 2px 8px rgba(28, 31, 36, 0.08) !important;
  padding: 0 !important;
}

html.is-mobile-app #page-feed .story-ring-avatar img,
html.is-mobile-app #page-feed .story-ring-avatar .story-ring-avatar-inner,
html.kozamia-app-shell #page-feed .story-ring-avatar img,
html.kozamia-app-shell #page-feed .story-ring-avatar .story-ring-avatar-inner {
  border-radius: 50% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: grid !important;
  place-items: center;
}

html.is-mobile-app #page-feed .story-ring.is-seen .story-ring-avatar,
html.kozamia-app-shell #page-feed .story-ring.is-seen .story-ring-avatar {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #6b7280, #9ca3af) border-box !important;
  opacity: 0.85;
}

html.is-mobile-app #page-feed .story-ring-add .story-ring-avatar,
html.kozamia-app-shell #page-feed .story-ring-add .story-ring-avatar {
  background: rgba(106, 61, 138, 0.08) !important;
  border: 2px dashed rgba(106, 61, 138, 0.45) !important;
  color: var(--kozamia-shell-purple, #752FEE) !important;
  box-shadow: none !important;
}

html.is-mobile-app #page-feed .story-ring.is-self.has-story .story-ring-avatar,
html.kozamia-app-shell #page-feed .story-ring.is-self.has-story .story-ring-avatar {
  padding: 0 !important;
  border: 2.5px solid transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box !important;
}

/* —— Tam ekran dikey yalnızca snap modunda (artık kapalı) —— */
html.is-mobile-app #page-feed.feed-logged-in,
html.kozamia-app-shell #page-feed.feed-logged-in {
  background: var(--bg, #fdf8f5) !important;
  background-color: var(--bg, #fdf8f5) !important;
  height: auto !important;
  max-height: none !important;
  padding-bottom: 0 !important;
  overflow: auto !important;
}

html.is-mobile-app #page-feed.is-feed-snap-active,
html.kozamia-app-shell #page-feed.is-feed-snap-active {
  background: #0b0710 !important;
  background-color: #0b0710 !important;
  height: calc(100dvh - var(--bottom-nav-h, 4.35rem)) !important;
  max-height: calc(100dvh - var(--bottom-nav-h, 4.35rem)) !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

html.is-mobile-app #page-feed.is-feed-snap-active .page-wrap.feed-hub,
html.kozamia-app-shell #page-feed.is-feed-snap-active .page-wrap.feed-hub {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  background: #0b0710 !important;
  overflow: hidden !important;
}

html.is-mobile-app #page-feed.is-feed-snap-active .feed-page-panel,
html.is-mobile-app #page-feed.is-feed-snap-active #discover-panel-feed,
html.kozamia-app-shell #page-feed.is-feed-snap-active .feed-page-panel,
html.kozamia-app-shell #page-feed.is-feed-snap-active #discover-panel-feed {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #0b0710 !important;
}

html.is-mobile-app #page-feed.feed-logged-in .feed-app-top,
html.kozamia-app-shell #page-feed.feed-logged-in .feed-app-top {
  display: none !important;
}

html.is-mobile-app #page-feed.feed-logged-in .feed-top-chrome,
html.kozamia-app-shell #page-feed.feed-logged-in .feed-top-chrome {
  position: relative !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 12 !important;
  flex: 0 0 auto !important;
  background: var(--bg-elevated, #fff) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: calc(0.2rem + env(safe-area-inset-top, 0px)) 0.45rem 0.2rem !important;
  pointer-events: auto !important;
}

html.is-mobile-app #page-feed .story-rings-row,
html.kozamia-app-shell #page-feed .story-rings-row {
  pointer-events: auto !important;
  background: transparent !important;
  max-height: none !important;
  padding: 0.05rem 0 0 !important;
  margin: 0 !important;
  gap: 0.28rem !important;
}

html.is-mobile-app #page-feed .story-ring-add .story-ring-avatar,
html.kozamia-app-shell #page-feed .story-ring-add .story-ring-avatar {
  background: rgba(106, 61, 138, 0.08) !important;
  border: 2px dashed rgba(106, 61, 138, 0.45) !important;
  color: var(--kozamia-shell-purple, #752FEE) !important;
  box-shadow: none !important;
}

html.is-mobile-app #page-feed.is-feed-snap-active .vertical-video-feed.is-mobile-snap,
html.is-mobile-app #page-feed.is-feed-snap-active .vertical-video-feed.is-tiktok-feed,
html.kozamia-app-shell #page-feed.is-feed-snap-active .vertical-video-feed.is-mobile-snap,
html.kozamia-app-shell #page-feed.is-feed-snap-active .vertical-video-feed.is-tiktok-feed {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0b0710 !important;
}

html.is-mobile-app #page-feed.is-feed-snap-active .vertical-video-card,
html.is-mobile-app #page-feed.is-feed-snap-active .tiktok-reel-card,
html.kozamia-app-shell #page-feed.is-feed-snap-active .vertical-video-card,
html.kozamia-app-shell #page-feed.is-feed-snap-active .tiktok-reel-card {
  flex: 0 0 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: #0b0710 !important;
}

html.is-mobile-app #page-feed.is-feed-snap-active .vertical-video-poster,
html.is-mobile-app #page-feed.is-feed-snap-active .vertical-inline-media,
html.kozamia-app-shell #page-feed.is-feed-snap-active .vertical-video-poster,
html.kozamia-app-shell #page-feed.is-feed-snap-active .vertical-inline-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Reel yorum alt paneli */
.feed-reel-comments {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.feed-reel-comments[hidden] {
  display: none !important;
}

.feed-reel-comments:not([hidden]) {
  pointer-events: auto;
}

.feed-reel-comments-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 10, 24, 0.45);
  cursor: pointer;
}

.feed-reel-comments-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(68dvh, 34rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1f1630;
  border-radius: 1.15rem 1.15rem 0 0;
  box-shadow: 0 -12px 40px rgba(20, 10, 40, 0.22);
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  animation: feedReelCommentsUp 0.22s ease;
}

@keyframes feedReelCommentsUp {
  from { transform: translateY(12%); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.feed-reel-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid rgba(106, 61, 138, 0.1);
}

.feed-reel-comments-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.feed-reel-comments-close {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 50%;
  background: rgba(106, 61, 138, 0.08);
  color: #3d2a4a;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.feed-reel-comments-list {
  flex: 1 1 auto;
  min-height: 8rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.feed-reel-comments-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem 0;
  border-top: 1px solid rgba(106, 61, 138, 0.1);
}

.feed-reel-comments-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(106, 61, 138, 0.16);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  background: #faf7fb;
  color: inherit;
}

.feed-reel-comments-form button[type="submit"] {
  flex: 0 0 auto;
  border-radius: 999px;
  min-height: 2.45rem;
  padding: 0 1rem;
}

body.feed-reel-comments-open {
  overflow: hidden;
}

/* end sade akış */
