/* Clickable hashtag links inside posts/replies/explore text */
.yal-hashtag {
  color: #1d9bf0;
  cursor: pointer;
  text-decoration: none;
  word-break: break-word;
}
.yal-hashtag:hover {
  text-decoration: underline;
}
.yal-hashtag:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 1px;
  border-radius: 3px;
}

/* Hashtag feed overlay */
.yal-hashtag-overlay[hidden] {
  display: none;
}
.yal-hashtag-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}
.yal-hashtag-panel {
  width: min(600px, 100%);
  min-height: 100%;
  background: #000;
  border-left: 1px solid #2f3336;
  border-right: 1px solid #2f3336;
  display: flex;
  flex-direction: column;
  color: #e7e9ea;
  font: 15px/1.4 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.yal-hashtag-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2f3336;
}
.yal-hashtag-back {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: rotate(-90deg);
}
.yal-hashtag-back:hover {
  background: rgba(231, 233, 234, 0.1);
}
.yal-hashtag-back svg {
  width: 22px;
  height: 22px;
}
.yal-hashtag-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.yal-hashtag-title {
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yal-hashtag-sub {
  font-size: 13px;
  color: #71767b;
}
.yal-hashtag-body {
  flex: 1 1 auto;
}
.yal-hashtag-loading,
.yal-hashtag-empty {
  padding: 36px 24px;
  text-align: center;
  color: #71767b;
}

.yal-hashtag-post {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #2f3336;
  cursor: pointer;
  transition: background 0.12s ease;
}
.yal-hashtag-post:hover {
  background: rgba(231, 233, 234, 0.03);
}
.yal-hashtag-post-avatar {
  flex: 0 0 auto;
}
.yal-hashtag-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #1d9bf0 center/cover no-repeat;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}
.yal-hashtag-post-main {
  flex: 1 1 auto;
  min-width: 0;
}
.yal-hashtag-post-head {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.yal-hashtag-name {
  font-weight: 700;
  color: #e7e9ea;
  cursor: pointer;
}
.yal-hashtag-name:hover {
  text-decoration: underline;
}
.yal-hashtag-check {
  display: inline-flex;
  align-items: center;
}
.yal-hashtag-check svg {
  width: 18px;
  height: 18px;
}
.yal-hashtag-handle,
.yal-hashtag-dot,
.yal-hashtag-time {
  color: #71767b;
  font-size: 14px;
}
.yal-hashtag-post-text {
  margin: 2px 0 6px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e7e9ea;
}
.yal-hashtag-media {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 16px;
  border: 1px solid #2f3336;
  margin: 6px 0;
}
.yal-hashtag-post-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #71767b;
  font-size: 13px;
  margin-top: 4px;
}

html.yal-hashtag-open,
body:has(.yal-hashtag-overlay:not([hidden])) {
  overflow: hidden;
}

@media (max-width: 640px) {
  .yal-hashtag-panel {
    border-left: 0;
    border-right: 0;
  }
  .yal-hashtag-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
