.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  vertical-align: middle;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-custom:disabled, .btn-custom.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-custom.btn-block { display: flex; width: 100%; }
.btn-custom.sm { padding: 4px 12px; font-size: 12px; }
.btn-custom.md { padding: 8px 20px; font-size: 14px; }
.btn-custom.lg { padding: 12px 24px; font-size: 15px; }
.btn-custom.main-inline { background: var(--accent); color: #ffffff; }
.btn-custom.main-inline:hover { background: var(--accent-hover); text-decoration: none; }
.btn-custom.main-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-custom.main-outline:hover { background: var(--accent-soft); text-decoration: none; }
.btn-custom.main-gray, .btn-custom.main-grey { background: var(--bg-3); color: var(--text); }
.btn-custom.main-gray:hover, .btn-custom.main-grey:hover { background: var(--bg-4); text-decoration: none; }
.btn-custom.main-green { background: #00ba7c; color: #fff; }

.timeline-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
[data-skin="light"] .timeline-header { background: rgba(255, 255, 255, 0.85); }
[data-skin="dim"] .timeline-header { background: rgba(21, 32, 43, 0.85); }
.timeline-header__botline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 12px;
  gap: 12px;
}
.timeline-header .lp, .timeline-header .rp { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.timeline-header .rp { justify-content: flex-end; }
.timeline-header .cp { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-link-holder { display: inline-flex; align-items: center; }
.nav-link-holder a { display: inline-block; color: var(--text); font-size: 20px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.nav-link-holder a:hover { text-decoration: none; }
.timeline-header .cp img { height: 28px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.go-options { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: transparent; border: none; border-radius: var(--radius-full); color: var(--text); cursor: pointer; transition: background var(--ease); }
.go-options:hover { background: var(--bg-3); }
.go-options__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: inherit; }
.go-options__icon::after { display: none; }

.homepage { display: flex; flex-direction: column; }
.homepage__pubbox { padding: 12px 16px; border-bottom: 8px solid var(--bg-3); background: var(--bg); }
.homepage__swifts { border-bottom: 8px solid var(--bg-3); background: var(--bg); }

.swifts-slider { position: relative; padding: 12px 0 8px; }
.swifts-slider__footer { padding: 4px 12px 0; }
.swiper { position: relative; width: 100%; overflow: hidden; list-style: none; z-index: 1; touch-action: pan-y; }
.swiper-wrapper { position: relative; display: flex; width: 100%; height: 100%; z-index: 1; transition-property: transform; will-change: transform; }
.swiper-slide { flex-shrink: 0; position: relative; transition-property: transform; width: auto; }
.swiper-scrollbar { position: relative; height: 3px; width: 100%; background: var(--border); border-radius: var(--radius-full); overflow: hidden; touch-action: none; }
.swiper-scrollbar-drag { position: relative; left: 0; top: 0; height: 100%; background: var(--accent); border-radius: var(--radius-full); cursor: grab; }

.swift-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; cursor: pointer; user-select: none; transition: transform var(--ease); }
.swift-item:active { transform: scale(0.96); }
.swift-item__body { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 2px; border-radius: 50%; background: transparent; }
.swift-item.active .swift-item__body { background: linear-gradient(135deg, #fbbf24, #ec4899, #8b5cf6); }
.swift-item__body.create-swift { padding: 0; background: transparent; border: 2px dashed var(--border-2); }
.swift-item__avatar { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; }
.swift-item__body.create-swift .swift-item__avatar { border: 0; background: var(--bg-2); }
.swift-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.add-ikon { position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--accent); color: #ffffff; border-radius: 50%; border: 2px solid var(--bg); z-index: 2; }
.add-ikon svg { width: 12px; height: 12px; }
.swift-item__footer { max-width: 68px; font-size: 11px; line-height: 1.2; color: var(--text-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timeline-posts-container { padding-bottom: 24px; }
.timeline-posts-ls { display: flex; flex-direction: column; background: var(--bg); }
.timeline-posts-ls + .timeline-posts-ls { margin-top: 0; }

.timeline-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 24px; text-align: center; min-height: 320px; background: var(--bg); }
.timeline-placeholder .icon { display: flex; }
.timeline-placeholder .icon__bg { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.timeline-placeholder .icon__bg svg { width: 36px; height: 36px; display: block; }
.timeline-placeholder .pl-message h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--text); }
.timeline-placeholder .pl-message p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 340px; }

.post-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-list-item__alert { margin: -4px 0 4px; font-size: 13px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.post-list-item__header { font-size: 13px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; padding-left: 40px; }
.publication-repost a { color: var(--text-2); text-decoration: none; }
.publication-repost a:hover { text-decoration: underline; }

.post-data { display: flex; gap: 12px; align-items: flex-start; width: 100%; }
.post-data__avatar { flex-shrink: 0; width: 40px; }
.avatar-holder { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg-3); position: relative; }
.avatar-holder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-holder-online::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: var(--success); border: 2px solid var(--bg); border-radius: 50%; }

.post-data__content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-data-layout__publisher { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.post-username a { color: var(--text); text-decoration: none; font-weight: 700; }
.post-username a:hover { text-decoration: underline; }
.post-time { color: var(--text-2); font-size: 13px; }

.post-data-layout__content { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text); word-break: break-word; }
.publication-text { margin-bottom: 8px; }
.publication-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.lozad-media, .publication-image, .publication-video { margin-top: 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.publication-image img, .publication-video video, .plyr { width: 100%; height: auto; max-height: 500px; object-fit: contain; display: block; background: #000; }
.fbox-media { display: block; width: 100%; height: 100%; }

.collage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; margin-top: 8px; }
.collage-grid__item { position: relative; width: 100%; overflow: hidden; }
.collage-grid__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; display: block; }
.collage-grid.mb-2 { margin-bottom: 2px; }
.collage-grid.mt-2 { margin-top: 2px; }

.post-data-layout__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 4px; color: var(--text-2); }
.ctrls-item { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; padding: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; border-radius: var(--radius-full); transition: color var(--ease), background var(--ease); }
.ctrls-item:hover { color: var(--accent); background: var(--accent-soft); }
.ctrls-item.liked { color: #f91880; }
.ctrls-item.liked:hover { background: rgba(249, 24, 128, 0.1); }
.ctrls-item.reposted { color: #00ba7c; }
.ctrls-item.reposted:hover { background: rgba(0, 186, 124, 0.1); }
.ctrls-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.ctrls-item__icon svg { width: 100%; height: 100%; fill: currentColor; }
.ctrls-item__inner-link { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.ctrls-item__inner-link:hover { text-decoration: none; }

.timeline-pubbox-container { padding: 0; width: 100%; }
.timeline-pubbox { display: flex; flex-direction: column; width: 100%; gap: 12px; }
.timeline-pubbox__header { display: flex; gap: 12px; }
.timeline-pubbox__textinput { display: flex; gap: 12px; width: 100%; align-items: flex-start; }
.pubbox-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-3); }
.pubbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pubbox-input { flex: 1; min-width: 0; }
.pubbox-input textarea { width: 100%; min-height: 48px; max-height: 300px; padding: 10px 0; border: none; background: transparent; color: var(--text); font-size: 18px; line-height: 1.4; resize: none; outline: none; overflow-y: hidden; }
.pubbox-input textarea::placeholder { color: var(--text-2); }

.timeline-pubbox__footer { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 12px; margin-left: 52px; }
.timeline-pubbox__footer-topline { display: flex !important; align-items: center; justify-content: space-between !important; width: 100%; gap: 0; }
.timeline-pubbox__footer-topline > .ctrl-item:not(.text-length) { flex: 1; display: flex; align-items: center; justify-content: center; max-width: none; }
.timeline-pubbox__footer-topline > .text-length { flex: 0; margin-left: auto; }
.ctrl-item { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--accent); background: transparent; border: none; border-radius: 50%; cursor: pointer; transition: background var(--ease), opacity var(--ease); }
.ctrl-item:hover { background: var(--accent-soft); }
.ctrl-item:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.ctrl-item svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.ctrl-item.text-length { width: auto; padding: 0 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.ctrl-item.text-length small { font-size: 13px; color: inherit; }
.ctrl-item.text-length .len-error { color: var(--danger) !important; font-weight: 700; }

.timeline-pubbox__footer-botline { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.post-privacy { display: flex; align-items: center; }
.privacy-settings { display: inline-flex; align-items: center; background: transparent; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; margin-left: -8px; border-radius: var(--radius-full); transition: background var(--ease); }
.privacy-settings:hover { background: var(--accent-soft); }
.privacy-settings .dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.privacy-settings .dropdown-toggle::after { display: none; }
.privacy-settings .icon svg { width: 16px; height: 16px; }
.post-publication .btn-custom { border-radius: var(--radius-full); padding: 6px 16px; font-size: 14px; }

.dropdown-menu.dropdown-icons { position: absolute; z-index: 100; min-width: 220px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow-lg); }
.dropdown-menu.dropdown-icons .dropdown-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 12px; color: var(--text); font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); text-decoration: none; transition: background var(--ease); }
.dropdown-menu.dropdown-icons .dropdown-item:hover { background: var(--surface-hover); }
.dropdown-menu.dropdown-icons .dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--text-2); }
.dropdown-item-icon svg { width: 100%; height: 100%; fill: currentColor; }
.dropdown-item-icon_adinfo { margin-left: auto; opacity: 0.5; }
.dropleft .dropdown-menu { right: 0; left: auto; bottom: 100%; top: auto; margin-bottom: 8px; }

.pubbox-emoticons { display: flex; flex-direction: column; max-height: 260px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); margin-top: 10px; }
.pubbox-emoticons__type-nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); flex-shrink: 0; scrollbar-width: none; }
.pubbox-emoticons__type-nav::-webkit-scrollbar { display: none; }
.pubbox-emoticons__type-nav-item { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; border-bottom: 2px solid transparent; }
.pubbox-emoticons__type-nav-item.active { border-bottom-color: var(--accent); background: var(--accent-soft); }
.emoji_group_icon svg { width: 24px; height: 24px; }
.pubbox-emoticons__list { flex: 1; overflow-y: auto; padding: 8px; }
.pubbox-emoticons__list-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; }
.pubbox-emoticons__list-group > span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 22px; cursor: pointer; border-radius: var(--radius-sm); }
.pubbox-emoticons__list-group > span:hover { background: var(--bg-3); }

.pubbox-images__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.pubbox-images__list-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.pubbox-images__list-item img { width: 100%; height: 100%; object-fit: cover; }
.delete-preview { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: #fff; background: rgba(0, 0, 0, 0.7); border: none; border-radius: 50%; cursor: pointer; }
.delete-preview svg { width: 14px; height: 14px; }
.pubbox-video__player { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pubbox-audio, .pubbox-document { display: flex; align-items: center; justify-content: space-between; background: var(--bg-3); border-radius: var(--radius); padding: 12px; margin-top: 12px; }
.pubbox-document__body { display: flex; align-items: center; gap: 10px; }
.pubbox-document__icon svg { width: 24px; height: 24px; color: var(--accent); }
.pubbox-audio { padding: 8px 12px; }
.pubbox-audio audio { width: 100%; height: 36px; }

.post-list-advert { padding: 16px; border-bottom: 8px solid var(--bg-3); background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.post-list-advert__header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); }
.post-list-advert__sponsor { display: flex; align-items: center; gap: 6px; }
.post-list-advert__sponsor-icon svg { width: 16px; height: 16px; }
.post-list-advert__body { display: flex; flex-direction: column; gap: 8px; }
.post-list-advert__text h4 { margin: 0 0 4px; font-size: 16px; }
.post-list-advert__text p { margin: 0; font-size: 14px; color: var(--text); }
.post-list-advert__image img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 300px; }
.post-list-advert__footer { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 12px; }

.user-list-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.user-list-item__avatar { width: 44px; height: 44px; flex-shrink: 0; }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-list-item__data { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-data__body { display: flex; flex-direction: column; gap: 4px; }
.user-data__body-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.user-data__name a { color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; }
.user-data__stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); }
.stats-item span:first-child { color: var(--text); font-weight: 700; margin-right: 4px; }
.user-data__about { font-size: 14px; color: var(--text); margin-top: 4px; line-height: 1.4; }

.modal .modal-body.no-padding { padding: 0; }
.timeline-data-loader { padding: 16px; text-align: center; border-top: 1px solid var(--border); }
.timeline-data-loader__btn { background: transparent; border: none; color: var(--accent); font-weight: 600; cursor: pointer; }
.timeline-edbox, .timeline-donate { display: flex; flex-direction: column; gap: 16px; }
.modal-balance-widget { background: var(--bg-3); padding: 16px; border-radius: var(--radius); text-align: center; margin-bottom: 16px; }
.modal-balance-widget h3 { margin: 4px 0 0; font-size: 24px; color: var(--success); }

body.ov-h { overflow: hidden; }
.swift-player { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; background: #000; color: #fff; }
.swift-player.show { display: flex; }
.swift-player__body { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; max-width: var(--max-w); margin: 0 auto; overflow: hidden; }
.swift-data { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; }
.swift-data__header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 32px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent); pointer-events: none; }
.swift-data__header > * { pointer-events: auto; }
.swift-data__header-topline { display: flex; gap: 3px; margin-bottom: 10px; }
.swift-timebar { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.3); border-radius: var(--radius-full); overflow: hidden; cursor: pointer; }
.swift-timebar > span { display: block; height: 100%; background: #fff; border-radius: var(--radius-full); }
.swift-data__header-botline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swift-publisher { display: flex; align-items: center; gap: 10px; flex: 1; }
.swift-publisher__avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.swift-publisher__avatar img { width: 100%; height: 100%; object-fit: cover; }
.swift-publisher__username a { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.swift-publisher__username a > span:first-child { font-size: 14px; font-weight: 700; }
.swift-publisher__username a > span:last-child { font-size: 11px; opacity: 0.75; }
.swift-controls { display: flex; gap: 4px; }
.swift-controls__item { width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.swift-controls__item:hover { background: rgba(255, 255, 255, 0.15); }
.swift-controls__item svg { width: 18px; height: 18px; }
.swift-data__body { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.swift-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.swift-media__image img, .swift-media__video video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.swift-data__footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 48px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); }
.swift-data__desc { font-size: 14px; margin-bottom: 10px; }
.swift-data__views-total { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.18); border-radius: var(--radius-full); cursor: pointer; }
.swift-data__views { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; max-height: 60%; background: rgba(0, 0, 0, 0.94); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); overflow: hidden; }
.swift-views { display: flex; flex-direction: column; max-height: inherit; }
.swift-views__header { display: flex; justify-content: space-between; padding: 14px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.swift-views__list { flex: 1; overflow-y: auto; padding: 4px 0; }
.swift-views__list-item { display: flex; gap: 12px; padding: 10px 16px; color: #fff; text-decoration: none; }
.swift-views__list-item .avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.swift-views__list-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.swift-player__nav-ctrl { position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; color: #fff; background: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%; transform: translateY(-50%); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.swift-player__nav-ctrl.prev { left: 10px; }
.swift-player__nav-ctrl.next { right: 10px; }
.swift-player__close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 10; width: 40px; height: 40px; color: #fff; background: rgba(0, 0, 0, 0.55); border: none; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.swift-player__close svg { width: 20px; height: 20px; }

[dir="rtl"] .go-options { direction: ltr; }
[dir="rtl"] .swift-player__close { right: auto; left: 10px; }
[dir="rtl"] .swift-player__nav-ctrl.prev { left: auto; right: 10px; }
[dir="rtl"] .swift-player__nav-ctrl.next { right: auto; left: 10px; }
[dir="rtl"] .delete-preview { right: auto; left: 8px; }
[dir="rtl"] .add-ikon { right: auto; left: -2px; }

@media (max-width: 380px) {
  .swift-item__body { width: 58px; height: 58px; }
  .swift-item__footer { max-width: 62px; font-size: 10px; }
  .timeline-header__botline { height: 48px; }
  .nav-link-holder a { font-size: 18px; }
  .ctrl-item { width: 32px; height: 32px; }
  .ctrl-item svg { width: 18px; height: 18px; }
}

/* --- Fix Dropdown Menus --- */

/* 1. Ensure the parent post doesn't clip the menu */
.post-list-item,
.timeline-posts-ls {
  overflow: visible !important;
}

/* 2. Anchor the button */
.ctrls-item {
  position: relative;
}

/* 3. Force the dropdown to float perfectly above the button and ignore Popper JS */
.dropleft .dropdown-menu.dropdown-icons {
  position: absolute !important;
  inset: auto !important; /* Resets all default positions */
  bottom: 100% !important;
  right: 0 !important;
  left: auto !important;
  margin-bottom: 8px !important;
  transform: none !important; /* Overrides Popper.js inline styles */
  will-change: auto !important;
  width: 250px;
  max-width: 85vw;
  z-index: 1050;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
}

/* Show menu when JS toggles .show */
.dropleft .dropdown-menu.dropdown-icons.show {
  display: block;
}

/* 4. Fix the item layout */
.dropdown-menu.dropdown-icons .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--ease);
}

.dropdown-menu.dropdown-icons .dropdown-item:hover {
  background: var(--surface-hover);
}

/* 5. Stop the flex items from stretching */
.dropdown-menu.dropdown-icons .dropdown-item .flex-item {
  flex: 0 0 auto;
}

/* 6. Allow the text to take up remaining space */
.dropdown-menu.dropdown-icons .dropdown-item .flex-item:nth-child(2) {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 7. Right icon alignment */
.dropdown-menu.dropdown-icons .dropdown-item .dropdown-item-icon_adinfo {
  margin-left: auto;
  opacity: 0.5;
}

/* 8. Fix the divider */
.dropdown-menu.dropdown-icons .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
  border: none;
}