/* Rating distribution popover/modal + mylist statistics (AnimeGO markup) */

.rating-statistics-popover {
  --bs-popover-max-width: 22rem;
  --bs-popover-border-radius: 0.75rem;
  max-width: var(--bs-popover-max-width);
  width: max-content;
  min-width: 16rem;
  z-index: 1080;
  box-shadow: var(--bs-popover-box-shadow, 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1));
}

.rating-statistics-popover .popover-body {
  padding: 0.85rem 1rem;
}

.rating-statistics-popover .popover-arrow {
  width: var(--bs-popover-arrow-width, 1rem);
  height: var(--bs-popover-arrow-height, 0.5rem);
}

.rating-statistics-popover .popover-arrow::before,
.rating-statistics-popover .popover-arrow::after {
  position: absolute;
  display: block;
  content: "";
  border-color: transparent;
  border-style: solid;
  border-width: 0 calc(var(--bs-popover-arrow-width, 1rem) * 0.5) var(--bs-popover-arrow-height, 0.5rem);
}

.rating-statistics-popover .popover-arrow::before {
  bottom: 0;
  border-bottom-color: var(--bs-popover-border-color, var(--bs-border-color-translucent, rgba(0, 0, 0, 0.175)));
}

.rating-statistics-popover .popover-arrow::after {
  bottom: calc(-1 * var(--bs-popover-border-width, 1px));
  border-bottom-color: var(--bs-popover-bg, var(--bs-body-bg, #fff));
}

/* Mobile: rating stats as centered modal (same pattern as mylist statistics). */
.rating-statistics-modal {
  z-index: 1055;
}

.rating-statistics-modal .modal-dialog {
  margin: 1rem;
  max-width: 22rem;
}

.rating-statistics-modal .modal-content {
  border: none;
}

.rating-statistics-modal .modal-body .popover-fill > .rating-statistics:first-child {
  display: none;
}

.rating-statistics-modal .rating-statistics {
  padding: 0;
}

.rating-statistics h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.rating-statistics__label {
  min-width: 1.25rem;
  line-height: 1.25rem;
}

.rating-statistics__bar,
.mylist-statistics__bar {
  min-height: 1.25rem;
  box-sizing: border-box;
}

.rating-statistics__percent {
  min-width: 5.3rem;
  line-height: 1.15;
  font-size: 0.875rem;
}

.mylist-statistics__label {
  min-width: 7.5rem;
}

.mylist-statistics__percent {
  min-width: 2.5rem;
  line-height: 1.25rem;
}

/* Dark mode: deep red bars (reference desktop rating chart). */
[data-bs-theme=dark] .rating-statistics {
  --bs-rating_bar-color: rgba(180, 45, 45, 0.92);
}

[data-bs-theme=dark] .mylist-statistics {
  --bs-mylist_bar-color: rgba(180, 45, 45, 0.92);
}

[data-bs-theme=dark] .rating-statistics__bar,
[data-bs-theme=dark] .mylist-statistics__bar {
  background-color: var(--bs-rating_bar-color, rgba(180, 45, 45, 0.92)) !important;
}

[data-bs-theme=dark] .mylist-statistics__bar {
  background-color: var(--bs-mylist_bar-color, rgba(180, 45, 45, 0.92)) !important;
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Как на animego.me: текущий раздел в нижней панели не подсвечивается. */
.bn-item.active,
.bn-item.active .bn-icon,
.bn-item.active .bn-label {
  color: #6c757d !important;
}

.bn-item .bn-icon.icon-link,
.bn-item .icon-link {
  text-decoration: none !important;
  background-image: none !important;
}

.sorter .btn.btn-link {
  --bs-btn-color: var(--bs-link-color, #84a57d);
  --bs-btn-hover-color: var(--bs-link-hover-color, #84a57d);
  --bs-btn-active-color: var(--bs-link-color, #84a57d);
  color: var(--bs-link-color, #84a57d) !important;
  text-decoration: none !important;
}

.sorter .btn.btn-link:hover,
.sorter .btn.btn-link:focus,
.sorter .btn.btn-link:active {
  color: var(--bs-link-hover-color, #84a57d) !important;
  text-decoration: none !important;
}

.sorter .view-item {
  color: var(--bs-secondary-color, #adb5bd);
}

.sorter .view-item.active,
.sorter .view-item:hover {
  color: var(--bs-link-color, #84a57d) !important;
}

.sorter .dropdown-item.active,
.sorter .dropdown-item:active {
  color: var(--bs-link-color, #84a57d) !important;
  background-color: transparent !important;
}

/* Catalog empty state — must span full grid width (avoid 1-col vertical wrap). */
.catalog-empty {
  width: 100%;
  min-height: 12rem;
  grid-column: 1 / -1;
}

.catalog-empty__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--bs-secondary-color, #6c757d);
  white-space: normal;
  word-break: normal;
  max-width: 22rem;
}

.catalog-empty__hint {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 22rem;
}

/* Anime page: one screenshot frame on mobile; extras stay in lightbox DOM. */
@media (max-width: 575.98px) {
  .screenshots .screenshots__item--extra {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .ani-list__item-picture,
  .ani-grid2__item-picture {
    width: 96px;
  }
}

/* ---- User profile page (/user/{id}), layout like animego.me ---- */
@media (min-width: 992px) {
  .content-sidebar-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) 310px; }
  .content-sidebar-layout > .content-block { grid-column: 1; }
  .content-sidebar-layout > .user-profile-sidebar { grid-column: 2; }
}
@media (max-width: 991.98px) {
  .content-sidebar-layout { flex-direction: column; }
}
.user-profile-page .user-profile-cover__img { background-color: #343a40; }
.user-profile-avatar__letter {
  width: 200px; height: 200px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #84a57d, #ff7a59); color: #fff;
  font-size: 5.5rem; font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 .4rem var(--bs-body-bg);
}
@media (max-width: 767.98px) {
  .user-profile-avatar__letter { width: 140px; height: 140px; font-size: 4rem; }
}
.user-mylist-tabs--classic .list-group-item {
  border: 0; border-radius: var(--bs-border-radius-lg) !important;
  color: rgba(var(--bs-body-color-rgb), .75); padding: .5rem 1rem;
  background-color: transparent;
}
.user-mylist-tabs--classic .list-group-item.active {
  background-color: rgba(var(--bs-emphasis-color-rgb), .1); color: var(--bs-body-color);
}
.user-mylist-tabs--classic .list-group-item .badge { font-size: .75rem; }
.user-mylist-tabs { scrollbar-width: none; }
.user-mylist-tabs::-webkit-scrollbar { display: none; }
.user-profile-page .user-mylist { row-gap: 1.5rem; counter-reset: mylist; }
.user-profile-page .user-mylist__item { align-items: center; counter-increment: mylist; display: flex; gap: .75rem !important; grid-column: span 12; }
.user-profile-page .user-mylist__item::before {
  color: rgba(var(--bs-secondary-rgb), .6); flex: 0 0 auto; font-size: 1.5rem;
  font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2ch; text-align: center; white-space: nowrap;
}
@media (min-width: 360px) { .user-profile-page .user-mylist__item::before { content: counter(mylist) "."; } }
@media (max-width: 767.98px) { .user-profile-page .user-mylist__item::before { align-self: flex-start; margin-top: 2.25rem; } }
.user-profile-page .user-mylist__title a { color: var(--bs-primary); text-decoration: none; }
.user-profile-page .user-mylist-rating.positive .user-mylist-rating__value { color: #3bb33b; }
.user-profile-page .user-mylist-rating.neutral .user-mylist-rating__value { color: #e0a800; }
.user-profile-page .user-mylist-rating.negative .user-mylist-rating__value { color: red; }
.profile-menu__header h5, .friends-block__header h5 { font-size: 1.25rem; font-weight: 500; margin-bottom: .5rem; }
.profile-menu__item { border: 0; background-color: transparent; color: rgba(var(--bs-body-color-rgb), .75); padding: .5rem 1rem; }
.profile-menu__item:hover { background-color: rgba(var(--bs-emphasis-color-rgb), .05); }

/* ---- Profile: avatar / cover / settings ---- */
.user-profile-page .user-profile-cover { position: relative; }
.user-profile-page .user-profile-cover__img { background-size: cover; background-position: center; }
.user-profile-cover__actions { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; }
.user-profile-page .user-profile-avatar__picture { position: relative; }
.user-profile-avatar__img { width: 200px; height: 200px; object-fit: cover; padding: 0; background: var(--bs-body-bg); box-shadow: 0 0 0 .4rem var(--bs-body-bg); }
@media (max-width: 767.98px) { .user-profile-avatar__img { width: 140px; height: 140px; } }
.user-profile-avatar__edit { position: absolute; right: .5rem; bottom: .75rem; z-index: 2; }
.user-profile-avatar__icon { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 .125rem .5rem rgba(0,0,0,.2); }
.user-profile-avatar__icon[aria-expanded="true"] { background-color: var(--bs-primary); color: #fff; }
.profile-crop { position: relative; width: 100%; background: #111; border-radius: var(--bs-border-radius); overflow: hidden; touch-action: none; }
.profile-crop canvas { display: block; width: 100%; height: auto; cursor: grab; }
.profile-crop canvas:active { cursor: grabbing; }
.profile-crop--avatar { max-width: 420px; margin: 0 auto; }
.profile-crop--avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.45); pointer-events: none; }
.profile-crop__loading { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: #ccc !important; }
.profile-crop.is-loading .profile-crop__loading { display: flex; }
.profile-menu__item.active { background-color: rgba(var(--bs-emphasis-color-rgb), .1); color: var(--bs-body-color); }
.user-settings-page .form-control, .user-settings-page .form-select { background-color: var(--bs-tertiary-bg); border-color: transparent; }
.user-settings-page h1 { font-size: 2.25rem; font-weight: 500; }
.user-profile__status-text { font-size: .95rem; }

/* ---- Social: header icons, friends, messenger, reviews, notifications ---- */
.header-icon { display: inline-flex; align-items: center; padding: .5rem !important; }
.header-badge { position: absolute; top: .1rem; right: -.1rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem; border-radius: 999px; background: var(--bs-primary); color: #fff; font-size: .68rem; font-weight: 600; line-height: 1.1rem; text-align: center; }
.social-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #84a57d, #ff7a59); color: #fff; font-weight: 600; line-height: 1; }
.social-online-dot { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #3bb33b; box-shadow: 0 0 0 2px var(--bs-body-bg); }
.friends-block__img { aspect-ratio: 1 / 1; object-fit: cover; width: 100% !important; height: auto !important; font-size: 2rem !important; }
.friends-block .social-avatar-letter.friends-block__img { display: flex; border-radius: var(--bs-border-radius); }
.friends-tab { border-radius: var(--bs-border-radius); }
.btn.btn-primary-subtle, .btn.btn-primary-subtle.active, .btn.btn-primary-subtle:hover { background-color: rgba(var(--bs-primary-rgb), .14); color: var(--bs-primary); border-color: transparent; }
.friends-card a { color: var(--bs-primary); }
.friends-card .btn { color: var(--bs-body-color); }

.page-messenger footer, .page-messenger .footer, .page-messenger .scroll-up { display: none !important; }
.messenger-wrap { padding-top: 1rem; }
.messenger { display: flex; flex-direction: row; height: calc(100dvh - 120px); overflow: hidden; border: 0; border-radius: 1.25rem; box-shadow: var(--bs-box-shadow-sm); background: var(--bs-body-bg); }
.messenger__sidebar { width: 340px; flex-shrink: 0; border-right: 1px solid var(--bs-border-color-translucent); display: flex; flex-direction: column; min-height: 0; }
.messenger__side-head .input-group { border-radius: 999px; overflow: hidden; background: var(--bs-tertiary-bg); }
.messenger__side-head .input-group > * { border: 0; background: transparent; }
.messenger__list { overflow-y: auto; flex: 1 1 auto; padding: 0 .5rem .5rem; }
.messenger-chat { border: 0 !important; border-radius: .9rem !important; padding: .6rem .65rem; margin-bottom: 2px; transition: background-color .15s; }
.messenger-chat:hover { background-color: rgba(var(--bs-emphasis-color-rgb), .04); }
.messenger-chat.active { background-color: rgba(var(--bs-primary-rgb), .09); color: var(--bs-body-color); }
.messenger-chat.active .fw-semibold { color: var(--bs-primary); }
.messenger-chat .badge { font-size: .7rem; min-width: 1.35rem; }
.messenger__pane { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0;
  background-color: var(--bs-tertiary-bg);
  background-image: radial-gradient(rgba(var(--bs-emphasis-color-rgb), .06) 1px, transparent 1px); background-size: 22px 22px; }
.messenger__empty { flex: 1; align-items: center; justify-content: center; }
.messenger__empty-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--bs-primary-rgb), .1); }
.messenger__empty-icon .bi { width: 30px; height: 30px; fill: var(--bs-primary); }
.messenger__thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.messenger__head { background: rgba(var(--bs-body-bg-rgb), .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bs-border-color-translucent); min-height: 60px; }
.messenger__back { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--bs-body-color); }
.messenger__back:hover { background: rgba(var(--bs-emphasis-color-rgb), .06); }
.messenger__back .bi { width: 22px; height: 22px; fill: currentColor; }
.messenger__online { font-size: .75rem; font-weight: 500; color: #198754; }
.messenger__messages { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: .3rem; }
.messenger__day { text-align: center; margin: .75rem 0 .35rem; }
.messenger__day span { display: inline-block; font-size: .72rem; font-weight: 500; padding: .2rem .7rem; border-radius: 999px; background: rgba(var(--bs-body-bg-rgb), .85); color: var(--bs-secondary-color); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.messenger-msg { display: flex; }
.messenger-msg--mine { justify-content: flex-end; }
.messenger-msg__bubble { max-width: min(72%, 560px); padding: .5rem .8rem; border-radius: 1.1rem 1.1rem 1.1rem .35rem; background: var(--bs-body-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .07); white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.messenger-msg--mine .messenger-msg__bubble { border-radius: 1.1rem 1.1rem .35rem 1.1rem; background: linear-gradient(135deg, #84a57d, #ff5a3c); color: #fff; box-shadow: 0 2px 6px rgba(132,165,125, .2); }
.messenger-msg__time { margin-left: .6rem; font-size: .68rem; color: var(--bs-tertiary-color); white-space: nowrap; float: right; margin-top: .4rem; }
.messenger-msg--mine .messenger-msg__time { color: rgba(255, 255, 255, .75); }
.messenger__footer { background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color-translucent); }
.messenger__form textarea { resize: none; max-height: 180px; border-radius: 1.4rem; border: 0; background: var(--bs-tertiary-bg); padding: .6rem 1rem; }
.messenger__form textarea:focus { box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); background: var(--bs-tertiary-bg); }
.messenger__send { width: 42px; height: 42px; flex-shrink: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.messenger__send .bi { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
@media (max-width: 767.98px) {
  .messenger-wrap { padding: 0; }
  .messenger { border-radius: 0; box-shadow: none; }
  .messenger__sidebar { width: 100%; border-right: 0; }
  .messenger--open .messenger__sidebar { display: none; }
  .messenger:not(.messenger--open) .messenger__pane { display: none; }
  .messenger-msg__bubble { max-width: 85%; }
}

.reviews-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.reviews-item__name { color: var(--bs-primary); }
.reviews-item__body p { margin-bottom: .75rem; }
.read-more--collapsed { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.reviews-item__button.active { background-color: rgba(var(--bs-primary-rgb), .15); color: var(--bs-primary); }

.notification-item:hover { background-color: rgba(var(--bs-emphasis-color-rgb), .05); }
.notification-item--unread { background-color: rgba(var(--bs-primary-rgb), .06); }
.notification-item__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bs-primary); flex-shrink: 0; }

/* ---- Header dropdowns (logged in) ---- */
.header-dropdown { width: 470px; max-width: calc(100vw - 1.5rem); overflow: hidden; border: 0; border-radius: var(--bs-border-radius-lg); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.18); }
.header-dropdown .card { background: var(--bs-body-bg); }
.header-dropdown h2 { font-size: 1.9rem; }
.header-dropdown .card-footer { display: block; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color-translucent); }
.header-dropdown .card-footer:hover { background: rgba(var(--bs-emphasis-color-rgb), .06); }
.header-dropdown__list { align-content: start; min-height: 220px; max-height: 360px; overflow-y: auto; margin: 0 -.25rem; padding: 0 .25rem .5rem; }
.header-dropdown .form-control, .header-dropdown .input-group-text { background-color: var(--bs-tertiary-bg); border-color: transparent; }
.header-navbar__badge { font-size: .7rem; padding: .2em .45em; transform: translate(10%, -10%); }
.header-user-menu { min-width: 180px; }
.header-navbar .nav-item.dropdown > .nav-link > img { display: block; }
.header-navbar .nav-item.dropdown > .nav-link > .social-avatar-letter, .header-navbar .nav-link > .social-avatar-letter { display: inline-flex; align-items: center; justify-content: center; }

/* Профиль: окно «Подробнее» — статистика списка и активности (как animego.me) */
#userInfoModal .stats-user-block { padding: .25rem 0; }
#userInfoModal .user-mylist-rating.positive .user-mylist-rating__value { color: #3bb33b; }
#userInfoModal .user-mylist-rating.neutral .user-mylist-rating__value { color: #e0a800; }
#userInfoModal .user-mylist-rating.negative .user-mylist-rating__value { color: #e5484d; }
.user-stats-card { background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius-lg); }
.user-stats-genre { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 1rem; border-radius: var(--bs-border-radius); background: var(--bs-secondary-bg); font-size: .95rem; }
.user-rating-distribution { display: grid; grid-template-columns: repeat(10, 1fr); gap: .5rem; }
.user-rating-distribution__item { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .75rem; }
.user-rating-distribution__track { position: relative; width: 100%; max-width: 2.6rem; height: 6rem; background: var(--bs-secondary-bg); border-radius: .35rem; overflow: hidden; }
.user-rating-distribution__bar { position: absolute; left: 0; right: 0; bottom: 0; background: #e5484d; border-radius: .35rem; }
.ag-activity { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; align-items: end; }
.ag-activity__col { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.ag-activity__value { font-size: .7rem; color: var(--bs-secondary-color); min-height: 1em; }
.ag-activity__track { position: relative; width: 100%; height: 8rem; }
.ag-activity__bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: .4rem .4rem .2rem .2rem; background: linear-gradient(180deg, #ff5a3d, #84a57d); }
.ag-activity__day { font-size: .75rem; color: var(--bs-secondary-color); }
/* список подгружается без перезагрузки */
[data-ag-mylist] { transition: opacity .15s; }
[data-ag-mylist].is-loading .profile-my-list__results { opacity: .45; pointer-events: none; }
/* шапка профиля: заметная точка «на сайте» по центру строки с именем, обычная кнопка «Обложка» */
.user-profile-page .user-profile__indicator { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--bs-success); font-size: 0; flex-shrink: 0; }
.user-profile-page .user-profile__status { font-size: 1rem; color: var(--bs-body-color); vertical-align: middle; }
@media (min-width: 768px) {
  .user-profile-page .user-profile__name { display: flex; align-items: center; min-width: 0; }
  .user-profile-page .user-profile__name h1 { vertical-align: baseline; }
}
.user-profile-page .user-profile-cover__btn { padding: .5rem 1rem; font-size: 1.05rem; }
.user-profile-page .user-profile-cover__btn svg { width: 1.25em; height: 1.25em; }
/* мессенджер на белом фоне контента, как на animego.me */
.page-messenger, .page-messenger .messenger { background-color: var(--bs-content-color) !important; }
.page-messenger .messenger__sidebar { border-right: var(--bs-border-width) solid var(--bs-border-color-translucent); }
/* комментарии */
.comments .comment-vote__button svg, .comments .comment__reply * { pointer-events: none; }
.comments .comment__item { position: relative; }
.comments .comment__menu .btn { --bs-btn-padding-y: 0; }
.comments .comment__author__name a { color: var(--bs-primary); text-decoration: none; }
.comments .comment--highlight > .comment__item { background: rgba(var(--bs-primary-rgb), .08); border-radius: var(--bs-border-radius); }
.comments .comments__list { row-gap: 1.25rem; }
.comments .editor-smilies.show { max-height: 230px; }
.comments__list .comment ~ .comments__empty { display: none; }
/* смайлы animego.me в комментариях */
.comment__body .smiley { height: 40px; width: auto; vertical-align: middle; margin: 0 2px; cursor: default; }
.comments .editor-smilies .smiley { height: 40px; width: auto; }
.editor-smilies .smiley, .comment__body .smiley { color: transparent; font-size: 0; min-width: 40px; }
/* профиль на телефоне: «Обложка» в углу обложки, карандаш — на самом аватаре; боковая колонка — выезжающая панель */
@media (max-width: 767.98px) {
  .user-profile-cover__actions { top: .5rem; right: .5rem; bottom: auto; }
  .user-profile-cover__actions .user-profile-cover__btn { padding: .25rem .6rem; font-size: .875rem; }
  .user-profile-page .user-profile-avatar__picture { width: fit-content; }
  .user-profile-page .user-profile-avatar__edit { top: 100px; bottom: auto; right: 0; }
  .user-profile-page .user-profile-avatar, .user-profile-page .user-profile-avatar__picture { height: auto; min-height: 0; }
}
@media (max-width: 991.98px) {
  .user-profile-page .user-profile-sidebar:empty, .user-profile-page .user-profile-sidebar { grid-column: auto; }
  .user-profile-page .content-sidebar-layout > .user-profile-sidebar { flex: 0 0 0; min-width: 0; }
}
.entity-rating__user .rate_star > *, .entity-rating__user .rate_star svg { pointer-events: none; }
/* «Оцените аниме» — как на animego.me: при наведении красный блок и выезжающая полоса из 10 звёзд */
.entity-rating__user { cursor: pointer; }
.entity-rating__user .entity-rating__user-rate { width: auto; min-width: 60px; }
.entity-rating__user .rate-this { font-size: .75rem; line-height: 17px; white-space: pre-line; }
.entity-rating__user .rating-user__value { font-size: 1.5rem; line-height: 1.5rem; }
.entity-rating__user .rating-user__subtext { font-size: .72rem; line-height: 1; white-space: nowrap; opacity: .75; }
.entity-rating__user.open { background-color: #84a57d; border-top-left-radius: var(--bs-border-radius); border-bottom-left-radius: var(--bs-border-radius); color: #fff; }
.entity-rating__user.open .icon-link-color { color: #fff; }
.entity-rating__user .entity-rating__user-form { --bs-rate_star-color: rgba(var(--bs-white-rgb), .45); position: absolute; left: 100%; top: 0; height: 100%; padding: 0 .5rem; opacity: 0; transform: translate(-50%); transition: all .3s ease; backdrop-filter: blur(10px); background-color: rgba(var(--bs-black-rgb), .35); border-top-right-radius: var(--bs-border-radius); border-bottom-right-radius: var(--bs-border-radius); z-index: 1; }
[data-bs-theme=dark] .entity-rating__user .entity-rating__user-form { --bs-rate_star-color: rgba(var(--bs-white-rgb), .25); background-color: rgba(var(--bs-white-rgb), .15); }
.entity-rating__user.open .entity-rating__user-form { opacity: 1; transform: translate(0); }
.entity-rating__user:not(.open) .entity-rating__user-form { pointer-events: none; }
.entity-rating__user:not(.open) .entity-rating__user-star.negative { color: red; }
.entity-rating__user:not(.open) .entity-rating__user-star.neutral { color: #777; }
.entity-rating__user:not(.open) .entity-rating__user-star.positive { color: #3bb33b; }
.entity-rating__user .entity-rating__user-form__list .rate_star { color: var(--bs-rate_star-color) !important; font-size: 2rem; display: inline-flex; }
.entity-rating__user .entity-rating__user-form__list .rate_star svg { width: 1em; height: 1em; }
.entity-rating__user.rate__rated .entity-rating__user-form__list .rate_star { color: #fff !important; }
.entity-rating__user.rate__rated .entity-rating__user-form__list .rate_star.star_current ~ .rate_star { color: var(--bs-rate_star-color) !important; }
.entity-rating__user .entity-rating__user-form__list:hover .rate_star { color: #fff !important; }
.entity-rating__user .entity-rating__user-form__list:hover .rate_star:hover ~ .rate_star { color: var(--bs-rate_star-color) !important; }
/* на сенсорных экранах вместо звёзд — список 1–10 (его показывает сам клиент) */
@media (hover: none) { .entity-rating__user .entity-rating__user-form__list { display: none !important; } .entity-rating__user .entity-rating__user-form { position: static; opacity: 1; transform: none; background: none; backdrop-filter: none; pointer-events: auto; } }
@media (hover: hover) { .entity-rating__user .entity-rating__user-form select[name=rating] { display: none; } }
.entity-rating__user .rate_star svg { fill: currentColor; }
/* раздел «Манга»: читалка и список глав */
.manga-reader__pages { max-width: 900px; margin-left: auto; margin-right: auto; }
.manga-reader__page { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; background: var(--bs-tertiary-bg); }
.manga-reader__nav { max-width: 900px; margin-left: auto; margin-right: auto; }
.manga-reader__nav .form-select { max-width: 260px; }
.manga-chapters__list .manga-chapter:hover { background: var(--bs-tertiary-bg); }
.manga-title-page .description p { margin-bottom: .75rem; }
@media (max-width: 575.98px) { .manga-reader-page .card-body { padding-left: 0; padding-right: 0; } .manga-reader-page h1, .manga-reader-page .manga-reader__nav, .manga-reader-page .card-body > .mb-3 { padding-left: 1rem; padding-right: 1rem; } }

/* ---- Manga: chapter list in the dark "player" band ---- */
.manga-read-band .content_second { background: transparent; }
.manga-chapters { display: grid; gap: .75rem; }
.manga-chapters.is-loading .manga-chapters__list { opacity: .55; transition: opacity .15s; }
.manga-chapters__count { font-weight: 600; margin-right: .5rem; }
.manga-chapters__search { max-width: 280px; }
.manga-chapters__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 767.98px) { .manga-chapters__list { grid-template-columns: minmax(0, 1fr); } .manga-chapters__search { max-width: none; width: 100%; } }
.manga-chapter { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: var(--bs-border-radius-lg);
  background: rgba(var(--bs-emphasis-color-rgb), .06); color: var(--bs-body-color); text-decoration: none; min-width: 0;
  transition: background-color .15s, transform .15s; }
.manga-chapter:hover { background: rgba(var(--bs-emphasis-color-rgb), .12); color: var(--bs-emphasis-color); }
.manga-chapter__tome { flex-shrink: 0; font-size: .8rem; color: var(--bs-tertiary-color); min-width: 3.6rem; }
.manga-chapter__main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.manga-chapter__num { font-weight: 600; }
.manga-chapter__name { font-size: .85rem; }
.manga-chapter__meta { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.manga-chapter__date { font-size: .8rem; color: var(--bs-tertiary-color); white-space: nowrap; }
.manga-chapter__icon { font-size: 1.1rem; color: var(--bs-tertiary-color); width: 1rem; text-align: center; }
.manga-chapter--read { opacity: .6; }
.manga-chapter--read .manga-chapter__icon { color: #3bb33b; }
.manga-chapter--current { box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), .7); }
.manga-chapters-empty { background: rgba(var(--bs-emphasis-color-rgb), .06); }
.manga-chapters__more { margin-top: .25rem; }

/* ---- Manga: chapter table (same look as the anime "График выхода серий") ---- */
.manga-ch.is-loading .manga-ch__list { opacity: .5; transition: opacity .15s; }
.manga-ch__tools .form-control { width: 240px; }
@media (max-width: 575.98px) { .manga-ch__tools { width: 100%; } .manga-ch__tools .form-control { width: 100%; } }
.manga-ch-row { color: var(--bs-body-color); text-decoration: none; padding: .3rem .5rem; margin: 0 -.5rem; border-radius: var(--bs-border-radius); align-items: center; }
.manga-ch-row:hover { background: rgba(var(--bs-emphasis-color-rgb), .05); color: var(--bs-emphasis-color); }
.manga-ch-row.is-read { color: var(--bs-secondary-color); }
.manga-ch-row.is-current { background: rgba(var(--bs-primary-rgb), .08); }
.manga-ch-row__likes .bi { width: .95em; height: .95em; }
.manga-ch-row .badge { font-size: .65rem; }

/* rating widget: same height with and without a user rate (no jump after rating) */
.entity-rating__user { min-height: 44px; }
.entity-rating__user .rating-user, .entity-rating__user .rate-this { min-height: 34px; display: flex; flex-direction: column; justify-content: center; }
.entity-rating__user .rate-this.d-none, .entity-rating__user .rating-user.d-none { display: none !important; }

/* ---- Mobile adaptation (checked against animego.me at 400px) ---- */
/* rating stars: hidden until opened (they widened the page and caused sideways scroll); on phones they open under the rating */
.entity-rating__user:not(.open) .entity-rating__user-form { display: none !important; }
@media (max-width: 575.98px) {
  .entity-rating__block { position: relative; }
  .entity-rating__block > .entity-rating__user { position: static !important; }
  .entity-rating__user .entity-rating__user-form { left: 0; top: calc(100% + .35rem); height: auto; padding: .35rem .5rem; transform: none !important;
    border-radius: var(--bs-border-radius); max-width: calc(100vw - 2rem); }
  .entity-rating__user .entity-rating__user-form__list .rate_star { font-size: 1.55rem; }
}
/* catalog list: posters keep 110px like animego.me (they shrank to 96px), no rating badge in list view on phones */
.ani-list__item > .me-3 { flex-shrink: 0; }
@media (max-width: 575.98px) { .ani-list__item .rating-badge { display: none; } .ani-list__item-picture { width: 110px; } }
/* profile avatar on phones: 200px as on animego.me */
@media (max-width: 767.98px) {
  .user-profile-avatar__img, .user-profile-avatar__letter { width: 200px !important; height: 200px !important; }
  .user-profile-avatar__letter { font-size: 5.5rem !important; }
}
/* messenger on phones: full screen without the bottom bar (as on animego.me), so the message field is visible */
.page-messenger #bottomNav { display: none !important; }
/* friends / notifications tabs: one line, swipe sideways if needed */
@media (max-width: 575.98px) {
  .friends-tab { white-space: nowrap; }
  main .card-body > .d-flex.flex-wrap.gap-2.mb-4:has(> .friends-tab) { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
}

/* ===== Профиль: обновлённый дизайн (2026-11-19) ===== */
/* без загруженной обложки — фирменный градиент и меньшая высота (у загруженной остаётся 971:400, как у кроппера) */
.user-profile-page .user-profile-cover__img:not([style]) {
  aspect-ratio: auto; height: 200px; background-color: #1f1f24;
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 122, 89, .55), transparent 45%),
                    radial-gradient(circle at 15% 90%, rgba(132,165,125, .5), transparent 50%),
                    linear-gradient(135deg, #24242b 0%, #3a1416 100%);
}
@media (max-width: 767.98px) { .user-profile-page .user-profile-cover__img:not([style]) { height: 140px; } }
@media (min-width: 768px) {
  .user-profile-page .user-profile-avatar__picture { width: 168px; height: 168px; margin-top: -84px; }
  .user-profile-page .user-profile-avatar__img, .user-profile-page .user-profile-avatar__letter { width: 168px; height: 168px; }
  .user-profile-page .user-profile-avatar__letter { font-size: 4.5rem; }
}
.user-profile-page .user-profile-avatar__img, .user-profile-page .user-profile-avatar__letter { box-shadow: 0 0 0 .3rem var(--bs-body-bg), 0 .5rem 1.5rem rgba(0, 0, 0, .18); }
.user-profile-page .user-profile__header { padding-top: .75rem; }
.user-profile-page .user-profile__name h1 { font-weight: 700; letter-spacing: -.01em; }
.user-profile-page .user-profile__status { font-size: .8rem; font-weight: 500; color: #198754; background: rgba(25, 135, 84, .1); border-radius: 999px; padding: .15rem .6rem; }
.user-profile__stat { display: inline-flex; align-items: baseline; gap: .35rem; padding: .45rem .85rem; border-radius: .75rem;
  background: rgba(var(--bs-emphasis-color-rgb), .05); color: var(--bs-body-color); text-decoration: none; transition: background-color .15s, color .15s; }
a.user-profile__stat:hover { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
.user-profile__stat-num { font-weight: 700; font-size: 1.05rem; }
.user-profile__stat-label { font-size: .85rem; color: var(--bs-secondary-color); }
a.user-profile__stat:hover .user-profile__stat-label { color: inherit; }
/* меню справа — карточка с подсветкой текущего пункта */
.profile-menu.card { padding: .75rem; }
.profile-menu .profile-menu__header h5 { padding: 0 .5rem; margin-bottom: .35rem; }
.profile-menu__list { gap: .15rem; }
.profile-menu__item { border-radius: .6rem !important; }
.profile-menu__item.active { background-color: rgba(var(--bs-primary-rgb), .1) !important; color: var(--bs-primary) !important; font-weight: 500; }
.profile-menu__item.active svg { fill: currentColor; }
/* строки списка: наведение, прогресс, цветной статус */
.user-profile-page .user-mylist__item { padding: .6rem; margin: -.6rem; border-radius: 1rem; transition: background-color .15s; }
.user-profile-page .user-mylist__item:hover { background: rgba(var(--bs-emphasis-color-rgb), .035); }
.user-mylist__picture img { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12); }
.user-mylist__progress { display: grid; gap: .35rem; max-width: 320px; }
.user-mylist__bar { height: 6px; border-radius: 999px; background: rgba(var(--bs-emphasis-color-rgb), .08); overflow: hidden; }
.user-mylist__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #84a57d, #ff7a59); }
.user-mylist__status { display: inline-block; font-size: .75rem; font-weight: 500; padding: .15rem .55rem; border-radius: 999px;
  background: rgba(var(--bs-emphasis-color-rgb), .07); color: var(--bs-secondary-color); }
.user-mylist__status--watching, .user-mylist__status--reading, .user-mylist__status--rewatching { background: rgba(25, 135, 84, .12); color: #198754; }
.user-mylist__status--completed { background: rgba(13, 110, 253, .1); color: #0d6efd; }
.user-mylist__status--on_hold, .user-mylist__status--onhold { background: rgba(255, 153, 0, .14); color: #c27400; }
.user-mylist__status--dropped { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
[data-bs-theme=dark] .user-mylist__status--completed { color: #6ea8fe; }
[data-bs-theme=dark] .user-mylist__status--watching, [data-bs-theme=dark] .user-mylist__status--reading { color: #75b798; }
/* блок «Друзья» под меню — такая же карточка */
.user-profile-sidebar .friends-block, .profile-sidebar .friends-block { background: var(--bs-body-bg); border-radius: var(--bs-card-border-radius, .75rem); padding: .75rem 1.25rem 1rem; margin-top: 1rem; box-shadow: var(--bs-box-shadow-sm); }
.friends-block__header h5 { margin-bottom: .5rem; }
.profile-menu.card { box-shadow: var(--bs-box-shadow-sm); }
@media (max-width: 767.98px) {
  .user-profile__stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .user-profile__stat { flex-direction: column; align-items: center; gap: 0; padding: .5rem .25rem; }
  .user-profile__stat-label { font-size: .72rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 767.98px) { .user-profile__stat { padding: .5rem .1rem; } .user-profile__stat-label { font-size: .68rem; letter-spacing: -.01em; } }

/* ── Современные возможности браузера ── */
/* Плавный переход между страницами сайта (Chromium 126+: Chrome, Edge, Яндекс Браузер; остальные игнорируют) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* Подвал рисуется, только когда до него доскроллили: быстрее первая отрисовка */
#footer { content-visibility: auto; contain-intrinsic-size: auto 420px; }

/* всплывающая карточка ссылки (site.js → initHoverCards, routes/preview.php) */
.hovercard-pop { position: absolute; z-index: 1080; width: 380px; max-width: calc(100vw - 16px); pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.hovercard-pop.is-open { opacity: 1; visibility: visible; transform: none; }
.hovercard { display: flex; gap: .85rem; padding: .8rem; border-radius: var(--bs-border-radius-xl, 1rem);
  background: var(--bs-body-bg); color: var(--bs-body-color); border: 1px solid rgba(var(--bs-emphasis-color-rgb), .1);
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .35); }
.hovercard__img { flex: 0 0 88px; width: 88px; height: auto; align-self: flex-start; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--bs-border-radius-lg); background: var(--bs-tertiary-bg); }
.hovercard--character .hovercard__img, .hovercard--person .hovercard__img { flex-basis: 76px; width: 76px; aspect-ratio: 3 / 4; }
.hovercard__body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.hovercard__head { display: flex; align-items: flex-start; gap: .5rem; }
.hovercard__title { font-weight: 700; line-height: 1.25; color: var(--bs-emphasis-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hovercard__score { flex-shrink: 0; margin-left: auto; padding: .1rem .4rem; border-radius: .4rem; font-size: .75rem; font-weight: 700; color: #fff; background: #6c757d; }
.hovercard__score.positive { background: #2e9b3c; } .hovercard__score.neutral { background: #c08a12; } .hovercard__score.negative { background: #c0392b; }
.hovercard__sub { font-size: .8rem; color: var(--bs-tertiary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hovercard__meta { font-size: .8rem; color: var(--bs-secondary-color); }
.hovercard__dot { margin: 0 .35rem; opacity: .6; }
.hovercard__text { font-size: .82rem; line-height: 1.4; color: var(--bs-body-color); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hovercard__foot { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .1rem; }
.hovercard__chip { font-size: .72rem; padding: .12rem .45rem; border-radius: 999px; background: rgba(var(--bs-emphasis-color-rgb), .08); color: var(--bs-secondary-color); white-space: nowrap; }
.hovercard--character .hovercard__chip, .hovercard--person .hovercard__chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* фильтр каталога: место под полосу прокрутки зарезервировано заранее — при раскрытии жанров ширина не прыгает */
.filter__container { scrollbar-gutter: stable; overflow-x: hidden; scrollbar-width: thin; }
/* фильтр справа: сетка сайдбара не растягивает строки на высоту страницы (иначе фильтр уезжал вниз и колонка была пустой) */
#mmenuSidebar .sidebar > .flex-fill > .d-grid { align-content: start; }
/* заголовок + прокручиваемое тело помещаются в max-height блока — низ («Очень длинные») больше не обрезается */
.filter { display: flex; flex-direction: column; }
.filter > .filter__title { flex: none; padding-inline: .5rem; }
.filter > .filter__container { flex: 1 1 auto; min-height: 0; }
/* «Жанры» выглядит как поле года (класс form-control), чекбоксы плотнее, «Очень длинные» влезает в колонку */
.filter .filter-genres-btn.form-control { display: flex; cursor: pointer; font-weight: 600; }
.filter .filter-genres-btn.form-control:hover, .filter .filter-genres-btn.form-control[aria-expanded=true] { border-color: var(--bs-secondary-color); }
.filter form.d-grid { gap: 1.25rem !important; }
.filter .grid { row-gap: .45rem !important; column-gap: .5rem !important; }
.filter .grid { grid-template-columns: minmax(0, 1fr) minmax(max-content, 1fr); } .filter .grid > .g-col-6 { grid-column: auto; }
/* колонка фильтра шире (только каталоги аниме/манги, не профиль): 310 → 340/380 px */
@media (min-width: 1200px) { #mmenuSidebar:has(.filter) { min-width: 340px; max-width: 340px; } }
@media (min-width: 1400px) { #mmenuSidebar:has(.filter) { min-width: 380px; max-width: 380px; } }
/* мобильная панель фильтра: прокручивается вся панель, без вложенной прокрутки и пустоты снизу */
@media (max-width: 991.98px) { #mmenuSidebar .filter { max-height: none; position: static; } #mmenuSidebar .filter__container { overflow: visible !important; max-height: none !important; } #mmenuSidebar .filter-button__container { position: sticky; bottom: 0; padding: .75rem 0; background: var(--bs-offcanvas-bg, var(--bs-body-bg)); } }


/* скелет всплывающей карточки, пока грузятся данные */
.hovercard--loading .hovercard__body { flex: 1 1 auto; gap: .45rem; padding-top: .15rem; }
.hovercard--loading .hovercard__img { display: block; }
.hovercard--loading .ph { border-radius: .35rem; background: linear-gradient(90deg, rgba(var(--bs-emphasis-color-rgb), .07) 25%, rgba(var(--bs-emphasis-color-rgb), .16) 50%, rgba(var(--bs-emphasis-color-rgb), .07) 75%);
  background-size: 200% 100%; animation: hovercard-shimmer 1.1s linear infinite; }
.hovercard--loading .hovercard__img.ph { height: auto; }
@keyframes hovercard-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .hovercard--loading .ph { animation: none; } }

/* «Ваша оценка»: заполненная звезда после оценки (контур — пока не оценено или при наведении) */
.entity-rating__user-star .star-filled { display: none; }
.entity-rating__user.rate__rated:not(.open) .entity-rating__user-star .star-outline { display: none; }
.entity-rating__user.rate__rated:not(.open) .entity-rating__user-star .star-filled { display: inline-block; }
.entity-rating__user .rating-user { display: flex; flex-direction: column; gap: .15rem; }

/* ежедневная награда за заход (DailyReward) */
.reward-toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; display: flex; align-items: center; gap: .75rem; max-width: min(380px, calc(100vw - 2rem));
  padding: .8rem 2.2rem .8rem .9rem; border-radius: var(--bs-border-radius-xl, 1rem); background: var(--bs-body-bg); color: var(--bs-body-color);
  border: 1px solid rgba(245, 179, 1, .45); box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .35); animation: reward-in .35s ease-out both; }
.reward-toast.is-hiding { animation: reward-out .3s ease-in both; }
.reward-toast__coin { flex-shrink: 0; animation: reward-coin 1.2s ease-out .2s both; }
.reward-toast__title { font-weight: 600; color: var(--bs-emphasis-color); }
.reward-toast__title b { color: #f5b301; }
.reward-toast__sub { font-size: .82rem; color: var(--bs-secondary-color); margin-top: .1rem; }
.reward-toast__close { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; color: var(--bs-secondary-color); font-size: 1.3rem; line-height: 1; padding: .1rem .3rem; }
.reward-toast__close:hover { color: var(--bs-emphasis-color); }
@media (max-width: 575.98px) { .reward-toast { left: .75rem; right: .75rem; bottom: calc(4.5rem + env(safe-area-inset-bottom)); max-width: none; } }
@keyframes reward-in { from { opacity: 0; transform: translateY(1rem) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes reward-out { to { opacity: 0; transform: translateY(1rem); } }
@keyframes reward-coin { 0% { transform: rotateY(0) scale(.6); } 60% { transform: rotateY(360deg) scale(1.15); } 100% { transform: rotateY(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .reward-toast, .reward-toast.is-hiding, .reward-toast__coin { animation: none; } }
.user-profile__reward { font-size: .9rem; color: var(--bs-secondary-color); padding: .3rem .75rem; border-radius: 999px; background: rgba(245, 179, 1, .1); }
.user-profile__reward b { color: #f5b301; }
.user-profile__reward-coin { width: .95rem; height: .95rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #f5b301 60%, #c98a00); }
.user-profile__reward-dot { opacity: .5; }

/* Anime+ */
.plus-badge { display: inline-flex; align-items: center; justify-content: center; gap: .2rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; margin-left: .3rem;
  border-radius: .35rem; font-size: .75rem; font-weight: 800; line-height: 1; vertical-align: middle; color: #3d2600;
  background: linear-gradient(135deg, #ffe27a, #f5b301 55%, #d48f00); box-shadow: 0 0 0 1px rgba(255, 226, 122, .35); }
.plus-badge--lg { height: 1.6rem; min-width: 1.6rem; font-size: 1rem; padding: 0 .45rem; border-radius: .5rem; }
.plus-badge .bi { width: .9em; height: .9em; }
.plus-frame { display: inline-block; padding: 2px; border-radius: 50%; background: conic-gradient(from 180deg, #ffe27a, #f5b301, #d48f00, #ffe27a); line-height: 0; }
.plus-frame > * { border-radius: 50%; box-shadow: 0 0 0 2px var(--bs-body-bg); }
.plus-frame--profile { padding: 4px; border-radius: 50%; }
.plus-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .9rem; text-decoration: none;
  color: var(--bs-emphasis-color); background: linear-gradient(90deg, rgba(245, 179, 1, .18), rgba(245, 179, 1, .05)); border: 1px solid rgba(245, 179, 1, .35); }
.plus-cta:hover { border-color: rgba(245, 179, 1, .8); color: var(--bs-emphasis-color); }
.plus-page .plus-hero__icon, .plus-hero__icon { font-size: 3rem; color: #f5b301; line-height: 1; }
.plus-perk { display: flex; gap: .9rem; height: 100%; padding: 1rem; border-radius: var(--bs-border-radius-lg); background: rgba(var(--bs-emphasis-color-rgb), .045); }
.plus-perk svg { flex-shrink: 0; color: #f5b301; }
.plus-perk__title { font-weight: 700; color: var(--bs-emphasis-color); }
.plus-perk__text { font-size: .9rem; color: var(--bs-secondary-color); }
.plus-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; padding: 1.1rem; border-radius: var(--bs-border-radius-lg);
  border: 1px solid rgba(245, 179, 1, .35); background: rgba(245, 179, 1, .06); text-align: center; }
.plus-buy__price { font-size: 1.4rem; color: var(--bs-emphasis-color); }
.plus-buy__price b { color: #f5b301; }

/* плашка «Устали от рекламы? — Anime+» на страницах аниме и манги */
.plus-promo { display: flex; align-items: center; gap: .9rem; margin: 1rem 0; padding: .85rem 1.1rem; border-radius: var(--bs-border-radius-lg);
  background: linear-gradient(90deg, rgba(245, 179, 1, .16), rgba(245, 179, 1, .04) 70%); border: 1px solid rgba(245, 179, 1, .35); }
.plus-promo__icon { flex-shrink: 0; color: #f5b301; line-height: 0; }
.plus-promo__text { flex: 1 1 auto; min-width: 0; font-size: .92rem; color: var(--bs-body-color); }
.plus-promo__text b { color: var(--bs-emphasis-color); }
.plus-promo__btn { flex-shrink: 0; font-weight: 700; color: #3d2600; background: linear-gradient(135deg, #ffe27a, #f5b301 55%, #d48f00); border: 0; }
.plus-promo__btn:hover { color: #3d2600; filter: brightness(1.06); }
@media (max-width: 575.98px) { .plus-promo { flex-wrap: wrap; } .plus-promo__icon { display: none; } .plus-promo__btn { width: 100%; } }
