/* Personal libraries: compact desktop cards, shared by all four tabs. *//* Drama artwork includes its title: show the entire poster without hover cropping. */.md-profile-library .md-profile-card > .md-card[data-play] .md-card-image {  display: grid;  grid-template-columns: minmax(0, 1fr);  grid-template-rows: auto;  width: 100%;  height: auto !important;  aspect-ratio: auto !important;  background: transparent;  border-radius: 0;}.md-profile-library .md-card[data-play] .md-card-image::before { content: none; }.md-profile-library .md-card[data-play] .md-card-image > img {  grid-area: 1 / 1;  width: 100%;  height: auto !important;  aspect-ratio: 2 / 3;  border-radius: 8px;  object-fit: contain !important;  object-position: center top;  transform: none !important;}.md-profile-library .md-card[data-play] .md-card-image > .md-video-views {  position: absolute;  right: 8px;  bottom: 8px;  margin: 0;  max-width: calc(100% - 16px);  color: #fff;  background: transparent;  text-shadow: 0 1px 4px #000, 0 0 2px #0008;}.md-profile-paging { min-height: 30px; padding-top: 14px; text-align: center; color: #9699a6; font-size: 12px; }.md-profile-paging [data-profile-sentinel] { height: 1px; }.md-profile-paging p { margin: 6px 0 14px; }
@media (min-width: 768px) {
  .md-profile-library .md-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
  }
  .md-profile-library .md-profile-card {
    width: 100%;
    max-width: 240px;
    min-width: 0;
    justify-self: start;
  }
  .md-profile-library .md-profile-card .md-card-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
  }
  .md-profile-library .md-card-image::before { content: none; }
  .md-profile-library .md-card-image > img {
    object-fit: cover !important;
    object-position: center;
  }
  .md-profile-library .md-profile-card .md-card-title {
    display: block !important;
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }
  .md-profile-library .md-desktop-card-meta { display: none; }
}
@media (min-width: 1024px) {
  .md-profile-library .md-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .md-profile-library .md-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .md-profile-library .md-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 2240px) {
  .md-profile-library .md-grid { grid-template-columns: repeat(auto-fill, minmax(0, 240px)); }
}

/* Compact identity and stats above the desktop library. */
@media (min-width: 768px) {
  .md-profile-heading {
    --md-profile-padding: clamp(18px, 3vw, 46px);
    padding: 26px var(--md-profile-padding) 24px;
    min-height: 250px;
    background: linear-gradient(90deg, #171821ed 0%, #171821b0 24%, #17182118 62%, #17182110),
      var(--md-profile-cover, none) center 32% / cover no-repeat #171821;
  }
  .md-profile-heading .md-profile-top {
    height: auto;
    padding: 0;
    align-items: center;
    gap: 16px;
    background: none !important;
  }
  .md-profile-heading .md-profile-top > img { width: 80px; height: 80px; }
  .md-profile-heading .md-profile-top > p { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
  .md-profile-summary { margin: -12px 0 0 96px; }
  .md-profile-summary .md-profile-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    text-align: left;
  }
  .md-profile-summary .md-profile-stats strong { display: inline; margin: 0 6px 0 0; font-size: 15px; }
  .md-profile-summary .md-profile-stats span { color: #c5c6cf; }
  .md-profile-summary .md-edit { padding: 6px 12px; }
  .md-profile-summary .md-bio { margin: 10px 0 0; color: #ccc; }
  .md-profile-heading + .md-profile-content { margin: 0; padding-top: 8px; border-radius: 0; }
  .md-profile-content .md-profile-tabs { gap: 18px; }
  .md-profile-content .md-profile-tabs button { font-weight: 600; }
}
@media (max-width: 767px) {
  .md-profile-summary {
    position: relative;
    margin-top: -12px;
    padding: 20px 16px 0;
    border-radius: 18px 18px 0 0;
    background: white;
    color: #222;
  }
  .md-profile-heading + .md-profile-content { margin-top: 0; padding-top: 1px; border-radius: 0; }
}
