:root { --emalm-tag-system-color:#000000;--emalm-tag-general-color:#006ffa;--emalm-tag-artist-color:#ff0000;--emalm-tag-copyright-color:#b000b0;--emalm-tag-character-color:#00a000;--emalm-tag-meta-color:#ff4a00; }
  .users-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
  }

  .users-pagination-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .users-pagination-list a,
  .users-pagination-list span {
    border-radius: 4px;
    min-width: 42px;
    text-decoration: none;
  }

  .users-pagination-list .users-page-link {
    background: #efefef;
    border: 1px solid #bcbcbc;
    color: #000;
    font-weight: 700;
    padding: 8px 12px;
    text-align: center;
  }

  .users-pagination-list .users-page-link:hover {
    background: var(--emalm-theme-accent, #D4AF37);
    color: #000;
  }

  .users-pagination-list .users-page-link.active {
    background: var(--emalm-theme-accent, #D4AF37);
    border-color: #9f8128;
    color: #000;
  }

  .users-pagination-list .users-page-link.disabled {
    color: #777;
    pointer-events: none;
  }

  .users-pagination-list .users-page-gap {
    color: #555;
    min-width: auto;
    padding: 8px 2px;
  }

  @media (max-width: 767px) {
    .users-pagination {
      align-items: flex-start;
      justify-content: flex-start;
    }
  }
  .emalm-album-folder-cover {
    box-sizing: border-box;
    display: block;
    height: 132px;
    max-width: 100%;
    min-width: 0;
    position: relative;
    width: 100%;
  }

  .emalm-album-folder-tab {
    background: #f2e293;
    border: 1px solid #b9aa58;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    display: block;
    height: 18%;
    left: 8%;
    position: absolute;
    top: 4%;
    width: 42%;
    z-index: 1;
  }

  .emalm-album-folder-body {
    background: #fff6be;
    border: 1px solid #b9aa58;
    border-radius: 8px;
    box-shadow: inset 0 -16px 0 rgba(222, 199, 91, 0.28);
    display: block;
    inset: 16% 4% 4%;
    overflow: hidden;
    position: absolute;
    z-index: 2;
  }

  .emalm-album-folder-body .emalm-album-cover {
    background: #f8f8f8 center/cover no-repeat;
    display: block;
    height: 100%;
    opacity: 0.94;
    width: 100%;
  }

  .emalm-album-folder-body .emalm-album-cover-svg svg {
    display: block;
    height: 100%;
    width: 100%;
  }

  .emalm-album-folder-body .emalm-album-cover-icon {
    align-items: center;
    color: #7b7139;
    display: flex;
    font-size: 34px;
    justify-content: center;
  }

  .media-listing-layout {
    display: block;
  }

  .media-listing-main {
    min-width: 0;
  }

  .emalm-posts-index {
    margin: 4px 0 28px;
  }

  .emalm-posts-index-page #c-posts.emalm-posts-index {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
  }

  .emalm-posts-search-wide {
    margin: 0 0 5px;
  }

  .emalm-posts-sidebar-container {
    align-items: flex-start;
    display: flex;
    gap: 12px;
  }

  .emalm-posts-sidebar-toggle {
    align-self: flex-start;
    background: var(--emalm-ui-surface-2, #eee);
    border: 1px solid var(--emalm-ui-border, #bbb);
    border-radius: 6px;
    color: var(--emalm-ui-link, #06c);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px 8px;
    margin: 0 0 8px;
    white-space: nowrap;
    z-index: 2;
  }

  .emalm-posts-sidebar-toggle:hover,
  .emalm-posts-sidebar-toggle:focus {
    background: var(--emalm-ui-accent, #369);
    border-color: var(--emalm-ui-accent, #369);
    color: var(--emalm-ui-accent-text, #fff);
  }

  .emalm-posts-sidebar-container.is-sidebar-hidden {
    gap: 8px;
  }

  .emalm-posts-sidebar {
    flex: 0 0 230px;
    max-width: 230px;
    overflow-wrap: anywhere;
  }

  .emalm-posts-sidebar.is-panel-hidden {
    display: none;
  }

  .emalm-posts-sidebar-body[hidden] {
    display: none !important;
  }

  .emalm-posts-content {
    flex: 1 1 auto;
    min-width: 0;
  }

  .emalm-posts-sidebar-container.is-sidebar-hidden .emalm-posts-content {
    flex-basis: 100%;
  }

  .emalm-posts-sidebar-container.is-sidebar-hidden .post-gallery-grid {
    width: 100%;
  }

  .emalm-posts-sidebar-section,
  .emalm-posts-sidebar .media-layout-panel,
  .emalm-posts-sidebar .media-post-mode-box {
    margin: 0 0 14px;
  }

  .emalm-posts-sidebar h2,
  .emalm-posts-sidebar .media-layout-title {
    color: #A0522D;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 6px;
  }

  .emalm-posts-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .media-posts-tag-list li {
    align-items: baseline;
    display: grid;
    gap: 0 4px;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    line-height: 1.28;
    min-width: 0;
  }

  .media-posts-tag-list .emalm-media-tag-sidebar-wiki {
    min-width: 0;
  }

  .media-posts-tag-list .dpi-tag-statistic {
    color: #666;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
  }

  .media-posts-tag-list .emalm-media-tag-sidebar-name {
    min-width: 0;
  }

  .media-posts-tag-list .search-tag {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .media-posts-tag-list .emalm-media-tag-sidebar-actions {
    align-items: baseline;
    display: inline-flex;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .media-posts-tag-list .post-count {
    color: #666;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
  }

  .media-posts-tag-list .tag-type-0 .search-tag { color: var(--emalm-tag-general-color, #006ffa); }
  .media-posts-tag-list .tag-type-1 .search-tag { color: var(--emalm-tag-artist-color, #ff0000); }
  .media-posts-tag-list .tag-type-3 .search-tag { color: var(--emalm-tag-copyright-color, #b000b0); }
  .media-posts-tag-list .tag-type-4 .search-tag { color: var(--emalm-tag-character-color, #00a000); }
  .media-posts-tag-list .tag-type-5 .search-tag { color: var(--emalm-tag-meta-color, #ff4a00); }
  .media-posts-tag-list .tag-type-system .search-tag { color: var(--emalm-tag-system-color, #000); }

  .emalm-posts-sidebar .dpi-table table {
    font-size: 12px;
    width: 100%;
  }

  .emalm-posts-sidebar .dpi-table th {
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
  }

  .emalm-posts-sidebar .dpi-table td {
    text-align: right;
  }

  .media-posts-sidebar-muted {
    color: #666;
    font-size: 12px;
    margin: 0;
  }

  .emalm-posts-sections {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 0;
  }

  .emalm-posts-sections li {
    list-style: none;
  }

  .emalm-posts-sections a.active {
    font-weight: 700;
  }

  .emalm-posts-sections .preview-size-menu {
    position: relative;
  }

  .emalm-posts-sections .popup-menu-content {
    background: var(--emalm-ui-surface-1, var(--emalm-menu-background, #fff));
    border: 1px solid var(--emalm-ui-border, rgba(0,0,0,.18));
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
    color: var(--emalm-ui-surface-text, var(--text-color, #222));
    display: none;
    list-style: none;
    margin: 4px 0 0;
    min-width: 110px;
    padding: 6px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
  }

  .emalm-posts-sections .popup-menu.is-open .popup-menu-content {
    display: block;
  }

  .emalm-posts-sections .popup-menu-content a {
    color: var(--emalm-ui-surface-text, var(--text-color, #222));
    display: block;
    padding: 3px 10px;
    text-decoration: none;
    white-space: nowrap;
  }

  .emalm-posts-sections .popup-menu-content a:hover,
  .emalm-posts-sections .popup-menu-content a.font-bold {
    background: var(--emalm-ui-surface-2, rgba(0, 111, 250, .12));
    color: var(--emalm-ui-surface-text, var(--text-color, #222));
    font-weight: 700;
  }

  .emalm-posts-sidebar .media-post-mode-box {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 6px;
    padding: 0;
  }

  .emalm-posts-sidebar .media-post-mode-box label {
    display: grid;
    gap: 4px;
  }

  .emalm-posts-sidebar .media-page-size-panel {
    display: none;
  }

  @media only screen and (min-width: 1027px) {
    .media-listing-layout {
      align-items: flex-start;
      display: grid;
      gap: 3%;
      grid-template-columns: minmax(0, 70%) minmax(220px, 20%);
      margin-left: 50px;
      margin-right: 3%;
    }

    .media-listing-layout .media-listing-main .left {
      left: auto !important;
      margin: 0 0 10px !important;
      min-width: 0;
      position: relative;
      width: auto !important;
    }

    .media-listing-layout .media-listing-rside {
      display: block;
      left: auto !important;
      margin: 0 !important;
      min-width: 0;
      position: static !important;
      right: auto !important;
      width: auto !important;
    }
  }

  .media-layout-panel {
    margin: 0 0 1em;
  }

  .media-layout-title {
    font-weight: 700;
    margin-bottom: 0.5em;
  }

  .media-layout-switch {
    display: flex;
    gap: 0.35em;
  }

  .media-page-size-switch {
    display: grid;
    gap: 0.35em;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-status-filter-buttons {
    display: grid;
    gap: 0.35em;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
  }

  .media-filter-row {
    display: flex;
    gap: 0.35em;
  }

  .media-uploader-field {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
  }

  .media-control-input {
    background: var(--emalm-ui-surface-1, #fff);
    border: 1px solid var(--emalm-ui-border, #777);
    border-radius: 4px;
    color: var(--emalm-ui-surface-text, #111);
    min-height: 2.5em;
    min-width: 0;
    padding: 0.45em 0.55em;
    width: 100%;
  }

  .media-search-help {
    flex: 1 0 100%;
    color: #444;
    font-size: 0.9em;
    margin-top: 0.45em;
  }

  .media-search-form {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
  }

  .media-saved-searches {
    display: grid;
    gap: 0.55em;
    margin-top: 0.65em;
  }

  .media-saved-search-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.7em;
  }

  .media-saved-search-card summary {
    cursor: pointer;
    font-weight: 700;
  }

  .media-saved-search-form,
  .media-saved-search-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
    margin-top: 0.55em;
  }

  .media-saved-search-form input[name="name"] {
    min-width: 14em;
  }

  .media-saved-search-row {
    border-top: 1px solid #e5e5e5;
    padding-top: 0.45em;
  }

  .media-saved-search-row span {
    color: #666;
    flex: 1 1 16em;
    font-size: 0.9em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .media-saved-search-flash {
    border-radius: 6px;
    padding: 0.45em 0.65em;
  }

  .media-saved-search-flash--ok {
    background: #e9f7ea;
    border: 1px solid #9bd09f;
  }

  .media-saved-search-flash--error {
    background: #fdecec;
    border: 1px solid #e0a0a0;
  }

  .media-related-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
  }

  .media-related-tags[hidden] {
    display: none;
  }

  .media-related-tags-label {
    color: #555;
    font-weight: 700;
    margin-right: 0.25em;
  }

  .media-related-tag {
    background: #fffde7;
    border: 1px solid #d9cd4d;
    border-radius: 999px;
    color: #222;
    padding: 0.28em 0.65em;
  }

  .media-post-mode-box {
    align-items: center;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55em;
    margin-top: 0.65em;
    padding: 0.7em;
  }

  .media-post-mode-box.is-enhanced .media-post-mode-select-label {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
  }

  .post-mode-menu-buttons {
    display: inline-flex;
    flex: 1 1 100%;
    gap: 0;
    min-width: 0;
  }

  .post-mode-menu-button {
    align-items: center;
    background: var(--form-button-background, #f5f5f5);
    border: 1px solid var(--form-button-border-color, #ccc);
    border-right-width: 0;
    color: var(--form-button-text-color, #333);
    cursor: pointer;
    display: inline-flex;
    flex: 1 1 0;
    justify-content: center;
    min-height: 2.15em;
    min-width: 0;
    padding: 0.35em 0.2em;
  }

  .post-mode-menu-button:first-child {
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
  }

  .post-mode-menu-button:last-child {
    border-bottom-right-radius: 3px;
    border-right-width: 1px;
    border-top-right-radius: 3px;
  }

  .post-mode-menu-button:hover,
  .post-mode-menu-button:focus {
    background: var(--form-button-hover-background, #eee);
  }

  .post-mode-menu-button.is-active {
    border: 2px solid var(--link-color, #006ffa);
    padding: calc(0.35em - 1px) calc(0.2em - 1px);
    z-index: 1;
  }

  .post-mode-menu-symbol {
    font-weight: 700;
    line-height: 1;
  }

  .media-post-mode-box label {
    align-items: center;
    display: inline-flex;
    gap: 0.35em;
  }

  .media-post-mode-box [hidden] {
    display: none !important;
  }

  .media-post-quick-edit {
    display: grid;
    flex: 1 1 100%;
    gap: 0.5em;
  }

  .media-post-quick-edit textarea {
    min-height: 7em;
    width: 100%;
  }

  .media-post-mode-status.is-error {
    color: #a40000;
  }

  .media-filter-apply {
    flex: 0 0 auto;
  }

  .media-uploader-suggestions {
    background: var(--emalm-ui-warning-bg);
    border: 1px solid var(--emalm-ui-warning-border);
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    color: var(--emalm-ui-warning-text);
    left: 0;
    margin-top: 0.2em;
    max-height: 15em;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
  }

  .media-uploader-suggestion {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--emalm-ui-warning-border) 68%, transparent);
    color: var(--emalm-ui-warning-text);
    display: flex;
    gap: 0.5em;
    justify-content: space-between;
    min-height: 2.4em;
    padding: 0.45em 0.55em;
    text-align: left;
    width: 100%;
  }

  .media-uploader-suggestion:last-child {
    border-bottom: 0;
  }

  .media-uploader-suggestion:hover,
  .media-uploader-suggestion:focus,
  .media-uploader-suggestion.is-active {
    background: color-mix(in srgb, var(--emalm-ui-warning-border) 18%, var(--emalm-ui-warning-bg) 82%);
    color: var(--emalm-ui-warning-text);
  }

  .media-uploader-suggestion-name,
  .media-post-search-suggestion-label {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .media-post-search-suggestion-label.tag-type-system {
    color: var(--emalm-tag-system-color, #000);
  }

  .media-post-search-suggestion-label.tag-type-0 {
    color: var(--emalm-tag-general-color, #006ffa);
  }

  .media-post-search-suggestion-label.tag-type-1 {
    color: var(--emalm-tag-artist-color, #ff0000);
  }

  .media-post-search-suggestion-label.tag-type-3 {
    color: var(--emalm-tag-copyright-color, #b000b0);
  }

  .media-post-search-suggestion-label.tag-type-4 {
    color: var(--emalm-tag-character-color, #00a000);
  }

  .media-post-search-suggestion-label.tag-type-5 {
    color: var(--emalm-tag-meta-color, #ff4a00);
  }

  .media-uploader-suggestion-uid,
  .media-post-search-suggestion-detail {
    color: #555;
    flex: 0 0 auto;
    font-size: 12px;
  }

  .media-post-search-suggestion-detail {
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .media-filter-clear {
    color: #333;
    font-weight: 700;
    text-decoration: underline;
  }

  .emalm-media-directory-shell {
    margin: 0 0 18px;
  }

  .emalm-media-breadcrumbs {
    align-items: center;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  .emalm-media-breadcrumbs a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
  }

  .emalm-media-breadcrumbs a:hover,
  .emalm-media-breadcrumbs a:focus {
    text-decoration: underline;
  }

  .emalm-media-breadcrumb-sep {
    color: #777;
  }

  .emalm-media-folder-head {
    background: #f6f6f6;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 14px 16px;
  }

  .emalm-media-folder-head-inner {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  }

  .emalm-media-folder-cover {
    align-items: center;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    min-height: 120px;
    overflow: hidden;
  }

  .emalm-media-folder-cover .emalm-album-folder-cover {
    height: 120px;
  }

  .emalm-media-folder-head h2 {
    margin: 0 0 6px;
  }

  .emalm-media-folder-meta {
    color: #555;
    font-size: 13px;
    font-weight: 700;
  }

  .emalm-media-folder-description {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
  }

  .emalm-media-folder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .emalm-media-folder-action {
    background: #fff7b8;
    border: 1px solid #cdbf73;
    border-radius: 999px;
    color: #111;
    display: inline-flex;
    padding: 6px 10px;
    text-decoration: none;
  }

  .emalm-media-folder-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 16px;
  }

  .emalm-media-folder-card {
    background: #fff9d8;
    border: 1px solid #d1c68f;
    border-radius: 8px;
    overflow: hidden;
  }

  .emalm-media-folder-link {
    color: #111;
    display: block;
    text-decoration: none;
  }

  .emalm-media-folder-link:hover,
  .emalm-media-folder-link:focus {
    text-decoration: underline;
  }

  .emalm-media-folder-card-cover {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d1c68f;
    display: flex;
    justify-content: center;
    min-height: 108px;
    overflow: hidden;
  }

  .emalm-media-folder-card-cover .emalm-album-folder-cover {
    height: 108px;
  }

  .emalm-media-folder-card-body {
    padding: 12px 14px;
  }

  .emalm-media-folder-card-title {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    font-size: 16px;
  }

  .emalm-media-folder-card-meta {
    color: #666;
    font-size: 12px;
    margin-top: 6px;
  }

  .emalm-media-folder-card-description {
    color: #333;
    margin: 8px 0 0;
    overflow-wrap: anywhere;
  }

  @media (max-width: 768px) {
    .emalm-media-folder-head-inner {
      grid-template-columns: 1fr;
    }
  }

  .media-layout-button {
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #777;
    border-radius: 4px;
    color: #111;
    display: inline-flex;
    flex: 1 1 0;
    gap: 0.35em;
    justify-content: center;
    min-height: 2.5em;
    padding: 0.45em 0.6em;
  }

  .media-layout-button.is-active {
    background: var(--emalm-theme-accent, #D4AF37);
    border-color: #9f8128;
    font-weight: 700;
  }

  .media-layout-button:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
  }

  .media-results {
    min-width: 0;
  }

  .media-list-item {
    border-radius: 8px;
    transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
  }

  .media-results-list .media-list-item:hover {
    background: rgba(255, 255, 0, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
  }

  .media-results-grid {
    display: grid;
    gap: 1.4em 1em;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .media-results-grid .media-list-item {
    display: flex;
    flex-direction: column;
    max-width: none;
    min-width: 0;
  }

  .media-results-grid .media-list-item:hover {
    transform: translateY(-3px);
  }

  .media-results-grid .list-left,
  .media-results-grid .list-right {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .media-results-grid .list-right {
    order: 1;
  }

  .media-results-grid .list-left {
    order: 2;
    padding-top: 0.65em;
  }

  .media-results-grid .media-grid-metadata {
    display: flex;
    gap: 0.7em;
    min-width: 0;
  }

  .media-grid-text {
    min-width: 0;
  }

  .media-grid-avatar-link {
    display: none;
  }

  .media-uploader-avatar {
    background-color: #fff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    display: block;
    height: 100%;
    width: 100%;
  }

  .media-results-grid .media-grid-avatar-link {
    display: block;
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
  }

  .media-results-grid .list-title {
    display: -webkit-box;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.28;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .media-results-grid .list-title a {
    color: #111;
    text-decoration: none;
  }

  .media-results-grid .list-title a:hover,
  .media-results-grid .list-title a:focus {
    text-decoration: underline;
  }

  .media-status-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35em;
    margin-left: 0.5em;
    vertical-align: middle;
  }

  .media-status-badge {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    color: #111;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.2em 0.55em;
    white-space: nowrap;
  }

  .media-status-badge--unlisted {
    background: #fff7b3;
    border-color: #d2c14b;
  }

  .media-status-badge--expired {
    background: #ffd5d5;
    border-color: #d67c7c;
  }

  .media-status-badge--expiring {
    background: #dff2ff;
    border-color: #7aaed6;
  }

  .media-status-badge--rating-g {
    background: #e4f7df;
    border-color: #8bcf7f;
  }

  .media-status-badge--rating-s {
    background: #eef0ff;
    border-color: #9fa8df;
  }

  .media-status-badge--rating-q {
    background: #fff0ce;
    border-color: #d8a94a;
  }

  .media-status-badge--rating-e {
    background: #ffd9df;
    border-color: #d47686;
  }

  .media-results-grid .list-description {
    color: #555;
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 0.25em;
  }

  .media-results-grid .media-item-description {
    display: none;
  }

  .media-results-grid .media-item-separator {
    display: none;
  }

  .media-thumb-frame {
    display: block;
    position: relative;
  }

  .media-results-grid .media-thumb-frame {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .media-results-grid .media-thumb-frame .list-img,
  .media-results-grid .media-thumb-frame .list-vid {
    border-radius: 0;
    height: 100%;
    max-height: none;
    max-width: 100%;
    min-width: 0;
    object-fit: contain;
    padding: 0;
    width: 100%;
  }

  .media-results-grid .media-list-item:hover .media-thumb-frame {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
    filter: brightness(1.04);
  }

  @media only screen and (max-width: 1026px) {
    .media-results-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .media-results-grid .media-list-item {
      flex-direction: column !important;
      max-width: none;
      min-width: 0;
    }

    .media-results-grid .list-left,
    .media-results-grid .list-right {
      margin: 0;
      width: 100% !important;
    }

    .media-results-grid .list-description {
      display: block !important;
    }
  }

  @media only screen and (max-width: 660px) {
    .media-results-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-listing-layout {
      margin-left: 8px;
      margin-right: 8px;
    }

    .emalm-posts-sidebar-container {
      display: flex;
      flex-direction: column;
    }

    .emalm-posts-sidebar {
      flex-basis: auto;
      max-width: none;
      order: 2;
      width: 100%;
    }

    .emalm-posts-content {
      order: 1;
      width: 100%;
    }

    .media-listing-main > section,
    .media-listing-main > .left,
    .media-listing-rside {
      left: auto !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      min-width: 0 !important;
      position: static !important;
      right: auto !important;
      width: auto !important;
    }

    .media-search-form {
      align-items: stretch;
      display: grid;
      grid-template-columns: 1fr;
    }

    .emalm-search-autocomplete-shell--post-query {
      min-width: 0;
      width: 100%;
    }

    .media-filter-row,
    .media-layout-switch,
    .media-page-size-switch,
    .media-status-filter-buttons {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: 100%;
    }

    .media-filter-row {
      display: grid;
    }

    .media-results-grid {
      gap: 0.9em 0.65em;
    }

    .media-results-grid .media-grid-avatar-link,
    .media-results-grid .list-description {
      display: none !important;
    }

    .media-results-grid .media-grid-metadata {
      display: block;
    }

    .media-results-grid .list-title {
      font-size: 13px;
      line-height: 1.18;
      text-align: center;
    }

    .media-results-grid .media-thumb-frame {
      aspect-ratio: 1 / 1;
    }
  }

  @media only screen and (max-width: 767px) {
    .media-status-badges {
      display: flex;
      margin-left: 0;
      margin-top: 0.35em;
    }
  }
