/* Profile header, statistics, activity and edit form */
.mk-dle .mk-profile-page {
  color: #f4f5f8;
  padding-bottom: 20px;
}

.mk-dle .mk-profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 23px;
  background: linear-gradient(115deg,#1c202b,#151a23 68%,#212329);
  border: 1px solid #ffffff19;
  border-radius: 14px;
  min-height: 153px;
  box-shadow: 0 18px 50px #0002;
}

.mk-dle .mk-profile-portrait {
  width: 94px;
  height: 94px;
  flex: none;
  position: relative;
  border: 3px solid #ff783e67;
  box-shadow: 0 0 0 4px #ffffff0a;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2c39;
}

.mk-dle .mk-profile-portrait img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.mk-dle .mk-profile-identity {
  min-width: 0;
  flex: 1;
}

.mk-dle .mk-profile-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mk-dle .mk-profile-name-line h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mk-dle .mk-profile-role {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #ff783e55;
  background: #ff783e18;
  color: #ffac84;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.mk-dle .mk-profile-availability {
  margin-top: 6px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: #9aa4b4;
  font-size: 11px;
}

.mk-dle .mk-online {
  color: #38d49b;
}

.mk-dle .mk-offline {
  color: #a2a8b5;
}

.mk-dle .mk-profile-dot {
  color: #6c7280;
}

.mk-dle .mk-profile-numbers {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.mk-dle .mk-profile-numbers>div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mk-dle .mk-profile-numbers strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
}

.mk-dle .mk-profile-numbers small {
  font-size: 10px;
  color: #8994a7;
}

.mk-dle .mk-profile-top-actions {
  align-self: center;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mk-dle .mk-profile-pm-action :is(a,button) {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  color: #e7e7eb!important;
  padding: 9px 13px;
  border: 1px solid #ffffff28;
  border-radius: 8px;
  background: #242832;
  font-size: 11px;
}

.mk-dle .mk-profile-tabs {
  margin: 16px 0 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mk-dle .mk-profile-tabs .user_tab {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 5px;
  border: 1px solid #ffffff16;
  background: #151820;
  border-radius: 10px;
  list-style: none;
  width: max-content;
  max-width: none;
}

.mk-dle .mk-profile-tabs .user_tab li {
  margin: 0;
  display: block;
  float: none;
}

.mk-dle .mk-profile-tabs .user_tab a {
  color: #a4aec0;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 1;
}

.mk-dle .mk-profile-tabs .user_tab .active a {
  color: #fff;
  background: #292c37;
}

.mk-dle .mk-profile-tabs .user_tab a:hover {
  color: #ffab85;
}

.mk-dle .mk-profile-tab-content>.tab-pane {
  display: none;
}

.mk-dle .mk-profile-tab-content>.tab-pane.active {
  display: block;
}

.mk-dle .mk-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

.mk-dle .mk-details-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.mk-dle .mk-detail {
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid #ffffff14;
  background: #1b202b;
  min-width: 0;
}

.mk-dle .mk-detail small,
.mk-dle .mk-detail strong {
  display: block;
}

.mk-dle .mk-detail small {
  color: #8b99ae;
  font-size: 10px;
  margin-bottom: 8px;
}

.mk-dle .mk-detail strong {
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  font-weight: 750;
  color: #f6f7fb;
}

.mk-dle .mk-stat-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}

.mk-dle .mk-stat-cards>div {
  padding: 12px;
  background: #1c202a;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 105px;
}

.mk-dle .mk-stat-cards small {
  color: #90a0b4;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 11px;
}

.mk-dle .mk-stat-cards strong {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.mk-dle .mk-stat-cards span,
.mk-dle .mk-stat-cards .mk-user-rating {
  color: #ffc078;
  overflow-wrap: anywhere;
  font-size: 10px;
  margin-top: 7px;
}

.mk-dle .mk-stat-cards a {
  color: #ffb18e;
}

.mk-dle .mk-profile-bio {
  min-height: 122px;
  margin-bottom: 14px;
}

.mk-dle .mk-profile-bio>div {
  font-size: 12px;
  color: #aeb8c9;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.mk-dle .mk-activity-big {
  font-size: 30px;
  font-weight: 950;
  color: #ff9e73;
  margin: 12px 0;
}

.mk-dle .mk-profile-edit {
  padding: 25px 28px;
}

.mk-dle .mk-profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 18px;
  row-gap: 3px;
}

.mk-dle .mk-profile-settings-grid .mk-wide {
  grid-column: 1/-1;
}

.mk-dle .mk-profile-edit .mk-edit-section-title {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  border-top: 1px solid #ffffff15;
  padding-top: 23px;
  margin: 14px 0 19px;
}

.mk-dle .mk-checkbox-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #a9b4c6;
  line-height: 1.7;
}

.mk-dle .mk-checkbox-line label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mk-dle .mk-dle-control {
  min-height: 42px;
  padding: 12px;
  background: #1b202a;
  border: 1px solid #ffffff18;
  border-radius: 8px;
}

.mk-dle .mk-panel-inside {
  margin: 18px 0;
  padding: 16px;
  background: #1c202b;
  border: 1px solid #ffffff18;
  border-radius: 10px;
}

.mk-dle .mk-panel-inside strong {
  font-size: 12px;
}

.mk-dle .mk-profile-preferences {
  display: grid;
  gap: 10px;
  padding: 10px 0;
  color: #aeb9c8;
  font-size: 12px;
}

.mk-dle .mk-profile-preferences :is(label,input) {
  cursor: pointer;
  accent-color: #ff783e;
}

.mk-dle .mk-profile-save {
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid #ffffff14;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.mk-dle .mk-profile-delete {
  font-size: 11px;
  color: #ff9d9d;
}

.mk-dle .mk-profile-delete a {
  color: inherit;
}

.mk-dle .mk-profile-ignore {
  margin-top: 15px;
  font-size: 12px;
}

@media(max-width:940px) {
  .mk-dle .mk-profile-hero {
    flex-wrap: wrap;
  }
  .mk-dle .mk-profile-top-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .mk-dle .mk-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:600px) {
  .mk-dle .mk-profile-hero {
    padding: 16px;
    gap: 13px;
  }
  .mk-dle .mk-profile-portrait {
    width: 67px;
    height: 67px;
  }
  .mk-dle .mk-profile-name-line h1 {
    font-size: 18px;
  }
  .mk-dle .mk-profile-numbers {
    gap: 17px;
  }
  .mk-dle .mk-profile-availability {
    font-size: 10px;
  }
  .mk-dle .mk-profile-settings-grid {
    grid-template-columns: 1fr;
  }
  .mk-dle .mk-profile-edit {
    padding: 15px;
  }
}

@media(max-width:360px) {
  .mk-dle .mk-details-grid,
  .mk-dle .mk-stat-cards {
    grid-template-columns: 1fr 1fr;
  }
  .mk-dle .mk-stat-cards>div:last-child {
    grid-column: 1/-1;
  }
}

.mk-dle .mk-collections-panel {
  max-width: 100%;
}

.mk-dle .mk-collections-panel .mk-muted {
  margin-bottom: 18px;
}

/* V3 — full account profile, native DLE values and editable avatar. */
.mk-dle .mk-profile-hero {
  background: linear-gradient(115deg,#1a1b20,#15161b 82%);
  border-color: #ffffff1b;
}

.mk-dle .mk-profile-page .mk-panel {
  background: #14161c;
  border-color: #ffffff17;
}

.mk-dle .mk-profile-page .mk-detail,
.mk-dle .mk-profile-page .mk-stat-cards>div {
  background: #1c1d23;
  border-color: #ffffff15;
}

.mk-dle .mk-profile-page .mk-detail small,
.mk-dle .mk-profile-page .mk-stat-cards small {
  color: #a2a3ab;
}

.mk-dle .mk-profile-tabs .user_tab {
  background: #17181e;
  border-color: #ffffff19;
}

.mk-dle .mk-profile-tabs .user_tab .active a {
  background: #2a211f;
  color: #ffae83;
}

.mk-dle .mk-profile-tabs .user_tab a:hover {
  background: #ff783e14;
  color: #ffab83;
}

.mk-dle .mk-profile-tabs svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
}

.mk-dle .mk-profile-page a.mk-btn-primary:hover,
.mk-dle .mk-profile-page a.mk-btn-primary:focus-visible {
  background: #ff986b!important;
  color: #21120c!important;
  border-color: #ff986b!important;
  box-shadow: 0 4px 19px #ff783e2b;
}

.mk-dle .mk-profile-page a.mk-btn-primary svg {
  width: 15px;
  height: 15px;
}

.mk-dle .mk-profile-portrait {
  position: relative;
  overflow: hidden;
  border: 3px solid #ff783e55;
}

.mk-dle .mk-profile-portrait-editable .mk-profile-avatar-button {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg,#09090ad9,#09090a33 80%);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s;
}

.mk-dle .mk-profile-portrait-editable .mk-profile-avatar-button:focus-visible,
.mk-dle .mk-profile-portrait-editable:hover .mk-profile-avatar-button {
  opacity: 1;
}

.mk-dle .mk-profile-avatar-button svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 4px #000);
}

.mk-dle .mk-profile-avatar-button .mk-avatar-prompt {
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.mk-dle .mk-profile-portrait-editable {
  cursor: pointer;
}

.mk-dle .mk-avatar-input-field {
  scroll-margin-top: 100px;
}

.mk-dle .mk-avatar-help {
  font-size: 11px;
  color: #e5b28e;
  line-height: 1.8;
}

.mk-dle .mk-avatar-input-field.mk-avatar-selected input {
  border-color: #ff783e!important;
}

.mk-dle .mk-stat-cards>div {
  min-height: 112px;
}

.mk-dle .mk-stat-cards>div .mk-reputation-value {
  font-size: 11px;
  line-height: 1.7;
  color: #ffbb92;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.mk-dle .mk-stat-cards>div.mk-stat-reputation {
  overflow: hidden;
}

.mk-dle .mk-stat-cards>div.mk-stat-reputation :is(b,strong) {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.mk-dle .mk-activity-native-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 12px;
  color: #ffab81;
}

.mk-dle .mk-activity-native-link a {
  color: #ffab81;
  text-decoration: none;
}

.mk-dle .mk-activity-native-link a:hover {
  color: #fff;
}

.mk-dle .mk-profile-page :is(.mk-profile-identity,.mk-profile-tabs) a:focus-visible {
  outline: 2px solid #ff783e;
  outline-offset: 3px;
}

/* DLE may append a user-news feed after userinfo.tpl; suppress only on user profile pages.
   Do not hide listings on category, search or home pages. */
.mk-dle .mk-news-grid:has(.mk-profile-page)>.poster-card,
.mk-dle .mk-news-grid:has(.mk-profile-page)>.mk-shortstory,
.mk-dle .mk-news-grid:has(.mk-profile-page)>.story {
  display: none!important;
}

.mk-dle .mk-page-content:has(.mk-profile-page)>.mk-paging {
  display: none!important;
}

@media(hover:none) {
  .mk-dle .mk-profile-portrait-editable .mk-profile-avatar-button {
    opacity: 1;
    background: linear-gradient(0deg,#0a0b0ddc,transparent 75%);
    justify-content: flex-end;
    padding-bottom: 10px;
  }
  .mk-dle .mk-profile-avatar-button svg {
    width: 20px;
    height: 20px;
  }
}

@media(max-width:650px) {
  .mk-dle .mk-profile-avatar-button .mk-avatar-prompt {
    font-size: 8px;
  }
  .mk-dle .mk-profile-portrait-editable .mk-profile-avatar-button {
    opacity: 1;
    justify-content: flex-end;
    padding: 5px;
    background: linear-gradient(0deg,#080a0bd9,transparent 70%);
  }
  .mk-dle .mk-profile-avatar-button svg {
    width: 18px;
    height: 18px;
  }
  .mk-dle .mk-profile-page .mk-stat-cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .mk-dle .mk-profile-page .mk-stat-cards .mk-stat-reputation {
    grid-column: 1/-1;
  }
}

/* All cards appended by DLE after userinfo are suppressed only in the profile route.
   The normal public catalog, homepage and news detail pages remain untouched. */
.mk-dle .mk-news-grid:has(> .mk-profile-page)>:not(.mk-profile-page) {
  display: none!important;
}


/* ==============================================================
   MYKINO.CC · PROFILE RATING V8
   Counts votes CAST by the profile user via the legacy DLE AJAX API.
   Does not use DLE {rate} or article rating aggregates.
   ============================================================== */
.mk-dle .mk-profile-page .mk-stat-reputation-legacy {
  min-width: 0;
  gap: 8px;
}

.mk-dle .mk-profile-rating-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-top: 5px;
}

.mk-dle .mk-profile-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: #16181e;
  min-width: 0;
}

.mk-dle .mk-profile-rating-label {
  color: #bdc2ce;
  font-size: 11px;
  line-height: 1.55;
}

.mk-dle .mk-profile-rating-value {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-dle .mk-profile-rating-row.is-like .mk-profile-rating-value {
  color: #57d9a0;
}

.mk-dle .mk-profile-rating-row.is-dislike .mk-profile-rating-value {
  color: #ff9c92;
}

.mk-dle .mk-profile-rating-row.is-total {
  border-color: rgba(255, 120, 62, .35);
  background: rgba(255, 120, 62, .09);
}

.mk-dle .mk-profile-rating-row.is-total .mk-profile-rating-value {
  color: #ffac82;
}

.mk-dle .mk-profile-rating-status {
  display: block;
  color: #a7b0bf;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.mk-dle .mk-profile-rating-status.is-error {
  color: #ffaf9f;
}

@media (max-width: 650px) {
  .mk-dle .mk-profile-rating-row {
    padding: 9px 10px;
  }
}

/* ==========================================================================
   MYKINO.CC — Profile statistics / Balanced Reputation V11

   Design-only update:
   - Same card proportions as the two adjacent statistics.
   - One main score, a compact two-column Like/Dislike footer.
   - Reads the EXISTING data-profile-rate-list markup supplied by V8 AJAX.
   - Does NOT modify PHP, JavaScript, vote counting or DLE placeholders.
   ========================================================================== */

/* Treat all three boxes as equal siblings. */
.mk-dle .mk-profile-page .mk-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}

.mk-dle .mk-profile-page .mk-stat-cards > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 165px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #1c1d23;
  box-shadow: none;
}

.mk-dle .mk-profile-page .mk-stat-cards > div > small {
  display: block;
  min-height: 15px;
  margin: 0 0 11px;
  color: #9da2ad;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.mk-dle .mk-profile-page .mk-stat-cards > div:not(.mk-stat-reputation-legacy) > strong {
  display: block;
  margin: 0 0 6px;
  color: #f7f7f8;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}

.mk-dle .mk-profile-page .mk-stat-cards > div:not(.mk-stat-reputation-legacy) > span {
  margin: 0;
  color: #d9a47e;
  font-size: 10px;
  line-height: 1.6;
}

/* Reputation is no longer a specially tall highlighted panel. */
.mk-dle .mk-profile-page .mk-stat-cards > div.mk-stat-reputation-legacy {
  position: relative;
  isolation: auto;
  overflow: visible;
  gap: 0;
  background: #1c1d23;
  border-color: rgba(255, 255, 255, 0.09);
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy::before,
.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-total::after {
  display: none;
  content: none;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-list {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(42px, 1fr);
  align-items: stretch;
}

/* CSS positioning rearranges visual order; JavaScript still renders the API rows. */
.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-total {
  order: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-total .mk-profile-rating-value {
  display: block;
  width: auto;
  margin: 0;
  color: #ff986b;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.2px;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-total .mk-profile-rating-label {
  display: block;
  margin: 0;
  color: #a4a8b2;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

/* One restrained, integrated strip instead of nested cards and extra borders. */
.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-like,
.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-dislike {
  order: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 3px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-like {
  grid-column: 1;
  grid-row: 2;
  padding-right: 7px;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-dislike {
  grid-column: 2;
  grid-row: 2;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row:is(.is-like, .is-dislike) .mk-profile-rating-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: #b4b7c1;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row:is(.is-like, .is-dislike) .mk-profile-rating-value {
  display: block;
  width: auto;
  margin: 0;
  color: #e9eaf0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Tiny monochrome glyphs that match the site's existing icon language. */
.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row:is(.is-like, .is-dislike) .mk-profile-rating-label::before {
  content: "";
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 0;
  background: #55caa0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 10v11H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3zm0 0 5-7a2 2 0 0 1 3.2 2.3L14 10h5a3 3 0 0 1 3 3.6l-1.4 5.8a2 2 0 0 1-2 1.6H7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 10v11H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3zm0 0 5-7a2 2 0 0 1 3.2 2.3L14 10h5a3 3 0 0 1 3 3.6l-1.4 5.8a2 2 0 0 1-2 1.6H7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-dislike .mk-profile-rating-label::before {
  background: #ed9281;
  transform: rotate(180deg);
}

.mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-status {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: block;
  color: #a7abb5;
  font-size: 11px;
  line-height: 1.6;
}

/* Responsive: avoid squeezing a 3-way grid into a narrow phone screen. */
@media (max-width: 1100px) and (min-width: 941px) {
  .mk-dle .mk-profile-page .mk-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-dle .mk-profile-page .mk-stat-cards > div.mk-stat-reputation-legacy {
    grid-column: 1 / -1;
    min-height: 130px;
  }
}

@media (max-width: 600px) {
  .mk-dle .mk-profile-page .mk-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-dle .mk-profile-page .mk-stat-cards > div {
    min-height: 112px;
  }

  .mk-dle .mk-profile-page .mk-stat-cards > div.mk-stat-reputation-legacy {
    grid-column: 1 / -1;
    min-height: 136px;
  }

  .mk-dle .mk-profile-page .mk-stat-reputation-legacy .mk-profile-rating-row.is-total {
    min-height: 57px;
  }
}


/* ========================================================================== 
   MYKINO.CC — Profile → Private message button (Orange Noir V4)
   Dedicated rule: remains usable without legacy styles.css / engine.css.
   DLE {pm} provides the original message action and handler.
   ========================================================================== */

.mk-dle .mk-profile-page .mk-profile-pm-action {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.mk-dle .mk-profile-page .mk-profile-pm-action :is(a, button) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  max-width: 100%;
  margin: 0;
  padding: 10px 15px !important;
  border: 1px solid rgba(255, 120, 62, 0.42) !important;
  border-radius: 10px !important;
  background: rgba(255, 120, 62, 0.10) !important;
  color: #ffb18b !important;
  box-shadow: none !important;
  font-family: "BPG WEB 001", "Noto Sans Georgian", system-ui, sans-serif;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: normal;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mk-dle .mk-profile-page .mk-profile-pm-action :is(a, button)::before {
  content: "";
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-8.5 8.5H5l-3 2V7.5A5.5 5.5 0 0 1 7.5 2h8A5.5 5.5 0 0 1 21 7.5z'/%3E%3Cpath d='M7.5 9h9M7.5 13h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-8.5 8.5H5l-3 2V7.5A5.5 5.5 0 0 1 7.5 2h8A5.5 5.5 0 0 1 21 7.5z'/%3E%3Cpath d='M7.5 9h9M7.5 13h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mk-dle .mk-profile-page .mk-profile-pm-action :is(a, button):hover,
.mk-dle .mk-profile-page .mk-profile-pm-action :is(a, button):focus-visible {
  border-color: #ff783e !important;
  background: #ff783e !important;
  color: #1b110b !important;
  box-shadow: 0 8px 20px rgba(255, 120, 62, 0.18) !important;
  transform: translateY(-1px);
}

.mk-dle .mk-profile-page .mk-profile-pm-action :is(a, button):focus-visible {
  outline: 2px solid #ffa77f;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .mk-dle .mk-profile-page .mk-profile-pm-action,
  .mk-dle .mk-profile-page .mk-profile-pm-action :is(a, button) {
    width: 100%;
  }
}
