/* same vars; just renamed classes to include -videos */
.skeleton-loader-videos.discover {
  position: relative;
  height: 578.66px;
}
.skeleton-loader-videos.discover::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--skeleton-bg-color);
  background-repeat: no-repeat;
  background-image:
    linear-gradient(90deg, transparent, var(--skeleton-highlight-color) 50%, transparent 100%),
    linear-gradient(var(--skeleton-base-color) 286.83px, transparent 0),
    linear-gradient(var(--skeleton-base-color) 286.83px, transparent 0),
    linear-gradient(var(--skeleton-base-color) 578.66px, transparent 0),
    linear-gradient(var(--skeleton-bg-color) 100%, transparent 0);
  background-size:
    289.33px 100%,
    286.83px 286.83px,
    286.83px 286.83px,
    286.83px 578.66px,
    100% 100%;
  background-position:
    0 0,
    0px 0px,
    0px 291.83px,
    291.83px 0px,
    0 0;
  animation: skeleton-animation-videos-discover 2s infinite;
}

@keyframes skeleton-animation-videos-discover {
  0% {
    background-position:
      -289.33px 0,
      0px 0px,
      0px 291.83px,
      291.83px 0px,
      0 0;
  }
  100% {
    background-position:
      100% 0,
      0px 0px,
      0px 291.83px,
      291.83px 0px,
      0 0;
  }
}

.initial-loading-videos.discover {
    top: 118px;
    margin-top: 0px;
    padding: 18px 25px 15px 25px;
}

.search-header {
    width: 100%;
    padding: 25px 25px 15px 25px;
}

#search-clear-btn {
  display: none;
}

button.search-right-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

input#discover-search {
    width: 100%;
    padding: 17px 12px 14px 40px;
    background: var(--bg-page);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: 9px;
    outline: none;
    font-weight: 500;
    font-size: 14px;
}

button.search-right-btn svg {
    width: 23px;
    margin-top: 5px;
    height: max-content;
    fill: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    fill: var(--text-muted);
    font-size: 14px;
    margin-top: 1px;
    width: 20px;
    height: 20px;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 1; /* ensure full opacity in Firefox */
}

/* WebKit browsers */
.search-input::-webkit-input-placeholder {
  color: var(--text-muted);
}

/* Mozilla Firefox 4 to 18 */
.search-input:-moz-placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Mozilla Firefox 19+ */
.search-input::-moz-placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Internet Explorer 10+ */
.search-input:-ms-input-placeholder {
  color: var(--text-muted);
}

.search-types {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 25px 5px 25px;
}

button.search-type-btn {
    color: var(--text-primary);
    font-size: 13px;
    padding: 5px 22px 5px;
    background: var(
    --bg-search);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}

button.search-type-btn.active {
    background: var(--text-primary);
    color: var(--bg-surface);
}

.initial-loading.discover {
    height: calc(100vh - 195px);
    margin-top: 135px;
}

.user-profile {padding: 0px 25px 13px 25px;max-width: 100%;width: 100%;display: flex;border-bottom: 1px solid var(--border-default);}

.user-profile-left img {width: 40px;height: 40px;display: block;border-radius: 99px;overflow: hidden;box-shadow: 0 0 2px 0 #d1d1d1;object-fit: cover;}

.user-profile-right {
  display: flex;
  justify-content: space-between;
  padding: 0px 0px 0px 12px;
  width: 100%;
}

.user-profile-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

.user-profile-top-left .entity-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.user-profile-top-left .entity-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.follow-btn {
  padding: 5px 10px 6px;
  border: none;
  background: var(--text-primary);
  color: #fff;
  border-radius: 7px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  width: 120px;
}

.user-profile-bottom .page-desc {
  font-size: 14px;
  margin-bottom: 6px;
  padding-top: 4px;
  color: var(--text-tertiary);
  width: 380px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-profile-bottom .page-followers {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.user-profile:first-child {
    padding-top: 16px;
}

.user-profile-top-left {
    font-size: 15px;
}

button.search-right-btn.active svg {
    fill: var(--text-primary);
}

.sort-menu.hide {
    clip-path: circle(0% at 130% -30%);
    transition: none;
}

.sort-menu {
    position: absolute;
    top: 65px;
    right: 58px;
    display: flex;
    flex-direction: column;
    height: max-content;
    background: var(--bg-surface);
    border: none;
    list-style: none;
    padding: 5px 5px;
    margin: 4px 0 0;
    width: max-content;
    min-width: 120px;
    z-index: 10000;
    overflow: hidden;
    scrollbar-width: thin;
    box-shadow: 0 0 11px 0px #a4a4a442;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    clip-path: circle(150% at 100% 0);
    transition: clip-path 0.3s ease-in;
}

.sort-menu button {
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
}

.sort-menu button:hover {
    background: #f5f5f5;
}

button.sort-option.active {
    color: var(--text-primary);
    font-weight: 500;
}

button.follow-btn.following {
    color: var(--text-muted);
    background: var(--bg-search);
}

#feed-live .suggestion-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

#feed-live .suggestion-item svg {
    fill: var(--text-muted);
    width: 22px;
    height: 22px;
}

#feed-live .suggestion-item span {
    width: 100%;
}

.live-search-item {
    padding: 13px 25px;
    margin: 0px;
    border-bottom: 1px solid var(--border-default);
}

i.live-search-icon {
    pointer-events: none;
    color: var(--text-muted);
    margin-top: 1px;
    font-size: 14px;
}

div#feed-live.searching {
    gap: 0px;
}

a.entity-title-link {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
}

a.entity-title-link:hover {
    text-decoration: underline;
}

.user-profile-top-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-bottom {
    width: 100%;
}

.live-search-item .page-desc {
    width: 360px;
}

.live-search-loading {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-surface);
    z-index: 1000;
    width: 100%;
    font-size: 25px;
    height: calc(100vh - 133px);
    margin-top: 73px;
}

svg.history-search-icon {
    padding: 1px;
}

.feed-videos.discover {
    padding: 15px 25px;
}