/* R11: tablet drawer, monthly rankings, live stream and feed tags. */

/* Existing DLE tag links in short-story cards. Text commas are hidden by the
   zero font size while the real links and their URLs stay untouched. */
.feed-card__topic-tags {
  gap: 7px;
  margin: 2px var(--feed-card-pad, 18px) 16px;
  font-size: 0;
}

.feed-card__topic-tags a {
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.feed-card__topic-tags a::before {
  content: "#";
  margin-right: 2px;
  color: var(--accent-main);
  font-weight: 700;
}

.feed-card__topic-tags a:hover,
.feed-card__topic-tags a:focus-visible,
.feed-card__topic-tags a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent-main) 48%, var(--border));
  background: var(--accent-main-soft);
  color: var(--accent-main);
}

.feed-card--anecdote .feed-card__topic-tags {
  margin-top: 12px;
}

/* Rankings: familiar numbered circles with a clear but restrained podium. */
.top-author__position {
  position: relative;
  isolation: isolate;
  width: 26px;
  height: 26px;
  border: 1px solid #dde1e7;
  background: #f0f2f5;
  color: #68707c;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .72);
}

.top-author:nth-of-type(1) .top-author__position {
  border-color: #e5b840;
  background: #f6cf68;
  color: #6d4a00;
  box-shadow: inset 0 0 0 3px rgba(255, 248, 214, .76), 0 3px 8px rgba(205, 153, 27, .18);
}

.top-author:nth-of-type(2) .top-author__position {
  border-color: #b9c0ca;
  background: #dce1e8;
  color: #4f5865;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .76);
}

.top-author:nth-of-type(3) .top-author__position {
  border-color: #bd7f50;
  background: #dfa678;
  color: #633112;
  box-shadow: inset 0 0 0 3px rgba(255, 237, 223, .72);
}

.theme-dark .top-author__position {
  border-color: #4a4f59;
  background: #343840;
  color: #c3c8d0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .035);
}

.theme-dark .top-author:nth-of-type(1) .top-author__position {
  border-color: #c9992d;
  background: #dcb64f;
  color: #382600;
  box-shadow: inset 0 0 0 3px rgba(255, 244, 191, .3);
}

.theme-dark .top-author:nth-of-type(2) .top-author__position {
  border-color: #8e96a2;
  background: #b6bdc7;
  color: #242a32;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .24);
}

.theme-dark .top-author:nth-of-type(3) .top-author__position {
  border-color: #ad6e43;
  background: #c98a5d;
  color: #32190b;
  box-shadow: inset 0 0 0 3px rgba(255, 225, 204, .2);
}

/* Live comments: one continuous stream instead of nested full-size cards. */
.col_right_bg_comm {
  padding: 14px;
  overflow: hidden;
}

.col_right_bg_comm .col_right_bg_title {
  margin: 0 2px 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}

.col_right_bg_comm .col_right_bg_title > span:first-child {
  width: 9px;
  height: 9px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-main);
  color: transparent;
  box-shadow: 0 0 0 4px var(--accent-main-soft);
  animation: prikola-live-pulse 2.4s ease-in-out infinite;
}

@keyframes prikola-live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-main-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

.col_right_bg_comm .col_right_bg_title > span:last-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.col_right_bg_comm .comment-card--live {
  margin: 0;
}

.col_right_bg_comm .comment-card--live + .comment-card--live {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.col_right_bg_comm .comment-card--live > .comment-card__inner {
  padding: 12px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.col_right_bg_comm .comment-card--live .comment-card__main {
  min-width: 0;
  align-items: center;
}

.col_right_bg_comm .comment-card--live .comment-card__avatar,
.col_right_bg_comm .comment-card--live .comment-card__avatar-wrap {
  width: 30px;
  height: 30px;
}

.col_right_bg_comm .comment-card--live .comment-card__author,
.col_right_bg_comm .comment-card--live .comment-card__author a {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.col_right_bg_comm .comment-card--live .comment-card__time {
  color: var(--text-fade);
  font-size: 10px;
}

.col_right_bg_comm .comment-card--live .comment-card__content {
  margin: 7px 0 0 40px;
}

.col_right_bg_comm .comment-card--live .comment-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.col_right_bg_comm .comment-card--live .comment-card__footer {
  margin: 8px 0 0 40px;
}

.col_right_bg_comm .comment-card--live .comment-card__context {
  margin: 0;
}

.col_right_bg_comm .comment-card--live .comment-card__news-link {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
}

.col_right_bg_comm .comment-card--live .comment-card__context-label {
  display: none;
}

.col_right_bg_comm .comment-card--live .comment-card__news-title {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col_right_bg_comm .comment-card--live .comment-card__context-arrow-link {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

/* The landscape drawer exists up to 1290px. Repeat the complete child styling
   here so it no longer disappears above the older 1042px mobile breakpoint. */
@media screen and (orientation: landscape) and (min-width: 900px) and (max-width: 1290px) and (max-height: 900px) {
  .sidebar-mobile-tools {
    width: 100%;
    box-sizing: border-box;
  }

  .sidebar-mobile-search {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: var(--surface-2);
  }

  .sidebar-mobile-search:focus-within {
    border-color: color-mix(in srgb, var(--accent-main) 28%, transparent);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-main) 9%, transparent);
  }

  .sidebar-mobile-search .i-svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: var(--text-soft);
  }

  .sidebar-mobile-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
  }

  .sidebar-mobile-search input:focus,
  .sidebar-mobile-search input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .sidebar-mobile-search input::placeholder {
    color: var(--text-fade);
    opacity: 1;
  }

  .sidebar-mobile-add {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    background: var(--text);
    color: var(--surface);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }

  .sidebar-mobile-add:hover,
  .sidebar-mobile-add:focus-visible {
    color: var(--surface);
    text-decoration: none;
  }

  .sidebar-mobile-add .i-svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}

@media screen and (max-width: 640px) {
  .feed-card__topic-tags {
    margin-right: 14px;
    margin-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .col_right_bg_comm .col_right_bg_title > span:first-child {
    animation: none;
  }
}
